HL7 RSP_Z82 Dispense History Response
RSP_Z82 returns patient pharmacy dispense history. A requesting system asks for prior dispenses, usually with a QBP query profile, and the pharmacy or medication-history server sends back matching patient, order, dispense, route, and observation details.
This is a query response, not a new dispense event. If the receiver wants to file the result safely, it has to read MSA, QAK, QPD, and the returned pharmacy groups together.
A small RSP Z82 example
What systems do with it
The sender is usually a pharmacy system, medication-history server, or integration service that can search dispense records. The receiver may populate medication reconciliation, answer a pharmacy-history screen, support charge review, or enrich a clinical repository.
The returned rows are pharmacy-shaped rather than table-shaped. PID identifies the patient when present, ORC ties the result to an order, RXD carries the dispense, RXR gives the route, and OBX can carry status or supporting observations.
How to read the structure
The required query-response group can repeat. Each group may include patient context and then one or more common-order groups. The common-order group is broad because a dispense-history answer may need the original order, encoded order, actual dispense, route, components, and observations.
RCP is part of the response structure here, so the response can echo or constrain the quantity and modality of the returned history. Optional DSC handles continuation when the result set is larger than one response.
Implementation traps
Do not treat historical dispense as current medication truth. A dispense can be returned, wasted, replaced, or never administered. It is evidence, not a complete medication list by itself.
Also preserve identifiers. The placer order, filler order, prescription number, and dispense sub-ID are the breadcrumbs that let pharmacy, billing, and clinical systems agree which dispense is being discussed.
Reference notes
HL7 identifies event Z82 as Dispense History (Response), and the refactored message page shows RSP_Z82 with query status, patient context, common-order pharmacy groups, observations, and optional continuation. See HL7 Europe event Z82 and RSP_Z82.