FHIR schema support code for the Cumulus project
Project description
Cumulus FHIR Support
This library holds FHIR support code for the Cumulus project as a whole.
Installing
pip install cumulus-fhir-support
Examples
pyarrow_schema_from_rows
import cumulus_fhir_support
rows = [
{
"resourceType": "Patient",
"id": "1",
"extension": [{
"url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity",
"extension": [{
"url": "ombCategory",
"valueCoding": {
"code": "2135-2",
"display": "Hispanic or Latino",
"system": "urn:oid:2.16.840.1.113883.6.238",
}
}],
}]
},
]
# The resulting schema will be both wide (every toplevel column)
# and deep enough for every field in `rows`.
# That is, both the non-present toplevel field "telecom" and the deeper
# field "extension.extension.valueCoding.system" will be in the schema.
schema = cumulus_fhir_support.pyarrow_schema_from_rows("Patient", rows)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cumulus_fhir_support-1.2.0.tar.gz
(16.1 kB
view hashes)
Built Distribution
Close
Hashes for cumulus_fhir_support-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | edc14704eaa8642129e784711a689d107771b0a0b0a7c83d216fab1eed29cf55 |
|
MD5 | e7ac11f60c2843125fadbe237c2aff88 |
|
BLAKE2b-256 | 19338e89221d40a4db2abb4673121c1b45f098b95aff274daa614e07ecd6b806 |
Close
Hashes for cumulus_fhir_support-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 694c29c563052c8ba4c02ba61a88be0f9d9d1a30ac799eced2c15cd186031216 |
|
MD5 | b11d67ca2726b2e9855c78233cce5536 |
|
BLAKE2b-256 | 94dd4219ebad13f0f028cf54f0f099639340b01c5e8f9a29790108adcebb691d |