HL7 RPI_I04 Return Patient Demographic Data
RPI_I04 returns patient information after an RQP_I04 request. It has the same general flavor as the request, but adds MSA and can include richer guarantor and insurance groups.
In practical terms, this is the message a receiving system sends when it says, "I found the patient; here is the demographic, next-of-kin, guarantor, and coverage data I can return."
A small RPI I04 example
What systems do with it
The requester may use RPI_I04 to fill a referral packet, update a worklist, or show a user the receiver's demographics for confirmation. An integration engine may map selected fields onward, but it should usually keep an audit trail of where those values came from.
MSA links the response to the original request. If the receiver found multiple possible patients or no patient at all, the profile should define how that status is returned. Do not let a blank PID or ambiguous response look like a clean answer.
How to read the structure
MSH and MSA frame the response. The provider group identifies the responding provider or organization using PRD and CTD.
PID carries the returned patient identity and demographics. NK1 can repeat for associated parties. The optional guarantor/insurance group contains GT1 and insurance segments such as IN1, IN2, and IN3.
Implementation traps
Do not treat returned demographics as a blind overwrite. Demographic data needs source-of-truth rules, field-level trust, timestamps, and sometimes human confirmation.
Also watch for identifier collisions. If PID-3 repeats with local and national identifiers, preserve each assigning authority. Flattening them into one patient number is how a useful response becomes dangerous.
Reference notes
The HL7 v2+ I04 material describes RQP/RPI as the request and return pair for patient demographic information, including billing and insurance information. The RPI response adds MSA and can return provider, patient, guarantor, insurance, and note content.