FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: ConceptMap/segment-msh-to-messageheader

Packagehl7.fhir.uv.v2mappings
Resource TypeConceptMap
Idsegment-msh-to-messageheader
FHIR VersionR4
Sourcehttp://hl7.org/fhir/uv/v2mappings/https://build.fhir.org/ig/HL7/v2-to-fhir/ConceptMap-segment-msh-to-messageheader.html
URLhttp://hl7.org/fhir/uv/v2mappings/ConceptMap/segment-msh-to-messageheader
Version1.0.0
Statusactive
Date2025-07-23
NameSegmentMSHToMessageHeader
TitleSegment MSH to MessageHeader Map
Realmuv
Authorityhl7
DescriptionThis ConceptMap represents a mapping from the HL7 V2 Segment MSH to the FHIR MessageHeader Resource.
CopyrightCopyright (c) 2025, HL7 International, Inc., All Rights Reserved.

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: ConceptMap segment-msh-to-messageheader

Mapping from (not specified) to (not specified)


Group 1 Mapping from unspecified code system to unspecified code system

Source Concept DetailsRelationshipTarget Concept DetailsComment
Codes from ComputableANTLRCodes from
MSH-3Sending Applicationis equivalent tosource[1]source[1]
MSH-3Sending ApplicationIF MSH-24 NOT VALUEDis equivalent tosource[1].endpointsource[1].endpointWe believe that if MSH-24 is vaued, although MSH-24 is rarely valued, it contains better information for the MessageHeader.source.endpoint than MSH-3. However, one may either still want to use MSH-3 in total or a combination of content from MSH-3 and MSH-24. That is a local implementation decision to adjust the mapping accordingly based on clear knowledge of the content. If both MSH-3 and MSH-24 are not valued, which is valid in HL7 v2, then the implementer needs to resolve how to assign MessageHeader.source as it is a required attribute. Note that a data absent reason extension could be used to provide a reason and satisfy the mandatory FHIR attribute rules. But do note that the use of the data-absent-reason extension may result in a FHIR resource that is not usable by the recipient.\
MSH-4Sending Facilityis equivalent tosender(Organization)sender(Organization)
MSH-5Receiving Applicationis equivalent todestination[1].target(Device)destination[1].target(Device)Similar as for MSH-3, MSH-5 is paired with MSH-25 and depending on local use may need to use one, the other, or a combination of both. We believe that MSH-25, when valued, provides the better information given its addition to the standard more recently.
MSH-5Receiving ApplicationIF MSH-25 VALUEDis equivalent todestination[1]destination[1]
MSH-5Receiving ApplicationIF MSH-25 NOT VALUEDis equivalent todestination[1]destination[1]
MSH-6Receiving FacilityIF MSH-23 NOT VALUEDis equivalent todestination[1].receiver(Organization)destination[1].receiver(Organization)
MSH-8Securityis equivalent tometa.securitymeta.security
MSH-9Message Typeis equivalent toeventCodingeventCoding
MSH-11Processing IDis equivalent tometameta
MSH-17Country Codeis equivalent tosender(Organization.address.country)sender(Organization.address.country)
MSH-19Principal Language Of Messageis equivalent tolanguagelanguageThis does only cover the MessageHeader resource. Need to have clarity that if other resources that are part of the message that do not have Resource.meta.language valued, then it is assumed to follow MessageHeader.meta.language?? Doesn't seem RESTful, so what is the default for Resource.meta.language?
MSH-22Sending Responsible Organizationis equivalent toresponsible(Organization)responsible(Organization)
MSH-23Receiving Responsible Organizationis equivalent todestination[1].receiver(Organization)destination[1].receiver(Organization)This is an alternate representation of MSH-6. The local implementation needs to determine whech components of HD vs. XON to be used and whether it may even yield a separate Organization reference.
MSH-24Sending Network Addressis equivalent tosourcesourceWe believe that if MSH-24 is vaued, although it is rarely valued, it contains better information for the MessageHeader.source.endpoint. However, one may either still want to use MSH-3 in total or a combination of content from MSH-3 and MSH-24. That is a local implementation decision to adjust the mapping accordingly.
MSH-24Sending Network AddressIF MSH-24 NOT VALUED AND MSH-3 NOT VALUEDis equivalent tosource.endpoint.extension.urlsource.endpoint.extension.url
MSH-24Sending Network AddressIF MSH-24 NOT VALUED AND MSH-3 NOT VALUEDis equivalent tosource.endpoint.extension.valueCodesource.endpoint.extension.valueCodeIf both MSH-3 and MSH-24 are not valued, which is valid, then the implementer needs to resolve whether to assign this a known value since they know the context, or add the data absent reason extension to provide a reason and satisfies the mandatory FHIR attribute rules. Note that the use of the data-absent-reason extension may result in a FHIR resource that is not usable by the recipient.
MSH-25Receiving Network Addressis equivalent todestination[1]destination[1]We believe that if MSH-25 is vaued, although it is rarely valued, it contains better information for the MessageHeader.source.endpoint. However, one may either still want to use MSH-5 in total or a combination of content from MSH-5 and MSH-25. That is a local implementation decision to adjust the mapping accordingly.
MSH-25Receiving Network AddressIF MSH-25 NOT VALUED AND MSH-5 NOT VALUEDis equivalent todestination[1].endpoint.extension.urldestination[1].endpoint.extension.url
MSH-25Receiving Network AddressIF MSH-25 NOT VALUED AND MSH-5 NOT VALUEDis equivalent todestination[1].endpoint.extension.valueCodedestination[1].endpoint.extension.valueCode
MSH-26Security Classification Tagis equivalent tometa.security[2]meta.security[2]
MSH-27Security Handling Instructionsis equivalent tometa.security[2]meta.security[2]

Source

{
  "resourceType": "ConceptMap",
  "id": "segment-msh-to-messageheader",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "extension": [
        {
          "url": "type",
          "valueCode": "derived-from"
        },
        {
          "url": "label",
          "valueString": "Segment MSH to MessageHeader.fsh"
        },
        {
          "url": "url",
          "valueUri": "https://docs.google.com/spreadsheets/d/13pgda5xl-PwCgB9j0axyymwwv7RJVcrIzY8Ah1y1Y1M/edit#gid=0"
        }
      ],
      "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/RelatedArtifact"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "oo"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "informative",
      "_valueCode": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://hl7.org/fhir/uv/v2mappings/ImplementationGuide/hl7.fhir.uv.v2mappings"
          }
        ]
      }
    }
  ],
  "url": "http://hl7.org/fhir/uv/v2mappings/ConceptMap/segment-msh-to-messageheader",
  "version": "1.0.0",
  "name": "SegmentMSHToMessageHeader",
  "title": "Segment MSH to MessageHeader Map",
  "status": "active",
  "experimental": true,
  "date": "2025-07-23",
  "publisher": "HL7 International / Orders and Observations",
  "contact": [
    {
      "name": "HL7 Orders and Observations Workgroup",
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/orders"
        }
      ]
    }
  ],
  "description": "This ConceptMap represents a mapping from the HL7 V2 Segment MSH to the FHIR MessageHeader Resource.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001"
        }
      ]
    }
  ],
  "copyright": "Copyright (c) 2025, HL7 International, Inc., All Rights Reserved.",
  "group": [
    {
      "element": [
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "HD"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-3",
          "display": "Sending Application",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 1
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": 1
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "source[1]",
              "display": "source[1]",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "HD"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-3",
          "display": "Sending Application",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "uri"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 1
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": 1
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "source[1].endpoint",
              "display": "source[1].endpoint",
              "equivalence": "equivalent",
              "comment": "We believe that if MSH-24 is vaued, although MSH-24 is rarely valued, it contains better information for the  MessageHeader.source.endpoint than MSH-3.  However, one may either still want to use MSH-3 in total or a combination of content from MSH-3 and MSH-24.  That is a local implementation decision to adjust the mapping accordingly based on clear knowledge of the content.\n\nIf both MSH-3 and MSH-24 are not valued, which is valid in HL7 v2, then the implementer needs to resolve how to assign MessageHeader.source as it is a required attribute.  Note that a data absent reason extension could be used to provide a reason and satisfy the mandatory FHIR attribute rules.  But do note that the use of the data-absent-reason extension may result  in a FHIR resource that is not usable by the recipient.\\",
              "dependsOn": [
                {
                  "property": "Computable-ANTLR",
                  "value": "IF MSH-24 NOT VALUED"
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "HD"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-4",
          "display": "Sending Facility",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "Reference(Organization)"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": 1
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "sender(Organization)",
              "display": "sender(Organization)",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "HD"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-5",
          "display": "Receiving Application",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "Reference(Device)"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": 1
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "destination[1].target(Device)",
              "display": "destination[1].target(Device)",
              "equivalence": "equivalent",
              "comment": "Similar as for MSH-3, MSH-5 is paired with MSH-25 and depending on local use may need to use one, the other, or a combination of both.  We believe that MSH-25, when valued, provides the better information given its addition to the standard more recently."
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "HD"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-5",
          "display": "Receiving Application",
          "target": [
            {
              "code": "destination[1]",
              "display": "destination[1]",
              "equivalence": "equivalent",
              "dependsOn": [
                {
                  "property": "Computable-ANTLR",
                  "value": "IF MSH-25 VALUED"
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "HD"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-5",
          "display": "Receiving Application",
          "target": [
            {
              "code": "destination[1]",
              "display": "destination[1]",
              "equivalence": "equivalent",
              "dependsOn": [
                {
                  "property": "Computable-ANTLR",
                  "value": "IF MSH-25 NOT VALUED"
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "HD"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": -1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": -1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-6",
          "display": "Receiving Facility",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "Reference(Organization)"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": 1
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "destination[1].receiver(Organization)",
              "display": "destination[1].receiver(Organization)",
              "equivalence": "equivalent",
              "dependsOn": [
                {
                  "property": "Computable-ANTLR",
                  "value": "IF MSH-23 NOT VALUED"
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "ST"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-8",
          "display": "Security",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "string"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": -1
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "meta.security",
              "display": "meta.security",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "MSG"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-9",
          "display": "Message Type",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "Coding"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": 1
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "eventCoding",
              "display": "eventCoding",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "PT"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-11",
          "display": "Processing ID",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "meta"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": -1
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "meta",
              "display": "meta",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "ID"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-17",
          "display": "Country Code",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "string"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": 1
                    },
                    {
                      "url": "mappedVia",
                      "valueUrl": "ConceptMap/table-hl70399-to-iso-3166-1"
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "sender(Organization.address.country)",
              "display": "sender(Organization.address.country)",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "CWE"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-19",
          "display": "Principal Language Of Message",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "code"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": 1
                    },
                    {
                      "url": "mappedVia",
                      "valueUrl": "unspecified_mapping"
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "language",
              "display": "language",
              "equivalence": "equivalent",
              "comment": "This does only cover the MessageHeader resource. Need to have clarity that if other resources that are part of the message that do not have Resource.meta.language valued, then it is assumed to follow MessageHeader.meta.language?? Doesn't seem RESTful, so what is the default for Resource.meta.language?"
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "XON"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-22",
          "display": "Sending Responsible Organization",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "Reference(Organization)"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": 1
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "responsible(Organization)",
              "display": "responsible(Organization)",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "XON"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-23",
          "display": "Receiving Responsible Organization",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "Reference(Organization)"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": -1
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "destination[1].receiver(Organization)",
              "display": "destination[1].receiver(Organization)",
              "equivalence": "equivalent",
              "comment": "This is an alternate representation of MSH-6.  The local implementation needs to determine whech components of HD vs. XON to be used and whether it may even yield a separate Organization reference."
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "HD"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-24",
          "display": "Sending Network Address",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "string"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": 1
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "source",
              "display": "source",
              "equivalence": "equivalent",
              "comment": "We believe that if MSH-24 is vaued, although it is rarely valued, it contains better information for the MessageHeader.source.endpoint.  However, one may either still want to use MSH-3 in total or a combination of content from MSH-3 and MSH-24.  That is a local implementation decision to adjust the mapping accordingly."
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "HD"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-24",
          "display": "Sending Network Address",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "uri"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": 1
                    },
                    {
                      "url": "assignment",
                      "valueString": "\"http://hl7.org/fhir/R4/extension-data-absent-reason.html\""
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "source.endpoint.extension.url",
              "display": "source.endpoint.extension.url",
              "equivalence": "equivalent",
              "dependsOn": [
                {
                  "property": "Computable-ANTLR",
                  "value": "IF MSH-24 NOT VALUED AND MSH-3 NOT VALUED"
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "HD"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-24",
          "display": "Sending Network Address",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "code"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": 1
                    },
                    {
                      "url": "assignment",
                      "valueString": "\"unknown\""
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "source.endpoint.extension.valueCode",
              "display": "source.endpoint.extension.valueCode",
              "equivalence": "equivalent",
              "comment": "If both MSH-3 and MSH-24 are not valued, which is valid, then the implementer needs to resolve whether to assign this a known value since they know the context, or add the data absent reason extension to provide a reason and satisfies the mandatory FHIR attribute rules.  Note that the use of the data-absent-reason extension may result  in a FHIR resource that is not usable by the recipient.",
              "dependsOn": [
                {
                  "property": "Computable-ANTLR",
                  "value": "IF MSH-24 NOT VALUED AND MSH-3 NOT VALUED"
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "HD"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-25",
          "display": "Receiving Network Address",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "uri"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": -1
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "destination[1]",
              "display": "destination[1]",
              "equivalence": "equivalent",
              "comment": "We believe that if MSH-25 is vaued, although it is rarely valued, it contains better information for the MessageHeader.source.endpoint.  However, one may either still want to use MSH-5 in total or a combination of content from MSH-5 and MSH-25.  That is a local implementation decision to adjust the mapping accordingly."
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "HD"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-25",
          "display": "Receiving Network Address",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "uri"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": -1
                    },
                    {
                      "url": "assignment",
                      "valueString": "\"http://hl7.org/fhir/R4/extension-data-absent-reason.html\""
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "destination[1].endpoint.extension.url",
              "display": "destination[1].endpoint.extension.url",
              "equivalence": "equivalent",
              "dependsOn": [
                {
                  "property": "Computable-ANTLR",
                  "value": "IF MSH-25 NOT VALUED AND MSH-5 NOT VALUED"
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "HD"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-25",
          "display": "Receiving Network Address",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "code"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": -1
                    },
                    {
                      "url": "assignment",
                      "valueString": "\"unknown\""
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "destination[1].endpoint.extension.valueCode",
              "display": "destination[1].endpoint.extension.valueCode",
              "equivalence": "equivalent",
              "dependsOn": [
                {
                  "property": "Computable-ANTLR",
                  "value": "IF MSH-25 NOT VALUED AND MSH-5 NOT VALUED"
                }
              ]
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "CWE"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": 1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": 1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-26",
          "display": "Security Classification Tag",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "Coding"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": -1
                    },
                    {
                      "url": "mappedVia",
                      "valueUrl": "unspecified_mapping"
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "meta.security[2]",
              "display": "meta.security[2]",
              "equivalence": "equivalent"
            }
          ]
        },
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "type",
                  "valueCode": "CWE"
                },
                {
                  "url": "cardinalityMin",
                  "valueInteger": -1
                },
                {
                  "url": "cardinalityMax",
                  "valueInteger": -1
                }
              ],
              "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code": "MSH-27",
          "display": "Security Handling Instructions",
          "target": [
            {
              "extension": [
                {
                  "extension": [
                    {
                      "url": "type",
                      "valueCode": "Coding"
                    },
                    {
                      "url": "cardinalityMin",
                      "valueInteger": 0
                    },
                    {
                      "url": "cardinalityMax",
                      "valueInteger": -1
                    },
                    {
                      "url": "mappedVia",
                      "valueUrl": "unspecified_mapping"
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
                }
              ],
              "code": "meta.security[2]",
              "display": "meta.security[2]",
              "equivalence": "equivalent"
            }
          ]
        }
      ]
    }
  ]
}