Stream: implementers
Topic: Mapping Language for us_core_race
amit bodhwani (May 26 2021 at 10:44):
Hello,
Can I get some Mapping Language example in text format for us-core-race.
image.png
Lloyd McKenzie (May 26 2021 at 13:14):
An example of mapping from what or to what?
amit bodhwani (May 26 2021 at 15:25):
Lloyd McKenzie said:
An example of mapping from what or to what?
Hello @Lloyd McKenzie I am trying to write mapping language with some dummy hardcoded value .
i have written mapping language as below
src ->tgt.extension as w then {
src -> w.extension as test then {
src -> test.url = 'ombCategory' "URL";
} "dddd";
} "extension_URL";
after which i am getting
image.png
i want to continue in this mapping language to create valueCoding object inside extension like
image.png
Lloyd McKenzie (May 26 2021 at 15:38):
Ok, but what are you struggling with? It seems like you understand the basics of the mapping language. If you've got a particular source and target structure and have written a map but it's not working, then post source structure, target structure, current map and issues as a question in #mapping-framework
amit bodhwani (May 26 2021 at 16:04):
Lloyd McKenzie said:
Ok, but what are you struggling with? It seems like you understand the basics of the mapping language. If you've got a particular source and target structure and have written a map but it's not working, then post source structure, target structure, current map and issues as a question in #mapping-framework
Hello @Lloyd McKenzie , i am new to understand mapping language , i want to write mapping language so that it create valueCoding object. i am struggling to write mapping language to create valueCoding object inside extension.
Lloyd McKenzie (May 26 2021 at 17:06):
I understand. Share what you've done and what problems you're running into on #mapping-framework. No one will write your map for you, but if you've written your own and it's not doing what you want or is creating errors, we can help you understand how to move forward.
Alexander Zautke (May 26 2021 at 17:06):
In order to add elements to the extension element that you just created in a different rule, you need to use the „collate“ target list mode. See https://docs.fire.ly/projects/FHIR-Mapper/featureslist/supportedfeatures.html#target-list-modes for an example.
Alexander Zautke (May 26 2021 at 17:09):
You can use the same structure as you used to create the extension url, append a „collate“ after each element and instead of creating .url, you can create the coding with a „create“ function. The „c“ function to create a coding might not be supported.
Last updated: Apr 12 2022 at 19:14 UTC