UNPKG

@dotbase/hl7-v2-message

Version:

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

127 lines (126 loc) 3.85 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Document Edit Notification */ class MDM_T07_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { COMMON_ORDER: { name: "COMMON_ORDER", isOptional: true, isRepeatable: true, }, COMMON_ORDER_TIMING: { name: "COMMON_ORDER_TIMING", isOptional: true, isRepeatable: true, parentCompound: "COMMON_ORDER", }, }; this.segments = { MSH: { name: "MSH", type: "MSH", isOptional: false, isRepeatable: false, value: [] }, SFT: { name: "SFT", type: "SFT", isOptional: true, isRepeatable: true, value: [] }, UAC: { name: "UAC", type: "UAC", isOptional: true, isRepeatable: false, value: [] }, EVN: { name: "EVN", type: "EVN", isOptional: false, isRepeatable: false, value: [] }, PID: { name: "PID", type: "PID", isOptional: false, isRepeatable: false, value: [] }, PV1: { name: "PV1", type: "PV1", isOptional: false, isRepeatable: false, value: [] }, COMMON_ORDER_ORC: { name: "COMMON_ORDER_ORC", type: "ORC", isOptional: false, isRepeatable: false, parentCompound: this.compounds.COMMON_ORDER, value: [] }, COMMON_ORDER_TIMING_TQ1: { name: "COMMON_ORDER_TIMING_TQ1", type: "TQ1", isOptional: false, isRepeatable: false, parentCompound: this.compounds.COMMON_ORDER_TIMING, value: [] }, COMMON_ORDER_TIMING_TQ2: { name: "COMMON_ORDER_TIMING_TQ2", type: "TQ2", isOptional: true, isRepeatable: true, parentCompound: this.compounds.COMMON_ORDER_TIMING, value: [] }, COMMON_ORDER_OBR: { name: "COMMON_ORDER_OBR", type: "OBR", isOptional: false, isRepeatable: false, parentCompound: this.compounds.COMMON_ORDER, value: [] }, COMMON_ORDER_NTE: { name: "COMMON_ORDER_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.COMMON_ORDER, value: [] }, TXA: { name: "TXA", type: "TXA", isOptional: false, isRepeatable: false, value: [] }, CON: { name: "CON", type: "CON", isOptional: true, isRepeatable: true, value: [] }, }; } get name() { return 'MDM_T07'; } get description() { return 'Document Edit Notification'; } } exports.default = MDM_T07_Message;