Stream: mapping-framework
Topic: Added namespace in language and code elements
Alexander Dimitrov (Apr 19 2021 at 13:37):
Hi everybody, after having run my transformation from multiple CDA documents to a FHIR Bundle Document (IPS), I noticed that for 2 elements a 'v3:' namespace has been added.
The first occurrence is in the generated Composition resource under language.code:
<Composition>
<language v3:code="de-AT"/>
<status value="preliminary"/>
---
</Composition>
The second occurrence is in the generated Patient resource under communication.language.coding.code:
<Patient>
...
<communication>
<language>
<coding>
<system value="urn:ietf:bcp:47"/>
<code v3:code="de"/>
</coding>
</language>
<preferred value="true"/>
</communication>
</Patient>
How can I deal with the v3 namespace and remove it from the generated resources? Thanks in advance!
Lloyd McKenzie (Apr 19 2021 at 14:13):
@Rick Geimer
Oliver Egger (Apr 19 2021 at 14:36):
@Alexander Dimitrov it looks like you have an issue with the mapping script, the output should be language value="de-AT" and coding value="de", maybe you copy from the source directly the cda element? this could be the reason with the v3:namespace appearing
Alexander Dimitrov (Apr 19 2021 at 16:46):
Yes, the output should be language value="de-AT" for the Composition and code value="de" for the communication element in the Patient. Seems that indeed the mapping script just didn't handle the case well (code instead of value) and this is why the namespace was appearing. Thanks @Oliver Egger !
Last updated: Apr 12 2022 at 19:14 UTC