UNPKG

@dotbase/hl7-v2-message

Version:

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

135 lines (134 loc) 4.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Dietary order acknowledgment message */ class ORD_O02_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { RESPONSE: { name: "RESPONSE", isOptional: true, isRepeatable: false, }, RESPONSE_PATIENT: { name: "RESPONSE_PATIENT", isOptional: true, isRepeatable: false, parentCompound: "RESPONSE", }, RESPONSE_ORDER_DIET: { name: "RESPONSE_ORDER_DIET", isOptional: false, isRepeatable: true, parentCompound: "RESPONSE", }, RESPONSE_ORDER_TRAY: { name: "RESPONSE_ORDER_TRAY", isOptional: true, isRepeatable: true, parentCompound: "RESPONSE", }, }; 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: [] }, 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_DIET_ORC: { name: "RESPONSE_ORDER_DIET_ORC", type: "ORC", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RESPONSE_ORDER_DIET, value: [] }, RESPONSE_ORDER_DIET_ODS: { name: "RESPONSE_ORDER_DIET_ODS", type: "ODS", isOptional: true, isRepeatable: true, parentCompound: this.compounds.RESPONSE_ORDER_DIET, value: [] }, RESPONSE_ORDER_DIET_NTE: { name: "RESPONSE_ORDER_DIET_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.RESPONSE_ORDER_DIET, value: [] }, RESPONSE_ORDER_TRAY_ORC: { name: "RESPONSE_ORDER_TRAY_ORC", type: "ORC", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RESPONSE_ORDER_TRAY, value: [] }, RESPONSE_ORDER_TRAY_ODT: { name: "RESPONSE_ORDER_TRAY_ODT", type: "ODT", isOptional: true, isRepeatable: true, parentCompound: this.compounds.RESPONSE_ORDER_TRAY, value: [] }, RESPONSE_ORDER_TRAY_NTE: { name: "RESPONSE_ORDER_TRAY_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.RESPONSE_ORDER_TRAY, value: [] }, }; } get name() { return 'ORD_O02'; } get description() { return 'Dietary order acknowledgment message'; } } exports.default = ORD_O02_Message;