UNPKG

@dotbase/hl7-v2-message

Version:

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

144 lines (143 loc) 4.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Segment pattern response */ class RSP_K25_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { STAFF: { name: "STAFF", isOptional: false, isRepeatable: true, }, }; 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: [] }, MSA: { name: "MSA", type: "MSA", isOptional: false, isRepeatable: false, value: [] }, ERR: { name: "ERR", type: "ERR", isOptional: true, isRepeatable: true, value: [] }, QAK: { name: "QAK", type: "QAK", isOptional: false, isRepeatable: false, value: [] }, QPD: { name: "QPD", type: "QPD", isOptional: false, isRepeatable: false, value: [] }, RCP: { name: "RCP", type: "RCP", isOptional: false, isRepeatable: false, value: [] }, STAFF_STF: { name: "STAFF_STF", type: "STF", isOptional: false, isRepeatable: false, parentCompound: this.compounds.STAFF, value: [] }, STAFF_PRA: { name: "STAFF_PRA", type: "PRA", isOptional: true, isRepeatable: true, parentCompound: this.compounds.STAFF, value: [] }, STAFF_ORG: { name: "STAFF_ORG", type: "ORG", isOptional: true, isRepeatable: true, parentCompound: this.compounds.STAFF, value: [] }, STAFF_AFF: { name: "STAFF_AFF", type: "AFF", isOptional: true, isRepeatable: true, parentCompound: this.compounds.STAFF, value: [] }, STAFF_LAN: { name: "STAFF_LAN", type: "LAN", isOptional: true, isRepeatable: true, parentCompound: this.compounds.STAFF, value: [] }, STAFF_EDU: { name: "STAFF_EDU", type: "EDU", isOptional: true, isRepeatable: true, parentCompound: this.compounds.STAFF, value: [] }, STAFF_CER: { name: "STAFF_CER", type: "CER", isOptional: true, isRepeatable: true, parentCompound: this.compounds.STAFF, value: [] }, DSC: { name: "DSC", type: "DSC", isOptional: true, isRepeatable: false, value: [] }, }; } get name() { return 'RSP_K25'; } get description() { return 'Segment pattern response'; } } exports.default = RSP_K25_Message;