Schedule a demo
Segment

Referral information

Carries the header information for a patient referral, including referral status, priority, type (medical, psychiatric, and others), disposition, referral identifiers, effective and expiration dates, and the referral reason. It is the anchor segment in REF (Patient Referral) and RRI (Referral Response) messages sent between referring provider systems and referred-to provider systems to initiate, track, and respond to inter-provider referrals.

25fields
1required
v2.9HL7 version
rf1.py
from zato.hl7v2.v2_9 import RF1
from zato.hl7v2.v2_9 import CWE, EI

rf1 = RF1()
rf1.referral_status = CWE(
    identifier='A',
    text='Accepted',
    name_of_coding_system='HL70283'
)
rf1.referral_type = CWE(
    identifier='WEL',
    text='Wellness Program',
    name_of_coding_system='HL70281'
)
referral_id = EI(entity_identifier='REF202401150001')
rf1.originating_referral_identifier = referral_id

Build RF1 segments in Python

How to construct and work with real-world RF1 segments.

1

Wellness program referral

Referral to fitness coaching program

from zato.hl7v2.v2_9 import RF1
from zato.hl7v2.v2_9 import CWE, EI, DTM

rf1 = RF1()
rf1.referral_status = CWE(
    identifier='A',
    text='Accepted',
    name_of_coding_system='HL70283'
)
rf1.referral_type = CWE(
    identifier='WEL',
    text='Wellness Program',
    name_of_coding_system='HL70281'
)
rf1.originating_referral_identifier = EI(entity_identifier='REF202401150001')
rf1.effective_date = DTM('20240115')
rf1.expiration_date = DTM('20240415')
rf1.referral_reason = 'Fitness coaching for preventive health'
2

Nutrition counseling referral

Referral to dietary services

from zato.hl7v2.v2_9 import RF1
from zato.hl7v2.v2_9 import CWE, EI, DTM

rf1 = RF1()
rf1.referral_status = CWE(
    identifier='A',
    text='Accepted',
    name_of_coding_system='HL70283'
)
rf1.referral_type = CWE(
    identifier='NUT',
    text='Nutrition Services',
    name_of_coding_system='HL70281'
)
rf1.originating_referral_identifier = EI(entity_identifier='REF202401160002')
rf1.effective_date = DTM('20240116')
rf1.expiration_date = DTM('20240716')
rf1.referral_reason = 'Dietary counseling for wellness goals'
3

Preventive care referral

Referral for annual wellness screening

from zato.hl7v2.v2_9 import RF1
from zato.hl7v2.v2_9 import CWE, EI, DTM

rf1 = RF1()
rf1.referral_status = CWE(
    identifier='P',
    text='Pending',
    name_of_coding_system='HL70283'
)
rf1.referral_type = CWE(
    identifier='PRV',
    text='Preventive Care',
    name_of_coding_system='HL70281'
)
rf1.originating_referral_identifier = EI(entity_identifier='REF202401170003')
rf1.effective_date = DTM('20240117')
rf1.expiration_date = DTM('20240217')
rf1.referral_reason = 'Annual wellness screening'

Learn by building

Step-by-step guides for working with HL7 v2 in Zato.

Frequently asked questions

RF1 contains referral information including status, type, providers, and reason. It coordinates referrals between wellness programs, nutrition services, and preventive care providers.

Use HL70283 table values for referral status like A (Accepted) or P (Pending):

rf1.referral_status = CWE(
    identifier='A',
    text='Accepted',
    name_of_coding_system='HL70283'
)

Use HL70281 table values for referral types. Common wellness types include WEL (Wellness Program), NUT (Nutrition Services), and PRV (Preventive Care).

Use effective_date and expiration_date fields to define when the referral is valid. This helps wellness centers manage referral lifecycles.

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.

RF1 field reference

Complete list of fields in the RF1 segment, HL7 v2.9.

#Python nameDatatypeUsageRepeatableTable
1referral_statusCWEOptionalNoHL70283
2referral_priorityCWEOptionalNoHL70280
3referral_typeCWEOptionalNoHL70281
4referral_dispositionCWEOptionalYesHL70282
5referral_categoryCWEOptionalNoHL70284
6originating_referral_identifierEIRequiredNo-
7effective_dateDTMOptionalNo-
8expiration_dateDTMOptionalNo-
9process_dateDTMOptionalNo-
10referral_reasonCWEOptionalYesHL70336
11external_referral_identifierEIOptionalYes-
12referral_documentation_completion_statusCWEOptionalNoHL70865
13planned_treatment_stop_dateDTMOptionalNo-
14referral_reason_textSTOptionalNo-
15number_of_authorized_treatments_unitsCQOptionalNo-
16number_of_used_treatments_unitsCQOptionalNo-
17number_of_schedule_treatments_unitsCQOptionalNo-
18remaining_benefit_amountMOOptionalNo-
19authorized_providerXONOptionalNo-
20authorized_health_professionalXCNOptionalNo-
21source_textSTOptionalNo-
22source_dateDTMOptionalNo-
23source_phoneXTNOptionalNo-
24commentSTOptionalNo-
25action_codeIDOptionalNoHL70206

Ready to build integrations?

Get started with Zato and connect your systems in minutes.

Open source In Python