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.58 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Non-stock requisition acknowledgement */ class ORN_O08_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: { name: "RESPONSE_ORDER", isOptional: false, 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_ORC: { name: "RESPONSE_ORDER_ORC", type: "ORC", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RESPONSE_ORDER, value: [] }, RESPONSE_ORDER_RQD: { name: "RESPONSE_ORDER_RQD", type: "RQD", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RESPONSE_ORDER, value: [] }, RESPONSE_ORDER_RQ1: { name: "RESPONSE_ORDER_RQ1", type: "RQ1", isOptional: true, 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: [] }, }; } get name() { return 'ORN_O08'; } get description() { return 'Non-stock requisition acknowledgement'; } } exports.default = ORN_O08_Message;