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 OBXnull to DocumentReference Map - TTL Representation

Active as of 2024-07-28

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-obx-to-documentreference"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: ConceptMap segment-obx-to-documentreference</b></p><a name=\"segment-obx-to-documentreference\"> </a><a name=\"hcsegment-obx-to-documentreference\"> </a><a name=\"segment-obx-to-documentreference-en-US\"> </a><p>Mapping from OBX to <a href=\"http://hl7.org/fhir/R4/documentreference.html\">DocumentReference</a></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=\"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>datatypemap</b></td><td><b>value</b></td><td/><td colspan=\"2\"><b>Codes</b> from </td><td><b>antlr</b></td><td/></tr><tr><td style=\"border-right-width: 0px\">OBX-5</td><td style=\"border-left-width: 0px\">Observation Value</td><td>ED[Attachment]</td><td/><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">content[1]</td><td style=\"border-left-width: 0px\">content[1]</td><td>IF OBX-2=&quot;ED&quot;</td><td>When OBX-5 repeats, each repeat yields a new .content instance.</td></tr><tr><td style=\"border-right-width: 0px\">OBX-5</td><td style=\"border-left-width: 0px\">Observation Value</td><td/><td/><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">content[2].data</td><td style=\"border-left-width: 0px\">content[2].data</td><td>IF OBX-2=&quot;FT&quot;</td><td>When OBX-5 repeats, each repeat yields a line feed within .content[2].data</td></tr><tr><td style=\"border-right-width: 0px\">OBX-5</td><td style=\"border-left-width: 0px\">Observation Value</td><td/><td>&quot;text/hl7v2&quot;</td><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">content[2].contentType</td><td style=\"border-left-width: 0px\">content[2].contentType</td><td>IF OBX-2=&quot;FT&quot;</td><td/></tr><tr><td style=\"border-right-width: 0px\">OBX-5</td><td style=\"border-left-width: 0px\">Observation Value</td><td/><td/><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">content[3].url</td><td style=\"border-left-width: 0px\">content[3].url</td><td>IF OBX-2=&quot;RP&quot;</td><td>When OBX-5 repeats, each repeat yields a new .content instance.</td></tr><tr><td style=\"border-right-width: 0px\">OBX-5</td><td style=\"border-left-width: 0px\">Observation Value</td><td/><td/><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">content[4].data</td><td style=\"border-left-width: 0px\">content[4].data</td><td>IF OBX-2=&quot;TX&quot;</td><td>When OBX-5 repeats, each repeat yields a line feed within .content[4].data</td></tr><tr><td style=\"border-right-width: 0px\">OBX-5</td><td style=\"border-left-width: 0px\">Observation Value</td><td/><td>&quot;application/text&quot;</td><td><a href=\"http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent\" title=\"equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">content[4].contentType</td><td style=\"border-left-width: 0px\">content[4].contentType</td><td>IF OBX-2=&quot;TX&quot;</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 OBX to DocumentReference.fsh" ]     ] [
fhir:url [ fhir:v "url"^^xsd:anyURI ] ;
fhir:value [ fhir:v "https://docs.google.com/spreadsheets/d/1CqIMtAqzUDiqaBOdyoJ76jPrHCRAVQTlKFxaf1JF07Q/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-obx-to-documentreference"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "1.0.0-ballot"] ; # 
  fhir:name [ fhir:v "SegmentOBXToDocumentReference"] ; # 
  fhir:title [ fhir:v "Segment OBXnull to DocumentReference Map"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:date [ fhir:v "2024-07-28"^^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:description [ fhir:v "This ConceptMap represents a mapping from the HL7 V2 Segment OBX to the FHIR DocumentReference 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 "OBX"^^xsd:anyURI] ; # 
  fhir:target [ fhir:v "DocumentReference"^^xsd:anyURI] ; # 
  fhir:group ( [
    ( fhir:element [
      ( fhir:extension [
        ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "varies" ]         ] [
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 "OBX-5" ] ;
fhir:display [ fhir:v "Observation Value" ] ;
      ( fhir:_target [
        ( fhir:extension [
          ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Attachment" ]           ] ) ;
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 "content[1]" ] ;
fhir:display [ fhir:v "content[1]" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "When OBX-5 repeats, each repeat yields a new .content instance." ] ;
        ( fhir:dependsOn [
fhir:property [ fhir:v "data-type-map"^^xsd:anyURI ] ;
fhir:value [ fhir:v "ED[Attachment]" ]         ] ) ;
        ( fhir:product [
fhir:property [ fhir:v "antlr"^^xsd:anyURI ] ;
fhir:value [ fhir:v "IF OBX-2=\"ED\"" ]         ] )       ] )     ] [
      ( fhir:extension [
        ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "varies" ]         ] [
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 "OBX-5" ] ;
fhir:display [ fhir:v "Observation Value" ] ;
      ( fhir:_target [
        ( fhir:extension [
          ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "binary64" ]           ] ) ;
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 "content[2].data" ] ;
fhir:display [ fhir:v "content[2].data" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "When OBX-5 repeats, each repeat yields a line feed within .content[2].data" ] ;
        ( fhir:product [
fhir:property [ fhir:v "antlr"^^xsd:anyURI ] ;
fhir:value [ fhir:v "IF OBX-2=\"FT\"" ]         ] )       ] )     ] [
      ( fhir:extension [
        ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "varies" ]         ] [
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 "OBX-5" ] ;
fhir:display [ fhir:v "Observation Value" ] ;
      ( fhir:_target [
        ( fhir:extension [
          ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "code" ]           ] ) ;
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 "content[2].contentType" ] ;
fhir:display [ fhir:v "content[2].contentType" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
        ( fhir:dependsOn [
fhir:property [ fhir:v "value"^^xsd:anyURI ] ;
fhir:value [ fhir:v "\"text/hl7v2\"" ]         ] ) ;
        ( fhir:product [
fhir:property [ fhir:v "antlr"^^xsd:anyURI ] ;
fhir:value [ fhir:v "IF OBX-2=\"FT\"" ]         ] )       ] )     ] [
      ( fhir:extension [
        ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "varies" ]         ] [
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 "OBX-5" ] ;
fhir:display [ fhir:v "Observation Value" ] ;
      ( fhir:_target [
        ( fhir:extension [
          ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "uri" ]           ] ) ;
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 "content[3].url" ] ;
fhir:display [ fhir:v "content[3].url" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "When OBX-5 repeats, each repeat yields a new .content instance." ] ;
        ( fhir:product [
fhir:property [ fhir:v "antlr"^^xsd:anyURI ] ;
fhir:value [ fhir:v "IF OBX-2=\"RP\"" ]         ] )       ] )     ] [
      ( fhir:extension [
        ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "varies" ]         ] [
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 "OBX-5" ] ;
fhir:display [ fhir:v "Observation Value" ] ;
      ( fhir:_target [
        ( fhir:extension [
          ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "binary64" ]           ] ) ;
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 "content[4].data" ] ;
fhir:display [ fhir:v "content[4].data" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
fhir:comment [ fhir:v "When OBX-5 repeats, each repeat yields a line feed within .content[4].data" ] ;
        ( fhir:product [
fhir:property [ fhir:v "antlr"^^xsd:anyURI ] ;
fhir:value [ fhir:v "IF OBX-2=\"TX\"" ]         ] )       ] )     ] [
      ( fhir:extension [
        ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "varies" ]         ] [
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 "OBX-5" ] ;
fhir:display [ fhir:v "Observation Value" ] ;
      ( fhir:_target [
        ( fhir:extension [
          ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "code" ]           ] ) ;
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 "content[4].contentType" ] ;
fhir:display [ fhir:v "content[4].contentType" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
        ( fhir:dependsOn [
fhir:property [ fhir:v "value"^^xsd:anyURI ] ;
fhir:value [ fhir:v "\"application/text\"" ]         ] ) ;
        ( fhir:product [
fhir:property [ fhir:v "antlr"^^xsd:anyURI ] ;
fhir:value [ fhir:v "IF OBX-2=\"TX\"" ]         ] )       ] )     ] )
  ] ) . #