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-0.0.0.tar.gz
(10.2 kB
view hashes)
Built Distribution
Close
Hashes for cumulus_fhir_support-0.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f5e8a714d74edff29f3e3041caa912564c84570871c38a113788b132bfb8a1c |
|
MD5 | 9c3faa04496e37233996be6a39cd3ecd |
|
BLAKE2b-256 | e3aa00ac0e1f7607c105f40dd2629dcfcc75957da2ec797cf13789b9a1d32be1 |
Close
Hashes for cumulus_fhir_support-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 476a36f6374a55b82d1da30ffa360a40ea302c8889b5746e84970ca767870845 |
|
MD5 | 8adeb2990d04698d1627dd2667cd6c42 |
|
BLAKE2b-256 | 48d07283306337f3b2c7e0dfb6edded94316b5394ab1d51a64764f02ddb84af2 |