Skip to content

HL7Austria/CDA2FHIR

Repository files navigation

CDA2FHIR

Transformation of the ELGA CDA Laboratory Report to FHIR using the FHIR Mapping Language.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

The following software is required to be installed upfront:

Installing

Set up Matchbox locally:

  • git clone https://github.com/ahdis/matchbox
  • Checkout version 2.3.0 as with the current version the mapping fails.
    • git checkout tags/v2.3.0
  • mvn clean install -DskipTests
  • docker build -t matchbox .
  • cd with-postgres
    • in docker-compose.yml change postgres:current to postgres:14.5 (there occurs an error when creating the database with the current version)
  • mkdir data
  • docker-compose up matchbox-db
    • Strg + C as soon as database is set up
  • docker-compose up
  • access Matchbox at http://localhost:8080/matchbox/#/

Transformation

In order to execute a transformation execute the following REST calls from within CdaToBundle.http:

  • 1.a. POST CdaToFhirTypes.map
  • 1.b. POST CdaToBundle.map
  • 2.a. POST Lab_Allgemeiner_Laborbefund.xml (CdaToBundle)

FHIR Structure

Validation of resources

https://validator.fhir.org/

java -jar validator_cli.jar hl7at/hl7at_CDA2FHIR/output/hl7eu_patient.json -version 4.0 -ig hl7eu_laboratory_package.tgz > hl7at/hl7at_CDA2FHIR/output/validation.log

java -jar validator_cli.jar hl7at/hl7at_CDA2FHIR/output/hl7eu_bundle.json -version 4.0 -ig hl7eu_laboratory_package.tgz -ig hl7at_fhir_core_package.tgz > hl7at/hl7at_CDA2FHIR/output/validation.log

Built With

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See the list of contributors who participated in this project.

Acknowledgments

About

Maps (FHIR Mapping Language) to transform documents from CDA to FHIR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published