HL7 Version 2 to FHIR
1.0.0-ballot - ballot International flag

This page is part of the HL7 Version 2 to FHIR (v1.0.0-ballot: STU1 Ballot 1) based on FHIR (HL7® FHIR® Standard) R4. . For a full list of available versions, see the Directory of published versions

: Message MDM_T02 to Bundle Map - JSON Representation

Active as of 2023-12-19

Raw json | Download


{
  "resourceType" : "ConceptMap",
  "id" : "message-mdm-t02-to-bundle",
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Mapping from MDM_T02 to <a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a></p><p>ACTIVE (not intended for production usage). Published on 2023-12-19 by HL7 International / Orders and Observations (HL7 Orders and Observations Workgroup: <a href=\"http://www.hl7.org/Special/committees/orders\">http://www.hl7.org/Special/com...</a>, Keith W. Boone: <a href=\"mailto:kboone@ainq.com\">kboone@ainq.com</a>, Rob Hausam: <a href=\"mailto:rrhausam@gmail.com\">rrhausam@gmail.com</a>). Copyright (c) 2020, HL7 International, Inc., All Rights Reserved.</p><div><p>This ConceptMap represents a mapping from the HL7 V2 Message MDM_T02 to the FHIR Message Bundle.</p>\n</div><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=\"4\"><b>Source Concept Details</b></td><td><b>Relationship</b></td><td colspan=\"3\"><b>Target Concept Details</b></td><td><b>Comment</b></td><td colspan=\"3\"><b>Properties</b></td></tr><tr><td colspan=\"2\"><b>Codes</b> from </td><td><b>segmentmap</b></td><td><b>references</b></td><td/><td colspan=\"2\"><b>Codes</b> from </td><td><b>narrative</b></td><td/></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.MSH</td><td style=\"border-left-width: 0px\">Message Header</td><td>MSH[Bundle]</td><td/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">Bundle</td><td style=\"border-left-width: 0px\">Bundle</td><td/><td/></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.MSH</td><td style=\"border-left-width: 0px\">Message Header</td><td>MSH[MessageHeader]</td><td/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">MessageHeader[1]</td><td style=\"border-left-width: 0px\">MessageHeader[1]</td><td/><td>Processing of the MSH segment results in the creation of a new MessageHeader resource</td></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.MSH</td><td style=\"border-left-width: 0px\">Message Header</td><td>MSH[Provenance-Source]</td><td>Provenance[1].target.reference=Bundle.id; Provenance[1].target.reference=MessageHeader[1].id</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">Provenance[1]</td><td style=\"border-left-width: 0px\">Provenance[1]</td><td/><td>If the FHIR transformation does not yield a FHIR message, but only a set of resource (APIs, repository, etc.) than one should consider attaching this Provenance resource instance to the relevant FHIR resources generated.</td></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.MSH</td><td style=\"border-left-width: 0px\">Message Header</td><td>MSH[Provenance-Transformation]</td><td>Provenance[2].target.reference=Bundle.id</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">Provenance[2]</td><td style=\"border-left-width: 0px\">Provenance[2]</td><td/><td>If the FHIR transformation does not yield a FHIR Bunlde, but only a set of resource (APIs, repository, etc.) than one should consider attaching this Provenance resource instance to the relevant FHIR resources generated.</td></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.SFT</td><td style=\"border-left-width: 0px\">Software Segment</td><td>SFT[Device]</td><td>Provenance[1].entity.what.reference=Device.id\nProvenance[1].entity.role=&quot;derivation&quot;\\</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">Provenance[1].entity.what(Device)</td><td style=\"border-left-width: 0px\">Provenance[1].entity.what(Device)</td><td>If the software does represent not the original source system</td><td/></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.SFT</td><td style=\"border-left-width: 0px\">Software Segment</td><td>SFT[Device]</td><td>Provenance[1].entity.what.reference=Device.id\nProvenance[1].entity.role=&quot;source&quot;\\</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">Provenance[1].entity.what(Device)</td><td style=\"border-left-width: 0px\">Provenance[1].entity.what(Device)</td><td>If the software represents the original source system</td><td/></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.EVN</td><td style=\"border-left-width: 0px\">Event Type</td><td>EVN[Provenance]</td><td>Provenance[3].target.reference=MessageHeader[1].id</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">Provenance[3]</td><td style=\"border-left-width: 0px\">Provenance[3]</td><td/><td/></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.PID</td><td style=\"border-left-width: 0px\">Patient Identification</td><td>PID[Patient]</td><td/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">Patient[1]</td><td style=\"border-left-width: 0px\">Patient[1]</td><td/><td>Processing of the PID segment results in the creation of a new Patient resource</td></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.PID</td><td style=\"border-left-width: 0px\">Patient Identification</td><td>PID[Provenance-Patient]</td><td>Provenance.target.reference=Patient[1].id</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">Provenance[4]</td><td style=\"border-left-width: 0px\">Provenance[4]</td><td/><td/></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.PV1</td><td style=\"border-left-width: 0px\">Patient Visit</td><td>PV1[Encounter]</td><td>Encounter.subject=Patient[PID]</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">Encounter[1]</td><td style=\"border-left-width: 0px\">Encounter[1]</td><td/><td>Processing of the PV1 segment results in the creation of a new Encounter resource</td></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.PV1</td><td style=\"border-left-width: 0px\">Patient Visit</td><td>PV1[Patient]</td><td/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">Patient[1]</td><td style=\"border-left-width: 0px\">Patient[1]</td><td/><td/></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.COMMON_ORDER.ORC</td><td style=\"border-left-width: 0px\">Common order segment</td><td>ORC[ServiceRequest]</td><td>ServiceRequest.subject=Patient[PID]</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">ServiceRequest[1]</td><td style=\"border-left-width: 0px\">ServiceRequest[1]</td><td/><td>Processing of each ORC segment results in the creation of a new ServiceRequest resource</td></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.COMMON_ORDER.ORC</td><td style=\"border-left-width: 0px\">Common order segment</td><td>ORC[Provenance]</td><td>Provenance.target=ServiceRequest[ORC]</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">Provenance[3]</td><td style=\"border-left-width: 0px\">Provenance[3]</td><td/><td>Using Provenance is the preferred way, but a local implementation may decide to add extensions to the main resource.  As the use and guidance of Provenance matures we wil revisit this later.</td></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.COMMON_ORDER.TIMING.TQ1</td><td style=\"border-left-width: 0px\">Timing/Quantity</td><td>TQ1[ServiceRequest]</td><td/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">ServiceRequest[1]</td><td style=\"border-left-width: 0px\">ServiceRequest[1]</td><td/><td/></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.COMMON_ORDER.OBR</td><td style=\"border-left-width: 0px\">Observation request segment</td><td>OBR[ServiceRequest]</td><td/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">ServiceRequest[1]</td><td style=\"border-left-width: 0px\">ServiceRequest[1]</td><td/><td/></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.COMMON_ORDER.NTE</td><td style=\"border-left-width: 0px\">Notes and comments about the observation (OBR)</td><td>NTE[ServiceRequest]</td><td/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">ServiceRequest[1]</td><td style=\"border-left-width: 0px\">ServiceRequest[1]</td><td/><td/></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.TXA</td><td style=\"border-left-width: 0px\">Document Notification</td><td>TXA[DocumentReference]</td><td>DocumentReference[1].context.related.reference=ServiceRequest[1].id</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">DocumentReference[1]</td><td style=\"border-left-width: 0px\">DocumentReference[1]</td><td/><td>Note for detailed mapping to use</td></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.OBSERVATION.OBX</td><td style=\"border-left-width: 0px\">Observation/Result (one or more required)</td><td>OBX[DocumentReference]</td><td>DocumentReference[1].context.related.reference=ServiceRequest[1].id</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">DocumentReference[1]</td><td style=\"border-left-width: 0px\">DocumentReference[1]</td><td/><td/></tr><tr><td style=\"border-right-width: 0px\">MDM_T02.OBSERVATION.NTE</td><td style=\"border-left-width: 0px\">Notes and comments about the observation (OBX)</td><td>NTE[DocumentReference]</td><td>DocumentReference[1].context.related.reference=ServiceRequest[1].id</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">DocumentReference[1]</td><td style=\"border-left-width: 0px\">DocumentReference[1]</td><td/><td/></tr></table></div>"
  },
  "extension" : [
    {
      "extension" : [
        {
          "url" : "type",
          "valueCode" : "derived-from"
        },
        {
          "url" : "label",
          "valueString" : "Message MDM:T02 to Bundle.fsh"
        },
        {
          "url" : "url",
          "valueUri" : "https://docs.google.com/spreadsheets/d/1KXumJbfcuuPNcbMjp2esj2kJSj-RkU8CqQYhUfXrp9c/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/uv/v2mappings/message-mdm-t02-to-bundle",
  "version" : "1.0.0-ballot",
  "name" : "MessageMDM_T02ToBundle",
  "title" : "Message MDM_T02 to Bundle Map",
  "status" : "active",
  "experimental" : true,
  "date" : "2023-12-19",
  "publisher" : "HL7 International / Orders and Observations",
  "contact" : [
    {
      "name" : "HL7 Orders and Observations Workgroup",
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/orders"
        }
      ]
    },
    {
      "name" : "Keith W. Boone",
      "telecom" : [
        {
          "system" : "email",
          "value" : "kboone@ainq.com"
        }
      ]
    },
    {
      "name" : "Rob Hausam",
      "telecom" : [
        {
          "system" : "email",
          "value" : "rrhausam@gmail.com"
        }
      ]
    }
  ],
  "description" : "This ConceptMap represents a mapping from the HL7 V2 Message MDM_T02 to the FHIR Message Bundle.",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "copyright" : "Copyright (c) 2020, HL7 International, Inc., All Rights Reserved.",
  "sourceUri" : "MDM_T02",
  "targetUri" : "Bundle",
  "group" : [
    {
      "element" : [
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.MSH",
          "display" : "Message Header",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "Bundle",
              "display" : "Bundle",
              "equivalence" : "equivalent",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "MSH[Bundle]"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.MSH",
          "display" : "Message Header",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "MessageHeader[1]",
              "display" : "MessageHeader[1]",
              "equivalence" : "equivalent",
              "comment" : "Processing of the MSH segment results in the creation of a new MessageHeader resource",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "MSH[MessageHeader]"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.MSH",
          "display" : "Message Header",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "Provenance[1]",
              "display" : "Provenance[1]",
              "equivalence" : "equivalent",
              "comment" : "If the FHIR transformation does not yield a FHIR message, but only a set of resource (APIs, repository, etc.) than one should consider attaching this Provenance resource instance to the relevant FHIR resources generated.",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "MSH[Provenance-Source]"
                },
                {
                  "property" : "references",
                  "value" : "Provenance[1].target.reference=Bundle.id; Provenance[1].target.reference=MessageHeader[1].id"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.MSH",
          "display" : "Message Header",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "Provenance[2]",
              "display" : "Provenance[2]",
              "equivalence" : "equivalent",
              "comment" : "If the FHIR transformation does not yield a FHIR Bunlde, but only a set of resource (APIs, repository, etc.) than one should consider attaching this Provenance resource instance to the relevant FHIR resources generated.",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "MSH[Provenance-Transformation]"
                },
                {
                  "property" : "references",
                  "value" : "Provenance[2].target.reference=Bundle.id"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 0
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : -1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.SFT",
          "display" : "Software Segment",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "Provenance[1].entity.what(Device)",
              "display" : "Provenance[1].entity.what(Device)",
              "equivalence" : "equivalent",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "SFT[Device]"
                },
                {
                  "property" : "references",
                  "value" : "Provenance[1].entity.what.reference=Device.id\nProvenance[1].entity.role=\"derivation\"\\"
                }
              ],
              "product" : [
                {
                  "property" : "narrative",
                  "value" : "If the software does represent not the original source system"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 0
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : -1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.SFT",
          "display" : "Software Segment",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "Provenance[1].entity.what(Device)",
              "display" : "Provenance[1].entity.what(Device)",
              "equivalence" : "equivalent",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "SFT[Device]"
                },
                {
                  "property" : "references",
                  "value" : "Provenance[1].entity.what.reference=Device.id\nProvenance[1].entity.role=\"source\"\\"
                }
              ],
              "product" : [
                {
                  "property" : "narrative",
                  "value" : "If the software represents the original source system"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.EVN",
          "display" : "Event Type",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "Provenance[3]",
              "display" : "Provenance[3]",
              "equivalence" : "equivalent",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "EVN[Provenance]"
                },
                {
                  "property" : "references",
                  "value" : "Provenance[3].target.reference=MessageHeader[1].id"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.PID",
          "display" : "Patient Identification",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "Patient[1]",
              "display" : "Patient[1]",
              "equivalence" : "equivalent",
              "comment" : "Processing of the PID segment results in the creation of a new Patient resource",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "PID[Patient]"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.PID",
          "display" : "Patient Identification",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "Provenance[4]",
              "display" : "Provenance[4]",
              "equivalence" : "equivalent",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "PID[Provenance-Patient]"
                },
                {
                  "property" : "references",
                  "value" : "Provenance.target.reference=Patient[1].id"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.PV1",
          "display" : "Patient Visit",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "Encounter[1]",
              "display" : "Encounter[1]",
              "equivalence" : "equivalent",
              "comment" : "Processing of the PV1 segment results in the creation of a new Encounter resource",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "PV1[Encounter]"
                },
                {
                  "property" : "references",
                  "value" : "Encounter.subject=Patient[PID]"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.PV1",
          "display" : "Patient Visit",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "Patient[1]",
              "display" : "Patient[1]",
              "equivalence" : "equivalent",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "PV1[Patient]"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.COMMON_ORDER.ORC",
          "display" : "Common order segment",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "ServiceRequest[1]",
              "display" : "ServiceRequest[1]",
              "equivalence" : "equivalent",
              "comment" : "Processing of each ORC segment results in the creation of a new ServiceRequest resource",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "ORC[ServiceRequest]"
                },
                {
                  "property" : "references",
                  "value" : "ServiceRequest.subject=Patient[PID]"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.COMMON_ORDER.ORC",
          "display" : "Common order segment",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "Provenance[3]",
              "display" : "Provenance[3]",
              "equivalence" : "equivalent",
              "comment" : "Using Provenance is the preferred way, but a local implementation may decide to add extensions to the main resource.  As the use and guidance of Provenance matures we wil revisit this later.",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "ORC[Provenance]"
                },
                {
                  "property" : "references",
                  "value" : "Provenance.target=ServiceRequest[ORC]"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.COMMON_ORDER.TIMING.TQ1",
          "display" : "Timing/Quantity",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "ServiceRequest[1]",
              "display" : "ServiceRequest[1]",
              "equivalence" : "equivalent",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "TQ1[ServiceRequest]"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.COMMON_ORDER.OBR",
          "display" : "Observation request segment",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "ServiceRequest[1]",
              "display" : "ServiceRequest[1]",
              "equivalence" : "equivalent",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "OBR[ServiceRequest]"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 0
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : -1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.COMMON_ORDER.NTE",
          "display" : "Notes and comments about the observation (OBR)",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "ServiceRequest[1]",
              "display" : "ServiceRequest[1]",
              "equivalence" : "equivalent",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "NTE[ServiceRequest]"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.TXA",
          "display" : "Document Notification",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "DocumentReference[1]",
              "display" : "DocumentReference[1]",
              "equivalence" : "equivalent",
              "comment" : "Note for detailed mapping to use",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "TXA[DocumentReference]"
                },
                {
                  "property" : "references",
                  "value" : "DocumentReference[1].context.related.reference=ServiceRequest[1].id"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 1
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : 1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.OBSERVATION.OBX",
          "display" : "Observation/Result (one or more required)",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "DocumentReference[1]",
              "display" : "DocumentReference[1]",
              "equivalence" : "equivalent",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "OBX[DocumentReference]"
                },
                {
                  "property" : "references",
                  "value" : "DocumentReference[1].context.related.reference=ServiceRequest[1].id"
                }
              ]
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "cardinalityMin",
                  "valueInteger" : 0
                },
                {
                  "url" : "cardinalityMax",
                  "valueInteger" : -1
                }
              ],
              "url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
            }
          ],
          "code" : "MDM_T02.OBSERVATION.NTE",
          "display" : "Notes and comments about the observation (OBX)",
          "target" : [
            {
              "modifierExtension" : [
                {
                  "url" : "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence",
                  "valueCode" : "equivalent"
                }
              ],
              "code" : "DocumentReference[1]",
              "display" : "DocumentReference[1]",
              "equivalence" : "equivalent",
              "dependsOn" : [
                {
                  "property" : "segment-map",
                  "value" : "NTE[DocumentReference]"
                },
                {
                  "property" : "references",
                  "value" : "DocumentReference[1].context.related.reference=ServiceRequest[1].id"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}