Hi
I didn't find a category discussing mapping questions , please point me in the right direction if any .
I need your help please to understand some basic principle .
I’m looking into MessageHeader part of ADT_A01 to Bundle mapping .
http://hl7.org/fhir/uv/v2mappings/2020Sep/ConceptMap-segment-msh-to-messageheader.html
There are many places where the target field is reference . For instance , from MSH-4 to [MessageHeader.sender]. If I’m not mistaken that means that value from MSH-4 is copied to entry/resource/MessageHeader/sender/reference/@value. But how come HL7 Sending Facility value can serve as a reference from one FHIR resource to another ?
Thanks a lot @Peter Lifshits
actually that's the approach ( using identifier ) I started to use , and I agree it's less problematic. However I'm not sure how to deal with pure Organization's elements that are not present in identifier , like address country, see MSH.17 in http://hl7.org/fhir/uv/v2mappings/2020Sep/ConceptMap-segment-msh-to-messageheader.html
Would it be acceptable to add dedicated extension for address country ?
Hi,
You're correct, you can't just have the value of MSH4 as the reference. As it looks to me, there are several options. If you look at the mapping samples here (warning - not an official source of truth in any way), you will see that some mappers (Philips) just use the fields source/name and source/endpoint for MSH3 and MSH4 (instead of sender), and some (Google) actually add a new Organization resource to the message bundle and then directly reference it in the header. The last one seems problematic to me, since it will add more and more Organization resources with each message, unless some conditional trickery is applied. However, there is another way. The Reference type can have an 'identifier' filed instead of a 'reference' field in cases there is no way to directly reference an existing resource (look here). In this case, you just set the value of MSH4 to the sender/identifier/@value and your custom codesystem to sender/identifier/@system, and adhere to the guidelines. It doesn't have to be a reference to an actual existing resource in the FHIR server, but it will be conveniently reachable and searchable.