HL7 QRI Query Response Instance

HL7 field reference QRI fields from HL7 v2.5.1 Show fields

These are the generated fields for the version selected at the top of the page. The document stays the same, but the reference panel follows that version.

Fields

FieldNameRequiredRepeatableTypeTable
QRI.1 Candidate Confidence No No NM
QRI.2 Match Reason Code No Yes IS 0392
QRI.3 Algorithm Descriptor No No CE 0393

QRI carries query response instance information such as match weight or confidence.

The standard describes QRI this way: The QRI segment is used to indicate the weight match for a returned record (where the responding system employs a numeric algorithm) and/or the match reason code (where the responding system uses rules or other match options).

Query segments define what the sender is asking for, how the receiver should format the answer, and how a multi-message response is continued or limited.

A query is an interface contract. The tag, parameters, row definitions, sort/filter rules, and continuation pointers must match exactly or the receiver may return technically valid data that is not what the requester expected.

The v2.5.1 structures show QRI in RSP_K21 - RSP - Get person demographics response. That tells you where it can appear, but the implementation guide still decides which optional fields are meaningful.

For practical interface work, read the generated field panel for datatype, required, repeatable, and table details, then use the notes below to decide what the field should mean in the receiving workflow.

QRI-1 Candidate Confidence OptionalO SingleS TypeNM

QRI-1 carries Candidate Confidence for this query workflow. Populate it only when the receiver has a clear use for it, and keep the value in the datatype shape shown in the generated field panel.

QRI-2 Match Reason Code OptionalO RepeatableR TypeIS Table0392

QRI-2 identifies the Match Reason Code for this query workflow. Send the identifier that the receiving system actually keys on, and keep the assigning authority or coding system visible when the datatype supports it.

If there are several identifiers, use repetitions deliberately and make each repeat self-explanatory rather than relying on position alone.

QRI-3 Algorithm Descriptor OptionalO SingleS TypeCE Table0393

QRI-3 carries Algorithm Descriptor for this query workflow. Populate it only when the receiver has a clear use for it, and keep the value in the datatype shape shown in the generated field panel.

The generated panel links this to HL7 table 0393; many real interfaces narrow that list further, so follow the receiver's implementation guide.

Related links