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.1.tar.gz
(16.3 kB
view hashes)
Built Distribution
Close
Hashes for cumulus_fhir_support-1.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0515074a4ac092557c331b292c6d4319b2bef1de0f171c661be7237e88e433e7 |
|
MD5 | a3e7d103edac963187fc57ab830c49b0 |
|
BLAKE2b-256 | b2bc850892209377d6dab90ae1d56bc4763a7846ec6831e42a38792a93adb40c |
Close
Hashes for cumulus_fhir_support-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9533010f9002e09c45cde17b18298658840106990328460f01f45a7ef240d482 |
|
MD5 | 56860f30433b201980b65ffc84d1e457 |
|
BLAKE2b-256 | d1be68be4e14c758101b053836a07aec692bee8800557289070a2cc9660cc144 |