Skip to content

FHIR Conversions

Boban edited this page Jan 17, 2023 · 1 revision

FHIR

Using ReportStream CLI to verify FHIR bundles

ReportStream has a CLI that can be used to convert between different types such as FHIR, CSV, and HL7.

To run the CLI, you will need to build ReportStream locally and have a local database running. Their documentation how to get started is robust and easy to follow.

Once the project is set up, in order to convert from FHIR to HL7 ./gradlew primeCLI --args='fhirdata --input-file "YourFhirBundle.json" --schema "metadata/hl7_mapping/ORU_R01/ORU_R01-base.yml" --output-format "HL7"'

CSV to HL7 - ./prime data --input-schema primedatainput/pdi-covid-19 --input ./ReportStream.csv --output-schema hl7/test-covid-19 --output-format HL7

HL7 to FHIR - ./gradlew primeCLI --args='fhirdata --input-file "ReportStream.hl7" --output-format FHIR --output-file "ReportStream.fhir"'

If you want to save the output into a file, then add --output-dir ./ --output ./OutputFileName.HL7

Helpful Tools

Local development

Setup

How to

Development process and standards

Oncall

Technical resources

How-to guides

Environments/Azure

Misc

?

Clone this wiki locally