HL7 Version 2 to FHIR, published by HL7 International / Orders and Observations. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/v2-to-fhir/ and changes regularly. See the Directory of published versions
Page standards status: Informative |
{
"resourceType" : "ConceptMap",
"id" : "segment-msh-transformation-to-provenance",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: ConceptMap segment-msh-transformation-to-provenance</b></p><a name=\"segment-msh-transformation-to-provenance\"> </a><a name=\"hcsegment-msh-transformation-to-provenance\"> </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></tr><tr><td colspan=\"2\"><b>Codes</b> from </td><td><b>NarrativeCondition</b></td><td/><td colspan=\"2\"><b>Codes</b> from </td></tr><tr><td style=\"border-right-width: 0px\">MSH</td><td style=\"border-left-width: 0px\"/><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\">activity.coding.code</td><td style=\"border-left-width: 0px\">activity.coding.code</td></tr><tr><td style=\"border-right-width: 0px\">MSH</td><td style=\"border-left-width: 0px\"/><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\">activity.coding.system</td><td style=\"border-left-width: 0px\">activity.coding.system</td></tr><tr><td style=\"border-right-width: 0px\">MSH</td><td style=\"border-left-width: 0px\"/><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\">recorded</td><td style=\"border-left-width: 0px\">recorded</td></tr><tr><td style=\"border-right-width: 0px\">MSH</td><td style=\"border-left-width: 0px\"/><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\">policy</td><td style=\"border-left-width: 0px\">policy</td></tr><tr><td style=\"border-right-width: 0px\">MSH</td><td style=\"border-left-width: 0px\"/><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\">agent[1].type.coding.code</td><td style=\"border-left-width: 0px\">agent[1].type.coding.code</td></tr><tr><td style=\"border-right-width: 0px\">MSH</td><td style=\"border-left-width: 0px\"/><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\">agent[1].type.coding.system</td><td style=\"border-left-width: 0px\">agent[1].type.coding.system</td></tr><tr><td style=\"border-right-width: 0px\">MSH</td><td style=\"border-left-width: 0px\"/><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\">agent[1].who(Organization|Device)</td><td style=\"border-left-width: 0px\">agent[1].who(Organization|Device)</td></tr><tr><td style=\"border-right-width: 0px\">MSH</td><td style=\"border-left-width: 0px\"/><td>when you hold on to/persist the v2 message in a data store</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\">entity[1].what(DocumentReference.content.attachment.url)</td><td style=\"border-left-width: 0px\">entity[1].what(DocumentReference.content.attachment.url)</td></tr><tr><td style=\"border-right-width: 0px\">MSH</td><td style=\"border-left-width: 0px\"/><td>when you do not hold on to/persist the v2 message in a data store</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\">entity[1].what(DocumentReference.content.attachment.data)</td><td style=\"border-left-width: 0px\">entity[1].what(DocumentReference.content.attachment.data)</td></tr><tr><td style=\"border-right-width: 0px\">MSH</td><td style=\"border-left-width: 0px\"/><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\">entity[1].what(DocumentReference.status)</td><td style=\"border-left-width: 0px\">entity[1].what(DocumentReference.status)</td></tr><tr><td style=\"border-right-width: 0px\">MSH</td><td style=\"border-left-width: 0px\"/><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\">entity[1].role</td><td style=\"border-left-width: 0px\">entity[1].role</td></tr></table></div>"
},
"extension" : [
{
"extension" : [
{
"url" : "type",
"valueCode" : "derived-from"
},
{
"url" : "label",
"valueString" : "Segment MSH[Transformation] to Provenance.fsh"
},
{
"url" : "url",
"valueUri" : "https://docs.google.com/spreadsheets/d/1byfzqOfOvIVdRkHv2Tto5a-a0YMYWWP0eryaZBvibIo/edit?gid=0#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-transformation-to-provenance",
"version" : "1.0.0",
"name" : "SegmentMSHTransformationToProvenance",
"title" : "Segment MSH [Transformation] to Provenance 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 Segment MSH to the FHIR Provenance 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" : [
{
"code" : "MSH",
"target" : [
{
"extension" : [
{
"extension" : [
{
"url" : "cardinalityMin",
"valueInteger" : 0
},
{
"url" : "cardinalityMax",
"valueInteger" : 1
},
{
"url" : "assignment",
"valueString" : "\"v2-fhir-transformation\""
}
],
"url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
}
],
"code" : "activity.coding.code",
"display" : "activity.coding.code",
"equivalence" : "equivalent"
}
]
},
{
"code" : "MSH",
"target" : [
{
"extension" : [
{
"extension" : [
{
"url" : "cardinalityMin",
"valueInteger" : 0
},
{
"url" : "cardinalityMax",
"valueInteger" : 1
},
{
"url" : "assignment",
"valueString" : "\"http://hl7.org/fhir/uv/v2mappings/CodeSystem/provenance-activity-type-v2-to-fhir\""
}
],
"url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
}
],
"code" : "activity.coding.system",
"display" : "activity.coding.system",
"equivalence" : "equivalent"
}
]
},
{
"code" : "MSH",
"target" : [
{
"extension" : [
{
"extension" : [
{
"url" : "cardinalityMin",
"valueInteger" : 1
},
{
"url" : "cardinalityMax",
"valueInteger" : 1
},
{
"url" : "assignment",
"valueString" : "/timestamp of tranformation/"
}
],
"url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
}
],
"code" : "recorded",
"display" : "recorded",
"equivalence" : "equivalent"
}
]
},
{
"code" : "MSH",
"target" : [
{
"extension" : [
{
"extension" : [
{
"url" : "cardinalityMin",
"valueInteger" : 0
},
{
"url" : "cardinalityMax",
"valueInteger" : -1
},
{
"url" : "assignment",
"valueString" : "/uri of the policy governing transformation of the v2 to FHIR/"
}
],
"url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
}
],
"code" : "policy",
"display" : "policy",
"equivalence" : "equivalent"
}
]
},
{
"code" : "MSH",
"target" : [
{
"extension" : [
{
"extension" : [
{
"url" : "type",
"valueCode" : "string"
},
{
"url" : "cardinalityMin",
"valueInteger" : 0
},
{
"url" : "cardinalityMax",
"valueInteger" : 1
},
{
"url" : "assignment",
"valueString" : "\"assembler\""
}
],
"url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
}
],
"code" : "agent[1].type.coding.code",
"display" : "agent[1].type.coding.code",
"equivalence" : "equivalent"
}
]
},
{
"code" : "MSH",
"target" : [
{
"extension" : [
{
"extension" : [
{
"url" : "type",
"valueCode" : "url"
},
{
"url" : "cardinalityMin",
"valueInteger" : 0
},
{
"url" : "cardinalityMax",
"valueInteger" : 1
},
{
"url" : "assignment",
"valueString" : "\"http://terminology.hl7.org/CodeSystem/provenance-participant-type\""
}
],
"url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
}
],
"code" : "agent[1].type.coding.system",
"display" : "agent[1].type.coding.system",
"equivalence" : "equivalent"
}
]
},
{
"code" : "MSH",
"target" : [
{
"extension" : [
{
"extension" : [
{
"url" : "type",
"valueCode" : "Reference(Organization|Device)"
},
{
"url" : "cardinalityMin",
"valueInteger" : 1
},
{
"url" : "cardinalityMax",
"valueInteger" : 1
},
{
"url" : "assignment",
"valueString" : "/the organization owning or device performing the transformation by the mapping tool/"
}
],
"url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
}
],
"code" : "agent[1].who(Organization|Device)",
"display" : "agent[1].who(Organization|Device)",
"equivalence" : "equivalent"
}
]
},
{
"code" : "MSH",
"target" : [
{
"code" : "entity[1].what(DocumentReference.content.attachment.url)",
"display" : "entity[1].what(DocumentReference.content.attachment.url)",
"equivalence" : "equivalent",
"dependsOn" : [
{
"property" : "Narrative-Condition",
"value" : "when you hold on to/persist the v2 message in a data store"
}
]
}
]
},
{
"code" : "MSH",
"target" : [
{
"extension" : [
{
"extension" : [
{
"url" : "assignment",
"valueString" : "/v2.txt or v2.xml into base 64/"
}
],
"url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
}
],
"code" : "entity[1].what(DocumentReference.content.attachment.data)",
"display" : "entity[1].what(DocumentReference.content.attachment.data)",
"equivalence" : "equivalent",
"dependsOn" : [
{
"property" : "Narrative-Condition",
"value" : "when you do not hold on to/persist the v2 message in a data store"
}
]
}
]
},
{
"code" : "MSH",
"target" : [
{
"extension" : [
{
"extension" : [
{
"url" : "assignment",
"valueString" : "\"current\""
}
],
"url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
}
],
"code" : "entity[1].what(DocumentReference.status)",
"display" : "entity[1].what(DocumentReference.status)",
"equivalence" : "equivalent"
}
]
},
{
"code" : "MSH",
"target" : [
{
"extension" : [
{
"extension" : [
{
"url" : "assignment",
"valueString" : "\"source\""
}
],
"url" : "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"
}
],
"code" : "entity[1].role",
"display" : "entity[1].role",
"equivalence" : "equivalent"
}
]
}
]
}
]
}