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

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-ballot 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

: Segment MSH to Bundle Map - TTL Representation

Active as of 2024-04-24

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:ConceptMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "segment-msh-to-bundle"] ; # 
  fhir:text [
fhir:status [ fhir:v "extensions" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Mapping from MSH to <a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a></p><p>ACTIVE (not intended for production usage). Published on 2024-04-24 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 Segment MSH to the FHIR Bundle Resource.</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=\"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><td colspan=\"2\"><b>Properties</b></td></tr><tr><td colspan=\"2\"><b>Codes</b> from </td><td><b>value</b></td><td/><td colspan=\"2\"><b>Codes</b> from </td><td/></tr><tr><td style=\"border-right-width: 0px\">MSH</td><td style=\"border-left-width: 0px\"></td><td>&quot;message&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\">type</td><td style=\"border-left-width: 0px\">type</td><td>Note that the assignment is according to the mapping principles for mapping definitions only.  There is no expectation that this is the actual Bundle.type being mapped to based on local implementation considerations.  Unless the progression actually is a FHIR Message.</td></tr><tr><td style=\"border-right-width: 0px\">MSH-7</td><td style=\"border-left-width: 0px\">Date/Time of Message</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\">timestamp</td><td style=\"border-left-width: 0px\">timestamp</td><td>Note that MSH-7 does not require a time offset while Bundle.timestamp does.  Implementers should configure the actual mapping according to local context of the transaction.</td></tr><tr><td style=\"border-right-width: 0px\">MSH-10</td><td style=\"border-left-width: 0px\">Message Control ID</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\">identifier.value</td><td style=\"border-left-width: 0px\">identifier.value</td><td/></tr><tr><td style=\"border-right-width: 0px\">MSH-10</td><td style=\"border-left-width: 0px\">Message Control ID</td><td>/to be determined by the implementer/</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\">identifier.system</td><td style=\"border-left-width: 0px\">identifier.system</td><td/></tr></table></div>"
  ] ; # 
  fhir:extension ( [
    ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "derived-from" ]     ] [
fhir:url [ fhir:v "label"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Segment MSH to Bundle.fsh" ]     ] [
fhir:url [ fhir:v "url"^^xsd:anyURI ] ;
fhir:value [ fhir:v "https://docs.google.com/spreadsheets/d/1oOy6JW4Mv5VL8DsoA05bYZCUa1JqP4GCYNPF5GJTLxQ/edit#gid=0"^^xsd:anyURI ]     ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/RelatedArtifact"^^xsd:anyURI ]
  ] ) ; # 
  fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/segment-msh-to-bundle"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "1.0.0-ballot"] ; # 
  fhir:name [ fhir:v "SegmentMSHToBundle"] ; # 
  fhir:title [ fhir:v "Segment MSH to Bundle Map"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:date [ fhir:v "2024-04-24"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "HL7 International / Orders and Observations"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "HL7 Orders and Observations Workgroup" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://www.hl7.org/Special/committees/orders" ]     ] )
  ] [
fhir:name [ fhir:v "Keith W. Boone" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "kboone@ainq.com" ]     ] )
  ] [
fhir:name [ fhir:v "Rob Hausam" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "rrhausam@gmail.com" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "This ConceptMap represents a mapping from the HL7 V2 Segment MSH to the FHIR Bundle Resource."] ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;
fhir:code [ fhir:v "001" ]     ] )
  ] ) ; # 
  fhir:copyright [ fhir:v "Copyright (c) 2020, HL7 International, Inc., All Rights Reserved."] ; # 
  fhir:source [ fhir:v "MSH"^^xsd:anyURI] ; # 
  fhir:target [ fhir:v "Bundle"^^xsd:anyURI] ; # 
  fhir:group ( [
    ( fhir:element [
fhir:code [ fhir:v "MSH" ] ;
      ( fhir:_target [
        ( fhir:extension [
          ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "code" ]           ] [
fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
fhir:value [ fhir:v "1"^^xsd:integer ]           ] [
fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
fhir:value [ fhir:v "1"^^xsd:integer ]           ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]         ] ) ;
        ( fhir:modifierExtension [
fhir:url [ fhir:v "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence"^^xsd:anyURI ] ;
fhir:value [ fhir:v "equivalent" ]         ] ) ;
fhir:code [ fhir:v "type" ] ;
fhir:display [ fhir:v "type" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Note that the assignment is according to the mapping principles for mapping definitions only.  There is no expectation that this is the actual Bundle.type being mapped to based on local implementation considerations.  Unless the progression actually is a FHIR Message." ] ;
        ( fhir:dependsOn [
fhir:property [ fhir:v "value"^^xsd:anyURI ] ;
fhir:value [ fhir:v "\"message\"" ]         ] )       ] )     ] [
      ( fhir:extension [
        ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "DTM" ]         ] [
fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
fhir:value [ fhir:v "1"^^xsd:integer ]         ] [
fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
fhir:value [ fhir:v "1"^^xsd:integer ]         ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]       ] ) ;
fhir:code [ fhir:v "MSH-7" ] ;
fhir:display [ fhir:v "Date/Time of Message" ] ;
      ( fhir:_target [
        ( fhir:extension [
          ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "instant" ]           ] [
fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
fhir:value [ fhir:v "0"^^xsd:integer ]           ] [
fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
fhir:value [ fhir:v "1"^^xsd:integer ]           ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]         ] ) ;
        ( fhir:modifierExtension [
fhir:url [ fhir:v "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence"^^xsd:anyURI ] ;
fhir:value [ fhir:v "equivalent" ]         ] ) ;
fhir:code [ fhir:v "timestamp" ] ;
fhir:display [ fhir:v "timestamp" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "Note that MSH-7 does not require a time offset while Bundle.timestamp does.  Implementers should configure the actual mapping according to local context of the transaction." ]       ] )     ] [
      ( fhir:extension [
        ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "ST" ]         ] [
fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
fhir:value [ fhir:v "1"^^xsd:integer ]         ] [
fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
fhir:value [ fhir:v "1"^^xsd:integer ]         ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]       ] ) ;
fhir:code [ fhir:v "MSH-10" ] ;
fhir:display [ fhir:v "Message Control ID" ] ;
      ( fhir:_target [
        ( fhir:extension [
          ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "string" ]           ] [
fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
fhir:value [ fhir:v "0"^^xsd:integer ]           ] [
fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
fhir:value [ fhir:v "1"^^xsd:integer ]           ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]         ] ) ;
        ( fhir:modifierExtension [
fhir:url [ fhir:v "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence"^^xsd:anyURI ] ;
fhir:value [ fhir:v "equivalent" ]         ] ) ;
fhir:code [ fhir:v "identifier.value" ] ;
fhir:display [ fhir:v "identifier.value" ] ;
fhir:equivalence [ fhir:v "equivalent" ]       ] )     ] [
      ( fhir:extension [
        ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "ST" ]         ] [
fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
fhir:value [ fhir:v "1"^^xsd:integer ]         ] [
fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
fhir:value [ fhir:v "1"^^xsd:integer ]         ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]       ] ) ;
fhir:code [ fhir:v "MSH-10" ] ;
fhir:display [ fhir:v "Message Control ID" ] ;
      ( fhir:_target [
        ( fhir:extension [
          ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "uri" ]           ] [
fhir:url [ fhir:v "cardinalityMin"^^xsd:anyURI ] ;
fhir:value [ fhir:v "0"^^xsd:integer ]           ] [
fhir:url [ fhir:v "cardinalityMax"^^xsd:anyURI ] ;
fhir:value [ fhir:v "1"^^xsd:integer ]           ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"^^xsd:anyURI ]         ] ) ;
        ( fhir:modifierExtension [
fhir:url [ fhir:v "http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence"^^xsd:anyURI ] ;
fhir:value [ fhir:v "equivalent" ]         ] ) ;
fhir:code [ fhir:v "identifier.system" ] ;
fhir:display [ fhir:v "identifier.system" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
        ( fhir:dependsOn [
fhir:property [ fhir:v "value"^^xsd:anyURI ] ;
fhir:value [ fhir:v "/to be determined by the implementer/" ]         ] )       ] )     ] )
  ] ) . #