Skip to main content

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 details)

Uploaded Source

Built Distribution

cumulus_fhir_support-1.3.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

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

Hashes for cumulus_fhir_support-1.3.0.tar.gz
Algorithm Hash digest
SHA256 feb040f22594b4645176688619d054b22955f06fecec46ea7cf9194136e025b3
MD5 1fe2fc76aa65155490c19c6ab7a3611e
BLAKE2b-256 ee4d784b80630a0150109e4f9ce4c1e1a72dbf85f8f34a1b901c6b13b475402e

See more details on using hashes here.

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

Attestations:

File details

Details for the file cumulus_fhir_support-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cumulus_fhir_support-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f9aa05d04082413ac808fdf83d4dc5b00c1b26bef40538c1b4944f2af8fa997
MD5 4549e0533d619599a697e570a87b7a35
BLAKE2b-256 70331d44496f88f822e680803a3aaea4889039b407b1adbe8579c89622d11765

See more details on using hashes here.

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

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page