NEWFree ROI Calculators — quantify what prior auth and siloed data are costing your organization.Prior Auth ROI Siloed Data ROI
HL7 v2Segment9 min read

HL7 RXA Segment: Pharmacy / Treatment Administration

The RXA segment records what was actually administered to a patient: the substance or vaccine, how much, when it started and ended, who gave it, and the lot and expiration details that matter most for immunizations. Where the order segments say what should happen, RXA says what did happen. It is the core of an immunization (VXU) message and pairs with RXR for the route and site of administration.

Purpose

RXA carries the administration event: the administered code (RXA-5), the amount and units (RXA-6/7), the start and end times (RXA-3/4), the administering provider (RXA-10), and — critical for vaccines — the substance lot number (RXA-15), expiration date (RXA-16), and manufacturer (RXA-17). RXA-18 captures a refusal reason and RXA-20 the completion status, which together distinguish a given dose from a refused or partial one.

Used in

RXA appears in administration-scoped pharmacy and treatment messages: VXU (immunization update — its primary home) and RAS (pharmacy/treatment administration). It is preceded by an order group and almost always followed by an RXR describing route and site. See VXU.

Field-by-field reference

Source: the Vorro HL7 segment database (extracted from the official v2-to-FHIR IG). R = required (cardinality min ≥ 1). Repeat = field may repeat. Length is not carried by the FHIR source and is shown as .

SeqNameData TypeLengthReqRepeatTable #Description
RXA-1Give Sub-ID CounternmRLinks this administration to the give order.
RXA-2Administration Sub-ID CounternmRSequence number for repeated administrations.
RXA-3Date/Time Start of AdministrationdtmRWhen administration began; the occurrence time.
RXA-4Date/Time End of AdministrationdtmRWhen administration ended; equals start if instantaneous.
RXA-5Administered CodecweRHL70292What was given; CVX vaccine or drug code.
RXA-6Administered AmountnmRThe dose amount administered.
RXA-7Administered UnitscweOUnits for the administered amount.
RXA-8Administered Dosage FormcweOPhysical form of the administered substance.
RXA-9Administration NotescweOYCoded notes about the administration.
RXA-10Administering ProviderxcnOYThe provider(s) who administered the substance.
RXA-11Administered-at Locationla2OLocation where the substance was administered.
RXA-12Administered Per (Time Unit)stORate time unit for the administration.
RXA-13Administered StrengthnmOStrength of the administered substance.
RXA-14Administered Strength UnitscweOUnits for the administered strength.
RXA-15Substance Lot NumberstOYLot number of the administered substance.
RXA-16Substance Expiration DatedtmOYExpiration date of the substance lot.
RXA-17Substance Manufacturer NamecweOYHL70227Manufacturer of the administered substance.
RXA-18Substance/Treatment Refusal ReasoncweOYWhy the substance or treatment was refused.
RXA-19IndicationcweOYClinical reason the substance was given.
RXA-20Completion StatusidOHL70322Complete, partial, refused, or not administered.
RXA-21Action Code – RXAidOAdd, update, or delete this administration record.
RXA-22System Entry Date/TimedtmOWhen the record was entered in the system.
RXA-23Administered Drug Strength VolumenmOVolume of the administered drug strength.
RXA-24Administered Drug Strength Volume UnitscweOUnits for the drug strength volume.
RXA-25Administered Barcode IdentifiercweOBarcode identifier of the administered product.
RXA-26Pharmacy Order TypeidOPharmacy or treatment order type.
RXA-27Administer-atplOStructured location where administered.
RXA-28Administered-at AddressxadOAddress of the administration location.
RXA-29Administered Tag IdentifiereiOYTag identifier(s) for the administered product.

Most-used fields

  • RXA-5 Administered Code is what was given — for immunizations the CVX vaccine code that drives the FHIR vaccineCode. Almost every consumer branches on it.
  • RXA-3 Date/Time Start of Administration is the occurrence time registries record and de-duplicate on.
  • RXA-15 Substance Lot Number and RXA-16 Substance Expiration Date are required by most immunization registries for recall and inventory tracking.
  • RXA-17 Substance Manufacturer Name (MVX-coded) pairs with the lot for vaccine provenance.
  • RXA-20 Completion Status separates a completed dose (CP) from a refusal (RE) or not-administered (NA), which flips the FHIR status.

Version differences (2.3 to 2.8.2)

  • 2.3/2.4: RXA established for pharmacy/treatment administration; core give and timing fields present.
  • 2.5: coded fields move from CE toward CWE; RXA-20 Completion Status and RXA-21 Action Code clarified.
  • 2.7+: RXA-23 through RXA-29 (drug strength volume, barcode, pharmacy order type, structured administer-at location and address, tag identifier) added.
  • Receivers built for 2.3 ignore the trailing fields they do not recognize.

Common mistakes

  • Sending the administered amount in RXA-6 but omitting RXA-7 units, leaving the dose ambiguous.
  • Dropping RXA-15/16 lot number and expiration, which immunization registries reject or flag.
  • Confusing RXA-20 CP (completed) with a refusal — a refused dose needs RE plus RXA-18.
  • Forgetting the partner RXR: route and site live there, not in RXA.
  • Reading only the first repetition of RXA-10 when multiple administering providers are listed.

Examples

Minimal valid RXA (only the required fields):

RXA|0|1|20260610103000|20260610103000|08^Hep B, adolescent or pediatric^CVX|0.5

Fully-populated RXA (administered influenza vaccine):

RXA|0|1|20260610103000|20260610103000|140^Influenza, seasonal, injectable^CVX|0.5|mL^milliliter^UCUM|||1234^JONES^MARY^^^^RN||||||L20260A|20271231|SKB^GlaxoSmithKline^MVX||||CP|A|20260610104500

Annotated breakdown of the fully-populated example (selected fields):

RXA                                       ← segment ID
0                                         ← RXA-1  Give Sub-ID Counter
1                                         ← RXA-2  Administration Sub-ID Counter
20260610103000                            ← RXA-3  Date/Time Start of Administration
20260610103000                            ← RXA-4  Date/Time End of Administration
140^Influenza, seasonal, injectable^CVX   ← RXA-5  Administered Code (CVX)
0.5                                       ← RXA-6  Administered Amount
mL^milliliter^UCUM                        ← RXA-7  Administered Units
1234^JONES^MARY^^^^RN                      ← RXA-10 Administering Provider
L20260A                                   ← RXA-15 Substance Lot Number
20271231                                  ← RXA-16 Substance Expiration Date
SKB^GlaxoSmithKline^MVX                   ← RXA-17 Substance Manufacturer Name
CP                                        ← RXA-20 Completion Status (Complete)
A                                         ← RXA-21 Action Code (Add)
20260610104500                            ← RXA-22 System Entry Date/Time

In-context inside a VXU^V04 (immunization update), RXA with RXR following:

MSH|^~&|EHR|MERCYGEN|IIS|STATE|20260610104500||VXU^V04^VXU_V04|MSG200|P|2.5.1
PID|1||MR12345^^^MERCYGEN^MR||DOE^JOHN^Q||20150101|M
ORC|RE||IZ001^MERCYGEN
RXA|0|1|20260610103000|20260610103000|140^Influenza, seasonal, injectable^CVX|0.5|mL^milliliter^UCUM|||1234^JONES^MARY^^^^RN||||||L20260A|20271231|SKB^GlaxoSmithKline^MVX||||CP
RXR|IM^Intramuscular^HL70162|LD^Left Deltoid^HL70163

In-context inside a VXU^V04 recording a refused dose (RXA-18 + RXA-20 RE), RXR omitted as nothing was administered:

MSH|^~&|EHR|MERCYGEN|IIS|STATE|20260610110000||VXU^V04^VXU_V04|MSG201|P|2.5.1
PID|1||MR12345^^^MERCYGEN^MR||DOE^JOHN^Q||20150101|M
ORC|RE||IZ002^MERCYGEN
RXA|0|1|20260610110000|20260610110000|03^MMR^CVX|999|||||||||||||00^Parental refusal^NIP002||RE

FHIR mapping

Primary target resource: Immunization. The official ConceptMap is RXA to Immunization.

Key Immunization mappings:

RXA fieldFHIR target (Immunization)
RXA-3 Date/Time Start of AdministrationoccurrenceDateTime
RXA-5 Administered CodevaccineCode (CodeableConcept)
RXA-6 Administered AmountdoseQuantity.value
RXA-7 Administered UnitsdoseQuantity (SimpleQuantity)
RXA-10 Administering Providerperformer.actor (Practitioner), performer.function = AP
RXA-15 Substance Lot NumberlotNumber
RXA-16 Substance Expiration DateexpirationDate
RXA-17 Substance Manufacturer Namemanufacturer (Organization)
RXA-18 Substance/Treatment Refusal ReasonstatusReason (CodeableConcept)
RXA-19 IndicationreasonCode (CodeableConcept)
RXA-20 Completion Statusstatus (CPcompleted, via CompletionStatus vocab)
RXA-21 Action Codestatus (entered-in-error)
RXA-22 System Entry Date/Timerecorded
RXA-27 Administer-atlocation (Location)
RXA-28 Administered-at Addresslocation (Location.address)

RXA-10 also sets performer.function.coding.system to http://terminology.hl7.org/CodeSystem/v2-0443. Fields without a published Immunization mapping — RXA-1/2 (sub-ID counters), RXA-4 (end time), RXA-8/9, RXA-11/12/13/14, RXA-23 through RXA-26, and RXA-29 — are pharmacy/administration details not represented on Immunization.

Engine considerations

  • Required in practice: RXA-3, RXA-5, and RXA-6 are essential; immunization interfaces also effectively require RXA-15/16/17 for registry acceptance.
  • Treat RXA-5 as a structured CWE so the CVX code, text, and coding system survive — registries match on the code, not the text.
  • Honor RXA-20: a CP becomes Immunization status=completed, while RE/NA plus RXA-18 must not be emitted as a completed dose.
  • Preserve repeating fields (RXA-9/10/15/16/17/18/19/29) as arrays.
  • Keep the RXA/RXR pairing intact — route and site come from the following RXR.

How Vorro parses and produces RXA

Vorro maps RXA-5 to Immunization vaccineCode, RXA-3 to occurrenceDateTime, and RXA-15/16/17 to lotNumber, expirationDate, and manufacturer for registry submission. RXA-20 drives the FHIR status (with RXA-18 captured as statusReason on a refusal), administering providers in RXA-10 are emitted as performer with function AP per the official ConceptMap, and the following RXR is carried through so route and site reach Immunization.route and site.

  • RXR — the route and site that complete an RXA administration.
  • RXE — the pharmacy/treatment encoded order RXA reports against.
  • VXU messages — where RXA carries immunization administrations.

Sources

← Back to HL7 v2 Guide

Ready to Integrate This Into Your Workflow?

Talk to a Vorro expert about implementing HL7 v2 in your specific environment.

Browse HL7 v2 Guides
HL7 RXA Segment: Pharmacy / Treatment Administration | Vorro Academy | Vorro