UNPKG

@dotbase/hl7-v2-message

Version:

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

164 lines (163 loc) 5.33 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 = { RESPONSE: { name: "RESPONSE", isOptional: false, isRepeatable: true, }, RESPONSE_PATIENT: { name: "RESPONSE_PATIENT", isOptional: true, isRepeatable: false, parentCompound: "RESPONSE", }, RESPONSE_ORDER: { name: "RESPONSE_ORDER", isOptional: false, isRepeatable: true, parentCompound: "RESPONSE", }, RESPONSE_ORDER_OBSERVATION: { name: "RESPONSE_ORDER_OBSERVATION", isOptional: false, isRepeatable: true, parentCompound: "RESPONSE_ORDER", }, }; this.segments = { MSH: { name: "MSH", type: "MSH", isOptional: false, 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: [] }, RESPONSE_PATIENT_PID: { name: "RESPONSE_PATIENT_PID", type: "PID", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RESPONSE_PATIENT, value: [] }, RESPONSE_PATIENT_NTE: { name: "RESPONSE_PATIENT_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.RESPONSE_PATIENT, value: [] }, RESPONSE_ORDER_ORC: { name: "RESPONSE_ORDER_ORC", type: "ORC", isOptional: true, isRepeatable: false, parentCompound: this.compounds.RESPONSE_ORDER, value: [] }, RESPONSE_ORDER_OBR: { name: "RESPONSE_ORDER_OBR", type: "OBR", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RESPONSE_ORDER, value: [] }, RESPONSE_ORDER_NTE: { name: "RESPONSE_ORDER_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.RESPONSE_ORDER, value: [] }, RESPONSE_ORDER_CTD: { name: "RESPONSE_ORDER_CTD", type: "CTD", isOptional: true, isRepeatable: false, parentCompound: this.compounds.RESPONSE_ORDER, value: [] }, RESPONSE_ORDER_OBSERVATION_OBX: { name: "RESPONSE_ORDER_OBSERVATION_OBX", type: "OBX", isOptional: true, isRepeatable: false, parentCompound: this.compounds.RESPONSE_ORDER_OBSERVATION, value: [] }, RESPONSE_ORDER_OBSERVATION_NTE: { name: "RESPONSE_ORDER_OBSERVATION_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.RESPONSE_ORDER_OBSERVATION, value: [] }, RESPONSE_ORDER_CTI: { name: "RESPONSE_ORDER_CTI", type: "CTI", isOptional: true, isRepeatable: true, parentCompound: this.compounds.RESPONSE_ORDER, value: [] }, ERR: { name: "ERR", type: "ERR", isOptional: true, isRepeatable: false, 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;