Skip to main content
Version: v0.0.4

Interface: QueryRecord

The Q (Request Information) record - the host-query request.

A Q record asks the LIS for information (e.g. outstanding orders for a specimen); its presence classifies the whole message as a request, never a result set (see AstmMessage.classification). Its safety-relevant fields - the starting/ending range ID and the request-information status - are surfaced verbatim; the field positions are the public ASTM E1394 layout, but their internal structure and code meanings are [OSS-derived / paywalled] and are therefore never interpreted or guessed.

Extends

  • RecordBase

Properties

endingRangeId?

readonly optional endingRangeId?: string

Field 4 - ending range ID number, surfaced verbatim (same [OSS-derived] caveat as field 3).


fields

readonly fields: readonly AstmField[]

The record's fields. fields[0] is the type-letter field; data fields are 1-indexed after it.

Inherited from

RecordBase.fields


queriesAllTests

readonly queriesAllTests: boolean

true when field 5 is the literal ALL universal-query keyword (case-insensitive). [OSS-derived / paywalled]: the token is surfaced because it appears in the OSS references, but its exact host-query behavior (which tests a bare ALL selects, and whether the vendor answers with a full H/P/O/L or a P/O-only response) is paywalled and vendor-specific - not decided here.


recordIndex

readonly recordIndex: number

0-based ordinal of the record within the message.

Inherited from

RecordBase.recordIndex


requestInformationStatus?

readonly optional requestInformationStatus?: string

Field 13 - request-information status code(s), surfaced verbatim. The status code set is [OSS-derived / paywalled]: with no publicly-groundable enumeration, this parser recognizes none of them and interprets nothing - every present status is surfaced raw and flagged with a value-free ASTM_RECORD_UNINTERPRETED_QUERY_STATUS warning. Never mapped to a guessed meaning.


seq?

readonly optional seq?: string

Field 2 - sequence number.


startingRangeId?

readonly optional startingRangeId?: string

Field 3 - starting range ID number, surfaced as the full verbatim field text (never truncated to a component). Its caret component structure (e.g. patient ID ^ specimen ID) is [OSS-derived / paywalled] - the raw split is available via RecordBase.fields, but the meaning of each component is never assigned here.


type

readonly type: "Q"

The record's raw type letter.

Overrides

RecordBase.type


universalTestId?

readonly optional universalTestId?: UniversalTestId

Field 5 - Universal Test ID (the same caret structure as an O/R record's), recognized by provenance only. When the field is the literal universal-query keyword, QueryRecord.queriesAllTests is set instead - see its caveat.