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

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

<http://hl7.org/fhir/ConceptMap/message-adt-a04-to-bundle> a fhir:ConceptMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "message-adt-a04-to-bundle"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p class=\"res-header-id\">\n        <b>Generated Narrative: ConceptMap message-adt-a04-to-bundle</b>\n      </p>\n      <a name=\"message-adt-a04-to-bundle\"> </a>\n      <a name=\"hcmessage-adt-a04-to-bundle\"> </a>\n      <p>Mapping from (not specified) to (not specified)</p>\n      <br/>\n      <p>\n        <b>Group 1 </b>Mapping from \n        <code>unspecified code system</code> to \n        <code>unspecified code system</code>\n      </p>\n      <table class=\"grid\">\n        <tr>\n          <td>\n            <b>Source Code</b>\n          </td>\n          <td>\n            <b>Relationship</b>\n          </td>\n          <td>\n            <b>Target Code</b>\n          </td>\n          <td>\n            <b>segment-map</b>\n          </td>\n          <td>\n            <b>references</b>\n          </td>\n          <td>\n            <b>antlr</b>\n          </td>\n          <td>\n            <b>fhirpath</b>\n          </td>\n          <td>\n            <b>narrative</b>\n          </td>\n        </tr>\n        <tr>\n          <td>ADT_A04.MSH (Message Header)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Bundle</td>\n          <td>MSH[Bundle]</td>\n          <td/>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04.MSH (Message Header)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>MessageHeader[1]</td>\n          <td>MSH[MessageHeader]</td>\n          <td/>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04.MSH (Message Header)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Provenance[1]</td>\n          <td>MSH[Provenance]</td>\n          <td>Provenance.target=Bundle; Provenance.target=MessageHeader[MSH]</td>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04.SFT (Software Segment)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>MessageHeader[1]</td>\n          <td>SFT[MessageHeader]</td>\n          <td/>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04.EVN (Event Type)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Provenance[3]</td>\n          <td>EVN[Provenance]</td>\n          <td>Provenance.target=Bundle; Provenance.target=MessageHeader[MSH]</td>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04.PID (Patient Identification)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Patient[1]</td>\n          <td>PID[Patient]</td>\n          <td/>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04.PD1 (Additional Demographics)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Patient[1]</td>\n          <td>PD1[Patient]</td>\n          <td/>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04:follow:PID.ARV (Access Restrictions)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Patient[1]</td>\n          <td>ARV[Patient]</td>\n          <td>Resource=Patient[1]</td>\n          <td>IF ARV-1 IN (\"PID\", \"PD1\") AND ARV-3 NOT VALUED</td>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04:follow:PID.ROL (Role)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Patient[1]</td>\n          <td>ROL[Patient-PractitionerRole]</td>\n          <td/>\n          <td>IF ROL-3.1 EQUALS \"PP\" AND ROL-3.3 EQUALS \"HL70443\"</td>\n          <td>(element(\"3.1\")=\"PP\")and(element(\"3.3\")=\"HL70443\")</td>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04:follow:PID.ROL (Role)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>RelatedPerson[1]</td>\n          <td>ROL[RelatedPerson]</td>\n          <td>RelatedPerson[1].patient.reference=Patient[1].id</td>\n          <td>IF ROL-3.1 NOT EQUALS  \"PP\" OR ROL-3.3 NOT EQUALS \"HL70443\"</td>\n          <td>(element(\"3.1\")!=\"PP\")or(element(\"3.3\")!=\"HL70443\")</td>\n          <td>While most likely all other HL70443 values go to RelatedPerson, the implementation needs to determine whether that is fully accurate.</td>\n        </tr>\n        <tr>\n          <td>ADT_A04.NEXT_OF_KIN.NK1 (Next of Kin / Associated Parties)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>RelatedPerson[2]</td>\n          <td>NK1[RelatedPerson]</td>\n          <td>RelatedPerson[2].patient.reference=Patient[1].id</td>\n          <td/>\n          <td/>\n          <td>The FHIR location will depend on the nature of the data being exchanged and how the systems use next of kin data</td>\n        </tr>\n        <tr>\n          <td>ADT_A04.NEXT_OF_KIN.NK1 (Next of Kin / Associated Parties)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Patient[1]</td>\n          <td>NK1[Patient]</td>\n          <td/>\n          <td/>\n          <td/>\n          <td>The FHIR location will depend on the nature of the data being exchanged and how the systems use next of kin data</td>\n        </tr>\n        <tr>\n          <td>ADT_A04.PV1 (Patient Visit)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Encounter[1]</td>\n          <td>PV1[Encounter]</td>\n          <td>Encounter[1].subject.reference=Patient[1].id</td>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04.PV1 (Patient Visit)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Patient[1]</td>\n          <td>PV1[Patient]</td>\n          <td/>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04.PV2 (Patient Visit - Additional Info.)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Encounter[1]</td>\n          <td>PV2[Encounter]</td>\n          <td/>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04:follow:PV1.ARV (Access Restrictions)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Encounter[1]</td>\n          <td>ARV[Encounter]</td>\n          <td>Resource=Encounter[1]</td>\n          <td>IF ARV-1 IN (\"PV1\", \"PV2\") AND ARV-3 NOT VALUED</td>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04.ROL (Role)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Encounter[1]</td>\n          <td>ROL[Encounter-PractitionerRole]</td>\n          <td/>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04.OBSERVATIONADT_A04.OBX (Observation/Result)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Observation</td>\n          <td>OBX[Observation]</td>\n          <td>Observation.subject.reference=Patient[1].id</td>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04.OBSERVATIONADT_A04.OBX (Observation/Result)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Observation</td>\n          <td>OBX[Observation-Component]</td>\n          <td>Observation.subject.reference=Patient[1].id</td>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04.AL1 (Allergy Information)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>AllergyIntolerance</td>\n          <td>AL1[AllergyIntolerance]</td>\n          <td>AllergyIntolerance.patient.reference=Patient[1].id</td>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04.DG1 (Diagnosis Information)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Condition</td>\n          <td>DG1[Condition]</td>\n          <td>Condition.subject.reference=Patient[1].id</td>\n          <td/>\n          <td/>\n          <td>If in context of the patient</td>\n        </tr>\n        <tr>\n          <td>ADT_A04.DG1 (Diagnosis Information)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Encounter[1]</td>\n          <td>DG1[Encounter]</td>\n          <td>Encounter[1].diagnosis.reference=Condition[1].id</td>\n          <td>IF DG1-6 EQUALS \"admitting\"</td>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04.DG1 (Diagnosis Information)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Encounter[1]</td>\n          <td>DG1[Encounter]</td>\n          <td>Encounter[1].diagnosis.reference=Condition[1].id</td>\n          <td/>\n          <td/>\n          <td>If in context of an encounter</td>\n        </tr>\n        <tr>\n          <td>ADT_A04.DG1 (Diagnosis Information)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>EpisodeOfCare[1]</td>\n          <td>DG1[EpisodeOfCare]</td>\n          <td>EpisodeOfCare.diagnosis.reference=Condition[1].id</td>\n          <td/>\n          <td/>\n          <td>If in context of an episode of care</td>\n        </tr>\n        <tr>\n          <td>ADT_A04.PROCEDUREADT_A04.PR1 (Procedures)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Procedure</td>\n          <td>PR1[Procedure]</td>\n          <td>Procedure.subject.reference=Patient[1].id</td>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04.INSURANCEADT_A04.IN1 (Insurance)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Coverage[1]</td>\n          <td>IN1[Coverage]</td>\n          <td>Coverage.subscriber.reference=Patient[1].id</td>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04.INSURANCEADT_A04.IN2 (Insurance Additional Info.)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Coverage[1]</td>\n          <td>IN2[Coverage]</td>\n          <td/>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n        <tr>\n          <td>ADT_A04.INSURANCEADT_A04.IN3 (Insurance Additional Info - Cert.)</td>\n          <td>\n            <a href=\"codesystem-concept-map-relationship.html#equivalent\" title=\"equivalent\">is equivalent to</a>\n          </td>\n          <td>Coverage[1]</td>\n          <td>IN3[Coverage]</td>\n          <td/>\n          <td/>\n          <td/>\n          <td/>\n        </tr>\n      </table>\n    </div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "vocab"
     ]
  ] ) ; # 
  fhir:url [
     fhir:v "http://hl7.org/fhir/uv/v2mappings/message-adt-a04-to-bundle"^^xsd:anyURI ;
     fhir:l <http://hl7.org/fhir/uv/v2mappings/message-adt-a04-to-bundle>
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.14.2" ]
  ] ) ; # 
  fhir:version [ fhir:v "6.0.0-ballot4"] ; # 
  fhir:name [ fhir:v "MessageADT_A04toBundle"] ; # 
  fhir:title [ fhir:v "MessageADT_ A04to Bundle"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v true] ; # 
  fhir:date [ fhir:v "2020-08-12"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "HL7 International / Terminology Infrastructure"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/Vocab" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "This ConceptMap represents a mapping from the HL7 V2 Message ADT_A04 to the FHIR Message Bundle."] ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ;
         fhir:l <http://unstats.un.org/unsd/methods/m49/m49.htm>
       ] ;
       fhir:code [ fhir:v "001" ]
     ] )
  ] ) ; # 
  fhir:copyright [ fhir:v "Copyright (c) 2020, HL7 International, Inc., All Rights Reserved."] ; # 
  fhir:property ( [
     fhir:code [ fhir:v "segment-map" ] ;
     fhir:type [ fhir:v "string" ]
  ] [
     fhir:code [ fhir:v "references" ] ;
     fhir:type [ fhir:v "string" ]
  ] [
     fhir:code [ fhir:v "antlr" ] ;
     fhir:type [ fhir:v "string" ]
  ] [
     fhir:code [ fhir:v "fhirpath" ] ;
     fhir:type [ fhir:v "string" ]
  ] [
     fhir:code [ fhir:v "narrative" ] ;
     fhir:type [ fhir:v "string" ]
  ] ) ; # 
  fhir:group ( [
     fhir:element ( [
       fhir:code [ fhir:v "ADT_A04.MSH" ] ;
       fhir:display [ fhir:v "Message Header" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Bundle" ] ;
         fhir:display [ fhir:v "Bundle" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "MSH[Bundle]"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.MSH" ] ;
       fhir:display [ fhir:v "Message Header" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "MessageHeader[1]" ] ;
         fhir:display [ fhir:v "MessageHeader[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "MSH[MessageHeader]"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.MSH" ] ;
       fhir:display [ fhir:v "Message Header" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Provenance[1]" ] ;
         fhir:display [ fhir:v "Provenance[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "MSH[Provenance]"
           ]
         ] [
           fhir:code [ fhir:v "references" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "Provenance.target=Bundle; Provenance.target=MessageHeader[MSH]"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.SFT" ] ;
       fhir:display [ fhir:v "Software Segment" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "MessageHeader[1]" ] ;
         fhir:display [ fhir:v "MessageHeader[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "SFT[MessageHeader]"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.EVN" ] ;
       fhir:display [ fhir:v "Event Type" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Provenance[3]" ] ;
         fhir:display [ fhir:v "Provenance[3]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "EVN[Provenance]"
           ]
         ] [
           fhir:code [ fhir:v "references" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "Provenance.target=Bundle; Provenance.target=MessageHeader[MSH]"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.PID" ] ;
       fhir:display [ fhir:v "Patient Identification" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Patient[1]" ] ;
         fhir:display [ fhir:v "Patient[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "PID[Patient]"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.PD1" ] ;
       fhir:display [ fhir:v "Additional Demographics" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Patient[1]" ] ;
         fhir:display [ fhir:v "Patient[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "PD1[Patient]"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04:follow:PID.ARV" ] ;
       fhir:display [ fhir:v "Access Restrictions" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Patient[1]" ] ;
         fhir:display [ fhir:v "Patient[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "ARV[Patient]"
           ]
         ] [
           fhir:code [ fhir:v "references" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "Resource=Patient[1]"
           ]
         ] [
           fhir:code [ fhir:v "antlr" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "IF ARV-1 IN (\"PID\", \"PD1\") AND ARV-3 NOT VALUED"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04:follow:PID.ROL" ] ;
       fhir:display [ fhir:v "Role" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Patient[1]" ] ;
         fhir:display [ fhir:v "Patient[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "ROL[Patient-PractitionerRole]"
           ]
         ] [
           fhir:code [ fhir:v "antlr" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "IF ROL-3.1 EQUALS \"PP\" AND ROL-3.3 EQUALS \"HL70443\""
           ]
         ] [
           fhir:code [ fhir:v "fhirpath" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "(element(\"3.1\")=\"PP\")and(element(\"3.3\")=\"HL70443\")"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04:follow:PID.ROL" ] ;
       fhir:display [ fhir:v "Role" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "RelatedPerson[1]" ] ;
         fhir:display [ fhir:v "RelatedPerson[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "ROL[RelatedPerson]"
           ]
         ] [
           fhir:code [ fhir:v "references" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "RelatedPerson[1].patient.reference=Patient[1].id"
           ]
         ] [
           fhir:code [ fhir:v "antlr" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "IF ROL-3.1 NOT EQUALS  \"PP\" OR ROL-3.3 NOT EQUALS \"HL70443\""
           ]
         ] [
           fhir:code [ fhir:v "fhirpath" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "(element(\"3.1\")!=\"PP\")or(element(\"3.3\")!=\"HL70443\")"
           ]
         ] [
           fhir:code [ fhir:v "narrative" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "While most likely all other HL70443 values go to RelatedPerson, the implementation needs to determine whether that is fully accurate."
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.NEXT_OF_KIN.NK1" ] ;
       fhir:display [ fhir:v "Next of Kin / Associated Parties" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "RelatedPerson[2]" ] ;
         fhir:display [ fhir:v "RelatedPerson[2]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "NK1[RelatedPerson]"
           ]
         ] [
           fhir:code [ fhir:v "references" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "RelatedPerson[2].patient.reference=Patient[1].id"
           ]
         ] [
           fhir:code [ fhir:v "narrative" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "The FHIR location will depend on the nature of the data being exchanged and how the systems use next of kin data"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.NEXT_OF_KIN.NK1" ] ;
       fhir:display [ fhir:v "Next of Kin / Associated Parties" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Patient[1]" ] ;
         fhir:display [ fhir:v "Patient[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "NK1[Patient]"
           ]
         ] [
           fhir:code [ fhir:v "narrative" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "The FHIR location will depend on the nature of the data being exchanged and how the systems use next of kin data"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.PV1" ] ;
       fhir:display [ fhir:v "Patient Visit" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Encounter[1]" ] ;
         fhir:display [ fhir:v "Encounter[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "PV1[Encounter]"
           ]
         ] [
           fhir:code [ fhir:v "references" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "Encounter[1].subject.reference=Patient[1].id"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.PV1" ] ;
       fhir:display [ fhir:v "Patient Visit" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Patient[1]" ] ;
         fhir:display [ fhir:v "Patient[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "PV1[Patient]"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.PV2" ] ;
       fhir:display [ fhir:v "Patient Visit - Additional Info." ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Encounter[1]" ] ;
         fhir:display [ fhir:v "Encounter[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "PV2[Encounter]"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04:follow:PV1.ARV" ] ;
       fhir:display [ fhir:v "Access Restrictions" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Encounter[1]" ] ;
         fhir:display [ fhir:v "Encounter[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "ARV[Encounter]"
           ]
         ] [
           fhir:code [ fhir:v "references" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "Resource=Encounter[1]"
           ]
         ] [
           fhir:code [ fhir:v "antlr" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "IF ARV-1 IN (\"PV1\", \"PV2\") AND ARV-3 NOT VALUED"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.ROL" ] ;
       fhir:display [ fhir:v "Role" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Encounter[1]" ] ;
         fhir:display [ fhir:v "Encounter[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "ROL[Encounter-PractitionerRole]"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.OBSERVATIONADT_A04.OBX" ] ;
       fhir:display [ fhir:v "Observation/Result" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Observation" ] ;
         fhir:display [ fhir:v "Observation" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "OBX[Observation]"
           ]
         ] [
           fhir:code [ fhir:v "references" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "Observation.subject.reference=Patient[1].id"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.OBSERVATIONADT_A04.OBX" ] ;
       fhir:display [ fhir:v "Observation/Result" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Observation" ] ;
         fhir:display [ fhir:v "Observation" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "OBX[Observation-Component]"
           ]
         ] [
           fhir:code [ fhir:v "references" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "Observation.subject.reference=Patient[1].id"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.AL1" ] ;
       fhir:display [ fhir:v "Allergy Information" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "AllergyIntolerance" ] ;
         fhir:display [ fhir:v "AllergyIntolerance" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "AL1[AllergyIntolerance]"
           ]
         ] [
           fhir:code [ fhir:v "references" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "AllergyIntolerance.patient.reference=Patient[1].id"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.DG1" ] ;
       fhir:display [ fhir:v "Diagnosis Information" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Condition" ] ;
         fhir:display [ fhir:v "Condition" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "DG1[Condition]"
           ]
         ] [
           fhir:code [ fhir:v "references" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "Condition.subject.reference=Patient[1].id"
           ]
         ] [
           fhir:code [ fhir:v "narrative" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "If in context of the patient"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.DG1" ] ;
       fhir:display [ fhir:v "Diagnosis Information" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Encounter[1]" ] ;
         fhir:display [ fhir:v "Encounter[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "DG1[Encounter]"
           ]
         ] [
           fhir:code [ fhir:v "references" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "Encounter[1].diagnosis.reference=Condition[1].id"
           ]
         ] [
           fhir:code [ fhir:v "antlr" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "IF DG1-6 EQUALS \"admitting\""
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.DG1" ] ;
       fhir:display [ fhir:v "Diagnosis Information" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Encounter[1]" ] ;
         fhir:display [ fhir:v "Encounter[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "DG1[Encounter]"
           ]
         ] [
           fhir:code [ fhir:v "references" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "Encounter[1].diagnosis.reference=Condition[1].id"
           ]
         ] [
           fhir:code [ fhir:v "narrative" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "If in context of an encounter"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.DG1" ] ;
       fhir:display [ fhir:v "Diagnosis Information" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "EpisodeOfCare[1]" ] ;
         fhir:display [ fhir:v "EpisodeOfCare[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "DG1[EpisodeOfCare]"
           ]
         ] [
           fhir:code [ fhir:v "references" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "EpisodeOfCare.diagnosis.reference=Condition[1].id"
           ]
         ] [
           fhir:code [ fhir:v "narrative" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "If in context of an episode of care"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.PROCEDUREADT_A04.PR1" ] ;
       fhir:display [ fhir:v "Procedures" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Procedure" ] ;
         fhir:display [ fhir:v "Procedure" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "PR1[Procedure]"
           ]
         ] [
           fhir:code [ fhir:v "references" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "Procedure.subject.reference=Patient[1].id"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.INSURANCEADT_A04.IN1" ] ;
       fhir:display [ fhir:v "Insurance" ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Coverage[1]" ] ;
         fhir:display [ fhir:v "Coverage[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "IN1[Coverage]"
           ]
         ] [
           fhir:code [ fhir:v "references" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "Coverage.subscriber.reference=Patient[1].id"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.INSURANCEADT_A04.IN2" ] ;
       fhir:display [ fhir:v "Insurance Additional Info." ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Coverage[1]" ] ;
         fhir:display [ fhir:v "Coverage[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "IN2[Coverage]"
           ]
         ] )
       ] )
     ] [
       fhir:code [ fhir:v "ADT_A04.INSURANCEADT_A04.IN3" ] ;
       fhir:display [ fhir:v "Insurance Additional Info - Cert." ] ;
       fhir:target ( [
         fhir:code [ fhir:v "Coverage[1]" ] ;
         fhir:display [ fhir:v "Coverage[1]" ] ;
         fhir:relationship [ fhir:v "equivalent" ] ;
         fhir:property ( [
           fhir:code [ fhir:v "segment-map" ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "IN3[Coverage]"
           ]
         ] )
       ] )
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

