UNPKG

@dotbase/hl7-v2-message

Version:

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

113 lines (112 loc) 3.55 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Stock requisition acknowledgement */ class ORS_O06_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { RSPONSE: { name: "RSPONSE", isOptional: true, isRepeatable: false, }, RSPONSE_PATIENT: { name: "RSPONSE_PATIENT", isOptional: true, isRepeatable: false, parentCompound: "RSPONSE", }, RSPONSE_ORDER: { name: "RSPONSE_ORDER", isOptional: false, isRepeatable: true, parentCompound: "RSPONSE", }, }; 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: false, value: [] }, NTE: { name: "NTE", type: "NTE", isOptional: true, isRepeatable: true, value: [] }, RSPONSE_PATIENT_PID: { name: "RSPONSE_PATIENT_PID", type: "PID", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RSPONSE_PATIENT, value: [] }, RSPONSE_PATIENT_NTE: { name: "RSPONSE_PATIENT_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.RSPONSE_PATIENT, value: [] }, RSPONSE_ORDER_ORC: { name: "RSPONSE_ORDER_ORC", type: "ORC", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RSPONSE_ORDER, value: [] }, RSPONSE_ORDER_RQD: { name: "RSPONSE_ORDER_RQD", type: "RQD", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RSPONSE_ORDER, value: [] }, RSPONSE_ORDER_RQ1: { name: "RSPONSE_ORDER_RQ1", type: "RQ1", isOptional: true, isRepeatable: false, parentCompound: this.compounds.RSPONSE_ORDER, value: [] }, RSPONSE_ORDER_NTE: { name: "RSPONSE_ORDER_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.RSPONSE_ORDER, value: [] }, }; } get name() { return 'ORS_O06'; } get description() { return 'Stock requisition acknowledgement'; } } exports.default = ORS_O06_Message;