Previous Page TOC Index Next Page

8.3.3 MFQ/MFR - master files query

The MFQ transaction allows a system to query for a particular record or group records (defined by the primary key) in a particular master file.

The Master files query is defined as follows:

MFQ     Query for Master File Record    Chapter
MSH     Message Header        2
QRD     Query Definition        2
[QRF]    Query Filter         2
[DSC]    Continuation         2
MFR     Master Files Response      Chapter
MSH     Message Header        2
MSA     Acknowledgment        2
[ ERR ]    Error          2
QRD     Query Definition        2
[QRF]    Query Filter         2
MFI     Master File Name        8
 {MFE    Master File Entry        8
   [Z..] }   One or more HL7 and/or      (varies)
     Z-segments carrying the data for the entry 
     identified in the MFE segment.
[DSC]    Continuation         2

8.3.3.1 MFQ use notes

The value "MFQ" of the QRD-what subject filter of the QRD segment identifies a master files query. The QRD-what department data code of the QRD segment identifies the name of the master file in question. The QRD-what data code value qual of the QRD segment identifies the primary key (or keys, or range of keys) defining the master file MFE segments (and associated master file records, denoted by "Z") to be returned with the response. The QRF segment may be used to define time ranges, particular MFN record-level event codes etc. Unless otherwise specified, the response returns only active current record(s).

Previous Page TOC Index Next Page