This page is part of the HL7 Version 2 to FHIR (v1.0.0-ballot: STU1 Ballot 1) based on FHIR (HL7® FHIR® Standard) R4. . For a full list of available versions, see the Directory of published versions
Official URL: http://hl7.org/fhir/uv/v2mappings/message-oml-o21-to-bundle | Version: 1.0.0-ballot | |||
Active as of 2023-12-19 | Computable Name: MessageOML_O21ToBundle | |||
Copyright/Legal: Copyright (c) 2020, HL7 International, Inc., All Rights Reserved. |
This ConceptMap represents a mapping from the HL7 V2 Message OML_O21 to the FHIR Message Bundle.
This ConceptMap represents the mapping from the HL7 V2 OML_O21 Message to the FHIR Message Bundle. See also the FHIR Shorthand or the CSV Source.
HL7 v2 | Condition (IF True, args) | HL7 FHIR | Comments | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Sort Order | Identifier | Syntax | Name | Cardinality - Min | Cardinality - Max | Computable ANTLR | Computable FHIRPath | Narrative | Primary Target | Segment Map | References | </thead>|
1 | OML_O21.MSH | MSH | Message Header | 1 | 1 | Bundle | MSH[Bundle] | |||||
1 | OML_O21.MSH | MSH | Message Header | 1 | 1 | MessageHeader | MSH[MessageHeader] | Processing of the MSH segment results in the creation of a new MessageHeader resource | ||||
1 | OML_O21.MSH | MSH | Message Header | 1 | 1 | If there is a source in MSH-4, or known based on the configuration. | Provenance | MSH[Provenance-Source] | Provenance[1].target.reference=Bundle.id; Provenance[1].target.reference=MessageHeader[1].id | If 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. | ||
1 | OML_O21.MSH | MSH | Message Header | 1 | 1 | Provenance | MSH[Provenance-Transformation] | Provenance[2].target.reference=Bundle.id | If 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. | |||
2 | OML_O21.SFT | [{SFT}] | Software | 0 | -1 | If the software does represent not the original source system | Provenance.entity.what(Device) | SFT[Device] | Provenance[1].entity.what.reference=Device.id Provenance[1].entity.role="derivation" | |||
2 | OML_O21.SFT | [{SFT}] | Software | 0 | -1 | If the software represents the original source system | Provenance.entity.what(Device) | SFT[Device] | Provenance[1].entity.what.reference=Device.id Provenance[1].entity.role="source" | |||
3 | OML_O21.UAC | [ UAC ] | User Authentication Credential | 0 | 1 | |||||||
4 | OML_O21.NTE | [{NTE}] | Notes and Comments (for Header) | 0 | -1 | |||||||
5 | OML_O21.PATIENT | [ | --- PATIENT begin | 0 | 1 | |||||||
5.1 | OML_O21.PATIENT.PID | PID | Patient Identification | 1 | 1 | Patient | PID[Patient] | Processing of the PID segment results in the creation of a new Patient resource | ||||
5.1 | OML_O21.PATIENT.PID | PID | Patient Identification | 1 | 1 | IF PID-33 AND PID-34 VALUED | One may drop PID-33 from the condition if PID-34 Last Update Facility is still sufficient without a date. | Provenance | PID[Provenance-Patient] | Provenance.target.reference=Patient[1].id | ||
5.2 | OML_O21.PATIENT.PD1 | [PD1] | Additional Demographics | 0 | 1 | Patient | PD1[Patient] | Incorporate PD1 content into the Patient created from the PID segment. | ||||
5.3 | OML_O21.PATIENT.PRT | [{PRT}] | Participation (for Patient) | 0 | -1 | IF PRT-4.1 EQUALS "PP" AND PRT-4.3 EQUALS "HL70443" | (element("4.1")="PP")and(element("4.3")="HL70443") | PractitionerRole | PRT[PractitionerRole] | Patient[1].generalPractitioner.reference=PractitionerRole[1].id | Incorporate PRT content into the Patient created from the PID segment when the PRT contains practitioner related data. | |
5.3 | OML_O21.PATIENT.PRT | [{PRT}] | Participation (for Patient) | 0 | -1 | IF PRT-4.1 NOT EQUALS "PP" OR PRT-4.3 NOT EQUALS "HL70443" | (element("4.1"!)="PP")or(element("4.3")!="HL70443") | RelatedPerson | PRT[RelatedPerson] | RelatedPerson[1].patient.reference=Patient[1].id | ||
5.4 | OML_O21.PATIENT.NTE | [{NTE}] | Notes and Comments (for Patient ID) | 0 | -1 | |||||||
5.6 | OML_O21.PATIENT.NK1 | [{NK1}] | Next of Kin/Associated Parties | 0 | -1 | The FHIR location will depend on the nature of the data being exchanged and how the systems use next of kin data | RelatedPerson | NK1[RelatedPerson] | RelatedPerson[2].patient.reference=Patient[1].id | 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. | ||
5.6 | OML_O21.PATIENT.NK1 | [{NK1}] | Next of Kin/Associated Parties | 0 | -1 | The FHIR location will depend on the nature of the data being exchanged and how the systems use next of kin data | Patient | 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. | |||
5.7 | OML_O21.PATIENT.ARV | [{ARV}] | Access Restrictions | 0 | -1 | |||||||
5.8 | OML_O21.PATIENT.PATIENT_VISIT | [ | --- PATIENT_VISIT begin | 0 | 1 | |||||||
5.8.1 | OML_O21.PATIENT.PATIENT_VISIT.PV1 | PV1 | Patient Visit | 1 | 1 | Encounter | PV1[Encounter] | Encounter.subject=Patient[PID] | Processing of the PV1 segment results in the creation of a new Encounter resource | |||
5.8.1 | OML_O21.PATIENT.PATIENT_VISIT.PV1 | PV1 | Patient Visit | 1 | 1 | Patient | PV1[Patient] | |||||
5.8.2 | OML_O21.PATIENT.PATIENT_VISIT.PV2 | [ PV2 ] | Patient Visit- Additional Info | 0 | 1 | Encounter | PV2[Encounter] | Incorporate PV2 content into the Encounter created from the PV1 segment. | ||||
5.8.3 | OML_O21.PATIENT.PATIENT_VISIT.PRT | [{PRT}] | Participation (for Patient Visit) | 0 | -1 | PractitionerRole | PRT[PractitionerRole] | Encounter[1].participant.individual.reference=PractitionerRole[2].id | Incorporate PRT content into the Encounter created from the PV1 segment. | |||
5.8.4 | /OML_O21.PATIENT.PATIENT_VISIT | ] | --- PATIENT_VISIT end | |||||||||
5.9 | OML_O21.PATIENT.INSURANCE | [{ | --- INSURANCE begin | 0 | -1 | |||||||
5.9.1 | OML_O21.PATIENT.INSURANCE.IN1 | IN1 | Insurance | 1 | 1 | Coverage | IN1[Coverage] | Coverage.subscriber=Patient[PID] | Processing of the IN1 segment results in the creation of a new Coverage resource | |||
5.9.2 | OML_O21.PATIENT.INSURANCE.IN2 | [ IN2 ] | Insurance Additional Information | 0 | 1 | |||||||
5.9.3 | OML_O21.PATIENT.INSURANCE.IN3 | [ IN3 ] | Insurance Additional Information, Certification | 0 | 1 | Coverage | IN3[CareTeam] | |||||
5.9 | /OML_O21.PATIENT.INSURANCE | }] | --- INSURANCE end | |||||||||
5.10 | OML_O21.PATIENT.GT1 | [ GT1 ] | Guarantor | 0 | 1 | |||||||
5.11 | OML_O21.PATIENT.AL1 | [{AL1}] | Allergy Information | 0 | -1 | AllergyIntolerance | AL1[AllergyIntolerance] | AllergyIntolerance.patient=Patient[PID] | Processing of the AL1 segment results in the creation of a new AllergyIntolerance resource | |||
5.12 | /OML_O21.PATIENT | ] | --- PATIENT end | |||||||||
6 | OML_O21.ORDER | { | --- ORDER begin | 1 | -1 | |||||||
6.1 | OML_O21.ORDER.ORC | ORC | Common Order | 1 | 1 | ServiceRequest | ORC[ServiceRequest] | ServiceRequest.subject=Patient[PID] | Processing of each ORC segment results in the creation of a new ServiceRequest resource | |||
6.1 | OML_O21.ORDER.ORC | ORC | Common Order | 1 | 1 | Provenance | 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. | |||
6.2 | OML_O21.ORDER.PRT | [{PRT}] | Participation (for Common Order) | 0 | -1 | IF PRT-4.1 EQUALS "OP" AND PRT-4.3 EQUALS "HL70443" | (element("4.1")="OP")and(element("4.3")="HL70443") | PractitionerRole | PRT[PractitionerRole] | ServiceRequest[1].requester.reference=PractitionerRole[3].id | ||
6.3 | OML_O21.ORDER.TIMING | [{ | --- TIMING begin | 0 | -1 | |||||||
6.3.1 | OML_O21.ORDER.TIMING.TQ1 | TQ1 | Timing/Quantity | 1 | 1 | ServiceRequest | TQ1[ServiceRequest] | |||||
6.3.2 | OML_O21.ORDER.TIMING.TQ2 | [{TQ2}] | Timing/Quantity Order Sequence | 0 | -1 | |||||||
6.3.3 | /OML_O21.ORDER.TIMING | }] | --- TIMING end | |||||||||
6.4 | OML_O21.ORDER.OBSERVATION_REQUEST | [ | --- OBSERVATION_REQUEST begin | 0 | 1 | |||||||
6.4.1 | OML_O21.ORDER.OBSERVATION_REQUEST.OBR | OBR | Observation Request | 1 | 1 | ServiceRequest | OBR[ServiceRequest] | Incorporate OBR content into the ServiceRequest created from the ORC segment in the same segment group. | ||||
6.4.1 | OML_O21.ORDER.OBSERVATION_REQUEST.OBR | OBR | Observation Request | 1 | 1 | Specimen | OBR[Specimen] | |||||
6.4.2 | OML_O21.ORDER.OBSERVATION_REQUEST.TCD | [ TCD ] | Test Code Details | 0 | 1 | |||||||
6.4.3 | OML_O21.ORDER.OBSERVATION_REQUEST.NTE | [{NTE}] | Notes and Comments (for Detail) | 0 | -1 | ServiceRequest | NTE[ServiceRequest] | |||||
6.4.4 | OML_O21.ORDER.OBSERVATION_REQUEST.PRT | [{PRT}] | Participation (for Observation Request) | 0 | -1 | IF PRT-4.1 EQUALS "SC" AND PRT-4.3 EQUALS "HL70443" | (element("4.1")="SC")and(element("4.3")="HL70443") | PractitionerRole | PRT[PractitionerRole] | ServiceRequest[1].specimen[1](Specimen.collection.collector.reference)=PractitionerRole[4].id | ||
6.4.4 | OML_O21.ORDER.OBSERVATION_REQUEST.PRT | [{PRT}] | Participation (for Observation Request) | 0 | -1 | IF PRT-4.1 EQUALS "OP" AND PRT-4.3 EQUALS "HL70443" | (element("4.1")="OP")and(element("4.3")="HL70443") | PractitionerRole | PRT[PractitionerRole] | ServiceRequest[1].requester.reference=PractitionerRole[3].id | ||
6.4.5 | OML_O21.ORDER.OBSERVATION_REQUEST.CTD | [ CTD ] | Contact Data | 0 | 1 | |||||||
6.4.6 | OML_O21.ORDER.OBSERVATION_REQUEST.DG1 | [{DG1}] | Diagnosis | 0 | -1 | Condition | DG1[Condition] | ServiceRequest[1].reasonReference.reference=Condition[1].id; Condition[1].subject.reference=Patient[1].id | Processing of the DG1 segment results in the creation of a new Condition resource which is referenced in the ServiceRequest created by the ORC segment | |||
6.4.7 | OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION | [{ | --- OBSERVATION begin | 0 | -1 | |||||||
6.4.7.1 | OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.OBX | OBX | Observation/Result | 1 | 1 | IF OBX-5 LST.count GREATER THAN 1 | Observation | OBX[Observation] | ServiceRequest[1].supportingInfo.reference=Observation[1].id; Observation[1].subject.id=Patient[1].id | |||
6.4.7.1 | OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.OBX | OBX | Observation/Result | 1 | 1 | IF OBX-5 LST.count LESS THAN OR EQUALS 1 | Observation | OBX[Observation-Component] | ServiceRequest[1].supportingInfo.reference=Observation[1].id; Observation[1].subject.id=Patient[1].id | |||
6.4.7.2 | OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.PRT | [{PRT}] | Participation (for OBX) | 0 | -1 | IF PRT-10 VALUED | Device | PRT[Device] | Observation[2].device.reference=Device.id | |||
6.4.7.2 | OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.PRT | [{PRT}] | Participation (for OBX) | 0 | -1 | IF PRT-9 VALUED OR IF PRT-14 VALUED | Observation | 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. | |||
6.4.7.2 | OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.PRT | [{PRT}] | Participation (for OBX) | 0 | -1 | IF PRT-5 VALUED | PractitionerRole | PRT[PractitionerRole] | Observation[2].performer.reference=PractitionerRole[7].id | Incorporate PRT content into the Observation created from the OBX segment in the same segment group when it represents observation practitioner information. | ||
6.4.7.3 | OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.TCD | [ TCD ] | Test Code Detail | 0 | 1 | |||||||
6.4.7.4 | OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.NTE | [{NTE}] | Notes and Comments (for Results) | 0 | -1 | Observation | NTE[Observation] | |||||
6.4.7.5 | /OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION | }] | --- OBSERVATION end | |||||||||
6.4.8 | OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN | [{ | --- SPECIMEN begin | 0 | -1 | |||||||
6.4.8.1 | OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.SPM | SPM | Specimen | 1 | 1 | Specimen | SPM[Specimen] | ServiceRequest[1].specimen.reference=Specimen[SPM].id | ||||
6.4.8.1 | OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.SPM | SPM | Specimen | 1 | 1 | IF SPM-21 VALUED | ServiceRequest[1].specimen.#ext-rejectReason#=SPM-21 | This provides a reject reason for the specimen in context of the specific test as the specimen may still be usable for other tests. | ||||
6.4.8.2 | OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.SPECIMEN_OBSERVATION | [{ | --- SPECIMEN_OBSERVATION begin | 0 | -1 | |||||||
6.4.8.2.1 | OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.SPECIMEN_OBSERVATION.OBX | OBX | Observation/Result related to specimen | 1 | 1 | |||||||
6.4.8.2.2 | OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.SPECIMEN_OBSERVATION.PRT | [{PRT}] | Participation (for Specimen Observation) | 0 | -1 | |||||||
6.4.8.2.3 | /OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.SPECIMEN_OBSERVATION | }] | --- SPECIMEN_OBSERVATION end | |||||||||
6.4.8.3 | OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.CONTAINER | [{ | --- CONTAINER begin | 0 | -1 | |||||||
6.4.8.3.1 | OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.CONTAINER.SAC | SAC | Specimen Container | 1 | 1 | |||||||
6.4.8.3.2 | OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.CONTAINER.CONTAINER_OBSERVATION | [{ | --- CONTAINER_OBSERVATION begin | 0 | -1 | |||||||
6.4.8.3.2.1 | OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.CONTAINER.CONTAINER_OBSERVATION.OBX | OBX | Observation/Result related to container | 1 | 1 | |||||||
6.4.8.3.2.2 | OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.CONTAINER.CONTAINER_OBSERVATION.PRT | [{PRT}] | Participation (for Container Observation) | 0 | -1 | |||||||
6.4.8.3.2.3 | /OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.CONTAINER.CONTAINER_OBSERVATION | }] | --- CONTAINER_OBSERVATION end | |||||||||
6.4.8.3.3 | /OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.CONTAINER | }] | --- CONTAINER end | |||||||||
6.4.8.4 | /OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN | }] | --- SPECIMEN end | |||||||||
6.4.9 | OML_O21.ORDER.OBSERVATION_REQUEST.SGH | [SGH] | Segment Group Header | |||||||||
6.4.10 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT | [{ | --- PRIOR_RESULT begin | |||||||||
6.4.10.1 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.PATIENT_PRIOR | [ | --- PATIENT_PRIOR begin | |||||||||
6.4.10.1.2 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.PATIENT_PRIOR.PID | PID | Patient Identification– previous result | |||||||||
6.4.10.1.3 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.PATIENT_PRIOR.PD1 | [PD1] | Additional Demographics – previous result | |||||||||
6.4.10.1.4 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.PATIENT_PRIOR.PRT | [{PRT}] | Participation (for Patient Prior) | |||||||||
6.4.10.1.5 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.PATIENT_PRIOR.ARV | [{ARV}] | Access Restrictions | |||||||||
6.4.10.1.6 | /OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.PATIENT_PRIOR | ] | --- PATIENT_PRIOR end | |||||||||
6.4.10.2 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.RESULT_VISIT_PRIOR | [ | --- PATIENT_VISIT_PRIOR begin | |||||||||
6.4.10.2.1 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.RESULT_VISIT_PRIOR.PV1 | PV1 | Patient Visit– previous result | |||||||||
6.4.10.2.2 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.RESULT_VISIT_PRIOR.PV2 | [ PV2 ] | Patient Visit Add. Info – previous result | |||||||||
6.4.10.2.3 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.RESULT_VISIT_PRIOR.PRT | [{PRT}] | Participation (for Patient Visit Prior) | |||||||||
6.4.10.2.4 | /OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.RESULT_VISIT_PRIOR | ] | --- PATIENT_VISIT_PRIOR end | |||||||||
6.4.10.3 | /OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.AL1 | [{AL1}] | Allergy Information- previous result | |||||||||
6.4.10.4 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR | { | --- ORDER_PRIOR begin | |||||||||
6.4.10.4.1 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.ORC | ORC | Common Order- previous result | |||||||||
6.4.10.4.2 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.PRT | [{PRT}] | Participation | |||||||||
6.4.10.4.3 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.OBR | OBR | Order Detail- previous result | |||||||||
6.4.10.4.4 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.NTE | [{NTE}] | Notes and Comments- previous result | |||||||||
6.4.10.4.5 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.PRT | [{PRT}] | Participation (for Order Prior) | |||||||||
6.4.10.4.6 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.TIMING_PRIOR | [{ | --- TIMING_PRIOR begin | |||||||||
6.4.10.4.6.1 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.TIMING_PRIOR.TQ1 | TQ1 | Timing/Quantity | |||||||||
6.4.10.4.6.2 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.TIMING_PRIOR.TQ2 | [{TQ2}] | Timing/Quantity Order Sequence | |||||||||
6.4.10.4.6.3 | /OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.TIMING_PRIOR | }] | --- TIMING_PRIOR end | |||||||||
6.4.10.4.7 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.OBSERVATION_PRIOR | { | --- OBSERVATION_PRIOR begin | |||||||||
6.4.10.4.7.1 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.OBSERVATION_PRIOR.OBX | OBX | Observation/Result- previous result | |||||||||
6.4.10.4.7.2 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.OBSERVATION_PRIOR.PRT | [{PRT}] | Participation (for Observation Prior) | |||||||||
6.4.10.4.7.3 | OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.OBSERVATION_PRIOR.NTE | [{NTE}] | Notes and Comments- previous result | |||||||||
6.4.10.4.7.4 | /OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR.OBSERVATION_PRIOR | } | --- OBSERVATION_PRIOR end | |||||||||
6.4.10.4.8 | /OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT.ORDER_PRIOR | } | --- ORDER_PRIOR end | |||||||||
6.4.10.5 | /OML_O21.ORDER.OBSERVATION_REQUEST.PRIOR_RESULT | }] | --- PRIOR_RESULT end | |||||||||
6.4.11 | OML_O21.ORDER.OBSERVATION_REQUEST.SGT | [SGT] | Segment Group Trailer | |||||||||
6.4.12 | /OML_O21.ORDER.OBSERVATION_REQUEST | ] | --- OBSERVATION_REQUEST end | |||||||||
6.5 | OML_O21.ORDER.FT1 | [{FT1}] | Financial Transaction | |||||||||
6.6 | OML_O21.ORDER.CTI | [{CTI}] | Clinical Trial Identification | |||||||||
6.7 | OML_O21.ORDER.BLG | [ BLG ] | Billing Segment | |||||||||
6.8 | /OML_O21.ORDER | } | --- ORDER end |
Mapping from OML_O21 to Bundle
ACTIVE (not intended for production usage). Published on 2023-12-19 by HL7 International / Orders and Observations (HL7 Orders and Observations Workgroup: http://www.hl7.org/Special/com..., Keith W. Boone: kboone@ainq.com, Rob Hausam: rrhausam@gmail.com). Copyright (c) 2020, HL7 International, Inc., All Rights Reserved.
This ConceptMap represents a mapping from the HL7 V2 Message OML_O21 to the FHIR Message Bundle.
Group 1Mapping from unspecified code system
to unspecified code system
Source Concept Details | Relationship | Target Concept Details | Comment | Properties | |||||||||||
Codes from | segmentmap | references | Codes from | narrative | antlr | fhirpath | |||||||||
OML_O21.MSH | Message Header | MSH[Bundle] | is equivalent to | Bundle | Bundle | ||||||||||
OML_O21.MSH | Message Header | MSH[MessageHeader] | is equivalent to | MessageHeader[1] | MessageHeader[1] | Processing of the MSH segment results in the creation of a new MessageHeader resource | |||||||||
OML_O21.MSH | Message Header | MSH[Provenance-Source] | Provenance[1].target.reference=Bundle.id; Provenance[1].target.reference=MessageHeader[1].id | is equivalent to | Provenance[1] | Provenance[1] | If there is a source in MSH-4, or known based on the configuration. | If 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. | |||||||
OML_O21.MSH | Message Header | MSH[Provenance-Transformation] | Provenance[2].target.reference=Bundle.id | is equivalent to | Provenance[2] | Provenance[2] | If 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. | ||||||||
OML_O21.SFT | Software | SFT[Device] | Provenance[1].entity.what.reference=Device.id Provenance[1].entity.role="derivation"\ | is equivalent to | Provenance[1].entity.what(Device) | Provenance[1].entity.what(Device) | If the software does represent not the original source system | ||||||||
OML_O21.SFT | Software | SFT[Device] | Provenance[1].entity.what.reference=Device.id Provenance[1].entity.role="source"\ | is equivalent to | Provenance[1].entity.what(Device) | Provenance[1].entity.what(Device) | If the software represents the original source system | ||||||||
OML_O21.PATIENT.PID | Patient Identification | PID[Patient] | is equivalent to | Patient[1] | Patient[1] | Processing of the PID segment results in the creation of a new Patient resource | |||||||||
OML_O21.PATIENT.PID | Patient Identification | PID[Provenance-Patient] | Provenance.target.reference=Patient[1].id | is equivalent to | Provenance[4] | Provenance[4] | One may drop PID-33 from the condition if PID-34 Last Update Facility is still sufficient without a date. | IF PID-33 AND PID-34 VALUED | |||||||
OML_O21.PATIENT.PD1 | Additional Demographics | PD1[Patient] | is equivalent to | Patient[1] | Patient[1] | Incorporate PD1 content into the Patient created from the PID segment. | |||||||||
OML_O21.PATIENT.PRT | Participation (for Patient) | PRT[PractitionerRole] | Patient[1].generalPractitioner.reference=PractitionerRole[1].id | is equivalent to | PractitionerRole[1] | PractitionerRole[1] | IF PRT-4.1 EQUALS "PP" AND PRT-4.3 EQUALS "HL70443" | (element("4.1")="PP")and(element("4.3")="HL70443") | Incorporate PRT content into the Patient created from the PID segment when the PRT contains practitioner related data. | ||||||
OML_O21.PATIENT.PRT | Participation (for Patient) | PRT[RelatedPerson] | RelatedPerson[1].patient.reference=Patient[1].id | is equivalent to | RelatedPerson[1] | RelatedPerson[1] | IF PRT-4.1 NOT EQUALS "PP" OR PRT-4.3 NOT EQUALS "HL70443" | (element("4.1"!)="PP")or(element("4.3")!="HL70443") | |||||||
OML_O21.PATIENT.NK1 | Next of Kin/Associated Parties | NK1[RelatedPerson] | RelatedPerson[2].patient.reference=Patient[1].id | is equivalent to | RelatedPerson[2] | RelatedPerson[2] | The FHIR location will depend on the nature of the data being exchanged and how the systems use next of kin data | 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. | |||||||
OML_O21.PATIENT.NK1 | Next of Kin/Associated Parties | NK1[Patient] | is equivalent to | Patient[1] | Patient[1] | The FHIR location will depend on the nature of the data being exchanged and how the systems use next of kin data | 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. | ||||||||
OML_O21.PATIENT.PATIENT_VISIT.PV1 | Patient Visit | PV1[Encounter] | Encounter.subject=Patient[PID] | is equivalent to | Encounter[1] | Encounter[1] | Processing of the PV1 segment results in the creation of a new Encounter resource | ||||||||
OML_O21.PATIENT.PATIENT_VISIT.PV1 | Patient Visit | PV1[Patient] | is equivalent to | Patient[1] | Patient[1] | ||||||||||
OML_O21.PATIENT.PATIENT_VISIT.PV2 | Patient Visit- Additional Info | PV2[Encounter] | is equivalent to | Encounter[1] | Encounter[1] | Incorporate PV2 content into the Encounter created from the PV1 segment. | |||||||||
OML_O21.PATIENT.PATIENT_VISIT.PRT | Participation (for Patient Visit) | PRT[PractitionerRole] | Encounter[1].participant.individual.reference=PractitionerRole[2].id | is equivalent to | PractitionerRole[2] | PractitionerRole[2] | Incorporate PRT content into the Encounter created from the PV1 segment. | ||||||||
OML_O21.PATIENT.INSURANCE.IN1 | Insurance | IN1[Coverage] | Coverage.subscriber=Patient[PID] | is equivalent to | Coverage[1] | Coverage[1] | Processing of the IN1 segment results in the creation of a new Coverage resource | ||||||||
OML_O21.PATIENT.INSURANCE.IN3 | Insurance Additional Information, Certification | IN3[CareTeam] | is equivalent to | Coverage[1] | Coverage[1] | ||||||||||
OML_O21.PATIENT.AL1 | Allergy Information | AL1[AllergyIntolerance] | AllergyIntolerance.patient=Patient[PID] | is equivalent to | AllergyIntolerance | AllergyIntolerance | Processing of the AL1 segment results in the creation of a new AllergyIntolerance resource | ||||||||
OML_O21.ORDER.ORC | Common Order | ORC[ServiceRequest] | ServiceRequest.subject=Patient[PID] | is equivalent to | ServiceRequest[1] | ServiceRequest[1] | Processing of each ORC segment results in the creation of a new ServiceRequest resource | ||||||||
OML_O21.ORDER.ORC | Common Order | ORC[Provenance] | Provenance.target=ServiceRequest[ORC] | is equivalent to | Provenance[3] | Provenance[3] | 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. | ||||||||
OML_O21.ORDER.PRT | Participation (for Common Order) | PRT[PractitionerRole] | ServiceRequest[1].requester.reference=PractitionerRole[3].id | is equivalent to | PractitionerRole[3] | PractitionerRole[3] | IF PRT-4.1 EQUALS "OP" AND PRT-4.3 EQUALS "HL70443" | (element("4.1")="OP")and(element("4.3")="HL70443") | |||||||
OML_O21.ORDER.TIMING.TQ1 | Timing/Quantity | TQ1[ServiceRequest] | is equivalent to | ServiceRequest[1] | ServiceRequest[1] | ||||||||||
OML_O21.ORDER.OBSERVATION_REQUEST.OBR | Observation Request | OBR[ServiceRequest] | is equivalent to | ServiceRequest[1] | ServiceRequest[1] | Incorporate OBR content into the ServiceRequest created from the ORC segment in the same segment group. | |||||||||
OML_O21.ORDER.OBSERVATION_REQUEST.OBR | Observation Request | OBR[Specimen] | is equivalent to | Specimen[each] | Specimen[each] | ||||||||||
OML_O21.ORDER.OBSERVATION_REQUEST.NTE | Notes and Comments (for Detail) | NTE[ServiceRequest] | is equivalent to | ServiceRequest[1] | ServiceRequest[1] | ||||||||||
OML_O21.ORDER.OBSERVATION_REQUEST.PRT | Participation (for Observation Request) | PRT[PractitionerRole] | ServiceRequest[1].specimen[1](Specimen.collection.collector.reference)=PractitionerRole[4].id | is equivalent to | PractitionerRole[4] | PractitionerRole[4] | IF PRT-4.1 EQUALS "SC" AND PRT-4.3 EQUALS "HL70443" | (element("4.1")="SC")and(element("4.3")="HL70443") | |||||||
OML_O21.ORDER.OBSERVATION_REQUEST.PRT | Participation (for Observation Request) | PRT[PractitionerRole] | ServiceRequest[1].requester.reference=PractitionerRole[3].id | is equivalent to | PractitionerRole[3] | PractitionerRole[3] | IF PRT-4.1 EQUALS "OP" AND PRT-4.3 EQUALS "HL70443" | (element("4.1")="OP")and(element("4.3")="HL70443") | |||||||
OML_O21.ORDER.OBSERVATION_REQUEST.DG1 | Diagnosis | DG1[Condition] | ServiceRequest[1].reasonReference.reference=Condition[1].id; Condition[1].subject.reference=Patient[1].id | is equivalent to | Condition[1] | Condition[1] | Processing of the DG1 segment results in the creation of a new Condition resource which is referenced in the ServiceRequest created by the ORC segment | ||||||||
OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.OBX | Observation/Result | OBX[Observation] | ServiceRequest[1].supportingInfo.reference=Observation[1].id; Observation[1].subject.id=Patient[1].id | is equivalent to | Observation[1] | Observation[1] | IF OBX-5 LST.count GREATER THAN 1 | ||||||||
OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.OBX | Observation/Result | OBX[Observation-Component] | ServiceRequest[1].supportingInfo.reference=Observation[1].id; Observation[1].subject.id=Patient[1].id | is equivalent to | Observation[1] | Observation[1] | IF OBX-5 LST.count LESS THAN OR EQUALS 1 | ||||||||
OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.PRT | Participation (for OBX) | PRT[Device] | Observation[2].device.reference=Device.id | is equivalent to | Device[1] | Device[1] | IF PRT-10 VALUED | ||||||||
OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.PRT | Participation (for OBX) | PRT[Observation-Location] | is equivalent to | Observation[1] | Observation[1] | IF PRT-9 VALUED OR IF PRT-14 VALUED | Incorporate PRT content into the Observation created from the OBX segment in the same segment group when it represents observation location information. | ||||||||
OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.PRT | Participation (for OBX) | PRT[PractitionerRole] | Observation[2].performer.reference=PractitionerRole[7].id | is equivalent to | PractitionerRole[7] | PractitionerRole[7] | IF PRT-5 VALUED | Incorporate PRT content into the Observation created from the OBX segment in the same segment group when it represents observation practitioner information. | |||||||
OML_O21.ORDER.OBSERVATION_REQUEST.OBSERVATION.NTE | Notes and Comments (for Results) | NTE[Observation] | is equivalent to | Observation[1] | Observation[1] | ||||||||||
OML_O21.ORDER.OBSERVATION_REQUEST.SPECIMEN.SPM | Specimen | SPM[Specimen] | ServiceRequest[1].specimen.reference=Specimen[SPM].id | is equivalent to | Specimen | Specimen |