HL7 Version 2 to FHIR
0.1.0 - STU1 Ballot

This page is part of the HL7 Version 2 to FHIR (v0.1.0: STU 1 Ballot 1) based on FHIR R4. . For a full list of available versions, see the Directory of published versions

: Segment PV2 to Encounter Map - TTL Representation

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:Resource.id [ fhir:value "segment-pv2-to-encounter"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h2>SegmentPV2toEncounter (http://hl7.org/fhir/uv/v2mappings/segment-pv2-to-encounter)</h2><p>Mapping from PV2 to <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a></p><p>ACTIVE (not intended for production usage). Published on 2020-08-12 by HL7 International (HL7 Orders and Observations Workgroup: <a href=\"http://hl7.org/Special/committees/orders/index.cfm\">http://hl7.org/Special/committ...</a>, Keith W. Boone: <a href=\"mailto:kboone@ainq.com\">kboone@ainq.com</a>). Copyright (c) 2020, HL7 International, Inc., All Rights Reserved.</p><div><p>This ConceptMap represents a mapping from the HL7 V2 Segment PV2 to the FHIR Encounter Resource.</p>\n</div><br/><table class=\"grid\"><tr><td colspan=\"5\"><b>Source Concept Details</b></td><td><b>Relationship</b></td><td colspan=\"2\"><b>Destination Concept Details</b></td></tr><tr><td colspan=\"2\"><b>Code</b> from </td><td><b>Code</b> from </td><td><b>Code</b> from </td><td><b>Code</b> from </td><td/><td colspan=\"2\"><b>Code</b> from </td></tr><tr><td style=\"border-right-width: 0px\">PV2-1</td><td style=\"border-left-width: 0px\"></td><td>PL</td><td/><td/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">location[5].location(Location)</td><td style=\"border-left-width: 0px\"></td></tr><tr><td style=\"border-right-width: 0px\">PV2-1</td><td style=\"border-left-width: 0px\"></td><td/><td/><td>&quot;planned&quot;</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">location[5].status</td><td style=\"border-left-width: 0px\"></td></tr><tr><td style=\"border-right-width: 0px\">PV2-3</td><td style=\"border-left-width: 0px\"></td><td>CWE[CodeableConcept]</td><td/><td/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">reasonCode[1]</td><td style=\"border-left-width: 0px\"></td></tr><tr><td style=\"border-right-width: 0px\">PV2-8</td><td style=\"border-left-width: 0px\"></td><td/><td/><td/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">extension-plannedStartDate</td><td style=\"border-left-width: 0px\"></td></tr><tr><td style=\"border-right-width: 0px\">PV2-9</td><td style=\"border-left-width: 0px\"></td><td/><td/><td/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">extension-plannedDischargeDate</td><td style=\"border-left-width: 0px\"></td></tr><tr><td style=\"border-right-width: 0px\">PV2-11</td><td style=\"border-left-width: 0px\"></td><td>NM[Quantity]</td><td/><td/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">length.value</td><td style=\"border-left-width: 0px\"></td></tr><tr><td style=\"border-right-width: 0px\">PV2-11</td><td style=\"border-left-width: 0px\"></td><td/><td/><td>&quot;d&quot;</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">length.unit</td><td style=\"border-left-width: 0px\"></td></tr><tr><td style=\"border-right-width: 0px\">PV2-11</td><td style=\"border-left-width: 0px\"></td><td/><td/><td>&quot;http://unitsofmeasure.org/&quot;</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">length.system</td><td style=\"border-left-width: 0px\"></td></tr><tr><td style=\"border-right-width: 0px\">PV2-12</td><td style=\"border-left-width: 0px\"></td><td/><td/><td/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">text.div</td><td style=\"border-left-width: 0px\"></td></tr><tr><td style=\"border-right-width: 0px\">PV2-13</td><td style=\"border-left-width: 0px\"></td><td>XCN[Practitioner]</td><td/><td/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">participant.individual(Practitioner)</td><td style=\"border-left-width: 0px\"></td></tr><tr><td style=\"border-right-width: 0px\">PV2-13</td><td style=\"border-left-width: 0px\"></td><td/><td/><td>&quot;REF&quot;</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">participant.type.coding.code</td><td style=\"border-left-width: 0px\"></td></tr><tr><td style=\"border-right-width: 0px\">PV2-13</td><td style=\"border-left-width: 0px\"></td><td/><td/><td>&quot;http://terminology.hl7.org/CodeSystem/v3-ParticipationType&quot;</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">participant.type.coding.system</td><td style=\"border-left-width: 0px\"></td></tr><tr><td style=\"border-right-width: 0px\">PV2-13</td><td style=\"border-left-width: 0px\"></td><td/><td/><td>&quot;referrer&quot;</td><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">participant.type.text</td><td style=\"border-left-width: 0px\"></td></tr><tr><td style=\"border-right-width: 0px\">PV2-22</td><td style=\"border-left-width: 0px\"></td><td>ID[Coding]</td><td/><td/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">meta.security</td><td style=\"border-left-width: 0px\"></td></tr><tr><td style=\"border-right-width: 0px\">PV2-25</td><td style=\"border-left-width: 0px\"></td><td>CWE[CodeableConcept]</td><td>EncounterPriority</td><td/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">priority</td><td style=\"border-left-width: 0px\"></td></tr><tr><td style=\"border-right-width: 0px\">PV2-38</td><td style=\"border-left-width: 0px\"></td><td>CWE[Coding]</td><td>ModeOfArrival</td><td/><td><a href=\"http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent\">is equivalent to</a></td><td style=\"border-right-width: 0px\">extension-encounter-modeOfArrival</td><td style=\"border-left-width: 0px\"></td></tr></table></div>"
  ];
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "type" ];
       fhir:Extension.valueCode [ fhir:value "derived-from" ]     ], [
       fhir:index 1;
       fhir:Extension.url [ fhir:value "label" ];
       fhir:Extension.valueString [ fhir:value "Segment PV2 to Encounter.fsh" ]     ], [
       fhir:index 2;
       fhir:Extension.url [ fhir:value "url" ];
       fhir:Extension.valueUri [ fhir:value "https://docs.google.com/spreadsheets/d/1ILbJ8GmvNdEW4XmvrmEHtZxsRM1bk5hHl5WD2oDSa4Q/edit#gid=0" ]     ];
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/RelatedArtifact" ]
  ];
  fhir:ConceptMap.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/segment-pv2-to-encounter"];
  fhir:ConceptMap.version [ fhir:value "0.1.0"];
  fhir:ConceptMap.name [ fhir:value "SegmentPV2toEncounter"];
  fhir:ConceptMap.status [ fhir:value "active"];
  fhir:ConceptMap.experimental [ fhir:value "true"^^xsd:boolean];
  fhir:ConceptMap.date [ fhir:value "2020-08-12"^^xsd:date];
  fhir:ConceptMap.publisher [ fhir:value "HL7 International"];
  fhir:ConceptMap.contact [
     fhir:index 0;
     fhir:ContactDetail.name [ fhir:value "HL7 Orders and Observations Workgroup" ];
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://hl7.org/Special/committees/orders/index.cfm" ]     ]
  ], [
     fhir:index 1;
     fhir:ContactDetail.name [ fhir:value "Keith W. Boone" ];
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "email" ];
       fhir:ContactPoint.value [ fhir:value "kboone@ainq.com" ]     ]
  ];
  fhir:ConceptMap.description [ fhir:value "This ConceptMap represents a mapping from the HL7 V2 Segment PV2 to the FHIR Encounter Resource."];
  fhir:ConceptMap.jurisdiction [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ];
       fhir:Coding.code [ fhir:value "001" ]     ]
  ];
  fhir:ConceptMap.copyright [ fhir:value "Copyright (c) 2020, HL7 International, Inc., All Rights Reserved."];
  fhir:ConceptMap.sourceUri [ fhir:value "PV2"];
  fhir:ConceptMap.targetUri [ fhir:value "Encounter"];
  fhir:ConceptMap.group [
     fhir:index 0;
     fhir:ConceptMap.group.element [
       fhir:index 0;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "type" ];
           fhir:Extension.valueCode [ fhir:value "PL" ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "cardinalityMin" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "cardinalityMax" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ];
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]       ];
       fhir:ConceptMap.group.element.code [ fhir:value "PV2-1" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Prior Pending Location" ];
       fhir:ConceptMap.group.element.target [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Element.extension [
             fhir:index 0;
             fhir:Extension.url [ fhir:value "type" ];
             fhir:Extension.valueCode [ fhir:value "Reference(Location)" ]           ], [
             fhir:index 1;
             fhir:Extension.url [ fhir:value "cardinalityMin" ];
             fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]           ], [
             fhir:index 2;
             fhir:Extension.url [ fhir:value "cardinalityMax" ];
             fhir:Extension.valueInteger [ fhir:value "-1"^^xsd:integer ]           ];
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]         ];
         fhir:ConceptMap.group.element.target.code [ fhir:value "location[5].location(Location)" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "location[5].location(Location)" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ];
         fhir:ConceptMap.group.element.target.dependsOn [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "data-type-map" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "PL" ]         ]       ]     ], [
       fhir:index 1;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "type" ];
           fhir:Extension.valueCode [ fhir:value "PL" ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "cardinalityMin" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "cardinalityMax" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ];
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]       ];
       fhir:ConceptMap.group.element.code [ fhir:value "PV2-1" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Prior Pending Location" ];
       fhir:ConceptMap.group.element.target [
         fhir:index 0;
         fhir:ConceptMap.group.element.target.code [ fhir:value "location[5].status" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "location[5].status" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ];
         fhir:ConceptMap.group.element.target.dependsOn [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "value" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "\"planned\"" ]         ]       ]     ], [
       fhir:index 2;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "type" ];
           fhir:Extension.valueCode [ fhir:value "CWE" ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "cardinalityMin" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "cardinalityMax" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ];
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]       ];
       fhir:ConceptMap.group.element.code [ fhir:value "PV2-3" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Admit Reason" ];
       fhir:ConceptMap.group.element.target [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Element.extension [
             fhir:index 0;
             fhir:Extension.url [ fhir:value "type" ];
             fhir:Extension.valueCode [ fhir:value "CodeableConcept" ]           ], [
             fhir:index 1;
             fhir:Extension.url [ fhir:value "cardinalityMin" ];
             fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]           ], [
             fhir:index 2;
             fhir:Extension.url [ fhir:value "cardinalityMax" ];
             fhir:Extension.valueInteger [ fhir:value "-1"^^xsd:integer ]           ];
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]         ];
         fhir:ConceptMap.group.element.target.code [ fhir:value "reasonCode[1]" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "reasonCode[1]" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ];
         fhir:ConceptMap.group.element.target.dependsOn [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "data-type-map" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "CWE[CodeableConcept]" ]         ]       ]     ], [
       fhir:index 3;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "type" ];
           fhir:Extension.valueCode [ fhir:value "DTM" ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "cardinalityMin" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "cardinalityMax" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ];
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]       ];
       fhir:ConceptMap.group.element.code [ fhir:value "PV2-8" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Expected Admit Date/Time" ];
       fhir:ConceptMap.group.element.target [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Element.extension [
             fhir:index 0;
             fhir:Extension.url [ fhir:value "type" ];
             fhir:Extension.valueCode [ fhir:value "dateTime" ]           ], [
             fhir:index 1;
             fhir:Extension.url [ fhir:value "cardinalityMin" ];
             fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]           ], [
             fhir:index 2;
             fhir:Extension.url [ fhir:value "cardinalityMax" ];
             fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]           ];
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]         ];
         fhir:ConceptMap.group.element.target.code [ fhir:value "extension-plannedStartDate" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "extension-plannedStartDate" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ]       ]     ], [
       fhir:index 4;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "type" ];
           fhir:Extension.valueCode [ fhir:value "DTM" ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "cardinalityMin" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "cardinalityMax" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ];
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]       ];
       fhir:ConceptMap.group.element.code [ fhir:value "PV2-9" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Expected Discharge Date/Time" ];
       fhir:ConceptMap.group.element.target [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Element.extension [
             fhir:index 0;
             fhir:Extension.url [ fhir:value "type" ];
             fhir:Extension.valueCode [ fhir:value "dateTime" ]           ], [
             fhir:index 1;
             fhir:Extension.url [ fhir:value "cardinalityMin" ];
             fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]           ], [
             fhir:index 2;
             fhir:Extension.url [ fhir:value "cardinalityMax" ];
             fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]           ];
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]         ];
         fhir:ConceptMap.group.element.target.code [ fhir:value "extension-plannedDischargeDate" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "extension-plannedDischargeDate" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ]       ]     ], [
       fhir:index 5;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "type" ];
           fhir:Extension.valueCode [ fhir:value "NM" ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "cardinalityMin" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "cardinalityMax" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ];
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]       ];
       fhir:ConceptMap.group.element.code [ fhir:value "PV2-11" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Actual Length of Inpatient Stay" ];
       fhir:ConceptMap.group.element.target [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Element.extension [
             fhir:index 0;
             fhir:Extension.url [ fhir:value "type" ];
             fhir:Extension.valueCode [ fhir:value "decimal" ]           ], [
             fhir:index 1;
             fhir:Extension.url [ fhir:value "cardinalityMin" ];
             fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]           ], [
             fhir:index 2;
             fhir:Extension.url [ fhir:value "cardinalityMax" ];
             fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]           ];
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]         ];
         fhir:ConceptMap.group.element.target.code [ fhir:value "length.value" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "length.value" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ];
         fhir:ConceptMap.group.element.target.dependsOn [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "data-type-map" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "NM[Quantity]" ]         ]       ]     ], [
       fhir:index 6;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "type" ];
           fhir:Extension.valueCode [ fhir:value "NM" ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "cardinalityMin" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "cardinalityMax" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ];
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]       ];
       fhir:ConceptMap.group.element.code [ fhir:value "PV2-11" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Actual Length of Inpatient Stay" ];
       fhir:ConceptMap.group.element.target [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Element.extension [
             fhir:index 0;
             fhir:Extension.url [ fhir:value "type" ];
             fhir:Extension.valueCode [ fhir:value "string" ]           ], [
             fhir:index 1;
             fhir:Extension.url [ fhir:value "cardinalityMin" ];
             fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]           ], [
             fhir:index 2;
             fhir:Extension.url [ fhir:value "cardinalityMax" ];
             fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]           ];
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]         ];
         fhir:ConceptMap.group.element.target.code [ fhir:value "length.unit" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "length.unit" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ];
         fhir:ConceptMap.group.element.target.dependsOn [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "value" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "\"d\"" ]         ]       ]     ], [
       fhir:index 7;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "type" ];
           fhir:Extension.valueCode [ fhir:value "NM" ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "cardinalityMin" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "cardinalityMax" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ];
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]       ];
       fhir:ConceptMap.group.element.code [ fhir:value "PV2-11" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Actual Length of Inpatient Stay" ];
       fhir:ConceptMap.group.element.target [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Element.extension [
             fhir:index 0;
             fhir:Extension.url [ fhir:value "type" ];
             fhir:Extension.valueCode [ fhir:value "uri" ]           ], [
             fhir:index 1;
             fhir:Extension.url [ fhir:value "cardinalityMin" ];
             fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]           ], [
             fhir:index 2;
             fhir:Extension.url [ fhir:value "cardinalityMax" ];
             fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]           ];
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]         ];
         fhir:ConceptMap.group.element.target.code [ fhir:value "length.system" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "length.system" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ];
         fhir:ConceptMap.group.element.target.dependsOn [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "value" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "\"http://unitsofmeasure.org/\"" ]         ]       ]     ], [
       fhir:index 8;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "type" ];
           fhir:Extension.valueCode [ fhir:value "ST" ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "cardinalityMin" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "cardinalityMax" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ];
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]       ];
       fhir:ConceptMap.group.element.code [ fhir:value "PV2-12" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Visit Description" ];
       fhir:ConceptMap.group.element.target [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Element.extension [
             fhir:index 0;
             fhir:Extension.url [ fhir:value "type" ];
             fhir:Extension.valueCode [ fhir:value "xhtml" ]           ], [
             fhir:index 1;
             fhir:Extension.url [ fhir:value "cardinalityMin" ];
             fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]           ], [
             fhir:index 2;
             fhir:Extension.url [ fhir:value "cardinalityMax" ];
             fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]           ];
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]         ];
         fhir:ConceptMap.group.element.target.code [ fhir:value "text.div" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "text.div" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ]       ]     ], [
       fhir:index 9;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "type" ];
           fhir:Extension.valueCode [ fhir:value "XCN" ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "cardinalityMin" ];
           fhir:Extension.valueInteger [ fhir:value "-1"^^xsd:integer ]         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "cardinalityMax" ];
           fhir:Extension.valueInteger [ fhir:value "-1"^^xsd:integer ]         ];
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]       ];
       fhir:ConceptMap.group.element.code [ fhir:value "PV2-13" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Referral Source Code" ];
       fhir:ConceptMap.group.element.target [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Element.extension [
             fhir:index 0;
             fhir:Extension.url [ fhir:value "type" ];
             fhir:Extension.valueCode [ fhir:value "Reference(Practitioner)" ]           ], [
             fhir:index 1;
             fhir:Extension.url [ fhir:value "cardinalityMin" ];
             fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]           ], [
             fhir:index 2;
             fhir:Extension.url [ fhir:value "cardinalityMax" ];
             fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]           ];
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]         ];
         fhir:ConceptMap.group.element.target.code [ fhir:value "participant.individual(Practitioner)" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "participant.individual(Practitioner)" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ];
         fhir:ConceptMap.group.element.target.dependsOn [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "data-type-map" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "XCN[Practitioner]" ]         ]       ]     ], [
       fhir:index 10;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "type" ];
           fhir:Extension.valueCode [ fhir:value "XCN" ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "cardinalityMin" ];
           fhir:Extension.valueInteger [ fhir:value "-1"^^xsd:integer ]         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "cardinalityMax" ];
           fhir:Extension.valueInteger [ fhir:value "-1"^^xsd:integer ]         ];
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]       ];
       fhir:ConceptMap.group.element.code [ fhir:value "PV2-13" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Referral Source Code" ];
       fhir:ConceptMap.group.element.target [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Element.extension [
             fhir:index 0;
             fhir:Extension.url [ fhir:value "type" ];
             fhir:Extension.valueCode [ fhir:value "code" ]           ], [
             fhir:index 1;
             fhir:Extension.url [ fhir:value "cardinalityMin" ];
             fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]           ], [
             fhir:index 2;
             fhir:Extension.url [ fhir:value "cardinalityMax" ];
             fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]           ];
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]         ];
         fhir:ConceptMap.group.element.target.code [ fhir:value "participant.type.coding.code" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "participant.type.coding.code" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ];
         fhir:ConceptMap.group.element.target.dependsOn [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "value" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "\"REF\"" ]         ]       ]     ], [
       fhir:index 11;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "type" ];
           fhir:Extension.valueCode [ fhir:value "XCN" ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "cardinalityMin" ];
           fhir:Extension.valueInteger [ fhir:value "-1"^^xsd:integer ]         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "cardinalityMax" ];
           fhir:Extension.valueInteger [ fhir:value "-1"^^xsd:integer ]         ];
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]       ];
       fhir:ConceptMap.group.element.code [ fhir:value "PV2-13" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Referral Source Code" ];
       fhir:ConceptMap.group.element.target [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Element.extension [
             fhir:index 0;
             fhir:Extension.url [ fhir:value "type" ];
             fhir:Extension.valueCode [ fhir:value "uri" ]           ], [
             fhir:index 1;
             fhir:Extension.url [ fhir:value "cardinalityMin" ];
             fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]           ], [
             fhir:index 2;
             fhir:Extension.url [ fhir:value "cardinalityMax" ];
             fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]           ];
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]         ];
         fhir:ConceptMap.group.element.target.code [ fhir:value "participant.type.coding.system" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "participant.type.coding.system" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ];
         fhir:ConceptMap.group.element.target.dependsOn [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "value" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "\"http://terminology.hl7.org/CodeSystem/v3-ParticipationType\"" ]         ]       ]     ], [
       fhir:index 12;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "type" ];
           fhir:Extension.valueCode [ fhir:value "XCN" ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "cardinalityMin" ];
           fhir:Extension.valueInteger [ fhir:value "-1"^^xsd:integer ]         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "cardinalityMax" ];
           fhir:Extension.valueInteger [ fhir:value "-1"^^xsd:integer ]         ];
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]       ];
       fhir:ConceptMap.group.element.code [ fhir:value "PV2-13" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Referral Source Code" ];
       fhir:ConceptMap.group.element.target [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Element.extension [
             fhir:index 0;
             fhir:Extension.url [ fhir:value "type" ];
             fhir:Extension.valueCode [ fhir:value "string" ]           ], [
             fhir:index 1;
             fhir:Extension.url [ fhir:value "cardinalityMin" ];
             fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]           ], [
             fhir:index 2;
             fhir:Extension.url [ fhir:value "cardinalityMax" ];
             fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]           ];
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]         ];
         fhir:ConceptMap.group.element.target.code [ fhir:value "participant.type.text" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "participant.type.text" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ];
         fhir:ConceptMap.group.element.target.dependsOn [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "value" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "\"referrer\"" ]         ]       ]     ], [
       fhir:index 13;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "type" ];
           fhir:Extension.valueCode [ fhir:value "ID" ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "cardinalityMin" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "cardinalityMax" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ];
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]       ];
       fhir:ConceptMap.group.element.code [ fhir:value "PV2-22" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Visit Protection Indicator" ];
       fhir:ConceptMap.group.element.target [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Element.extension [
             fhir:index 0;
             fhir:Extension.url [ fhir:value "type" ];
             fhir:Extension.valueCode [ fhir:value "Coding" ]           ], [
             fhir:index 1;
             fhir:Extension.url [ fhir:value "cardinalityMin" ];
             fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]           ], [
             fhir:index 2;
             fhir:Extension.url [ fhir:value "cardinalityMax" ];
             fhir:Extension.valueInteger [ fhir:value "-1"^^xsd:integer ]           ];
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]         ];
         fhir:ConceptMap.group.element.target.code [ fhir:value "meta.security" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "meta.security" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ];
         fhir:ConceptMap.group.element.target.dependsOn [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "data-type-map" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "ID[Coding]" ]         ]       ]     ], [
       fhir:index 14;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "type" ];
           fhir:Extension.valueCode [ fhir:value "CWE" ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "cardinalityMin" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "cardinalityMax" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ];
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]       ];
       fhir:ConceptMap.group.element.code [ fhir:value "PV2-25" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Visit Priority Code" ];
       fhir:ConceptMap.group.element.target [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Element.extension [
             fhir:index 0;
             fhir:Extension.url [ fhir:value "type" ];
             fhir:Extension.valueCode [ fhir:value "CodeableConcept" ]           ], [
             fhir:index 1;
             fhir:Extension.url [ fhir:value "cardinalityMin" ];
             fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]           ], [
             fhir:index 2;
             fhir:Extension.url [ fhir:value "cardinalityMax" ];
             fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]           ];
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]         ];
         fhir:ConceptMap.group.element.target.code [ fhir:value "priority" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "priority" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ];
         fhir:ConceptMap.group.element.target.dependsOn [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "data-type-map" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "CWE[CodeableConcept]" ]         ], [
           fhir:index 1;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "vocabulary-map" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "EncounterPriority" ]         ]       ]     ], [
       fhir:index 15;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "type" ];
           fhir:Extension.valueCode [ fhir:value "CWE" ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "cardinalityMin" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "cardinalityMax" ];
           fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]         ];
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]       ];
       fhir:ConceptMap.group.element.code [ fhir:value "PV2-38" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Mode of Arrival Code" ];
       fhir:ConceptMap.group.element.target [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Element.extension [
             fhir:index 0;
             fhir:Extension.url [ fhir:value "type" ];
             fhir:Extension.valueCode [ fhir:value "Coding" ]           ], [
             fhir:index 1;
             fhir:Extension.url [ fhir:value "cardinalityMin" ];
             fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ]           ], [
             fhir:index 2;
             fhir:Extension.url [ fhir:value "cardinalityMax" ];
             fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ]           ];
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]         ];
         fhir:ConceptMap.group.element.target.code [ fhir:value "extension-encounter-modeOfArrival" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "extension-encounter-modeOfArrival" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ];
         fhir:ConceptMap.group.element.target.dependsOn [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "data-type-map" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "CWE[Coding]" ]         ], [
           fhir:index 1;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "vocabulary-map" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "ModeOfArrival" ]         ]       ]     ]
  ].

# - ontology header ------------------------------------------------------------

 a owl:Ontology;
  owl:imports fhir:fhir.ttl.