gnu_health_fhir
This package aims to provide a functional FHIR interface to GNU Health data models. With the provided classes, one should be able to work to and from the back-end data from GNU Health in a FHIR-compatible way. The module, ultimately, should provide a full interface - CRUD, type conversions, serializers, and so on.
Design
The ultimate goal is that for every appropriate FHIR Resource there will be an adapter which interfaces with the backend data models.
There are plans to extend some of the resources to better approximate the GNU Health data schemes. The FHIR specification and GNU Health storage format rarely overlap, many times requiring significant data contortions. This is an ongoing process and there is a decided lack of motivation to do too much heavy-lifting, consequently these 'hacks' should be kept to a minimum.
Resources
Currently, the package at least partially supports reads of these FHIR resources:
- Patient
- Practitioner
- Immunization
- Condition
- Observation
- DiagnosticReport
- MedicationStatement
- FamilyMemberHistory
- Procedure
- Encounter
- ClinicalImpression
- Coverage
Not every resource's element is currently supported. Some of the elements have no equivalent in GNU Health, do not apply, have not reached maturity, or are undesirable in other ways. The FHIR resources are still under active development which makes them a moving target. The goal is to support all the reasonable, appropriate elements.
Usage
The easiest example is to use Proteus with this package:
from proteus import config, Model
from gnu_health_fhir import Patient
#Connect to the GNU Health demo server
config = config.set_xmlrpc('http://admin:gnusolidario@health.gnusolidario.org:8000/health36/')
#Get the patient model
model = Model.get('gnuhealth.patient')
#Find the first patient
first_patient = model.find()[0]
#Convert to a fhir data object
patient = Patient.to_fhir_object(first_patient)
#Now you can use the data just like in fhirclient
print(patient.as_json())
Libraries used
- fhirclient (core FHIR data models)
- pendulum (sane datetimes)
Metadata
Release files for gnu-health-fhir 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gnu_health_fhir-2.0.0.tar.gz | 15.3 kB | Without provenance | Details for gnu_health_fhir-2.0.0.tar.gz |
Release files / gnu_health_fhir-2.0.0.tar.gz
| Download URL | gnu_health_fhir-2.0.0.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
956f46a40ad6c757558a9a51123da22cf39ed3ac992b1a3d65dabbcbd22be472
|
|
BLAKE2b-256 checksum How to use checksums |
e966663d4444d13314831fef8e934d090e0e9a11bd3d889bb2c4d75a08036c76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1
|
Security for gnu-health-fhir 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.