Message OML_O21 in FHIR

Which segments of OML_O21 become which FHIR R4 resources in the Bundle, from the HL7 Version 2 to FHIR guide. Groups are shown as they appear in the structure.

HL7 v2 definition
Definition of OML_O21 in HL7 v2 2.8
Resources produced
BundleMessageHeaderProvenancePatientObservationPractitionerRoleRelatedPersonEncounterBasicCoverageAllergyIntoleranceServiceRequestSpecimenConditionDevice
SegmentNameFHIR elementConditions and notes
Message HeaderBundle
MessageHeader[1]
Provenance[1]
If there is a source in MSH-4, or known based on the configuration.
Provenance[2]
Software SegmentProvenance[1].entity.what(Device)
If the software does not represent the original source system
Provenance[1].entity.what(Device)
If the software represents the original source system
PIDPATIENT
Patient IdentificationPatient[1]
Provenance[4]
If IF 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.
PD1PATIENT
Patient Additional DemographicPatient[1]
Observation[2]
If IF PD1-7 VALUED
PRTPATIENT
Participation InformationPractitionerRole[1]
If IF PRT-4.1 EQUALS "PP" AND PRT-4.3 EQUALS "HL70443"
RelatedPerson[1]
If IF PRT-4.1 NOT EQUALS "PP" OR PRT-4.3 NOT EQUALS "HL70443"
NK1PATIENT
Next Of Kin / Associated PartiesRelatedPerson[2]
The FHIR location will depend on the nature of the data being exchanged and how the systems use next of kin data
Patient[1]
The FHIR location will depend on the nature of the data being exchanged and how the systems use next of kin data
PV1PATIENT.PATIENT_VISIT
Patient VisitEncounter[1]
Basic
If IF PV1-43 VALUED
Patient[1]
Coverage[1]
If IF PV1-20 VALUE
PV2PATIENT.PATIENT_VISIT
Patient Visit - Additional InformationEncounter[1]
PRTPATIENT.PATIENT_VISIT
Participation InformationPractitionerRole[2]
IN1PATIENT.INSURANCE
InsuranceCoverage[1]
IN3PATIENT.INSURANCE
Insurance Additional Information, CertificationCoverage[1]
AL1PATIENT
Patient Allergy InformationAllergyIntolerance
ORCORDER
Common OrderServiceRequest[1]
Provenance[3]
PRTORDER
Participation InformationPractitionerRole[3]
If IF PRT-4.1 EQUALS "OP" AND PRT-4.3 EQUALS "HL70443"
TQ1ORDER.TIMING
Timing/quantityServiceRequest[1]
OBRORDER.OBSERVATION_REQUEST
Observation RequestServiceRequest[1]
Specimen[each]
NTEORDER.OBSERVATION_REQUEST
Notes And CommentsServiceRequest[1]
PRTORDER.OBSERVATION_REQUEST
Participation InformationPractitionerRole[4]
If IF PRT-4.1 EQUALS "SC" AND PRT-4.3 EQUALS "HL70443"
PractitionerRole[3]
If IF PRT-4.1 EQUALS "OP" AND PRT-4.3 EQUALS "HL70443"
DG1ORDER.OBSERVATION_REQUEST
DiagnosisCondition[1]
OBXORDER.OBSERVATION_REQUEST.OBSERVATION
Observation/resultObservation[1]
If IF OBX-5 LST.count LESS THAN OR EQUALS 1 OR OBX-2 IS "NA"
Observation[1]
If IF OBX-5 LST.count GREATER THAN 1 AND OBX-2 IS NOT "NA"
PRTORDER.OBSERVATION_REQUEST.OBSERVATION
Participation InformationDevice[1]
If IF PRT-10 VALUED
Observation[1]
If IF PRT-9 VALUED OR IF PRT-14 VALUED
PractitionerRole[7]
If IF PRT-5 VALUED
NTEORDER.OBSERVATION_REQUEST.OBSERVATION
Notes And CommentsObservation[1]
SPMORDER.OBSERVATION_REQUEST.SPECIMEN
SpecimenSpecimen