Serves as the core segment in scheduling request (SRM) messages sent by the placer application to the filler or scheduling system. It carries the placer appointment identifier, requested start date and time range, priority, duration, and ordering provider. It is the scheduling request counterpart to the SCH segment (which is the filler's response and notification), and the filler responds via SRR with an S CH segment reflecting the booked appointment.
from zato.hl7v2.v2_9 import ARQ
from zato.hl7v2.v2_9 import XCN, CWE, DTM
arq = ARQ()
arq.arq_placer_appointment_id = 'REQ202601150900'
arq.arq_filler_appointment_id = 'APT202601150900'
arq.arq_event_reason = CWE(
identifier='ROUTINE',
text='Routine',
name_of_coding_system='HL70276'
)
arq.arq_requested_start_date_time = DTM('20260115090000')
arq.arq_priority = 'R'How to construct and work with real-world ARQ segments.
Routine preventive care appointment request
from zato.hl7v2.v2_9 import ARQ
from zato.hl7v2.v2_9 import XCN, CWE, DTM
arq = ARQ()
arq.arq_placer_appointment_id = 'REQ202401150900'
arq.arq_filler_appointment_id = 'APT202401150900'
arq.arq_event_reason = CWE(
identifier='ROUTINE',
text='Routine',
name_of_coding_system='HL70276'
)
arq.arq_requested_start_date_time = DTM('20240115090000')
arq.arq_requested_end_date_time = DTM('20240115100000')
arq.arq_priority = 'R'
arq.arq_placer_contact_person = XCN(
person_identifier_type='MRN',
id_number='12345',
family_name='Smith',
given_name='John'
)
arq.arq_filler_contact_person = XCN(
person_identifier_type='NPI',
id_number='1234567890',
family_name='Johnson',
given_name='Sarah'
)Dietary counseling appointment request
from zato.hl7v2.v2_9 import ARQ
from zato.hl7v2.v2_9 import XCN, CWE, DTM
arq = ARQ()
arq.arq_placer_appointment_id = 'REQ20240116140000'
arq.arq_filler_appointment_id = 'APT20240116140000'
arq.arq_event_reason = CWE(
identifier='NUTRITION',
text='Nutrition Counseling',
name_of_coding_system='HL70276'
)
arq.arq_requested_start_date_time = DTM('20240116140000')
arq.arq_requested_end_date_time = DTM('20240116150000')
arq.arq_priority = 'R'
arq.arq_placer_contact_person = XCN(
person_identifier_type='MRN',
id_number='67890',
family_name='Johnson',
given_name='Maria'
)
arq.arq_filler_contact_person = XCN(
person_identifier_type='NPI',
id_number='5551112222',
family_name='Chen',
given_name='Lisa'
)Wellness program group activity request
from zato.hl7v2.v2_9 import ARQ
from zato.hl7v2.v2_9 import XCN, CWE, DTM
arq = ARQ()
arq.arq_placer_appointment_id = 'REQ20240117180000'
arq.arq_filler_appointment_id = 'APT20240117180000'
arq.arq_event_reason = CWE(
identifier='GROUP',
text='Group Class',
name_of_coding_system='HL70276'
)
arq.arq_requested_start_date_time = DTM('20240117180000')
arq.arq_requested_end_date_time = DTM('20240117190000')
arq.arq_priority = 'R'
arq.arq_placer_contact_person = XCN(
person_identifier_type='MRN',
id_number='54321',
family_name='Brown',
given_name='Robert'
)
arq.arq_filler_contact_person = XCN(
person_identifier_type='NPI',
id_number='9876543210',
family_name='Miller',
given_name='Michael'
)Step-by-step guides for working with HL7 v2 in Zato.
ARQ contains appointment request information including requested appointment details, scheduling preferences, patient information, and resource requirements. It's used to request wellness appointments and preventive care visits.
Use HL70276 table values for appointment reasons like ROUTINE, NUTRITION, or GROUP:
arq.arq_event_reason = CWE(
identifier='ROUTINE',
text='Routine',
name_of_coding_system='HL70276'
)The placer appointment ID is assigned by the requesting system, while the filler appointment ID is assigned by the scheduling system. Both IDs help track appointments across different wellness center systems.
Use DTM datatype with YYYYMMDDHHMMSS format for requested date-time values:
arq.arq_requested_start_date_time = DTM('20240115090000')
arq.arq_requested_end_date_time = DTM('20240115100000')Use R for routine, S for stat/urgent, or A for ASAP. These priority values help scheduling systems prioritize wellness center appointment requests.
Zato connects to any system that speaks HL7v2 over MLLP or FHIR over REST. This includes Epic, Cerner, Meditech, Allscripts, and other EHR platforms.
Yes, Zato has built-in MLLP support for sending and receiving HL7v2 messages. MLLP channels handle the framing protocol automatically.
Zato supports HL7 v2.9, which is backward compatible with earlier versions including v2.3, v2.5, and v2.7. Standard segments and datatypes are available as typed Python classes.
Yes. Zato handles both HL7v2 and FHIR natively, so you can parse v2 messages and build FHIR resources with IG-specific extensions in the same service. Typed Python classes are available for both protocols, including extensions from US Core, UK Core, Da Vinci, and other Implementation Guides.
Complete list of fields in the ARQ segment, HL7 v2.9.
| # | Python name | Datatype | Usage | Repeatable | Table |
|---|---|---|---|---|---|
| 1 | placer_appointment_id | EI | Required | No | - |
| 2 | filler_appointment_id | EI | Optional | No | - |
| 3 | occurrence_number | NM | Optional | No | - |
| 4 | placer_order_group_number | EI | Optional | No | - |
| 5 | schedule_id | CWE | Optional | No | - |
| 6 | request_event_reason | CWE | Optional | No | - |
| 7 | appointment_reason | CWE | Optional | No | HL70276 |
| 8 | appointment_type | CWE | Optional | No | HL70277 |
| 9 | appointment_duration | NM | Optional | No | - |
| 10 | appointment_duration_units | CNE | Optional | No | - |
| 11 | requested_start_date_time_range | DR | Optional | Yes | - |
| 12 | priority_arq | ST | Optional | No | - |
| 13 | repeating_interval | RI | Optional | No | - |
| 14 | repeating_interval_duration | ST | Optional | No | - |
| 15 | placer_contact_person | XCN | Required | Yes | - |
| 16 | placer_contact_phone_number | XTN | Optional | Yes | - |
| 17 | placer_contact_address | XAD | Optional | Yes | - |
| 18 | placer_contact_location | PL | Optional | No | - |
| 19 | entered_by_person | XCN | Required | Yes | - |
| 20 | entered_by_phone_number | XTN | Optional | Yes | - |
| 21 | entered_by_location | PL | Optional | No | - |
| 22 | parent_placer_appointment_id | EI | Optional | No | - |
| 23 | parent_filler_appointment_id | EI | Optional | No | - |
| 24 | placer_order_number | EI | Optional | Yes | - |
| 25 | filler_order_number | EI | Optional | Yes | - |
| 26 | alternate_placer_order_group_number | EIP | Optional | No | - |
Get started with Zato and connect your systems in minutes.