Search

OML (V3)

Introduction

This document describes the technical specifications of the ZorgDomein HL7 V2.5.1 OML V3 message. This message is used for sending diagnostic requests.

ZorgDomein adheres to the message structure and the required fields as specified in the international HL7 V2.5.1 specifications.

In this document, the term ‘acting referrer’ describes the person that used ZorgDomein and actually referred the patient. The term ‘responsible referrer’ describes the person that is responsible for that referral. The two often relate to the same person.

If the ZorgDomein content consists of a value between two double quotes, that value is the fixed value of that specific element.

Message structure

The OML message has the following structure: 

  • Message header
    • MSH - Message header
    • [NTE] - Name of the ZorgDomein cluster to which this message was sent
    • [NTE] - List with added attachments
  • Patient details
    • PID - Patient Identification
    • PV1 - Inpatient details, if applicable
    • PV2 - Healthcare product details
    • [IN1] - Insurance details
  • Healthcare product details
    • ORC - Logistic request details
    • [TQ1] - Sampling and priority details
    • OBR - Healthcare product details
    • [{OBX}] - Question and answer(s) for the requested healthcare product and all selected tests/examinanations
  • Test group details (optional, repeatable)
    • ORC - Logistic details
    • OBR - Requested test group details
    • [{OBX}] - Details of selected test
  • Test/examination details (repeatable)
    • ORC - Logistic request details
    • [TQ1] - Sampling and priority details
    • OBR - Details of requested test/examination
    • [{NTE}] - Notes for selected test/examination (currently only contains the name of the research method for the selected test)
    • [{OBX}] - Question and answer(s) for the requested test/examination
    • [SPM] - Specimen and container details

NB: square brackets [] indicate an optional segment, curly brackets {} indicate a repeatable segment. 

Segment specifications

MSH - Message Header

Elem.nr.Field nameZorgDomein content
1Field Separator“|”.
2Encoding Characters“^~\&”.
3.1Sending Application“ZorgDomein”.
5.1Receiving ApplicationName of the receiving application.
6.1Receiving FacilityName of the receiving facility.
7.1Date/Time Of MessageDate/time of message creation.
Format: yyyyMMddHHmmss+HHmm.
9.1Message Type“OML”.
9.2“O21”.
9.3“OML_O21”.
10Message Control IDUnique message identifier.
11.1Processing ID“P”.
12.1Version ID“2.5.1”.
17Country Code“NLD”.
18Character Set“8859/1”.

NTE - Notes and Comments (sub MSH)

Elem.nr.Field nameZorgDomein content
NTE option 1: Name of the ZorgDomein cluster to which the message has been sent
1Set ID - NTESequence number unique for the NTE segment. Initial value: “1”.
2Source of Comment"P"
3CommentName of the ZorgDomein cluster to which this message was sent.
4.1Comment Type"ZD_CLUSTER_NAME"
4.2"ZorgDomein clusternaam"
4.3"L"
NTE option 2: Summary of attached files
1Set ID - NTESequence number unique for the NTE segment. Initial value: “1”.
2Source of Comment"P"
3CommentSummary of attached files (file name, extension and size)
4.1Comment Type"ATTACHMENTS"
4.2"Toegevoegde bijlagen"
4.3"L"

PID - Patient Identification

Elem.nr.Field nameZorgDomein content
1Set ID - PID“1”.
PID-3, option 1: Patient’s BSN.
3.1Patient Identifier ListThe patient’s BSN.
3.4.1“NLMINBIZA”.
3.5“NNNLD”.
PID-3, option 2: XIS patient ID. The option “XIS patient ID” supplies all available patient IDs by repeating this field.
3.1Patient Identifier ListXIS patient ID.
3.4.1The AGB-code of the facility.
3.5“PI”.
PID-3, option 3: ZorgDomein number
3.1Patient Identifier ListZorgDomein number.
Format: ZDnnnnnnnnn, where each n denotes a digit.
3.4.1“ZorgDomein”.
3.5“VN”.
5.1.1Patient NameThe patient’s full surname.
5.1.2Prefix of surname in PID-5.1.3.
5.1.3The patient’s own surname (without prefix).
5.1.4Prefix of surname in PID-5.1.5.
5.1.5The patient’s spouse surname (without prefix).
5.2The patient’s first initial.
5.3The patient’s second and further initials, separated by spaces.
5.7“L”.
7.1Date/Time ofBirthThe patient’s date of birth.
Format: yyyyMMdd.
8Administrative SexIf the patient’s sex is male: “M”.
If the patient’s sex is female: “F”.
If the patient’s sex is not specified: “O”.
If the patient’s sex is unknown: “U”.
11.1.1Patient AddressCombination of PID-11.1.2, PID-11.1.3, and PID-11.2.
11.1.2The patient’s street name.
11.1.3The patient’s dwelling number.
11.2The patient’s other designation.
11.3The patient’s city name.
11.5The patient’s postal code.
11.6The patient’s country code.
11.7If the specified patient address is the mailing address: “M”.
If the specified patient address is the home address: “C” (this option is especially relevant for orders where home sampling is required, and the home address differs from the mailing address).
Note: PID-11 can have multiple values. The first value will always be the mailing address.
PID-13, option 1: Patient’s phone number
13.1Phone Number - HomeThe patient’s phone number.
13.2“PRN”.
13.3“PH”.
PID-13, option 2: Patient’s mobile phone number & email address
13.1Phone Number - HomeThe patient’s mobile phone number.
13.2“ORN”.
13.3“CP”.
13.2Use Code"NET" (When email is pressent).
13.3Equipement type"Internet" (When email is pressent).
13.4Email addressThe patient’s email adress.
31Identity Unknown IndicatorIf the referrer’s verification of the BSN is unknown: “Y”.
Else: “N”.
32Identity Reliability Code“NNNLD”.

PV1 - Patient Visit

Elem.nr.Field nameZorgDomein content
1Set ID - PV1“1”.
2Patient Class“O”.
3.1Assigned Patient Location(Reserved for future use) Name of the department where the patient is located
3.2(Reserved for future use) Number of the room where the patient is located
3.6(Reserved for future use) “D”
3.9(Reserved for future use) Full description of the patient location, including the name of the healthcare organization, department and/or room number.
51Visit Indicator“V”.

PV2 - Patient Visit - Additional Information

Elem.nr.Field nameZorgDomein content
3.1Admit ReasonCode of health care product.
3.2Name of health care product.
3.3“L”.

IN1 - Insurance

Elem.nr.Field nameZorgDomein content
1Set ID - IN1“1”.
2.2Insurance Plan ID“null”.
3.1Insurance Company IDIf UZOVI number is present: UZOVI number.
Else: “0”.
3.4.1If UZOVI number is present: “VEKTIS”.
Else: “LOCAL”.
3.5If UZOVI number is present: “UZOVI”.
4.1Insurance Company NameThe patient’s insurance company name.
36Policy NumberThe patient’s policy number.

ORC - Common Order

Elem.nr.Field nameZorgDomein content
1Order ControlIn case of a new order: “NW”.
In case of a cancelled order: “CA” (reserved for future use).
In case of a changed order: “XO” (reserved for future use).
2.1Placer Order NumberZorgDomein order number.
Format: 10-20 alphanumeric characters
3.1Filler Order NumberOrder number of the receiving facility.
4.1Placer Group NumberZorgDomein number, optionally appended with cluster suffix. If a request is split up into multiple sub requests using separate messages, each sub request will have a unique group identifier, consisting of a ZD-number plus a cluster suffix. This identifier matches the bar code on patient messages.
7.6Quantity/Timing - PriorityPriority code conform table 0485 of the international HL7 V2.5.1 specifications.
9.1Date/Time of TransactionDate/time of diagnostic request initiation.
Format: yyyyMMddHHmmss+HHmm.
10.1Entered ByThe acting referrer’s AGB-code.
10.2.1The acting referrer’s full surname.
10.3The acting referrer’s initials.
10.9.1If ORC-10.1 contains a value: “VEKTIS”.
12.1Ordering ProviderThe responsible referrer’s AGB-code.
12.2.1The responsible referrer’s full surname.
12.3The responsible referrer’s initials.
12.9.1“VEKTIS”.
13.9Enterer’s LocationName of the acting referrer’s location.
13.10.1AGB-code of the acting referrer’s location.
13.10.2"VEKTIS"
ORC-14, option 1: Phone number for results
14.1Call Back Phone NumberPhone number for results.
14.2“WPN”.
14.3“PH”.
ORC-14 option 2: Fax number for results
14.1Call Back Phone NumberFax number for results.
14.2“WPN”.
14.3“FX”.
15Order Effective Date/TimeIf ORC-1 contains the value “CA” or “XO”:
Updated date/time of diagnostic request.
Format: yyyyMMddHHmmss+HHmm.
17.1Entering OrganizationThe AGB-code of the acting referrer’s organization.
17.2The name of the acting referrer’s organization.
17.3“VEKTIS”.
19.1Action ByThe responsible updater’s AGB-code.
19.2.1The responsible updater’s full surname.
19.3The responsible updater’s initials.
19.9.1If ORC-19.1 contains a value: “VEKTIS”.
21.1Ordering Facility NameThe name of the responsible referrer’s organization.
21.3The AGB-code of the responsible referrer’s organization.
21.6.1“VEKTIS”.
22.1.1Ordering Facility AddressCombination of 22.1.2, 22.1.3, 22.2
22.1.2The street name of the placer’s location.
22.1.3The dwelling number of the placer’s location.
22.2The other designation of the placer’s location.
22.3The city name of the placer’s location.
22.5The postal code of the placer’s location.
22.6The country code of the placer’s location.
ORC-23, option 1: Phone number of the placer’s location.
23.1Ordering Facility Phone NumberPhone number of the placer’s location.
23.2"WPN"
23.3"PH"
ORC-23, option 2: Fax number of the placer’s location.
23.1Ordering Facility Phone NumberFax number of the placer’s location.
23.2"WPN"
23.3"FX"

TQ1 - Time/Quantity

Elem.nr.Field nameZorgDomein content
1Set ID - TQ1Sequence number unique within message for TQ1 segment. Initial value: “1”. Equal to respective OBR-1 value.
7.1Start date/timeEarliest date for sampling.
Format: yyyyMMddHHmmss+HHmm.
8.1End date/time(Reserved for future use) Latest date for sampling.
Format: yyyyMMddHHmmss+HHmm.
9.1PriorityPriority code conform table 0485 of the international HL7 V2.5.1 specifications.
9.2Priority label conform table 0485 of the international HL7 V2.5.1 specifications.
9.3"HL70485"
11Text instructionInstructions for the collect employee.

OBR - Observation Request

Elem.nr.Field nameZorgDomein content
1Set ID - OBRSequence number unique within message for OBR segment. Initial value: “1”. Equal to respective TQ1-1 value.
2.1Placer Order NumberZorgDomein order number.
Format: 10-20 alphanumeric characters
3.1Filler Order NumberOrder number of the receiving facility.
4.1Universal Service IdentifierIf the OBR segment represents a diagnostic test: code of diagnostic test.
If the OBR segment represents a diagnostic test group: code of diagnostic test group.
If the OBR segment represents a healthcare product: code of healthcare product.
4.2If the OBR segment represents a diagnostic test: name of diagnostic test.
If the OBR segment represents a diagnostic test group: name of diagnostic test group.
If the OBR segment represents a healthcare product: name of healthcare product.
4.3If OBR-4.1 contains a local code: “L”.
Else: Global standard code (see table 0396 of the international HL7 V2.5.1 specifications).
7.1Observation Date/TimeDate/time the observation/collection was initiated.
Format: yyyyMMddHHmmss+HHmm.
NB: This field will remain empty if multiple specimen have been collected.
10.1Collector IdentifierThe collect employee’s ZorgDomein health care provider ID or AGB-code.
10.2.1The collect employee’s full surname.
10.3The collect employee’s initials.
10.9.1If OBR-10.1 contains a value: “L” or “VEKTIS”.
10.16.2Name of the collect location.
11Specimen Action CodeIf home sampling is requested: “L”.
Else: “O”.
13Relevant Clinical InformationNames of problem groups that include the diagnostic test, as selected by the acting referrer.
15.1.1Specimen Source - Name or CodeCode of specimen source material.
15.1.2Name of specimen source material.
15.1.3If OBR-15.1.1 contains a local code: “L”.
Else if OBR-15.1.1 contains a HL7 standard code: “HL70487”.
Else: Global standard code (see table 0396 of the international HL7 V2.5.1 specifications).
NB: OBR-15 will remain empty if multiple specimen have been collected.
15.3Specimen Source - Collection MethodName of the specimen collection method
NB: OBR-15 will remain empty if multiple specimen have been collected.
15.4.1Specimen Source - Body SiteCode of specimen source site.
15.4.2Name of specimen source site.
15.4.3If OBR-15.4.1 contains a local code: “L”.
Else: Global standard code (see table 0396 of the international HL7 V2.5.1 specifications).
NB: OBR-15 will remain empty if multiple specimen have been collected.
15.5.1Specimen Source - Site ModifierCode of specimen source site modifier.
15.5.2Name of specimen source site modifier.
15.5.3If OBR-15.5.1 contains a local code: “L”.
Else: Global standard code (see table 0396 of the international HL7 V2.5.1 specifications).
NB: OBR-15 will remain empty if multiple specimen have been collected.
16.1Ordering ProviderThe responsible referrer’s AGB-code.
16.2.1The responsible referrer’s full surname.
16.3The responsible referrer’s initials.
16.9.1“VEKTIS”.
OBR-17, option 1: Phone number for results
17.1Order Callback Phone NumberPhone number for results.
17.2“WPN”.
17.3“PH”.
OBR-17, option 2: Fax number for results
17.1Order Callback Phone NumberFax number for results.
17.2“WPN”.
17.3“FX”.
28.1Result Copies ToAGB-code of person to send copy to as entered by the acting referrer.
28.2.1Full surname of person to send copy to as entered by the acting referrer.
28.3(Reserved for future use) Initials of person to send copy to as entered by the acting referrer.
28.9.1If OBR-28.1 contains a value: “VEKTIS”.
28.16.2(Reserved for future use) Organization name to send copy to as entered by the acting referrer.
28.21(Reserved for future use) Specialism of person to send copy to as entered by the acting referrer.
39.2Collector’s CommentThe collect employee’s comment.

NTE - Notes and Comments (sub OBR)

Elem.nr.Field nameZorgDomein content
NTE option 1: Name of research method
1Set ID - NTESequence number unique within the combination of respective ORC, OBR and NTE segments. Initial value: “1”.
2Source of Comment"P"
3CommentName of research method.
4.1Comment Type"RESEARCH_METHOD"
4.2"Onderzoeksmethode"
4.3"L"

OBX - Observation/Result

Elem.nr.Field nameZorgDomein content
1Set ID - OBXSequence number unique within the combination of respective ORC, OBR, and OBX segments. Initial value: “1”.
2Value TypeIf OBX-5 contains string data: “ST”.
If OBX-5 contains formatted text: “FT”.
If OBX-5 contains a date: “DT”.
If OBX-5 contains encapsulated data: “ED”.
If OBX-5 contains coded entry: “CE”.
3.1Observation IdentifierIf the OBX segments represents a question that is relevant for the requested test(s): code of question.
If the OBX segments represents a selected diagnostic test (for ORC-OBR combinations that represent a test group): "REQUESTED_TESTS".
If the OBX segment provides the reason for cancellation of the request (for ORC-OBR combinations that represent the healthcare product): "CANCELLATION_REASON".
3.2If the OBX segments represents a question that is relevant for the requested test(s): label of question.
If the OBX segments represents a selected diagnostic test (for ORC-OBR combinations that represent a test group): "Aangevraagde onderzoeken".
If the OBX segment provides the reason for cancellation of the request (for ORC-OBR combinations that represent the healthcare product): "Reden van annulering".
3.3If OBX-3.1 contains a value:
If OBX-3.1 contains a local code: “L”.
Else: Global standard code (see table 0396 of the international HL7 V2.5.1 specifications).
4Observation Sub-IDIf there are multiple OBX segments with the same value for OBX-3 under one ORC-OBR combination, the OBX segment must be interpreted a data element that is part of a multiple choice question, where each OBX segment provides one answer to that question. In that case OBX-4 provides a unique sequence number of the answer within the sequence of answers.
OBX-5, option 1: Coded Element (OBX-2 = CE)
5.1Observation ValueIf the OBX segments represents a question that is relevant for the requested test(s): code of answer/option to the question.
If the OBX segments represents a selected diagnostic test (for ORC-OBR combinations that represent a test group): code of the diagnostic test.
If the OBX segment provides the reason for cancellation of the request (for ORC-OBR combinations that represent the healthcare product): coded value of the reason for cancellation.
5.2If the OBX segments represents a coded question that is relevant for the requested test(s): text of answer/option to the question.
If the OBX segments represents a selected diagnostic test (for ORC-OBR combinations that represent a test group): name of the diagnostic test.
If the OBX segment provides the reason for cancellation of the request (for ORC-OBR combinations that represent the healthcare product): text of the reason for cancellation.
5.3"L".
OBX-5, option 2: other value types
5Observation ValueAnswer to a question that is relevant for the requested test(s).
6.1UnitsUnity of the value of answer/option to the question.
7References RangeThe range to which the answer/option to the question is restricted.
11Observation Result StatusIf the OBX segment represents a question that is relevant for the requested test(s): "F".
If the OBX segment represents a selected diagnostic test (for ORC-OBR combinations that represent a test group) or if the OBX segment provides the reason for cancellation of the request (for ORC-OBR combinations that represent the healthcare product): "O".

SPM - Specimen

Elem.nr.Field nameZorgDomein content
1Set ID - SPMSequence number unique within the combination of respective ORC, OBR, and SPM segments. Initial value: “1”.
2.1.1Specimen IDBarcode of the container.
4.1Specimen TypeCode of specimen source material.
4.2Name of specimen source material.
4.3If SPM-4.1 contains a local code: “L”.
Else if SPM-4.1 contains a HL7 standard code: “HL70487”.
Else: Global standard code (see table 0396 of the international HL7 V2.5.1 specifications).
7.1Specimen Collection MethodCode of specimen collection method.
7.2Name of specimen collection method.
7.3If SPM-7.1 contains a local code: “L”.
Else if SPM-7.1 contains a HL7 standard code: “HL70488”.
Else: Global standard code (see table 0396 of the international HL7 V2.5.1 specifications).
8.1Specimen Source SiteCode of specimen source site.
8.2Name of specimen source site.
8.3If SPM-8.1 contains a local code: “L”.
Else: Global standard code (see table 0396 of the international HL7 V2.5.1 specifications).
9.1Specimen Source Site ModifierCode of specimen source site modifier.
9.2Name of specimen source site modifier.
9.3If SPM-9.1 contains a local code: “L”.
Else: Global standard code (see table 0396 of the international HL7 V2.5.1 specifications).
13Grouped Specimen CountCollected specimen count
17.1.1Specimen Collection Date/TimeDate/time the specimen collection was initiated.
Format: yyyyMMddHHmmss+HHmm.
20Specimen AvailabilityIf the specimen has been collected and the current message contains collection details: "Y".
Else: "N".
27.1Container TypeCode of container type.
27.2Name of container type.
27.3"L"

Change log

DateComments
1-2-2024Removed invalid specification for empty BSN in PID-3
10-17-2023New format for placer order number (OCR-2.1 and OBR-2.1) and specification of OBX segment for reason of cancellation
4-6-2021Publication draft specification

Sample messages