Stream: CCDA / FHIR mapping stream
Topic: Sample Mapping Language Files
Jean Duteau (May 03 2018 at 21:11):
Are there some sample mapping language files available somewhere? I have some questions about formatting the files and potentially about how the files will be used to produce target structures. Before asking them, I thought that it would be useful to see some example files first.
Jean Duteau (May 03 2018 at 21:28):
and by examples, i mean more complex than the simple ones you can find in the StructureMap examples.
Grahame Grieve (May 04 2018 at 01:36):
well, there's all the R2/R3 maps. These have some complexity
Grahame Grieve (May 04 2018 at 03:33):
committed updates the initial maps
Grahame Grieve (May 04 2018 at 03:33):
after the parser was done with them
Grahame Grieve (May 04 2018 at 04:05):
committed fixes to the CDA logical model
Grahame Grieve (May 04 2018 at 06:06):
ok. some progress. After build 13731 succeeds, then you can run the transforms:
Grahame Grieve (May 04 2018 at 06:08):
java -jar org.hl7.fhir.validator.jar [cda-file-name] -transform http://hl7.org/fhir/cda/StructureDeMap/ClinicalDocument-Bundle -ig [path-to-CDA-logical-model] -ig [path-to-ccda-maps] -output [dest-name] -defn [local-igpack]
Grahame Grieve (May 04 2018 at 06:08):
where
Grahame Grieve (May 04 2018 at 06:10):
- cda-file-name=the name of my hacked CDA document (tomorrow,I'll fix so you can use the correct CDA document)
- path-to-CDA-logical-model=the structure definitions in the github repository for the cda logical model
- path-to-ccda-maps=the maps in the github ccda-on-fhir IG
- dest-name=where you want the output to go
- local-igpack=your local copy of the file http://build.fhir.org/igpack.zip (makes things faster)
Grahame Grieve (May 04 2018 at 06:11):
that took a lot longer than I expected - will polish it up tomorrow
Grahame Grieve (May 04 2018 at 06:46):
after the next build finishes, you can use a normal CDA document- do not need the hacked one anymore
Jean Duteau (May 04 2018 at 15:02):
if I have my own set of maps, how do I specify that. I tried just replacing [path-to-ccda-maps] with a path to a directory of my maps, but i can't get it to recognize my map files
Jean Duteau (May 04 2018 at 17:18):
nvm, files had to have .map extension. all good now
Last updated: Apr 12 2022 at 19:14 UTC