GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hl7ch/cda-fhir-maps: Maps (FHIR Mapping Language) to transform documents from CDA to FHIR and back

BranchesTags
Open more actions menu

Latest commit

 

History

291 Commits
291 Commits

Folders and files

NameName
Last commit message
Last commit date
input
input
 
 
projectathon
projectathon
 
 
www
www
 
 
.gitignore
.gitignore
 
 
.project
.project
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
cda-core-2.0-pr.tgz
cda-core-2.0-pr.tgz
 
 
cdatofhir.http
cdatofhir.http
 
 
cdatofhir_card.http
cdatofhir_card.http
 
 
cdatofhir_dispense.http
cdatofhir_dispense.http
 
 
cdatofhir_list.http
cdatofhir_list.http
 
 
cdatofhir_padv.http
cdatofhir_padv.http
 
 
cdatofhir_prescription.http
cdatofhir_prescription.http
 
 
cdatofhir_treatmentplan.http
cdatofhir_treatmentplan.http
 
 
fhirtocda.http
fhirtocda.http
 
 
fhirtocda_card.http
fhirtocda_card.http
 
 
fhirtocda_dispense.http
fhirtocda_dispense.http
 
 
fhirtocda_padv.http
fhirtocda_padv.http
 
 
fhirtocda_prescription.http
fhirtocda_prescription.http
 
 
fhirtocda_treatmentplan.http
fhirtocda_treatmentplan.http
 
 
ig.ini
ig.ini
 
 
initmatchbox.http
initmatchbox.http
 
 
test.ahdis.ch.http
test.ahdis.ch.http
 
 

Repository files navigation

Implementation Guide CDA FHIR Maps

This Implementation Guide provides maps to transform documents between CDA and FHIR and back. This manual describes for which exchange formats the transformation can be used and how it is executed.

This description focuses on how to execute the transformation in the local development environment. You can also add your own maps in this context.

The transformation as a micro service is described here.

Supported document types

The maps are intended for the transformation of documents, especially eMedication documents, in the context of the Swiss EPR.
Note: The scope is based on the eMedication case study; there is as yet no final mapping of data types, templates and documents.

The following document types are supported and examples of these are shown in these directories:

Document type CDA examples FHIR examples Map CDA to FHIR Map FHIR to CDA
Swiss EPR document input\cda-ch input\ch-core input\maps\CdaChToBundle.map input\maps\BundleToCdaCh.map
Medication Card document input\cda-ch-emed input\ch-emed input\maps\CdaChEmed MedicationCardDocumentToBundle.map input\maps\BundleToCdaChEmed MedicationCardDocument.map
Medication Prescription document input\cda-ch-emed input\ch-emed input\maps\CdaChEmed MedicationPrescriptionDocumentToBundle.map input\maps\BundleToCdaChEmed MedicationPrescriptionDocument.map
Medication Dispense document input\cda-ch-emed input\ch-emed input\maps\CdaChEmed MedicationDispenseDocumentToBundle.map input\maps\BundleToCdaCh EmedMedicationDispenseDocument.map
Medication List document input\cda-ch-emed input\ch-emed input\maps\CdaChEmed MedicationListDocumentToBundle.map -
Pharmaceutical Advice document input\cda-ch-emed input\ch-emed input\maps\CdaChEmed PharmaceuticalAdviceDocumentToBundle.map input\maps\BundleToCdaCh EmedPharmaceuticalAdviceDocument.map
Medication Treatment Plan document input\cda-ch-emed input\ch-emed input\maps\CdaChEmed MedicationTreatmentPlanDocumentToBundle.map input\maps\BundleToCdaCh EmedMedicationTreatmentPlanDocument.map

Table 1: Document types with examples and maps

Specification

The example documents are structured according to the CDA/FHIR specifications for the exchange formats. The specification of the eMedication depends on the specification of the Swiss EPR exchange format.

Documents in the context of the Swiss EPR:

  • Art-Decor CDA-CH

    • EPR Document (CDA)
  • FHIR Implementation Guide CH Core

    • EPR Document (FHIR)

eMedication Documents:

  • Art-Decor CDA-CH-EMED eMedication

    • Medication Card document (CDA)
    • Medication Prescription document (CDA)
    • Medication Dispense document (CDA)
    • Medication Dispense document (CDA)
    • Pharmaceutical Advice document (CDA)
    • Medication Treatment Plan document (CDA)
  • FHIR Implementation Guide CH EMED

    • Medication Card document (FHIR)
    • Medication Prescription document (FHIR)
    • Medication Dispense document (FHIR)
    • Medication List document (FHIR)
    • Pharmaceutical Advice document (FHIR)
    • Medication TreatmentPlan document (FHIR)

Setup

To transform the documents from CDA to FHIR and back and maybe add your own maps, you should prepare the following setup:

Editor

  • Download Visual Studio Code
  • Install a REST Client for Visual Studio Code:
    Open VSC, press Ctrl + Shift + X, search for rest-client, then install it (humao.rest-client)

Docker

  • Download and install Docker
docker run --rm -i -t --name matchbox -p 8080:8080 -v /ABSOLUTEPATH/TO/DIR:/config eu.gcr.io/fhir-ch/matchbox:v220

GitHub Desktop (optional)

  • Download GitHub Desktop

Development

Clone this project https://github.com/hl7ch/cda-fhir-maps

  • Option 1: GitHub Desktop
  • Option 2: VSC Terminal:
    git clone https://github.com/hl7ch/cda-fhir-maps.git

Open it with Visual Studio Code (REST Client extension is needed).

Transform documents between CDA and FHIR and back

  • Open cdatofhir.http or fhirtocda.http from the main directory with Visual Studio Code.
  • Choose @host = http://localhost:8080/r4
  • Add the maps to matchbox (Step 1 to 3).
  • Transform your document (Examples shown in Step 5).

Transform eMedication documents between CDA and FHIR and back

  • Open following files, depending on the requiered exchange format, from the main directory with Visual Studio Code:
    • Medication Card document: cdatofhir_card.http, fhirtocda_card.http
    • Medication Dispense document: cdatofhir_dispense.http, fhirtocda_dispense.http
    • Medication Prescription document: cdatofhir_prescription.http, fhirtocda_prescription.http
    • Medication List document: cdatofhir_list.http, -
    • Pharmaceutical Advice document: cdatofhir_padv.http, fhirtocda_padv.http
    • Medication Treatment Plan document: cdatofhir_treatmentplan.http, fhirtocda_treatmentplan.http
  • Choose @host = http://localhost:8080/r4
  • Transform your document of the choosen exchange format (Examples shown in Step 5).

About

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

Topics

cdafhirfml

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

21 stars

Watchers

5 watching

Forks

9 forks
Report repository

Releases

Packages

Contributors

Languages

Generated from ahdis/ch-ig
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.