FHIR schemas tools for bioinformatics.
Project description
iceberg-schema-tools
Create and maintain central iceberg schema. Render and validate FHIR data.
Overview
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
publish Copy dictionary to s3 (note:aws cli dependency)
$ iceberg data
Usage: iceberg data [OPTIONS] COMMAND [ARGS]...
Project data (ResearchStudy, ResearchSubjects, Patient, etc.).
Options:
--help Show this message and exit.
Commands:
simplify Renders Gen3 friendly flattened records.
validate Check FHIR data for validity and ACED conventions.
validate-gen3 Check Gen3 data for validity and ACED conventions.
pfb Write simplified FHIR files to a PFB.
migrate Migrate from FHIR R4B to R5.0.
Note:
pfb_fhir
andiceberg
are synonymous in this context.
Examples
The commands:
pfb_fhir data simplify 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
Release history Release notifications | RSS feed
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.2rc2.tar.gz
(55.2 kB
view hashes)
Built Distribution
Close
Hashes for iceberg_tools-0.0.2rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e899422839d831d01871b92d28ab71abfdf6913018daabad92d00274c225affe |
|
MD5 | 65b607c608fe1964ef8f04a2682299f8 |
|
BLAKE2b-256 | 6231a1747bad1b182a99f49392c50227af35191593b6bf3b5963bc26f05f29f5 |