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.
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.
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
Java | .NET | |
---|---|---|
Step 1 | ✓ | ✓ |
Step 1b | ✗ | ✓ |
Step 2 | ✓ | ✓ |
Step 3a | ✓ | ✓ |
Step 3b | ✗ | ✓ |
Step 3c | ✗ | ✓ |
Step 4a | x | ✓ |
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 | ✓ | ✓ (Not using embedded ConceptMaps) |
Step 9 | ✓ | ✓ |
Step 10 | ✓ | ✗ |
Step 11 | ||
Step 12 | ||
Step 13 | ||
Step 14 | ||
Step 15 |