Schedule a demo
Segment

Pharmacy/treatment route

Specifies the route of administration (such as oral, IV, IM, or subcutaneous), administration site, and administration method for a pharmacy or treatment order. It accompanies RXO, RXE, RXG, RXA, and RXD segments in pharmacy messages and is required whenever the route is not implied by the ordered drug. RXR ensures that clinical staff and downstream systems know the intended or actual route of drug delivery.

6fields
1required
v2.9HL7 version
rxr.py
from zato.hl7v2 import RXR, CWE

rxr = RXR()
rxr.route = CWE(
    identifier='PO', text='Oral')

Build RXR segments in Python

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

1

Oral vitamin administration

Route only for a once-daily capsule routine

from zato.hl7v2.v2_9 import RXR
from zato.hl7v2.v2_9 import CWE

rxr = RXR()
rxr.route = CWE(
    identifier='PO', text='Oral')
2

Topical wellness cream

Transdermal route, forearm site, applicator, and site modifier

from zato.hl7v2.v2_9 import RXR
from zato.hl7v2.v2_9 import CWE

rxr = RXR()
rxr.route = CWE(
    identifier='TD', text='Transdermal')
rxr.administration_site = CWE(
    identifier='FA', text='Left forearm')
rxr.administration_device = CWE(
    identifier='PAD', text='Pad applicator')
rxr.administration_method = CWE(
    identifier='SPREAD', text='Thin layer')
rxr.routing_instruction = CWE(
    identifier='ROT', text='Rotate sites')
rxr.administration_site_modifier = CWE(
    identifier='LEFT', text='Left side')
3

IV wellness nutrition infusion

Intravenous route, antecubital site, infusion line, drip method, and modifiers

from zato.hl7v2.v2_9 import RXR
from zato.hl7v2.v2_9 import CWE

rxr = RXR()
rxr.route = CWE(
    identifier='IV', text='Intravenous')
rxr.administration_site = CWE(
    identifier='AC', text='Antecubital fossa')
rxr.administration_device = CWE(
    identifier='INF', text='Infusion line')
rxr.administration_method = CWE(
    identifier='DRIP', text='Gravity drip')
rxr.routing_instruction = CWE(
    identifier='WELL', text='Wellness infusion')
rxr.administration_site_modifier = CWE(
    identifier='UP', text='Upper arm')

Learn by building

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

Frequently asked questions

RXR records route of administration and related details such as site, device, method, and instructions for pharmacy and nutrition workflows. It complements ORC, RXO, RXE, RXD, RXG, and PID when systems document how a wellness product is given.

Field 1 (route) is required. Populate administration_site, administration_device, administration_method, routing_instruction, and administration_site_modifier when your interface specification uses them.

from zato.hl7v2.v2_9 import RXR, CWE

rxr = RXR()
rxr.route = CWE(
    identifier='PO', text='Oral')

Use administration_site when the route depends on a specific body location, for example transdermal application on the forearm or intravenous access at the antecubital fossa. Oral routes often leave this field empty.

administration_method describes the technique (for example drip versus push), while routing_instruction can carry partner-specific directions. Follow your trading partner guide for which field holds each kind of note.

RXE encodes structured order lines; RXD documents a dispense; RXR states how the product is administered. The same order may include one RXR or several when routes differ.

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.

RXR field reference

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

#Python nameDatatypeUsageRepeatableTable
1routeCWERequiredNoHL70162
2administration_siteCWEOptionalNoHL70550
3administration_deviceCWEOptionalNoHL70164
4administration_methodCWEOptionalNoHL70165
5routing_instructionCWEOptionalNoHL70766
6administration_site_modifierCWEOptionalNoHL70495

Ready to build integrations?

Get started with Zato and connect your systems in minutes.

Open source In Python