UNPKG

@dotbase/hl7-v2-message

Version:

Parses HL7 v2.x messages into typed javascript objects and makes them easily accessable.

216 lines (215 loc) 7.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Response to query transmission of requested observation */ class ORF_R04_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { QUERY_RESPONSE: { name: "QUERY_RESPONSE", isOptional: false, isRepeatable: true, }, QUERY_RESPONSE_PATIENT: { name: "QUERY_RESPONSE_PATIENT", isOptional: true, isRepeatable: false, parentCompound: "QUERY_RESPONSE", }, QUERY_RESPONSE_ORDER: { name: "QUERY_RESPONSE_ORDER", isOptional: false, isRepeatable: true, parentCompound: "QUERY_RESPONSE", }, QUERY_RESPONSE_ORDER_TIMING_QTY: { name: "QUERY_RESPONSE_ORDER_TIMING_QTY", isOptional: true, isRepeatable: true, parentCompound: "QUERY_RESPONSE_ORDER", }, QUERY_RESPONSE_ORDER_OBSERVATION: { name: "QUERY_RESPONSE_ORDER_OBSERVATION", isOptional: false, isRepeatable: true, parentCompound: "QUERY_RESPONSE_ORDER", }, }; this.segments = { MSH: { name: "MSH", type: "MSH", isOptional: false, isRepeatable: false, value: [] }, SFT: { name: "SFT", type: "SFT", isOptional: true, isRepeatable: true, value: [] }, UAC: { name: "UAC", type: "UAC", isOptional: true, isRepeatable: false, value: [] }, MSA: { name: "MSA", type: "MSA", isOptional: false, isRepeatable: false, value: [] }, QRD: { name: "QRD", type: "QRD", isOptional: false, isRepeatable: false, value: [] }, QRF: { name: "QRF", type: "QRF", isOptional: true, isRepeatable: false, value: [] }, QUERY_RESPONSE_PATIENT_PID: { name: "QUERY_RESPONSE_PATIENT_PID", type: "PID", isOptional: false, isRepeatable: false, parentCompound: this.compounds.QUERY_RESPONSE_PATIENT, value: [] }, QUERY_RESPONSE_PATIENT_NTE: { name: "QUERY_RESPONSE_PATIENT_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.QUERY_RESPONSE_PATIENT, value: [] }, QUERY_RESPONSE_PATIENT_OBX: { name: "QUERY_RESPONSE_PATIENT_OBX", type: "OBX", isOptional: true, isRepeatable: true, parentCompound: this.compounds.QUERY_RESPONSE_PATIENT, value: [] }, QUERY_RESPONSE_ORDER_ORC: { name: "QUERY_RESPONSE_ORDER_ORC", type: "ORC", isOptional: true, isRepeatable: false, parentCompound: this.compounds.QUERY_RESPONSE_ORDER, value: [] }, QUERY_RESPONSE_ORDER_OBR: { name: "QUERY_RESPONSE_ORDER_OBR", type: "OBR", isOptional: false, isRepeatable: false, parentCompound: this.compounds.QUERY_RESPONSE_ORDER, value: [] }, QUERY_RESPONSE_ORDER_NTE: { name: "QUERY_RESPONSE_ORDER_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.QUERY_RESPONSE_ORDER, value: [] }, QUERY_RESPONSE_ORDER_ROL: { name: "QUERY_RESPONSE_ORDER_ROL", type: "ROL", isOptional: true, isRepeatable: true, parentCompound: this.compounds.QUERY_RESPONSE_ORDER, value: [] }, QUERY_RESPONSE_ORDER_TIMING_QTY_TQ1: { name: "QUERY_RESPONSE_ORDER_TIMING_QTY_TQ1", type: "TQ1", isOptional: false, isRepeatable: false, parentCompound: this.compounds.QUERY_RESPONSE_ORDER_TIMING_QTY, value: [] }, QUERY_RESPONSE_ORDER_TIMING_QTY_TQ2: { name: "QUERY_RESPONSE_ORDER_TIMING_QTY_TQ2", type: "TQ2", isOptional: true, isRepeatable: true, parentCompound: this.compounds.QUERY_RESPONSE_ORDER_TIMING_QTY, value: [] }, QUERY_RESPONSE_ORDER_CTD: { name: "QUERY_RESPONSE_ORDER_CTD", type: "CTD", isOptional: true, isRepeatable: false, parentCompound: this.compounds.QUERY_RESPONSE_ORDER, value: [] }, QUERY_RESPONSE_ORDER_OBSERVATION_OBX: { name: "QUERY_RESPONSE_ORDER_OBSERVATION_OBX", type: "OBX", isOptional: true, isRepeatable: false, parentCompound: this.compounds.QUERY_RESPONSE_ORDER_OBSERVATION, value: [] }, QUERY_RESPONSE_ORDER_OBSERVATION_NTE: { name: "QUERY_RESPONSE_ORDER_OBSERVATION_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.QUERY_RESPONSE_ORDER_OBSERVATION, value: [] }, QUERY_RESPONSE_ORDER_CTI: { name: "QUERY_RESPONSE_ORDER_CTI", type: "CTI", isOptional: true, isRepeatable: true, parentCompound: this.compounds.QUERY_RESPONSE_ORDER, value: [] }, ERR: { name: "ERR", type: "ERR", isOptional: true, isRepeatable: true, value: [] }, QAK: { name: "QAK", type: "QAK", isOptional: true, isRepeatable: false, value: [] }, DSC: { name: "DSC", type: "DSC", isOptional: true, isRepeatable: false, value: [] }, }; } get name() { return 'ORF_R04'; } get description() { return 'Response to query transmission of requested observation'; } } exports.default = ORF_R04_Message;