{ "info": { "author": "Luis Falcon", "author_email": "lfalcon@gnusolidario.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Plugins", "Intended Audience :: Developers", "Intended Audience :: Healthcare Industry", "License :: OSI Approved :: GNU General Public License (GPL)", "Natural Language :: English", "Natural Language :: Spanish", "Operating System :: OS Independent", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Scientific/Engineering :: Bio-Informatics", "Topic :: Scientific/Engineering :: Medical Science Apps." ], "description": "# Copyright (C) 2014 Luis Falcon \n# Copyright (C) 2014 GNU Solidario \n# Copyright (C) 2014 Chris Zimmerman \n\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version.\n\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n\n# You should have received a copy of the GNU General Public License\n# along with this program. If not, see .\n\n\nAbout the FHIR Python Package\n------------------------------\n\nThe FHIR goal is to implement the HL7 FHIR[1] Reference in Python\n\nThe project was born to provide the backend to the GNU Health[2] FHIR modules, but it should work in other EMRs and clients.\n\nYou can get the latest development version at the Mercurial server in Savannah[3]\n\n1.- http://www.hl7.org/fhir\n2.- http://health.gnu.org\n3.- http://hg.savannah.gnu.org/hgweb/health/\n\nSample uses :\n\n1) Search Interaction\n2) Read Interaction\n3) Create Interaction\n\n\n1) #### Search interactions ####\n\n>>> from fhir import *\n\n>>> rest = RestfulFHIR('http://fhir.healthintersections.com.au/open', 'xml')\n>>> params = {'identifier': 55567890}\n>>> query = rest.search('Patient', params)\n>>> print query\n\n>>> print query.text\n\n\n Search results for resource type Patient\n urn:uuid:8b018fb9-7df4-4e1b-9f4b-8a34955d86\n \n \n 2014-03-30T03:51:25Z\n 1\n \n Patient \"1046\" Version \"1\"\n http://fhir.healthintersections.com.au/open/Patient/1046\n \n 2014-03-30T03:47:37Z\n \n 190.195.19.13\n \n 2014-03-30T03:51:25Z\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
--No Summary for this resource--
\n
\n
\n
\n\n######################################################################\n\n2) ###### Read interaction ##############\n\n>>> from fhir import *\n\n>>> rest = RestfulFHIR('http://fhir.healthintersections.com.au/open', 'xml')\n>>> query = rest.read('Patient', 1046)\n>>> print query\n\n>>> print query.text\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\nIf the resource ID does not exist, a 404 Response will be generated\n\nSay we try to access the non-existant ID 210834\n\n>>> rest = RestfulFHIR('http://fhir.healthintersections.com.au/open', 'xml')\n>>> query = rest.read('Patient', 210834)\n>>> print query\n\n>>> print query.text\n\n\n \n \n
\n

Resource Id \"Patient/210834\" does not exist

\n
\n
\n \n \n
\n \n\n\n\n#### CREATE INTERACTION on the Patient Profile #######\n\n>>> from fhir import *\n>>> import json\n\n# XML data elements for the Patient resource\n#>>> rest = RestfulFHIR('http://fhir.healthintersections.com.au/open', 'xml')\n#>>> body = \"\" \\\n# \"John\"\n\n# JSON data elements for the Patient resource\n>>> body = json.dumps({\"resourceType\":\"Patient\",\n \"name\":[{\"use\":\"official\", \"family\":[\"Doe\"], \"given\":[\"John\"]}]})\n\n>>> rest = RestfulFHIR('http://fhir.healthintersections.com.au/open')\n>>> query = rest.create('Patient', body)\n>>> print query\n\n>>> print query.text\n{\n \"resourceType\" : \"OperationOutcome\",\n \"text\" : {\n \"status\" : \"generated\",\n \"div\" : \"\\r\\n
The operation was succesful
\"\n }\n}\n\n\n########################################################################\n", "description_content_type": null, "docs_url": null, "download_url": "http://ftp.gnu.org/gnu/health/", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://health.gnu.org", "keywords": "HL7 FHIR GNUHEALTH", "license": "GPL-3", "maintainer": null, "maintainer_email": null, "name": "fhir", "package_url": "https://pypi.org/project/fhir/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/fhir/", "project_urls": { "Download": "http://ftp.gnu.org/gnu/health/", "Homepage": "http://health.gnu.org" }, "release_url": "https://pypi.org/project/fhir/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "HL7 FHIR Library", "version": "0.0.4" }, "last_serial": 1063940, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "04a224c2b58cafbbaf7a893b2055cbba", "sha256": "06f78c9fb17b60427545919ae89c886d99d71ca094a94b9604858c26b8ac122f" }, "downloads": -1, "filename": "fhir-0.0.1.tar.gz", "has_sig": false, "md5_digest": "04a224c2b58cafbbaf7a893b2055cbba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15570, "upload_time": "2014-03-09T01:02:23", "url": "https://files.pythonhosted.org/packages/07/b2/0a4937582a6caa9f19a96e6611c5330c90230ea75480f37387e2ba0498b1/fhir-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "04e38fc5a1cbc5f1691980915ad6bed2", "sha256": "6b858be9717da1c0357dfd6d120cf1e2029daa429d1a085442c4c90bfff7799d" }, "downloads": -1, "filename": "fhir-0.0.2.tar.gz", "has_sig": false, "md5_digest": "04e38fc5a1cbc5f1691980915ad6bed2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16127, "upload_time": "2014-03-12T12:55:36", "url": "https://files.pythonhosted.org/packages/dc/85/c095b69f32388b7e533e876fdcc360231eb6f0d5efb689847164a3d9beba/fhir-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "fbe25e587514581a89438b4af517267a", "sha256": "9b0c8801a69e6e20c979fad8695cfc9236f1ec58728bad2c000140e088c19457" }, "downloads": -1, "filename": "fhir-0.0.3.tar.gz", "has_sig": false, "md5_digest": "fbe25e587514581a89438b4af517267a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17537, "upload_time": "2014-03-30T04:11:41", "url": "https://files.pythonhosted.org/packages/be/ac/44b70a883b6ad64110bb399586a10bd70894bccf1fe5ac35248c156c44be/fhir-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "77bcfeeea62c92bd8e569cf7624c0bd4", "sha256": "02053927719c783e44886c8f77e996dae3bcdee3bc971f504118e61e95eca71b" }, "downloads": -1, "filename": "fhir-0.0.4.tar.gz", "has_sig": false, "md5_digest": "77bcfeeea62c92bd8e569cf7624c0bd4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18141, "upload_time": "2014-04-17T21:30:25", "url": "https://files.pythonhosted.org/packages/16/3a/f48dfee1c24ccedf1187cd6dabe86da39ca65495c463625dce7c1435fc9d/fhir-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "77bcfeeea62c92bd8e569cf7624c0bd4", "sha256": "02053927719c783e44886c8f77e996dae3bcdee3bc971f504118e61e95eca71b" }, "downloads": -1, "filename": "fhir-0.0.4.tar.gz", "has_sig": false, "md5_digest": "77bcfeeea62c92bd8e569cf7624c0bd4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18141, "upload_time": "2014-04-17T21:30:25", "url": "https://files.pythonhosted.org/packages/16/3a/f48dfee1c24ccedf1187cd6dabe86da39ca65495c463625dce7c1435fc9d/fhir-0.0.4.tar.gz" } ] }