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.0.0.tar.gz
(10.1 kB
view hashes)
Built Distribution
Close
Hashes for cumulus_fhir_support-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4bc4370b857d713726b4dd05218e0761ccffdeb86c54b0717519de332b09ece |
|
MD5 | 2ad87c5d325b1b03a0b9865bcaf0815a |
|
BLAKE2b-256 | 6f7bd65f9937708517c3a4a01145d80ca3d6d77bb0aa174825a2c9ff3925255d |
Close
Hashes for cumulus_fhir_support-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adf92e84ec67901f98e417960b1c408d4f30bc3208e4846cf5775529ed1df291 |
|
MD5 | 6206a7a34be3f32aaf9256760cf159d6 |
|
BLAKE2b-256 | f6dd3932148398b498cd371088c9d8047e1b78e4b75e2fe8d44bc2a447881f43 |