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

: Datatype RPT to Timing 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 "datatype-rpt-to-timing"] ; # 
  fhir:text [
fhir:status [ fhir:v "extensions" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Mapping from RPT to <a href=\"http://hl7.org/fhir/R4/datatypes.html#Timing\">Timing</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 Datatype RPT to the FHIR Timing Data Type.</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 colspan=\"3\"><b>Properties</b></td></tr><tr><td colspan=\"2\"><b>Codes</b> from </td><td><b>vocabularymap</b></td><td><b>value</b></td><td/><td colspan=\"2\"><b>Codes</b> from </td><td><b>antlr</b></td></tr><tr><td style=\"border-right-width: 0px\">RPT.1</td><td style=\"border-left-width: 0px\">Repeat Pattern Code</td><td>RepeatPattern</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\">code</td><td style=\"border-left-width: 0px\">code</td><td/></tr><tr><td style=\"border-right-width: 0px\">RPT.3</td><td style=\"border-left-width: 0px\">Phase Range Begin Value</td><td/><td>/translate number to day/</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\">repeat.dayOfWeek[1]</td><td style=\"border-left-width: 0px\">repeat.dayOfWeek[1]</td><td>IF RPT.2 = &quot;DW&quot;</td></tr><tr><td style=\"border-right-width: 0px\">RPT.4</td><td style=\"border-left-width: 0px\">Phase Range End Value</td><td/><td>/translate number to day/</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\">repeat.dayOfWeek[2]</td><td style=\"border-left-width: 0px\">repeat.dayOfWeek[2]</td><td>IF RPT.2 = &quot;DW&quot;</td></tr><tr><td style=\"border-right-width: 0px\">RPT.5</td><td style=\"border-left-width: 0px\">Period Quantity</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\">repeat.period</td><td style=\"border-left-width: 0px\">repeat.period</td><td/></tr><tr><td style=\"border-right-width: 0px\">RPT.6</td><td style=\"border-left-width: 0px\">Period Units</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\">repeat.periodUnit</td><td style=\"border-left-width: 0px\">repeat.periodUnit</td><td/></tr><tr><td style=\"border-right-width: 0px\">RPT.8</td><td style=\"border-left-width: 0px\">Event</td><td>EventRelatedPeriod</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\">repeat.when</td><td style=\"border-left-width: 0px\">repeat.when</td><td/></tr><tr><td style=\"border-right-width: 0px\">RPT.9</td><td style=\"border-left-width: 0px\">Event Offset Quantity</td><td/><td>/convert to minutes based on RPT.10/</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\">repeat.offset</td><td style=\"border-left-width: 0px\">repeat.offset</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 "Datatype RPT to Timing.fsh" ]     ] [
fhir:url [ fhir:v "url"^^xsd:anyURI ] ;
fhir:value [ fhir:v "https://docs.google.com/spreadsheets/d/1C6fGBJDwx5EkYnOwYNvwuDmKsb55pCVWW3Odn9QysIQ/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/datatype-rpt-to-timing"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "1.0.0-ballot"] ; # 
  fhir:name [ fhir:v "DatatypeRPTToTiming"] ; # 
  fhir:title [ fhir:v "Datatype RPT to Timing 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 Datatype RPT to the FHIR Timing Data Type."] ; # 
  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 "RPT"^^xsd:anyURI] ; # 
  fhir:target [ fhir:v "Timing"^^xsd:anyURI] ; # 
  fhir:group ( [
    ( fhir:element [
      ( fhir:extension [
        ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "CWE" ]         ] [
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 "RPT.1" ] ;
fhir:display [ fhir:v "Repeat Pattern Code" ] ;
      ( fhir:_target [
        ( fhir:extension [
          ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "CodeableConcept" ]           ] [
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 "code" ] ;
fhir:display [ fhir:v "code" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
        ( fhir:dependsOn [
fhir:property [ fhir:v "vocabulary-map"^^xsd:anyURI ] ;
fhir:value [ fhir:v "RepeatPattern" ]         ] )       ] )     ] [
      ( fhir:extension [
        ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "NM" ]         ] [
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:code [ fhir:v "RPT.3" ] ;
fhir:display [ fhir:v "Phase Range Begin Value" ] ;
      ( 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 "repeat.dayOfWeek[1]" ] ;
fhir:display [ fhir:v "repeat.dayOfWeek[1]" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
        ( fhir:dependsOn [
fhir:property [ fhir:v "value"^^xsd:anyURI ] ;
fhir:value [ fhir:v "/translate number to day/" ]         ] ) ;
        ( fhir:product [
fhir:property [ fhir:v "antlr"^^xsd:anyURI ] ;
fhir:value [ fhir:v "IF RPT.2 = \"DW\"" ]         ] )       ] )     ] [
      ( fhir:extension [
        ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "NM" ]         ] [
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:code [ fhir:v "RPT.4" ] ;
fhir:display [ fhir:v "Phase Range End Value" ] ;
      ( 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 "repeat.dayOfWeek[2]" ] ;
fhir:display [ fhir:v "repeat.dayOfWeek[2]" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
        ( fhir:dependsOn [
fhir:property [ fhir:v "value"^^xsd:anyURI ] ;
fhir:value [ fhir:v "/translate number to day/" ]         ] ) ;
        ( fhir:product [
fhir:property [ fhir:v "antlr"^^xsd:anyURI ] ;
fhir:value [ fhir:v "IF RPT.2 = \"DW\"" ]         ] )       ] )     ] [
      ( fhir:extension [
        ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "NM" ]         ] [
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:code [ fhir:v "RPT.5" ] ;
fhir:display [ fhir:v "Period Quantity" ] ;
      ( fhir:_target [
        ( fhir:extension [
          ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "decimal" ]           ] [
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 "repeat.period" ] ;
fhir:display [ fhir:v "repeat.period" ] ;
fhir:equivalence [ fhir:v "equivalent" ]       ] )     ] [
      ( fhir:extension [
        ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "CWE" ]         ] [
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:code [ fhir:v "RPT.6" ] ;
fhir:display [ fhir:v "Period Units" ] ;
      ( 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 "repeat.periodUnit" ] ;
fhir:display [ fhir:v "repeat.periodUnit" ] ;
fhir:equivalence [ fhir:v "equivalent" ]       ] )     ] [
      ( fhir:extension [
        ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "ID" ]         ] [
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:code [ fhir:v "RPT.8" ] ;
fhir:display [ fhir:v "Event" ] ;
      ( 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 "repeat.when" ] ;
fhir:display [ fhir:v "repeat.when" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
        ( fhir:dependsOn [
fhir:property [ fhir:v "vocabulary-map"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EventRelatedPeriod" ]         ] )       ] )     ] [
      ( fhir:extension [
        ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "NM" ]         ] [
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:code [ fhir:v "RPT.9" ] ;
fhir:display [ fhir:v "Event Offset Quantity" ] ;
      ( fhir:_target [
        ( fhir:extension [
          ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "unsignedInt" ]           ] [
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 "repeat.offset" ] ;
fhir:display [ fhir:v "repeat.offset" ] ;
fhir:equivalence [ fhir:v "equivalent" ] ;
        ( fhir:dependsOn [
fhir:property [ fhir:v "value"^^xsd:anyURI ] ;
fhir:value [ fhir:v "/convert to minutes based on RPT.10/" ]         ] )       ] )     ] )
  ] ) . #