UNPKG

@dotbase/hl7-v2-message

Version:

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

106 lines (105 loc) 3.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Automated equipment command */ class EAC_U07_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { COMMAND: { name: "COMMAND", isOptional: false, isRepeatable: true, }, COMMAND_SPECIMEN_CONTAINER: { name: "COMMAND_SPECIMEN_CONTAINER", isOptional: true, isRepeatable: false, parentCompound: "COMMAND", }, }; 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: [] }, EQU: { name: "EQU", type: "EQU", isOptional: false, isRepeatable: false, value: [] }, COMMAND_ECD: { name: "COMMAND_ECD", type: "ECD", isOptional: false, isRepeatable: false, parentCompound: this.compounds.COMMAND, value: [] }, COMMAND_TQ1: { name: "COMMAND_TQ1", type: "TQ1", isOptional: true, isRepeatable: false, parentCompound: this.compounds.COMMAND, value: [] }, COMMAND_SPECIMEN_CONTAINER_SAC: { name: "COMMAND_SPECIMEN_CONTAINER_SAC", type: "SAC", isOptional: false, isRepeatable: false, parentCompound: this.compounds.COMMAND_SPECIMEN_CONTAINER, value: [] }, COMMAND_SPECIMEN_CONTAINER_SPM: { name: "COMMAND_SPECIMEN_CONTAINER_SPM", type: "SPM", isOptional: true, isRepeatable: true, parentCompound: this.compounds.COMMAND_SPECIMEN_CONTAINER, value: [] }, COMMAND_CNS: { name: "COMMAND_CNS", type: "CNS", isOptional: true, isRepeatable: false, parentCompound: this.compounds.COMMAND, value: [] }, ROL: { name: "ROL", type: "ROL", isOptional: true, isRepeatable: false, value: [] }, }; } get name() { return 'EAC_U07'; } get description() { return 'Automated equipment command'; } } exports.default = EAC_U07_Message;