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
Built Distribution
File details
Details for the file cumulus_fhir_support-1.3.0.tar.gz
.
File metadata
- Download URL: cumulus_fhir_support-1.3.0.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | feb040f22594b4645176688619d054b22955f06fecec46ea7cf9194136e025b3 |
|
MD5 | 1fe2fc76aa65155490c19c6ab7a3611e |
|
BLAKE2b-256 | ee4d784b80630a0150109e4f9ce4c1e1a72dbf85f8f34a1b901c6b13b475402e |
Provenance
The following attestation bundles were made for cumulus_fhir_support-1.3.0.tar.gz
:
Publisher:
pypi.yaml
on smart-on-fhir/cumulus-fhir-support
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
cumulus_fhir_support-1.3.0.tar.gz
- Subject digest:
feb040f22594b4645176688619d054b22955f06fecec46ea7cf9194136e025b3
- Sigstore transparency entry: 145944588
- Sigstore integration time:
- Predicate type:
File details
Details for the file cumulus_fhir_support-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: cumulus_fhir_support-1.3.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f9aa05d04082413ac808fdf83d4dc5b00c1b26bef40538c1b4944f2af8fa997 |
|
MD5 | 4549e0533d619599a697e570a87b7a35 |
|
BLAKE2b-256 | 70331d44496f88f822e680803a3aaea4889039b407b1adbe8579c89622d11765 |
Provenance
The following attestation bundles were made for cumulus_fhir_support-1.3.0-py3-none-any.whl
:
Publisher:
pypi.yaml
on smart-on-fhir/cumulus-fhir-support
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
cumulus_fhir_support-1.3.0-py3-none-any.whl
- Subject digest:
3f9aa05d04082413ac808fdf83d4dc5b00c1b26bef40538c1b4944f2af8fa997
- Sigstore transparency entry: 145944589
- Sigstore integration time:
- Predicate type: