FHIR Chat · Concept Map Translate operation to fetch display · mapping-framework

Stream: mapping-framework

Topic: Concept Map Translate operation to fetch display


view this post on Zulip ravi.kuchi (Jun 19 2021 at 14:41):

Hi, I am exploring the fhir mapping language which uses concept map to translate codes from one system to another, the $translate operation seems to work fine for code but it does not pull the display which limits the translation I guess. Is it intentional or is there a work around for this?

My Fhir mapping snippet:
group ProcessVacCC(source src, target tgt) {
src.coding as sc -> tgt.coding = translate(sc, 'http://hl7.org/fhir/ConceptMap/CmapTest');
}

My ConceptMap
"group": [
{
"source": "http://fkcfhir.org/fhir/cs/IntCode",
"target": "http://hl7.org/fhir/sid/cvx",
"element": [
{
"code": "IMed_Moderna1",
"display": "COVID-19 Vaccine-Moderna (Dose 1 of 2)",
"target": [
{
"code": "207",
"display": "COVID-19, mRNA, LNP-S, PF, 100, mcg/0.5 mL dose",
"equivalence": "equivalent"
}
]
}
]

Expected Output:
<vaccineCode>
<coding>
<system value="http://hl7.org/fhir/sid/cvx"/>
<code value="207"/>
<display value="COVID-19, mRNA, LNP-S, PF, 100, mcg/0.5 mL dose"/>
</coding>
</vaccineCode>

But only getting (no display being returned by $translate)
<vaccineCode>
<coding>
<system value="http://hl7.org/fhir/sid/cvx"/>
<code value="207"/>
</coding>
</vaccineCode>

My expectation was that since the concept map captures source and target code & display the translate should return display (when provided) that would help in transformations to be complete.

view this post on Zulip Lloyd McKenzie (Jun 24 2021 at 01:31):

@Grahame Grieve

view this post on Zulip Grahame Grieve (Jun 24 2021 at 05:31):

don't know. what context is this?

view this post on Zulip ravi.kuchi (Jun 24 2021 at 15:49):

Hi @Grahame Grieve , my use case is that I am transforming an internal code to a standard code while sending the info to an external organization. I am using FML to do the transformation, so my need here is invoke translate operation supported in FML to convert internal code and display to external code and display. The translate works fine for the code but it does not pick the display so looking if that is a miss or am I using the translate in FML properly
src.coding as sc -> tgt.coding = translate(sc, 'http://hl7.org/fhir/ConceptMap/CmapTest'); // only code gets translated but display is not

view this post on Zulip Grahame Grieve (Jun 24 2021 at 16:31):

what code are you using?

view this post on Zulip ravi.kuchi (Jul 02 2021 at 14:31):

Hi @Grahame Grieve I am using the ahdis project (@Oliver Egger ) at https://github.com/ahdis/matchbox/


Last updated: Apr 12 2022 at 19:14 UTC