Skip to content

ahdis/fhir-mapping-tutorial

Repository files navigation

FHIR tutorial mapping example

FHIR has a mapping language to convert between resources and logical models and features a tutorial how use it. This projects tries to build the structure definitions and mappings for it and adds as well additional FHIR mapping language examples.

See the FHIR Mapping Language confluence page for additional information.

To run the transforms directly from the command line you can use the FHIR Java Validator, download here. For more information about the .NET Implementation, see here.

If you want to use it with a public test server, you can use https://test.ahdis.ch/matchbox/fhir/. Install Visual Studio Code with the REST Client extension. in each step there is a test.ahdis.ch.http file which you can upload the StructureDefinition and StructureMap and perform the transformation. E.g. see http file for step1.

The mapping infrastructure runs internally on r5, meaning that you have to specify the version 5.0.0 that the right "StructureMapUtilities" are used. However note, that this will also generate then a R5 StructureMapResource:

run the tutorial

for each step there is a directory below the maptutorial directory

logical: structurdefinitions for tleft, tright

map: Mapping files in FHIR Mapping Language

source: XML files used to transform

output.xml: result of map transform

additional examples

Java Reference Implementation features

Java
Step 1
Step 1b ✓ Note: Map needs to be extended for default mapping see also #20
Step 2
Step 3a
Step 3b ✓ Note: Map needs to eb adapted according FHIR-I 46548, see also 21
Step 3c ✓ Note: Map needs to eb adapted according FHIR-I 46548, see also #21
Step 4a
Step 4b
Step 4b2
Step 4b3
Step 4c
Step 5a
Step 5b
Step 6a
Step 6b
Step 6c
Step 6d
Step 7a
Step 7b
Step 8
Step 9
Step 10
Step 11
Step 12
Step 13 ✓ Note: Uses Basic resource that ptr functions is working, see #31
Step 14
Step 15

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages