{ "info": { "author": "beda.software", "author_email": "fhirpy@beda.software", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "[![Build Status](https://travis-ci.org/beda-software/fhir-py.svg?branch=master)](https://travis-ci.org/beda-software/fhir-py)\n[![codecov](https://codecov.io/gh/beda-software/fhir-py/branch/master/graph/badge.svg)](https://codecov.io/gh/beda-software/fhir-py)\n[![pypi](https://img.shields.io/pypi/v/fhirpy.svg)](https://pypi.python.org/pypi/fhirpy)\n\n# fhir-py\nFHIR client for python.\nThis package provides an API for CRUD operations over FHIR resources\n\n# API\nImport library:\n\n`from fhirpy import FHIRClient`\n\nTo create FHIR instance use:\n\n`FHIRClient(url, authorization='', fhir_version='4.0.0', without_cache=False)`\n\nReturns an instance of the connection to the server which provides:\n* .reference(resource_type, id, reference, **kwargs) - returns `FHIRReference` to the resource\n* .resource(resource_type, **kwargs) - returns `FHIRResource` which described below\n* .resources(resource_type) - returns `FHIRSearchSet`\n\n`FHIRResource`\n\nprovides:\n* .save() - creates or updates resource instance\n* .delete() - deletes resource instance\n* .to_reference(**kwargs) - returns `FHIRReference` for this resource\n\n`FHIRReference`\n\nprovides:\n* .to_resource(nocache=False) - returns `FHIRResource` for this reference\n\n`FHIRSearchSet`\n\nprovides:\n* .search(param=value)\n* .limit(count)\n* .page(page)\n* .sort(*args)\n* .elements(*args, exclude=False)\n* .include(resource_type, attr)\n* .fetch() - makes query to the server and returns a list of `FHIRResource`\n* .fetch_all() - makes query to the server and returns a full list of `FHIRResource`\n* .first() - returns `FHIRResource` or None\n* .get(id=id) - returns `FHIRResource` or raises `FHIRResourceNotFound`\n\n# Usage\n\nCreate an instance\n```python\nclient = FHIRClient(url='http://path-to-fhir-server', authorization='Bearer TOKEN')\n```\n\nFetch list of resource's instances\n```python\nresources = client.resources('Patient') # Return lazy search set\nresources = resources.search(name='John').limit(10).page(2).sort('name')\n\nresources.fetch() # Returns list of FHIRResource\n```\n\nGet the particular instance of resource\n```python\nres = client.resources('Patient').get(id='ID')\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/beda-software/fhir-py", "keywords": "fhir", "license": "", "maintainer": "", "maintainer_email": "", "name": "fhirpy", "package_url": "https://pypi.org/project/fhirpy/", "platform": "", "project_url": "https://pypi.org/project/fhirpy/", "project_urls": { "Homepage": "http://github.com/beda-software/fhir-py" }, "release_url": "https://pypi.org/project/fhirpy/0.2.1/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "FHIR client for python", "version": "0.2.1" }, "last_serial": 5408904, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "1f7e5cf51782519a6d220f10b2c33b2d", "sha256": "29cb8a0dfd62836451265555b11742b82e20b8628b30bf9a9025708a3301914d" }, "downloads": -1, "filename": "fhirpy-0.2.0.tar.gz", "has_sig": false, "md5_digest": "1f7e5cf51782519a6d220f10b2c33b2d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 144478, "upload_time": "2018-11-20T15:47:37", "url": "https://files.pythonhosted.org/packages/ed/ce/55f7ffa9e3ce268b56210a8818ef91288c3e674b8c56123e30d739f594ad/fhirpy-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "9bfc4f44d107197dd6e7a90c5fdbf984", "sha256": "1e11bff7afa7af5641bef4df6f3ff4fd240f7dbbb5d27dcea33107e1bf5dab68" }, "downloads": -1, "filename": "fhirpy-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9bfc4f44d107197dd6e7a90c5fdbf984", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 182737, "upload_time": "2019-06-17T07:26:18", "url": "https://files.pythonhosted.org/packages/f2/47/c5ebc0246c616276ea22c3ffa63919e2b30f2dd3bf63b73a27a3f9d11b40/fhirpy-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4c21dc926d88985e960ca8cf0f8c7c6f", "sha256": "fd56af1110758f674ada52f52b00a6612f8c04a9441d17a1800bfbde89e5961e" }, "downloads": -1, "filename": "fhirpy-0.2.1.tar.gz", "has_sig": false, "md5_digest": "4c21dc926d88985e960ca8cf0f8c7c6f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 171574, "upload_time": "2019-06-17T07:26:20", "url": "https://files.pythonhosted.org/packages/22/48/76bb0527d60cb05cfe6315410af5faf9a01e42ea5a803ea49eff6cbc94b0/fhirpy-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9bfc4f44d107197dd6e7a90c5fdbf984", "sha256": "1e11bff7afa7af5641bef4df6f3ff4fd240f7dbbb5d27dcea33107e1bf5dab68" }, "downloads": -1, "filename": "fhirpy-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9bfc4f44d107197dd6e7a90c5fdbf984", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 182737, "upload_time": "2019-06-17T07:26:18", "url": "https://files.pythonhosted.org/packages/f2/47/c5ebc0246c616276ea22c3ffa63919e2b30f2dd3bf63b73a27a3f9d11b40/fhirpy-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4c21dc926d88985e960ca8cf0f8c7c6f", "sha256": "fd56af1110758f674ada52f52b00a6612f8c04a9441d17a1800bfbde89e5961e" }, "downloads": -1, "filename": "fhirpy-0.2.1.tar.gz", "has_sig": false, "md5_digest": "4c21dc926d88985e960ca8cf0f8c7c6f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 171574, "upload_time": "2019-06-17T07:26:20", "url": "https://files.pythonhosted.org/packages/22/48/76bb0527d60cb05cfe6315410af5faf9a01e42ea5a803ea49eff6cbc94b0/fhirpy-0.2.1.tar.gz" } ] }