ABCDEFGHIJKLMNOPQRSTUVWXYZAA
1
ouCondition (IF True)HL7 FHIRComments
2
Sort OrderIdentifierSyntaxNameCardinality - MinCardinality - MaxComputable ANTLRComputable FHIRPathNarrativePrimary TargetSegment MapReferences
3
1OML_O21.MSHMSHMessage Header11BundleMSH[Bundle]
4
1OML_O21.MSHMSHMessage Header11MessageHeader[1]MSH[MessageHeader]Processing of the MSH segment results in the creation of a new MessageHeader resource
5
1OML_O21.MSHMSHMessage Header11If there is a source in MSH-4, or known based on the configuration.Provenance[1]MSH[Provenance-Source]Provenance[1].target.reference=Bundle.id; Provenance[1].target.reference=MessageHeader[1].idIf the FHIR transformation does not yield a FHIR message, but only a set of resource (APIs, repository, etc.) than one should consider attaching this Provenance resource instance to the relevant FHIR resources generated.
6
1OML_O21.MSHMSHMessage Header11Provenance[2]MSH[Provenance-Transformation]Provenance[2].target.reference=Bundle.idIf the FHIR transformation does not yield a FHIR Bunlde, but only a set of resource (APIs, repository, etc.) than one should consider attaching this Provenance resource instance to the relevant FHIR resources generated.
7
2OML_O21.SFT[{SFT}]Software0-1If the software does not represent the original source systemProvenance[1].entity.what(Device)SFT[Device]Provenance[1].entity.what.reference=Device.id
Provenance[1].entity.role="derivation"
8
2OML_O21.SFT[{SFT}]Software0-1If the software represents the original source systemProvenance[1].entity.what(Device)SFT[Device]Provenance[1].entity.what.reference=Device.id
Provenance[1].entity.role="source"
9
3OML_O21.UAC[ UAC ]User Authentication Credential01ic
10
4OML_O21.NTE[{NTE}]Notes and Comments (for Header)0-1
11
5OML_O21.PATIENT[--- PATIENT begin01
12
5.1OML_O21.PATIENT.PIDPIDPatient Identification11Patient[1]PID[Patient]Processing of the PID segment results in the creation of a new Patient resource
13
5.1OML_O21.PATIENT.PIDPIDPatient Identification11IF PID-33 AND PID-34 VALUEDOne may drop PID-33 from the condition if PID-34 Last Update Facility is still sufficient without a date.Provenance[4]PID[Provenance-Patient]
Provenance.target.reference=Patient[1].id
14
5.2OML_O21.PATIENT.PD1[PD1]Additional Demographics01Patient[1]PD1[Patient]Incorporate PD1 content into the Patient created from the PID segment.
15
5.2OML_O21.PATIENT.PD1[PD1]Additional Demographics01IF PD1-7 VALUEDObservation[2]PD1[Observation-LivingWill]
Observation[2].subject.reference=Patient[1].id
16
5.3OML_O21.PATIENT.PRT[{PRT}]Participation (for Patient)0-1IF PRT-4.1 EQUALS "PP" AND PRT-4.3 EQUALS "HL70443"(element("4.1")="PP")and(element("4.3")="HL70443")PractitionerRole[1]PRT[PractitionerRole]Patient[1].generalPractitioner.reference=PractitionerRole[1].idIncorporate PRT content into the Patient created from the PID segment when the PRT contains practitioner related data.
17
5.3OML_O21.PATIENT.PRT[{PRT}]Participation (for Patient)0-1IF PRT-4.1 NOT EQUALS "PP" OR PRT-4.3 NOT EQUALS "HL70443"(element("4.1"!)="PP")or(element("4.3")!="HL70443")RelatedPerson[1]PRT[RelatedPerson]RelatedPerson[1].patient.reference=Patient[1].id
18
5.4OML_O21.PATIENT.NTE[{NTE}]Notes and Comments (for Patient ID)0-1
19
5.6OML_O21.PATIENT.NK1[{NK1}]Next of Kin/Associated Parties0-1The FHIR location will depend on the nature of the data being exchanged and how the systems use next of kin dataRelatedPerson[2]NK1[RelatedPerson]RelatedPerson[2].patient.reference=Patient[1].idTypically, each NK1 will be translated to either a new RelatedPerson resource or added as a new occurrence of Patient.contact, but it's possible to insert the NK1 data into both structures.
20
5.6OML_O21.PATIENT.NK1[{NK1}]Next of Kin/Associated Parties0-1The FHIR location will depend on the nature of the data being exchanged and how the systems use next of kin dataPatient[1]NK1[Patient]Typically, each NK1 will be translated to either a new RelatedPerson resource or added as a new occurrence of Patient.contact, but it's possible to insert the NK1 data into both structures.
21
5.7OML_O21.PATIENT.ARV[{ARV}]Access Restrictions0-1
22
5.8OML_O21.PATIENT.PATIENT_VISIT[--- PATIENT_VISIT begin01
23
5.8.1OML_O21.PATIENT.PATIENT_VISIT.PV1PV1Patient Visit11Encounter[1]PV1[Encounter]Encounter.subject=Patient[PID]Processing of the PV1 segment results in the creation of a new Encounter resource
24
5.8.1OML_O21.PATIENT.PATIENT_VISIT.PV1PV1Patient Visit11IF PV1-43 VALUEDBasicPV1[Basic-EncounterHistory]
Basic.extension-EncounterHistory.subject.reference=Patient[1].id
25
5.8.1OML_O21.PATIENT.PATIENT_VISIT.PV1PV1Patient Visit11Patient[1]PV1[Patient]
26
5.8.1OML_O21.PATIENT.PATIENT_VISIT.PV1PV1Patient Visit11IF PV1-20 VALUECoverage[1]PV1[Coverage]
Coverage.beneficiary.reference=Patient[1].id
27
5.8.2OML_O21.PATIENT.PATIENT_VISIT.PV2[ PV2 ]Patient Visit- Additional Info01Encounter[1]PV2[Encounter]Incorporate PV2 content into the Encounter created from the PV1 segment.
28
5.8.3OML_O21.PATIENT.PATIENT_VISIT.PRT[{PRT}]Participation (for Patient Visit)0-1PractitionerRole[2]PRT[PractitionerRole]Encounter[1].participant.individual.reference=PractitionerRole[2].idIncorporate PRT content into the Encounter created from the PV1 segment.
29
5.8.4/OML_O21.PATIENT.PATIENT_VISIT]--- PATIENT_VISIT end
30
5.9OML_O21.PATIENT.INSURANCE[{--- INSURANCE begin0-1
31
5.9.1OML_O21.PATIENT.INSURANCE.IN1IN1Insurance11Coverage[1]IN1[Coverage]Coverage.subscriber=Patient[PID]Processing of the IN1 segment results in the creation of a new Coverage resource
32
5.9.2OML_O21.PATIENT.INSURANCE.IN2[ IN2 ]Insurance Additional Information01
33
5.9.3OML_O21.PATIENT.INSURANCE.IN3[ IN3 ]Insurance Additional Information, Certification01Coverage[1]IN3[CareTeam]
34
5.9/OML_O21.PATIENT.INSURANCE}]--- INSURANCE end
35
5.10OML_O21.PATIENT.GT1[ GT1 ]Guarantor01
36
5.11OML_O21.PATIENT.AL1[{AL1}]Allergy Information0-1AllergyIntoleranceAL1[AllergyIntolerance]AllergyIntolerance.patient=Patient[PID]Processing of the AL1 segment results in the creation of a new AllergyIntolerance resource
37
5.12/OML_O21.PATIENT]--- PATIENT end
38
6OML_O21.ORDER{--- ORDER begin1-1
39
6.1OML_O21.ORDER.ORCORCCommon Order11ServiceRequest[1]ORC[ServiceRequest]ServiceRequest.subject=Patient[PID]Processing of each ORC segment results in the creation of a new ServiceRequest resource
40
6.1OML_O21.ORDER.ORCORCCommon Order11Provenance[3]ORC[Provenance]Provenance.target=ServiceRequest[ORC]Using Provenance is the preferred way, but a local implementation may decide to add extensions to the main resource. As the use and guidance of Provenance matures we wil revisit this later.
41
6.2OML_O21.ORDER.PRT[{PRT}]Participation (for Common Order)0-1IF PRT-4.1 EQUALS "OP" AND PRT-4.3 EQUALS "HL70443"(element("4.1")="OP")and(element("4.3")="HL70443")PractitionerRole[3]PRT[PractitionerRole]ServiceRequest[1].requester.reference=PractitionerRole[3].id
42
6.3OML_O21.ORDER.TIMING[{--- TIMING begin0-1
43
6.3.1OML_O21.ORDER.TIMING.TQ1TQ1Timing/Quantity11ServiceRequest[1]TQ1[ServiceRequest]
44
6.3.2OML_O21.ORDER.TIMING.TQ2[{TQ2}]Timing/Quantity Order Sequence0-1
45
6.3.3/OML_O21.ORDER.TIMING}]--- TIMING end
46
6.4OML_O21.ORDER.OBSERVATION_REQUEST[--- OBSERVATION_REQUEST begin01
47
6.4.1OML_O21.ORDER.OBSERVATION_REQUEST.OBROBRObservation Request11ServiceRequest[1]OBR[ServiceRequest]Incorporate OBR content into the ServiceRequest created from the ORC segment in the same segment group.
48
6.4.1OML_O21.ORDER.OBSERVATION_REQUEST.OBROBRObservation Request11Specimen[each]OBR[Specimen]
49
6.4.2OML_O21.ORDER.OBSERVATION_REQUEST.TCD[ TCD ]Test Code Details01
50
6.4.3OML_O21.ORDER.OBSERVATION_REQUEST.NTE[{NTE}]Notes and Comments (for Detail)0-1ServiceRequest[1]NTE[ServiceRequest]
51
6.4.4OML_O21.ORDER.OBSERVATION_REQUEST.PRT[{PRT}]Participation (for Observation Request)0-1IF PRT-4.1 EQUALS "SC" AND PRT-4.3 EQUALS "HL70443"(element("4.1")="SC")and(element("4.3")="HL70443")PractitionerRole[4]PRT[PractitionerRole]ServiceRequest[1].specimen[1](Specimen.collection.collector.reference)=PractitionerRole[4].id
52
6.4.4OML_O21.ORDER.OBSERVATION_REQUEST.PRT[{PRT}]Participation (for Observation Request)0-1IF PRT-4.1 EQUALS "OP" AND PRT-4.3 EQUALS "HL70443"(element("4.1")="OP")and(element("4.3")="HL70443")PractitionerRole[3]PRT[PractitionerRole]ServiceRequest[1].requester.reference=PractitionerRole[3].id
53
6.4.5OML_O21.ORDER.OBSERVATION_REQUEST.CTD[ CTD ]Contact Data01
54
6.4.6OML_O21.ORDER.OBSERVATION_REQUEST.DG1[{DG1}]Diagnosis0-1Condition[1]DG1[Condition]ServiceRequest[1].reasonReference.reference=Condition[1].id; Condition[1].subject.reference=Patient[1].idProcessing of the DG1 segment results in the creation of a new Condition resource which is referenced in the ServiceRequest created by the ORC segment
55
6.4.7OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION[{--- OBSERVATION begin0-1
56
6.4.7.1OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.OBXOBXObservation/Result11IF OBX-5 LST.count LESS THAN OR EQUALS 1 OR OBX-2 IS "NA"Observation[1]OBX[Observation]ServiceRequest[1].supportingInfo.reference=Observation[1].id; Observation[1].subject.id=Patient[1].id
57
6.4.7.1OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.OBXOBXObservation/Result11IF OBX-5 LST.count GREATER THAN 1 AND OBX-2 IS NOT "NA"Observation[1]OBX[Observation-Component]ServiceRequest[1].supportingInfo.reference=Observation[1].id; Observation[1].subject.id=Patient[1].id
58
6.4.7.2OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.PRT[{PRT}]Participation (for OBX)0-1IF PRT-10 VALUEDDevice[1]PRT[Device]Observation[1].device.reference=Device.id
59
6.4.7.2OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.PRT[{PRT}]Participation (for OBX)0-1IF PRT-9 VALUED OR IF PRT-14 VALUEDObservation[1]PRT[Observation-Location]Incorporate PRT content into the Observation created from the OBX segment in the same segment group when it represents observation location information.
60
6.4.7.2OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.PRT[{PRT}]Participation (for OBX)0-1IF PRT-5 VALUEDPractitionerRole[7]PRT[PractitionerRole]Observation[1].performer.reference=PractitionerRole[7].idIncorporate PRT content into the Observation created from the OBX segment in the same segment group when it represents observation practitioner information.
61
6.4.7.3OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.TCD[ TCD ]Test Code Detail01
62
6.4.7.4OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.NTE[{NTE}]Notes and Comments (for Results)0-1Observation[1]NTE[Observation]
63
6.4.7.5/OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION}]--- OBSERVATION end
64
6.4.8OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN[{--- SPECIMEN begin0-1
65
6.4.8.1OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.SPMSPMSpecimen11SpecimenSPM[Specimen]ServiceRequest[1].specimen.reference=Specimen[SPM].id
66
6.4.8.1OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.SPMSPMSpecimen11IF SPM-21 VALUEDServiceRequest[1].specimen.#ext-rejectReason#=SPM-21This provides a reject reason for the specimen in context of the specific test as the specimen may still be usable for other tests.
67
6.4.8.2OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.SPECIMEN_OBSERVATION[{--- SPECIMEN_OBSERVATION begin0-1
68
6.4.8.2.1OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.SPECIMEN_OBSERVATION.OBXOBXObservation/Result related to specimen11
69
6.4.8.2.2OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.SPECIMEN_OBSERVATION.PRT[{PRT}]Participation (for Specimen Observation)0-1
70
6.4.8.2.3/OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.SPECIMEN_OBSERVATION}]--- SPECIMEN_OBSERVATION end
71
6.4.8.3OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.CONTAINER[{--- CONTAINER begin0-1
72
6.4.8.3.1OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.CONTAINER.SACSACSpecimen Container11
73
6.4.8.3.2OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.CONTAINER.CONTAINER_OBSERVATION[{--- CONTAINER_OBSERVATION begin0-1
74
6.4.8.3.2.1OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.CONTAINER.CONTAINER_OBSERVATION.OBXOBXObservation/Result related to container11
75
6.4.8.3.2.2OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.CONTAINER.CONTAINER_OBSERVATION.PRT[{PRT}]Participation (for Container Observation)0-1
76
6.4.8.3.2.3/OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.CONTAINER.CONTAINER_OBSERVATION}]--- CONTAINER_OBSERVATION end
77
6.4.8.3.3/OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.CONTAINER}]--- CONTAINER end
78
6.4.8.4/OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN}]--- SPECIMEN end
79
6.4.9OML_O21.ORDER.OBSERVATION_REQUEST.SGH[SGH]Segment Group Header
80
6.4.10OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT[{--- PRIOR_RESULT begin
81
6.4.10.1OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.PATIENT_PRIOR[--- PATIENT_PRIOR begin
82
6.4.10.1.2OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.PATIENT_PRIOR.PIDPIDPatient Identification– previous result
83
6.4.10.1.3OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.PATIENT_PRIOR.PD1[PD1]Additional Demographics – previous result
84
6.4.10.1.4OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.PATIENT_PRIOR.PRT[{PRT}]Participation (for Patient Prior)
85
6.4.10.1.5OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.PATIENT_PRIOR.ARV[{ARV}]Access Restrictions
86
6.4.10.1.6/OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.PATIENT_PRIOR]--- PATIENT_PRIOR end
87
6.4.10.2OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.RESULT_VISIT_PRIOR[--- PATIENT_VISIT_PRIOR begin
88
6.4.10.2.1OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.RESULT_VISIT_PRIOR.PV1PV1Patient Visit– previous result
89
6.4.10.2.2OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.RESULT_VISIT_PRIOR.PV2[ PV2 ]Patient Visit Add. Info – previous result
90
6.4.10.2.3OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.RESULT_VISIT_PRIOR.PRT[{PRT}]Participation (for Patient Visit Prior)
91
6.4.10.2.4/OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.RESULT_VISIT_PRIOR]--- PATIENT_VISIT_PRIOR end
92
6.4.10.3/OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.AL1[{AL1}]Allergy Information- previous result
93
6.4.10.4OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR{--- ORDER_PRIOR begin
94
6.4.10.4.1OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.ORCORCCommon Order- previous result
95
6.4.10.4.2OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.PRT[{PRT}]Participation
96
6.4.10.4.3OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.OBROBROrder Detail- previous result
97
6.4.10.4.4OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.NTE[{NTE}]Notes and Comments- previous result
98
6.4.10.4.5OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.PRT[{PRT}]Participation (for Order Prior)
99
6.4.10.4.6OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.TIMING_PRIOR[{--- TIMING_PRIOR begin
100
6.4.10.4.6.1
OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.TIMING_PRIOR.TQ1TQ1Timing/Quantity