UNPKG

@dotbase/hl7-v2-message

Version:

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

193 lines (192 loc) 7.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Population/Location-Based Laboratory Order Acknowledgment Message */ class OPR_O38_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { RESPONSE: { name: "RESPONSE", isOptional: true, isRepeatable: false, }, RESPONSE_ORDER: { name: "RESPONSE_ORDER", isOptional: false, isRepeatable: true, parentCompound: "RESPONSE", }, RESPONSE_ORDER_SPECIMEN: { name: "RESPONSE_ORDER_SPECIMEN", isOptional: true, isRepeatable: true, parentCompound: "RESPONSE_ORDER", }, RESPONSE_ORDER_SPECIMEN_SPECIMEN_OBSERVATION: { name: "RESPONSE_ORDER_SPECIMEN_SPECIMEN_OBSERVATION", isOptional: true, isRepeatable: true, parentCompound: "RESPONSE_ORDER_SPECIMEN", }, RESPONSE_ORDER_SPECIMEN_OBSERVATION_REQUEST: { name: "RESPONSE_ORDER_SPECIMEN_OBSERVATION_REQUEST", isOptional: true, isRepeatable: true, parentCompound: "RESPONSE_ORDER_SPECIMEN", }, RESPONSE_ORDER_SPECIMEN_TIMING: { name: "RESPONSE_ORDER_SPECIMEN_TIMING", isOptional: true, isRepeatable: true, parentCompound: "RESPONSE_ORDER_SPECIMEN", }, }; this.segments = { MSH: { name: "MSH", type: "MSH", isOptional: false, isRepeatable: false, value: [] }, MSA: { name: "MSA", type: "MSA", isOptional: false, isRepeatable: false, value: [] }, ERR: { name: "ERR", type: "ERR", isOptional: true, isRepeatable: true, value: [] }, SFT: { name: "SFT", type: "SFT", isOptional: true, isRepeatable: true, value: [] }, UAC: { name: "UAC", type: "UAC", isOptional: true, isRepeatable: false, value: [] }, NTE: { name: "NTE", type: "NTE", isOptional: true, isRepeatable: true, value: [] }, RESPONSE_ORDER_NK1: { name: "RESPONSE_ORDER_NK1", type: "NK1", isOptional: false, isRepeatable: true, parentCompound: this.compounds.RESPONSE_ORDER, value: [] }, RESPONSE_ORDER_PID: { name: "RESPONSE_ORDER_PID", type: "PID", isOptional: true, isRepeatable: false, parentCompound: this.compounds.RESPONSE_ORDER, value: [] }, RESPONSE_ORDER_PRT: { name: "RESPONSE_ORDER_PRT", type: "PRT", isOptional: true, isRepeatable: true, parentCompound: this.compounds.RESPONSE_ORDER, value: [] }, RESPONSE_ORDER_SPECIMEN_SPM: { name: "RESPONSE_ORDER_SPECIMEN_SPM", type: "SPM", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RESPONSE_ORDER_SPECIMEN, value: [] }, RESPONSE_ORDER_SPECIMEN_SPECIMEN_OBSERVATION_OBX: { name: "RESPONSE_ORDER_SPECIMEN_SPECIMEN_OBSERVATION_OBX", type: "OBX", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RESPONSE_ORDER_SPECIMEN_SPECIMEN_OBSERVATION, value: [] }, RESPONSE_ORDER_SPECIMEN_SPECIMEN_OBSERVATION_PRT: { name: "RESPONSE_ORDER_SPECIMEN_SPECIMEN_OBSERVATION_PRT", type: "PRT", isOptional: true, isRepeatable: true, parentCompound: this.compounds.RESPONSE_ORDER_SPECIMEN_SPECIMEN_OBSERVATION, value: [] }, RESPONSE_ORDER_SPECIMEN_SAC: { name: "RESPONSE_ORDER_SPECIMEN_SAC", type: "SAC", isOptional: true, isRepeatable: true, parentCompound: this.compounds.RESPONSE_ORDER_SPECIMEN, value: [] }, RESPONSE_ORDER_SPECIMEN_OBSERVATION_REQUEST_ORC: { name: "RESPONSE_ORDER_SPECIMEN_OBSERVATION_REQUEST_ORC", type: "ORC", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RESPONSE_ORDER_SPECIMEN_OBSERVATION_REQUEST, value: [] }, RESPONSE_ORDER_SPECIMEN_OBSERVATION_REQUEST_OBR: { name: "RESPONSE_ORDER_SPECIMEN_OBSERVATION_REQUEST_OBR", type: "OBR", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RESPONSE_ORDER_SPECIMEN_OBSERVATION_REQUEST, value: [] }, RESPONSE_ORDER_SPECIMEN_OBSERVATION_REQUEST_PRT: { name: "RESPONSE_ORDER_SPECIMEN_OBSERVATION_REQUEST_PRT", type: "PRT", isOptional: true, isRepeatable: true, parentCompound: this.compounds.RESPONSE_ORDER_SPECIMEN_OBSERVATION_REQUEST, value: [] }, RESPONSE_ORDER_SPECIMEN_TIMING_TQ1: { name: "RESPONSE_ORDER_SPECIMEN_TIMING_TQ1", type: "TQ1", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RESPONSE_ORDER_SPECIMEN_TIMING, value: [] }, RESPONSE_ORDER_SPECIMEN_TIMING_TQ2: { name: "RESPONSE_ORDER_SPECIMEN_TIMING_TQ2", type: "TQ2", isOptional: true, isRepeatable: true, parentCompound: this.compounds.RESPONSE_ORDER_SPECIMEN_TIMING, value: [] }, }; } get name() { return 'OPR_O38'; } get description() { return 'Population/Location-Based Laboratory Order Acknowledgment Message'; } } exports.default = OPR_O38_Message;