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.0.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cumulus_fhir_support-1.0.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file cumulus_fhir_support-1.0.0.tar.gz.

File metadata

  • Download URL: cumulus_fhir_support-1.0.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for cumulus_fhir_support-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d4bc4370b857d713726b4dd05218e0761ccffdeb86c54b0717519de332b09ece
MD5 2ad87c5d325b1b03a0b9865bcaf0815a
BLAKE2b-256 6f7bd65f9937708517c3a4a01145d80ca3d6d77bb0aa174825a2c9ff3925255d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cumulus_fhir_support-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 adf92e84ec67901f98e417960b1c408d4f30bc3208e4846cf5775529ed1df291
MD5 6206a7a34be3f32aaf9256760cf159d6
BLAKE2b-256 f6dd3932148398b498cd371088c9d8047e1b78e4b75e2fe8d44bc2a447881f43

See more details on using hashes here.

Supported by

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