{
"info": {
"author": "Md Nazrul Islam",
"author_email": "email2nazrul@gmail.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Healthcare Industry",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8"
],
"description": "============\nIntroduction\n============\n\n\n.. image:: https://img.shields.io/pypi/v/fhirpath_guillotina.svg\n :target: https://pypi.org/project/fhirpath/\n\n.. image:: https://img.shields.io/travis/nazrulworld/fhirpath_guillotina.svg\n :target: https://travis-ci.org/nazrulworld/fhirpath_guillotina\n\n.. image:: https://readthedocs.org/projects/fhirpath-guillotina/badge/?version=latest\n :target: https://fhirpath-guillotina.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://codecov.io/gh/nazrulworld/fhirpath_guillotina/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/nazrulworld/fhirpath_guillotina\n :alt: Test Coverage\n\n\nA guillotina framework powered fhirpath provider. Full battery included to use `fhirpath`_ more efficiently.\n\nIf you don't know about FHIR\u00ae and HL7\u00ae, Please `have a look here `_.\n\nQuickstart\n----------\n\n1. Make sure ``fhirpath_guillotina`` is added as addon in your guillotina configure file.\n\n2. Make sure elasticsearch server configured properly.\n\n3. Make sure you have FHIR resource contenttypes registered (see example bellow).\n\n4. Make sure you have FHIR resources mapping (correct version) for elasticsearch.\n\n\nExample: Add Contents::\n\n >>> from fhirpath_guillotina.field import FhirField\n\n class IOrganization(IFhirContent, IContentIndex):\n index_field(\n \"organization_resource\",\n type=\"object\",\n field_mapping=fhir_resource_mapping(\"Organization\"),\n fhirpath_enabled=True,\n resource_type=\"Organization\",\n fhir_version=FHIR_VERSION.DEFAULT,\n )\n index_field(\"org_type\", type=\"keyword\")\n org_type = TextLine(title=\"Organization Type\", required=False)\n organization_resource = FhirField(\n title=\"Organization Resource\", resource_type=\"Organization\", fhir_version=\"R4\"\n )\n\n\n @configure.contenttype(type_name=\"Organization\", schema=IOrganization)\n class Organization(Folder):\n \"\"\" \"\"\"\n\n index(schemas=[IOrganization], settings={})\n resource_type = \"Organization\"\n\n\nExample Search::\n\n >>> from guillotina.component import query_utility\n >>> from fhirpath.interfaces import ISearchContextFactory\n >>> from fhirpath.interfaces import IFhirSearch\n >>> search_context = query_utility(ISearchContextFactory).get(\n ... resource_type=\"Organization\"\n ... )\n >>> search_tool = query_utility(IFhirSearch)\n >>> params = (\n ... (\"active\", \"true\"),\n ... (\"_lastUpdated\", \"2010-05-28T05:35:56+00:00\"),\n ... (\"_profile\", \"http://hl7.org/fhir/Organization\"),\n ... (\"identifier\", \"urn:oid:2.16.528.1|91654\"),\n ... (\"type\", \"http://hl7.org/fhir/organization-type|prov\"),\n ... (\"address-postalcode\", \"9100 AA\")\n ... )\n >>> fhir_bundle = await search_tool(params, context=search_context)\n >>> fhir_bundle.total == len(fhir_bundle.entry)\n\nExample FhirPath Query::\n\n >>> from fhirpath.interfaces import IElasticsearchEngineFactory\n >>> from guillotina.component import query_utility\n >>> from fhirpath.enums import SortOrderType\n >>> from fhirpath.fql import Q_\n >>> from fhirpath.fql import T_\n >>> from fhirpath.fql import V_\n >>> from fhirpath.fql import sort_\n >>> engine = query_utility(IElasticsearchEngineFactory).get()\n >>> query_builder = Q_(resource=\"Organization\", engine=engine)\n >>> query_builder = (\n ... query_builder.where(T_(\"Organization.active\") == V_(\"true\"))\n ... .where(T_(\"Organization.meta.lastUpdated\", \"2010-05-28T05:35:56+00:00\"))\n ... .sort(sort_(\"Organization.meta.lastUpdated\", SortOrderType.DESC))\n ... .limit(20)\n ... )\n >>> query_result = query_builder(async_result=True)\n >>> result = query_result.fetchall()\n >>> result.header.total == 100\n True\n >>> len(result.body) == 20\n True\n >>> async for resource in query_result:\n ... assert resource.resource_type == \"Organization\"\n\n\n* Free software: GNU General Public License v3\n* Documentation: https://fhirpath-guillotina.readthedocs.io.\n\n\nCredits\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.. _`fhirpath`: https://pypi.org/project/fhirpath/\n\n\n=======\nHistory\n=======\n\n0.2.0 (2019-10-10)\n------------------\n\n- Full (almost) featured `FHIR Search R4 `_ supports.\n\n\n0.1.0 (2019-08-24)\n------------------\n\n* First release on PyPI. [nazrulworld]\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/fhirpath_guillotina",
"keywords": "fhirpath guillotina hl7 fhir fhirpath",
"license": "GNU General Public License v3",
"maintainer": "",
"maintainer_email": "",
"name": "fhirpath-guillotina",
"package_url": "https://pypi.org/project/fhirpath-guillotina/",
"platform": "",
"project_url": "https://pypi.org/project/fhirpath-guillotina/",
"project_urls": {
"CI: Travis": "https://travis-ci.com/nazrulworld/fhirpath_guillotina",
"Coverage: codecov": "https://codecov.io/github/nazrulworld/fhirpath_guillotina",
"Docs: RTD": "https://fhirpath-guillotina.readthedocs.io/",
"GitHub: issues": "https://github.com/nazrulworld/fhirpath_guillotina/issues",
"GitHub: repo": "https://github.com/nazrulworld/fhirpath_guillotina",
"Homepage": "https://github.com/nazrulworld/fhirpath_guillotina"
},
"release_url": "https://pypi.org/project/fhirpath-guillotina/0.2.0/",
"requires_dist": [
"Click (>=6.0)",
"guillotina (>5.0.0)",
"guillotina-elasticsearch",
"fhirpath",
"sphinx ; extra == 'docs'",
"sphinx-rtd-theme ; extra == 'docs'",
"sphinxcontrib-httpdomain ; extra == 'docs'",
"sphinxcontrib-httpexample ; extra == 'docs'",
"pytest ; extra == 'test'",
"pytest-cov ; extra == 'test'",
"pytest-mock ; extra == 'test'",
"pytest-docker-fixtures ; extra == 'test'",
"pytest-runner ; extra == 'test'"
],
"requires_python": ">=3.7",
"summary": "A guillotina framework powered fhirpath provider.",
"version": "0.2.0"
},
"last_serial": 5953452,
"releases": {
"0.1.0": [
{
"comment_text": "",
"digests": {
"md5": "a3dcbc4a6d581d03625848745123f4f0",
"sha256": "6f9c38d2fe59a4669e273b5d4b07814dcd248d052d43ca361d4b0c93041ce1eb"
},
"downloads": -1,
"filename": "fhirpath_guillotina-0.1.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "a3dcbc4a6d581d03625848745123f4f0",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 15334,
"upload_time": "2019-08-27T17:03:16",
"url": "https://files.pythonhosted.org/packages/6c/38/0afd7fc4fcbc4d5d431fd6e8408f8476936d791bd9d6220b4544b8c4e93c/fhirpath_guillotina-0.1.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "f10b4d538e0a672d65604324d3cfea64",
"sha256": "62a89df5aeac6bb87f6a6bac210080c24a6110921c6a0260520eedda8b83f37b"
},
"downloads": -1,
"filename": "fhirpath_guillotina-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "f10b4d538e0a672d65604324d3cfea64",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 16145,
"upload_time": "2019-08-27T17:03:19",
"url": "https://files.pythonhosted.org/packages/8f/74/e85fe6ca567718aabb1661d80ab786a662a3b5f4fdf777b53b558145a0b7/fhirpath_guillotina-0.1.0.tar.gz"
}
],
"0.2.0": [
{
"comment_text": "",
"digests": {
"md5": "9be2fbc5140cc89bbf41c326f6c0359a",
"sha256": "562ba19a298fa8972ce0214ca4251735f937ca412b40612bcf39fb1ee246c8d5"
},
"downloads": -1,
"filename": "fhirpath_guillotina-0.2.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "9be2fbc5140cc89bbf41c326f6c0359a",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.7",
"size": 14903,
"upload_time": "2019-10-10T07:27:50",
"url": "https://files.pythonhosted.org/packages/ab/cb/fa01a246508cb474a0fb763f5ce8abde2da99e8a1857a13bc4402fd5a461/fhirpath_guillotina-0.2.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "fa39b8580db97d3b3fd1d18dae3e95d2",
"sha256": "77ffc7c22ea7f0dac6b346bc1286fa60f2486701c819c3dcd7a6d44dcb461006"
},
"downloads": -1,
"filename": "fhirpath_guillotina-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "fa39b8580db97d3b3fd1d18dae3e95d2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 16301,
"upload_time": "2019-10-10T07:27:52",
"url": "https://files.pythonhosted.org/packages/1c/2b/fcfddecdddfc9482e3f6f52b4add6cdd59fab2928f2fa3159e8a3fe7cdc3/fhirpath_guillotina-0.2.0.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "9be2fbc5140cc89bbf41c326f6c0359a",
"sha256": "562ba19a298fa8972ce0214ca4251735f937ca412b40612bcf39fb1ee246c8d5"
},
"downloads": -1,
"filename": "fhirpath_guillotina-0.2.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "9be2fbc5140cc89bbf41c326f6c0359a",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.7",
"size": 14903,
"upload_time": "2019-10-10T07:27:50",
"url": "https://files.pythonhosted.org/packages/ab/cb/fa01a246508cb474a0fb763f5ce8abde2da99e8a1857a13bc4402fd5a461/fhirpath_guillotina-0.2.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "fa39b8580db97d3b3fd1d18dae3e95d2",
"sha256": "77ffc7c22ea7f0dac6b346bc1286fa60f2486701c819c3dcd7a6d44dcb461006"
},
"downloads": -1,
"filename": "fhirpath_guillotina-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "fa39b8580db97d3b3fd1d18dae3e95d2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 16301,
"upload_time": "2019-10-10T07:27:52",
"url": "https://files.pythonhosted.org/packages/1c/2b/fcfddecdddfc9482e3f6f52b4add6cdd59fab2928f2fa3159e8a3fe7cdc3/fhirpath_guillotina-0.2.0.tar.gz"
}
]
}