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.3.0.tar.gz
(17.1 kB
view hashes)
Built Distribution
Close
Hashes for cumulus_fhir_support-1.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | feb040f22594b4645176688619d054b22955f06fecec46ea7cf9194136e025b3 |
|
MD5 | 1fe2fc76aa65155490c19c6ab7a3611e |
|
BLAKE2b-256 | ee4d784b80630a0150109e4f9ce4c1e1a72dbf85f8f34a1b901c6b13b475402e |
Close
Hashes for cumulus_fhir_support-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f9aa05d04082413ac808fdf83d4dc5b00c1b26bef40538c1b4944f2af8fa997 |
|
MD5 | 4549e0533d619599a697e570a87b7a35 |
|
BLAKE2b-256 | 70331d44496f88f822e680803a3aaea4889039b407b1adbe8579c89622d11765 |