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 IAM to AllergyIntolerance 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-iam-to-allergyintolerance"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h2>SegmentIAMtoAllergyIntolerance (http://hl7.org/fhir/uv/v2mappings/segment-iam-to-allergyintolerance)</h2><p>Mapping from IAM to <a href=\"http://hl7.org/fhir/R4/allergyintolerance.html\">AllergyIntolerance</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 IAM to the FHIR AllergyIntolerance Resource.</p>\n</div><br/><table class=\"grid\"><tr><td colspan=\"4\"><b>Source Concept Details</b></td><td><b>Relationship</b></td><td colspan=\"4\"><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/><td colspan=\"2\"><b>Code</b> from </td><td><b>Code</b> from </td><td><b>Code</b> from </td></tr><tr><td style=\"border-right-width: 0px\">IAM-2</td><td style=\"border-left-width: 0px\"></td><td>CWE[Code]</td><td>AllergyCategory</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\">category</td><td style=\"border-left-width: 0px\"></td><td/><td/></tr><tr><td style=\"border-right-width: 0px\">IAM-2</td><td style=\"border-left-width: 0px\"></td><td>CWE[Code]</td><td>AllergyType</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\">type</td><td style=\"border-left-width: 0px\"></td><td/><td/></tr><tr><td style=\"border-right-width: 0px\">IAM-3</td><td style=\"border-left-width: 0px\"></td><td>CWE[CodeableConcept]</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\">code[1]</td><td style=\"border-left-width: 0px\"></td><td/><td/></tr><tr><td style=\"border-right-width: 0px\">IAM-4</td><td style=\"border-left-width: 0px\"></td><td/><td>AllergySeverity</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\">reaction.severity</td><td style=\"border-left-width: 0px\"></td><td/><td/></tr><tr><td style=\"border-right-width: 0px\">IAM-5</td><td style=\"border-left-width: 0px\"></td><td>CWE[CodeableConcept]</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\">reaction.manifestation.text</td><td style=\"border-left-width: 0px\"></td><td/><td/></tr><tr><td style=\"border-right-width: 0px\">IAM-7</td><td style=\"border-left-width: 0px\"></td><td>EI[Identifier]</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\">identifier</td><td style=\"border-left-width: 0px\"></td><td/><td/></tr><tr><td style=\"border-right-width: 0px\">IAM-11</td><td style=\"border-left-width: 0px\"></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\">onsetDateTime</td><td style=\"border-left-width: 0px\"></td><td/><td/></tr><tr><td style=\"border-right-width: 0px\">IAM-12</td><td style=\"border-left-width: 0px\"></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\">onsetString</td><td style=\"border-left-width: 0px\"></td><td>IF IAM-11 NOT VALUED</td><td/></tr><tr><td style=\"border-right-width: 0px\">IAM-13</td><td style=\"border-left-width: 0px\"></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\">recordedDate</td><td style=\"border-left-width: 0px\"></td><td/><td/></tr><tr><td style=\"border-right-width: 0px\">IAM-14</td><td style=\"border-left-width: 0px\"></td><td>XPN</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\">recorder.reference(Practitioner.name)</td><td style=\"border-left-width: 0px\"></td><td>IF IAM-15 NOT VALUED</td><td>If IAM-15 is not valued, not always 100% clear this is a practitioner, so much review locally.</td></tr><tr><td style=\"border-right-width: 0px\">IAM-14</td><td style=\"border-left-width: 0px\"></td><td>XPN</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\">recorder.reference(Patient[1].name)</td><td style=\"border-left-width: 0px\"></td><td>IF IAM-15 EQUALS &quot;SEL&quot;</td><td/></tr><tr><td style=\"border-right-width: 0px\">IAM-14</td><td style=\"border-left-width: 0px\"></td><td>XPN</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\">recorder.reference(RelatedPerson.name)</td><td style=\"border-left-width: 0px\"></td><td>IF IAM-15 VALUED AND NOT &quot;SEL&quot;</td><td/></tr><tr><td style=\"border-right-width: 0px\">IAM-15</td><td style=\"border-left-width: 0px\"></td><td>CWE[CodeableConcept]</td><td>Relationship</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\">recorder.reference(RelatedPerson.relationship)</td><td style=\"border-left-width: 0px\"></td><td>IF IAM-15 VALUED AND NOT &quot;SEL&quot;</td><td/></tr><tr><td style=\"border-right-width: 0px\">IAM-17</td><td style=\"border-left-width: 0px\"></td><td>CWE[CodeableConcept]</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\">clinicalStatus</td><td style=\"border-left-width: 0px\"></td><td/><td/></tr><tr><td style=\"border-right-width: 0px\">IAM-27</td><td style=\"border-left-width: 0px\"></td><td>CWE[CodeableConcept]</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\">code[1]</td><td style=\"border-left-width: 0px\"></td><td/><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 IAM to AllergyIntolerance.fsh" ]     ], [
       fhir:index 2;
       fhir:Extension.url [ fhir:value "url" ];
       fhir:Extension.valueUri [ fhir:value "https://docs.google.com/spreadsheets/d/1oN0BuBRmIfVQHHU6DuwnL1ZL60h6BvnXISJQ7D6akbU/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-iam-to-allergyintolerance"];
  fhir:ConceptMap.version [ fhir:value "0.1.0"];
  fhir:ConceptMap.name [ fhir:value "SegmentIAMtoAllergyIntolerance"];
  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 IAM to the FHIR AllergyIntolerance 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 "IAM"];
  fhir:ConceptMap.targetUri [ fhir:value "AllergyIntolerance"];
  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 "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 "IAM-2" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Allergen Type 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 "category" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "category" ];
         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[Code]" ]         ], [
           fhir:index 1;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "vocabulary-map" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "AllergyCategory" ]         ]       ]     ], [
       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 "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 "IAM-2" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Allergen Type 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 "type" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "type" ];
         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[Code]" ]         ], [
           fhir:index 1;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "vocabulary-map" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "AllergyType" ]         ]       ]     ], [
       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 "IAM-3" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Allergen Code/Mnemonic/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 "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 "code[1]" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "code[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 "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 "IAM-4" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Allergy Severity 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 "reaction.severity" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "reaction.severity" ];
         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 "vocabulary-map" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "AllergySeverity" ]         ]       ]     ], [
       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 "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 "IAM-5" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Allergy Reaction 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 "reaction.manifestation.text" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "reaction.manifestation.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 "data-type-map" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "CWE[CodeableConcept]" ]         ]       ]     ], [
       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 "EI" ]         ], [
           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 "IAM-7" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Allergy Unique Identifier" ];
       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 "identifier" ]           ], [
             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 "identifier" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "identifier" ];
         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 "EI[Identifier]" ]         ]       ]     ], [
       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 "DT" ]         ], [
           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 "IAM-11" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Onset Date" ];
       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 "onsetDateTime" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "onsetDateTime" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ]       ]     ], [
       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 "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 "IAM-12" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Onset Date Text" ];
       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 "onsetString" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "onsetString" ];
         fhir:ConceptMap.group.element.target.equivalence [ fhir:value "equivalent" ];
         fhir:ConceptMap.group.element.target.product [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "antlr" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "IF IAM-11 NOT VALUED" ]         ]       ]     ], [
       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 "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 "IAM-13" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Reported 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 "recordedDate" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "recordedDate" ];
         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 "XPN" ]         ], [
           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 "IAM-14" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Reported By" ];
       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 "HumanName" ]           ], [
             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 "recorder.reference(Practitioner.name)" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "recorder.reference(Practitioner.name)" ];
         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 "XPN" ]         ];
         fhir:ConceptMap.group.element.target.product [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "antlr" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "IF IAM-15 NOT VALUED" ]         ], [
           fhir:index 1;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "narrative" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "If IAM-15 is not valued, not always 100% clear this is a practitioner, so much review locally." ]         ]       ]     ], [
       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 "XPN" ]         ], [
           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 "IAM-14" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Reported By" ];
       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 "HumanName" ]           ], [
             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 "recorder.reference(Patient[1].name)" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "recorder.reference(Patient[1].name)" ];
         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 "XPN" ]         ];
         fhir:ConceptMap.group.element.target.product [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "antlr" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "IF IAM-15 EQUALS \"SEL\"" ]         ]       ]     ], [
       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 "XPN" ]         ], [
           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 "IAM-14" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Reported By" ];
       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 "HumanName" ]           ], [
             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 "recorder.reference(RelatedPerson.name)" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "recorder.reference(RelatedPerson.name)" ];
         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 "XPN" ]         ];
         fhir:ConceptMap.group.element.target.product [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "antlr" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "IF IAM-15 VALUED AND NOT \"SEL\"" ]         ]       ]     ], [
       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 "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 "IAM-15" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Relationship to Patient" ];
       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 "recorder.reference(RelatedPerson.relationship)" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "recorder.reference(RelatedPerson.relationship)" ];
         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 "Relationship" ]         ];
         fhir:ConceptMap.group.element.target.product [
           fhir:index 0;
           fhir:ConceptMap.group.element.target.dependsOn.property [ fhir:value "antlr" ];
           fhir:ConceptMap.group.element.target.dependsOn.value [ fhir:value "IF IAM-15 VALUED AND NOT \"SEL\"" ]         ]       ]     ], [
       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 "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 "IAM-17" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Allergy Clinical Status" ];
       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 "clinicalStatus" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "clinicalStatus" ];
         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 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 "IAM-27" ];
       fhir:ConceptMap.group.element.display [ fhir:value "Clinician Identified 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:Extension.url [ fhir:value "http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo" ]         ];
         fhir:ConceptMap.group.element.target.code [ fhir:value "code[1]" ];
         fhir:ConceptMap.group.element.target.display [ fhir:value "code[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]" ]         ]       ]     ]
  ].

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

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