{
  "resourceType" : "ConceptMap",
  "id" : "datatype-hd-endpoint-to-messageheader-destination",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: ConceptMap datatype-hd-endpoint-to-messageheader-destination</b></p><a name=\"datatype-hd-endpoint-to-messageheader-destination\"> </a><a name=\"hcdatatype-hd-endpoint-to-messageheader-destination\"> </a><p>Mapping from (not specified) to (not specified)</p><br/><p><b>Group 1 </b>Mapping from <code>unspecified code system</code> to <code>unspecified code system</code></p><table class=\"grid\"><tr><td colspan=\"3\"><b>Source Concept Details</b></td><td><b>Relationship</b></td><td colspan=\"2\"><b>Target Concept Details</b></td><td><b>Comment</b></td></tr><tr><td colspan=\"2\"><b>Codes</b> from </td><td><b>ComputableANTLR</b></td><td/><td colspan=\"2\"><b>Codes</b> from </td><td/></tr><tr><td style=\"border-right-width: 0px\">HD.1</td><td style=\"border-left-width: 0px\">Namespace ID</td><td/><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">name</td><td style=\"border-left-width: 0px\">name</td><td>Not sure whether used, and if used, what a reasonable extension name would be.  We believe that source.endpoint should be Universal ID when both Namespace ID and Universal ID are valued.</td></tr><tr><td style=\"border-right-width: 0px\">HD.2</td><td style=\"border-left-width: 0px\">Universal ID</td><td>IF HD-3 = &quot;ISO&quot;</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">endpoint</td><td style=\"border-left-width: 0px\">endpoint</td><td/></tr><tr><td style=\"border-right-width: 0px\">HD.2</td><td style=\"border-left-width: 0px\">Universal ID</td><td>IF HD-3 = &quot;UUID&quot;</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">endpoint</td><td style=\"border-left-width: 0px\">endpoint</td><td/></tr><tr><td style=\"border-right-width: 0px\">HD.2</td><td style=\"border-left-width: 0px\">Universal ID</td><td>IF HD-3 NOT IN (&quot;ISO&quot;, &quot;UUID&quot;)</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">endpoint</td><td style=\"border-left-width: 0px\">endpoint</td><td/></tr><tr><td style=\"border-right-width: 0px\">HD.3</td><td style=\"border-left-width: 0px\">Univeral ID Type</td><td>IF NOT VALUED</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">endpoint.extension.url</td><td style=\"border-left-width: 0px\">endpoint.extension.url</td><td/></tr><tr><td style=\"border-right-width: 0px\">HD.3</td><td style=\"border-left-width: 0px\">Univeral ID Type</td><td>IF NOT VALUED</td><td><a href=\"http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">endpoint.extension.valueCode</td><td style=\"border-left-width: 0px\">endpoint.extension.valueCode</td><td/></tr></table></div>"
  },
  "extension" : [{
    "extension" : [{
      "url" : "type",
      "valueCode" : "derived-from"
    },
    {
      "url" : "label",
      "valueString" : "Datatype HD[endpoint] to MessageHeader.destination.fsh"
    },
    {
      "url" : "url",
      "valueUri" : "https://docs.google.com/spreadsheets/d/1T99UdnCSjoGpbamAvfVEZMDN5wKRtc0gUlWZ0ufRd6c/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/datatype-hd-endpoint-to-messageheader-destination",
  "version" : "1.0.0",
  "name" : "DatatypeHDEndpointToMessageHeaderDestination",
  "title" : "Datatype HD [endpoint] to MessageHeader.destination Map",
  "status" : "active",
  "experimental" : true,
  "date" : "2025-08-25",
  "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 Datatype HD to the FHIR MessageHeader.destination Data Type.",
  "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" : "IS"
        },
        {
          "url" : "cardinalityMin",
          "valueInteger" : 0
        },
        {
          "url" : "cardinalityMax",
          "valueInteger" : 1
        }],
        "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
      }],
      "code" : "HD.1",
      "display" : "Namespace ID",
      "target" : [{
        "extension" : [{
          "extension" : [{
            "url" : "type",
            "valueCode" : "string"
          }],
          "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
        }],
        "code" : "name",
        "display" : "name",
        "equivalence" : "equivalent",
        "comment" : "Not sure whether used, and if used, what a reasonable extension name would be.  We believe that source.endpoint should be Universal ID when both Namespace ID and Universal ID are valued."
      }]
    },
    {
      "extension" : [{
        "extension" : [{
          "url" : "type",
          "valueCode" : "ST"
        },
        {
          "url" : "cardinalityMin",
          "valueInteger" : 0
        },
        {
          "url" : "cardinalityMax",
          "valueInteger" : 1
        }],
        "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
      }],
      "code" : "HD.2",
      "display" : "Universal ID",
      "target" : [{
        "extension" : [{
          "extension" : [{
            "url" : "type",
            "valueCode" : "uri"
          },
          {
            "url" : "cardinalityMin",
            "valueInteger" : 1
          },
          {
            "url" : "cardinalityMax",
            "valueInteger" : 1
          },
          {
            "url" : "assignment",
            "valueString" : "\"urn:oid:\"+HD.2"
          }],
          "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
        }],
        "code" : "endpoint",
        "display" : "endpoint",
        "equivalence" : "equivalent",
        "dependsOn" : [{
          "property" : "Computable-ANTLR",
          "value" : "IF HD-3 = \"ISO\""
        }]
      }]
    },
    {
      "extension" : [{
        "extension" : [{
          "url" : "type",
          "valueCode" : "ST"
        },
        {
          "url" : "cardinalityMin",
          "valueInteger" : 0
        },
        {
          "url" : "cardinalityMax",
          "valueInteger" : 1
        }],
        "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
      }],
      "code" : "HD.2",
      "display" : "Universal ID",
      "target" : [{
        "extension" : [{
          "extension" : [{
            "url" : "type",
            "valueCode" : "uri"
          },
          {
            "url" : "cardinalityMin",
            "valueInteger" : 1
          },
          {
            "url" : "cardinalityMax",
            "valueInteger" : 1
          },
          {
            "url" : "assignment",
            "valueString" : "\"urn:uuid:\"+HD.2"
          }],
          "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
        }],
        "code" : "endpoint",
        "display" : "endpoint",
        "equivalence" : "equivalent",
        "dependsOn" : [{
          "property" : "Computable-ANTLR",
          "value" : "IF HD-3 = \"UUID\""
        }]
      }]
    },
    {
      "extension" : [{
        "extension" : [{
          "url" : "type",
          "valueCode" : "ST"
        },
        {
          "url" : "cardinalityMin",
          "valueInteger" : 0
        },
        {
          "url" : "cardinalityMax",
          "valueInteger" : 1
        }],
        "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
      }],
      "code" : "HD.2",
      "display" : "Universal ID",
      "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" : "endpoint",
        "display" : "endpoint",
        "equivalence" : "equivalent",
        "dependsOn" : [{
          "property" : "Computable-ANTLR",
          "value" : "IF HD-3 NOT IN (\"ISO\", \"UUID\")"
        }]
      }]
    },
    {
      "extension" : [{
        "extension" : [{
          "url" : "type",
          "valueCode" : "ST"
        },
        {
          "url" : "cardinalityMin",
          "valueInteger" : 0
        },
        {
          "url" : "cardinalityMax",
          "valueInteger" : 1
        }],
        "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
      }],
      "code" : "HD.3",
      "display" : "Univeral ID Type",
      "target" : [{
        "extension" : [{
          "extension" : [{
            "url" : "type",
            "valueCode" : "uri"
          },
          {
            "url" : "assignment",
            "valueString" : "\"http://hl7.org/fhir/StructureDefinition/data-absent-reason\""
          }],
          "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
        }],
        "code" : "endpoint.extension.url",
        "display" : "endpoint.extension.url",
        "equivalence" : "equivalent",
        "dependsOn" : [{
          "property" : "Computable-ANTLR",
          "value" : "IF NOT VALUED"
        }]
      }]
    },
    {
      "extension" : [{
        "extension" : [{
          "url" : "type",
          "valueCode" : "ST"
        },
        {
          "url" : "cardinalityMin",
          "valueInteger" : 0
        },
        {
          "url" : "cardinalityMax",
          "valueInteger" : 1
        }],
        "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
      }],
      "code" : "HD.3",
      "display" : "Univeral ID Type",
      "target" : [{
        "extension" : [{
          "extension" : [{
            "url" : "type",
            "valueCode" : "code"
          },
          {
            "url" : "assignment",
            "valueString" : "\"unknown\""
          }],
          "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
        }],
        "code" : "endpoint.extension.valueCode",
        "display" : "endpoint.extension.valueCode",
        "equivalence" : "equivalent",
        "dependsOn" : [{
          "property" : "Computable-ANTLR",
          "value" : "IF NOT VALUED"
        }]
      }]
    }]
  }]
}