Skip to main content

FHIR schemas tools for bioinformatics.

Project description

iceberg-schema-tools

Create and maintain central iceberg schema. Render and validate FHIR data.

Overview

image

Code that generates the base schema from FHIR goes here. Additional tools are provided to lints, validates and visualize the schema.

Note: The actual schemas are stored in iceberg

Setup

pip install iceberg-tools

Use

$ iceberg schema
Usage: iceberg schema [OPTIONS] COMMAND [ARGS]...

  Manage bmeg or gen3 schemas from FHIR resources.

Options:
  --help  Show this message and exit.

Commands:
  generate  Generate from FHIR resources.
  compile   Create aggregated json file from individual yaml schemas

$ iceberg data

Usage: iceberg data [OPTIONS] COMMAND [ARGS]...

  Project data (ResearchStudy, ResearchSubjects, Patient, etc.).

Options:
  --help  Show this message and exit.

Commands:
  simplify             Renders PFB friendly flattened records.
  validate             Check FHIR data for validity and conventions.
  validate-simplified  Check simplified data for validity and conventions.
  pfb                  Write simplified FHIR files to a PFB.
  migrate              Migrate from FHIR R4B to R5.0.
  report               Aggregate avro pfb files into a cytoscape tsv.

Note: pfb_fhir and iceberg are synonymous in this context.

Examples

The commands:

pfb_fhir schema generate simplified
pfb_fhir data simplify --schema_path  iceberg/schemas/simplified/simplified-fhir.json tests/fixtures/simplify/study/ tmp/simplified
pfb_fhir data pfb tmp/simplified/ tmp/study.pfb
tree tmp

Will generate the following output:

INFO:'Records with relationships': 59413
INFO:'Records': 59460
tmp
├── simplified
│   ├── Condition.ndjson
│   ├── DocumentReference.ndjson
│   ├── Encounter.ndjson
│   ├── MedicationAdministration.ndjson
│   ├── Observation.ndjson
│   ├── Patient.ndjson
│   ├── ResearchStudy.ndjson
│   ├── ResearchSubject.ndjson
│   ├── Specimen.ndjson
│   └── Task.ndjson
└── study.pfb

Contributing

See CONTRIBUTING.md for developer notes.

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

iceberg_tools-0.0.5.tar.gz (73.5 kB view details)

Uploaded Source

Built Distribution

iceberg_tools-0.0.5-py3-none-any.whl (115.0 kB view details)

Uploaded Python 3

File details

Details for the file iceberg_tools-0.0.5.tar.gz.

File metadata

  • Download URL: iceberg_tools-0.0.5.tar.gz
  • Upload date:
  • Size: 73.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for iceberg_tools-0.0.5.tar.gz
Algorithm Hash digest
SHA256 ef5530054398d025362e9efc154e3c6df4d4f300ab42d632a055dc9ccdda6b96
MD5 1fc01b8e6fbf4f44d445d41c2f3bd5c9
BLAKE2b-256 b47930c082b59ed59226a96a6404abda352dbf4e82a99e1b2921c08bb06c2afd

See more details on using hashes here.

File details

Details for the file iceberg_tools-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for iceberg_tools-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 eddddeb2c85b866f855458a141fd1db969b3e890ea7bfec38d65ad5eb2a83d22
MD5 345500e1efba80510d6ff3c2a01a1c48
BLAKE2b-256 c1921199599536fceeaefe6971a4c2bb5753b53379e9966f891178fc89857971

See more details on using hashes here.

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