HL7 MFR_M05 Patient Location Master File Response
MFR_M05 returns patient location master-file records in response to an original-style master-file query. It is the pull version of the same reference data that MFN_M05 can push.
Use it when a system needs to ask for a location, a range of locations, or a refreshed subset of the location master instead of waiting for a notification feed.
A small MFR M05 example
What workflow it represents
A consuming system queries the location master. The owner responds with location identity, optional characteristics and relationships, department assignment, and optional charge codes.
Receivers use this to repair or bootstrap local location tables, validate ADT locations, or reconcile location metadata without taking a full unsolicited feed.
How to read the structure
The response envelope starts with MSH, MSA, optional ERR, optional QAK, required QRD, and optional QRF.
MFI identifies the location master file. Each MF_QUERY group returns MFE, required LOC, optional LCH and LRL, required repeating LDP, and optional department-level LCH and LCC. DSC handles continuation.
Implementation traps
Do not confuse returned location master data with current patient occupancy. MFR_M05 can tell you what a bed is; ADT tells you who is in it.
Also preserve hierarchy and department context. A flat display label may be enough for a dropdown, but it is not enough for routing, reporting, or bed-management logic.
If the response uses continuation, do not rebuild the local location master from the first page only. That is how half a hospital disappears from a lookup table.
Reference notes
HL7 master-file query material defines MFR as the response to an MFQ query. The MFR_M05 structure returns patient location records with LOC plus location characteristic, relationship, department, and charge-code details.