UNPKG

@dotbase/hl7-v2-message

Version:

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

142 lines (141 loc) 4.88 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_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: [] }, 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_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_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: [] }, 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;