{ "info": { "author": "Md Nazrul Islam", "author_email": "email2nazrul@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "=================================\nFHIR\u00ae Resources (R4, STU3, DSTU2)\n=================================\n\n\n.. image:: https://img.shields.io/pypi/v/fhir.resources.svg\n :target: https://pypi.python.org/pypi/fhir.resources\n\n.. image:: https://img.shields.io/pypi/pyversions/fhir.resources.svg\n :target: https://pypi.python.org/pypi/fhir.resources\n :alt: Supported Python Versions\n\n.. image:: https://img.shields.io/travis/nazrulworld/fhir.resources.svg\n :target: https://travis-ci.org/nazrulworld/fhir.resources\n\n.. image:: https://codecov.io/gh/nazrulworld/fhir.resources/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/nazrulworld/fhir.resources\n\n\n.. image:: https://fire.ly/wp-content/themes/fhir/images/fhir.svg\n :target: https://www.hl7.org/implement/standards/product_brief.cfm?product_id=449\n :alt: HL7\u00ae FHIR\u00ae\n\n\n\nAll `FHIR Resources `_ are available as python class with built-in\ninitial validation, exporter as json value.\n\n* Provides ``Resource Factory`` class (see example 4) to create resource object in more convenient way.\n* Previous version of FHIR\u00ae Resources are available.\n* Free software: BSD license\n\n\nFHIR\u00ae Version Info\n------------------\n\nFHIR\u00ae (R4 aka 4.0.0) is available as default. Also previous versions are available as Python sub-package\n(each version name string becomes sub-package name, i.e ``STU3`` ).\n\n**Available Previous Versions**:\n\n* ``STU3`` (3.0.1)\n\n* ``DSTU2`` (1.0.2)\n\nInstallation\n------------\n\nJust a simple ``pip install fhir.resources`` or ``easy_install fhir.resources`` is enough. But if you want development\nversion, just clone from https://github.com/nazrulworld/fhir.resources and ``python setup.py install``.\n\n\n**Example: 1**: Resource object created from json string::\n\n\n >>> from fhir.resources.organization import Organization\n >>> from fhir.resources.address import Address\n >>> json_dict = {\"resourceType\": \"Organization\",\n ... \"id\": \"mmanu\",\n ... \"active\": True,\n ... \"name\": \"Acme Corporation\",\n ... \"address\": [{\"country\": \"Swizterland\"}]\n ... }\n >>> org = Organization(json_dict)\n >>> isinstance(org.address[0], Address)\n >>> True\n >>> org.address[0].country == \"Swizterland\"\n True\n >>> org.as_json()['active'] is True\n True\n\n\n**Example: 2**: Construct resource object in python way::\n\n\n >>> org = Organization()\n >>> org.id = \"mmanu\"\n >>> org.active = True\n >>> org.name = \"Acme Corporation\"\n >>> org.address = list()\n >>> address = Address()\n >>> address.country = \"Swizterland\"\n >>> org.address.append(address)\n >>> org.as_json() == json_dict\n True\n\n\n**Example: 3**: Auto validation while providing wrong datatype::\n\n >>> from fhir.resources.fhirabstractbase import FHIRValidationError\n >>> try:\n ... org = Organization({\"id\": \"fmk\", \"address\": [\"i am wrong type\"]})\n ... raise AssertionError(\"Code should not come here\")\n ... except FHIRValidationError:\n ... pass\n\n\n**Example: 4**: Using Resource Factory::\n\n This package provides a convenient factory to create FHIR\u00ae resource, you never need to import manually each resource class.\n\n >>> from fhir.resources.fhirelementfactory import FHIRElementFactory\n >>> json_dict = {\"resourceType\": \"Organization\",\n ... \"id\": \"mmanu\",\n ... \"active\": True,\n ... \"name\": \"Acme Corporation\",\n ... \"address\": [{\"country\": \"Swizterland\"}]\n ... }\n >>> org = FHIRElementFactory.instantiate('Organization', json_dict)\n >>> org.address[0].country == \"Swizterland\"\n True\n >>> org.as_json()['active'] is True\n True\n\nRelease and Version Policy\n--------------------------\n\nStarting from version ``5.0.0`` we are following our own release policy and we although follow Semantic Versioning scheme like FHIR\u00ae version.\nUnlike previous statement (bellow), releasing now is not dependent on FHIR\u00ae.\n\n\n**removed statement**\n\n This package is following `FHIR\u00ae release and versioning policy `_, for example say, FHIR releases next version 4.0.1,\n we also release same version here.\n\n\nCredits\n-------\n\nAll FHIR\u00ae Resources (python classes) are generated using fhir-parser_.\n\n\nThis package skeleton was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n.. _`fhir-parser`: https://github.com/smart-on-fhir/fhir-parser.git\n\n\u00a9 Copyright HL7\u00ae logo, FHIR\u00ae logo and the flaming fire are registered trademarks\nowned by `Health Level Seven International `_\n\n.. role:: strike\n :class: strike\n\n\n=======\nHistory\n=======\n\n5.0.1 (2019-07-18)\n------------------\n\nBugfixes:\n\n- `Issue#5 `_ confusing error message \"name 'self' is not defined\" [nazrulworld]\n\n\n5.0.0 (2019-06-08)\n------------------\n\n- Nothing but release stable version.\n\n\n5.0.0b3 (2019-05-14)\n--------------------\n\nNew features\n\n- Isuue#1 `Add DSTU2 Support `_\n\n\n5.0.0b2 (2019-05-13)\n--------------------\n\nBreaking or Improvments\n\n- ``elementProperties``: element now has extra property ``type_name``. Now format like ``(name, json_name, type, type_name, is_list, \"of_many\", not_optional)``\n The ``type_name`` refers original type name (code) from FHIR Structure Definition and it would be very helpful while\n making fhir search, fhirpath navigator.\n\n\n\n5.0.0b1 (2019-01-19)\n--------------------\n\nNew features\n\n- Implemented own build policy, now previous version of FHIR\u00ae resources are available as python sub-package.\n\nBuild info\n\n- Default version is ``R4`` (see version info at `4.0.0b1 (2019-01-13)` section)\n\n- ``STU3`` (see version info at `3.0.1 (2019-01-13)` section)\n\n\n4.0.0 (2019-01-14)\n------------------\n\n- see version info at ``4.0.0b1`` section.\n\n\n4.0.0b1 (2019-01-13)\n--------------------\n\n`Version Info (R4)`_ ::\n\n [FHIR]\n FhirVersion=4.0.0-a53ec6ee1b\n version=4.0.0\n buildId=a53ec6ee1b\n date=20181227223754\n\n\n\n3.0.1 (2019-01-13)\n------------------\n\n`Version Info (STU3)`_ ::\n\n [FHIR]\n FhirVersion=3.0.1.11917\n version=3.0.1\n revision=11917\n date=20170419074443\n\n\n.. _`Version Info (STU3)`: http://hl7.org/fhir/stu3/\n.. _`Version Info (R4)`: http://hl7.org/fhir/R4/\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nazrulworld/fhir.resources", "keywords": "fhir,resources,python,hl7,health IT,healthcare", "license": "BSD license", "maintainer": "", "maintainer_email": "", "name": "fhir.resources", "package_url": "https://pypi.org/project/fhir.resources/", "platform": "", "project_url": "https://pypi.org/project/fhir.resources/", "project_urls": { "Homepage": "https://github.com/nazrulworld/fhir.resources" }, "release_url": "https://pypi.org/project/fhir.resources/5.0.1/", "requires_dist": [ "isodate", "coverage ; extra == 'test'", "pytest ; extra == 'test'", "pytest-cov ; extra == 'test'", "pytest-runner ; extra == 'test'" ], "requires_python": "", "summary": "FHIR Resources as Model Class", "version": "5.0.1" }, "last_serial": 5550470, "releases": { "3.0.1": [ { "comment_text": "", "digests": { "md5": "04e4dd651f252461245020030b7918c2", "sha256": "4e28956f68f991e6c28ce114bf497cc48bd9bf7859dc42bf04d76d997b9e0bd2" }, "downloads": -1, "filename": "fhir.resources-3.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "04e4dd651f252461245020030b7918c2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 547686, "upload_time": "2019-01-13T07:28:54", "url": "https://files.pythonhosted.org/packages/be/f2/33361cbd2cad9c887007209d891f1908dbd7d35abf11ec927c2ed8b1511b/fhir.resources-3.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "962ad87ca6a476046c5aa2956bdc9f97", "sha256": "84ac17b53c5325388b2ca6f4d00b08d1fc2b061af58fb8e2cf6db859611d9604" }, "downloads": -1, "filename": "fhir.resources-3.0.1.tar.gz", "has_sig": false, "md5_digest": "962ad87ca6a476046c5aa2956bdc9f97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 322945, "upload_time": "2019-01-13T07:28:59", "url": "https://files.pythonhosted.org/packages/bb/02/4b62038c9e193e3d9f0a15aa89d83743824533ef47fd1ecef186f33b7be2/fhir.resources-3.0.1.tar.gz" } ], "4.0.0": [ { "comment_text": "", "digests": { "md5": "e9316520155d4949878dde5deeec6ad4", "sha256": "2557453940d6ee2ab542c1a8229ff861dbd6b6f79eac607828d0013ab4fe619b" }, "downloads": -1, "filename": "fhir.resources-4.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e9316520155d4949878dde5deeec6ad4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 685285, "upload_time": "2019-01-14T16:51:02", "url": "https://files.pythonhosted.org/packages/dc/f5/df3744dce09497936a2c5772810cfcbf7a16b1a9f30c588201a1c6a00d50/fhir.resources-4.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "854a5dbdb1250615eca237c784f455b8", "sha256": "f0ac58c15857460d64afe6b0fa16e8a7da5094a09dc6582d929b0e92ac8cd106" }, "downloads": -1, "filename": "fhir.resources-4.0.0.tar.gz", "has_sig": false, "md5_digest": "854a5dbdb1250615eca237c784f455b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 406286, "upload_time": "2019-01-14T16:51:06", "url": "https://files.pythonhosted.org/packages/a8/ef/7a06207263bfb2ffd917b26bbca13aae33b71afb398036707eafff2cd439/fhir.resources-4.0.0.tar.gz" } ], "4.0.0b1": [ { "comment_text": "", "digests": { "md5": "ba20f80ddada10fce26e167488811974", "sha256": "27e55cd4f673c3b1253068a888f2247ea386f76ab7b8c7f761d95ee48ca8f781" }, "downloads": -1, "filename": "fhir.resources-4.0.0b1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ba20f80ddada10fce26e167488811974", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 685265, "upload_time": "2019-01-13T18:47:22", "url": "https://files.pythonhosted.org/packages/75/cd/11ac0c7489e62e05c5717c6472bafe2b6a566f9927490df48605a4540037/fhir.resources-4.0.0b1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "97925178b53e0d6d9d35507c1184772b", "sha256": "c3cba4e32aca8e620e4e2413d5a757cc5a4bd3084b63fcd254b9ba8dc756d7be" }, "downloads": -1, "filename": "fhir.resources-4.0.0b1.tar.gz", "has_sig": false, "md5_digest": "97925178b53e0d6d9d35507c1184772b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 406225, "upload_time": "2019-01-13T18:47:25", "url": "https://files.pythonhosted.org/packages/6f/04/f1530236109423da32f66a563cdc677542f5e1c97381022eaa0ead0fc0e8/fhir.resources-4.0.0b1.tar.gz" } ], "5.0.0": [ { "comment_text": "", "digests": { "md5": "d32a91bda46f8b17b94913dda98bb3a6", "sha256": "107d66b3b17ae6984be1f1d0c451036666d35d02131232bb01346b3565793619" }, "downloads": -1, "filename": "fhir.resources-5.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d32a91bda46f8b17b94913dda98bb3a6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 1613698, "upload_time": "2019-06-08T15:05:56", "url": "https://files.pythonhosted.org/packages/d7/1c/be5a7f0844cf6aa5d95419f73d39f3312ec69f60bfd9745ac76c403eb1d1/fhir.resources-5.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f342d1c42ae4dddac94d33e77299e930", "sha256": "159afd02f56a40d49876bc2c8ccc061742c4d3feccedf861a268798b5afe1b3b" }, "downloads": -1, "filename": "fhir.resources-5.0.0.tar.gz", "has_sig": false, "md5_digest": "f342d1c42ae4dddac94d33e77299e930", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 933406, "upload_time": "2019-06-08T15:06:15", "url": "https://files.pythonhosted.org/packages/96/17/4bd2b9b331d9dc9cd74b64b62011afec7b7e2e23d207df1f8da260831bb0/fhir.resources-5.0.0.tar.gz" } ], "5.0.0b1": [ { "comment_text": "", "digests": { "md5": "0154d137c94ba942f46ff83e4a6130e9", "sha256": "adb5f4787a8fcf806dcacddf2be0da9f59cbc98db05983e2f61b6ba12bd6afc5" }, "downloads": -1, "filename": "fhir.resources-5.0.0b1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0154d137c94ba942f46ff83e4a6130e9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 1228871, "upload_time": "2019-01-19T08:42:11", "url": "https://files.pythonhosted.org/packages/4c/36/e964f728d1f714a5109304c3c38ce75721bb9a513c6b4ff3317e8992dc4f/fhir.resources-5.0.0b1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7bfc7187e37a3ad30319381a91ffffb9", "sha256": "99ae02af07e4b493f7d103b423c9ae6c086288a005f3a0d07cb567a139769b85" }, "downloads": -1, "filename": "fhir.resources-5.0.0b1.tar.gz", "has_sig": false, "md5_digest": "7bfc7187e37a3ad30319381a91ffffb9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 721741, "upload_time": "2019-01-19T08:42:15", "url": "https://files.pythonhosted.org/packages/6b/46/25719b34ddbea2552546aa8424436837d37f23971c4696d852c7200028a6/fhir.resources-5.0.0b1.tar.gz" } ], "5.0.0b2": [ { "comment_text": "", "digests": { "md5": "1cd9a8eb5ed2772815683663c248a825", "sha256": "98d0439702dd07a86202afe272ca6fa1e990b748f4766c44c15717689e9d780b" }, "downloads": -1, "filename": "fhir.resources-5.0.0b2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1cd9a8eb5ed2772815683663c248a825", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 1247466, "upload_time": "2019-05-13T07:07:45", "url": "https://files.pythonhosted.org/packages/39/c0/8a2cabf2bdb5094fe6e74034c531b82c5f78fa767cdec96027aa233a653b/fhir.resources-5.0.0b2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a74463e83e2cfc9e814e73df6b4ae9e0", "sha256": "8d92ce64a572d6c31e2230886e3c3ff1b8255dc24d3b1720fa3bd15d41f91fa0" }, "downloads": -1, "filename": "fhir.resources-5.0.0b2.tar.gz", "has_sig": false, "md5_digest": "a74463e83e2cfc9e814e73df6b4ae9e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 732847, "upload_time": "2019-05-13T07:07:50", "url": "https://files.pythonhosted.org/packages/2f/1a/d82a6ab7bd75c7232ef1e9b822ff8b09c915d2d006deb23c2a469517d50a/fhir.resources-5.0.0b2.tar.gz" } ], "5.0.0b3": [ { "comment_text": "", "digests": { "md5": "d0b5e2cf87a40d53be3deea3b0f4f999", "sha256": "9021e9080ce4b8dcf9891b8ddf78b5991d23d1b905b6862087b773d62015c1b6" }, "downloads": -1, "filename": "fhir.resources-5.0.0b3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d0b5e2cf87a40d53be3deea3b0f4f999", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 1613692, "upload_time": "2019-05-14T11:36:03", "url": "https://files.pythonhosted.org/packages/e3/2a/b5fe3992f21b8defcb7d6a2b133d8757a29f0ba4f127f9c928bb6c533382/fhir.resources-5.0.0b3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8cd2dd7e3240a754ee8b81c8c1d9afaa", "sha256": "3410095d17c346b17844050e370b2908fec535e08e770980b0a8adc947010ced" }, "downloads": -1, "filename": "fhir.resources-5.0.0b3.tar.gz", "has_sig": false, "md5_digest": "8cd2dd7e3240a754ee8b81c8c1d9afaa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 933429, "upload_time": "2019-05-14T11:36:15", "url": "https://files.pythonhosted.org/packages/05/02/7426748e5c806d0bdbec0051b176a29523c382210c8f1c9760b73dd31552/fhir.resources-5.0.0b3.tar.gz" } ], "5.0.1": [ { "comment_text": "", "digests": { "md5": "080144cf6029a09a2fe3c276cb3de898", "sha256": "4eabb6d8497e7b8f57ffff0fe68f38eebf85cad0fc9f534d6a9dc69af86ace56" }, "downloads": -1, "filename": "fhir.resources-5.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "080144cf6029a09a2fe3c276cb3de898", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 1614965, "upload_time": "2019-07-18T10:57:15", "url": "https://files.pythonhosted.org/packages/c2/fd/158d15c264ddfd23f59620ecb6c944c05fff59cd48aee73c70ce223b3914/fhir.resources-5.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8720beb843e81b95805c6aaf3ed05d2a", "sha256": "93bf0c5748f7b14edbca15edfafe8a6a24e0b3de19bdaff2f0a65ea2f319d15c" }, "downloads": -1, "filename": "fhir.resources-5.0.1.tar.gz", "has_sig": false, "md5_digest": "8720beb843e81b95805c6aaf3ed05d2a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 904538, "upload_time": "2019-07-18T10:57:19", "url": "https://files.pythonhosted.org/packages/de/5e/d31e45dfc62aa7bb701de77112ed35bcbd9a2e3720799ff31821297b8a6b/fhir.resources-5.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "080144cf6029a09a2fe3c276cb3de898", "sha256": "4eabb6d8497e7b8f57ffff0fe68f38eebf85cad0fc9f534d6a9dc69af86ace56" }, "downloads": -1, "filename": "fhir.resources-5.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "080144cf6029a09a2fe3c276cb3de898", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 1614965, "upload_time": "2019-07-18T10:57:15", "url": "https://files.pythonhosted.org/packages/c2/fd/158d15c264ddfd23f59620ecb6c944c05fff59cd48aee73c70ce223b3914/fhir.resources-5.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8720beb843e81b95805c6aaf3ed05d2a", "sha256": "93bf0c5748f7b14edbca15edfafe8a6a24e0b3de19bdaff2f0a65ea2f319d15c" }, "downloads": -1, "filename": "fhir.resources-5.0.1.tar.gz", "has_sig": false, "md5_digest": "8720beb843e81b95805c6aaf3ed05d2a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 904538, "upload_time": "2019-07-18T10:57:19", "url": "https://files.pythonhosted.org/packages/de/5e/d31e45dfc62aa7bb701de77112ed35bcbd9a2e3720799ff31821297b8a6b/fhir.resources-5.0.1.tar.gz" } ] }