UNPKG

@dotbase/hl7-v2-message

Version:

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

110 lines (109 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")); /** * Add patient accounts */ class BAR_P01_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { VISIT: { name: "VISIT", isOptional: false, isRepeatable: true, }, }; this.segments = { MSH: { name: "MSH", type: "MSH", isOptional: false, isRepeatable: false, value: [] }, EVN: { name: "EVN", type: "EVN", isOptional: false, isRepeatable: false, value: [] }, PID: { name: "PID", type: "PID", isOptional: false, isRepeatable: false, value: [] }, VISIT_PV1: { name: "VISIT_PV1", type: "PV1", isOptional: true, isRepeatable: false, parentCompound: this.compounds.VISIT, value: [] }, VISIT_DG1: { name: "VISIT_DG1", type: "DG1", isOptional: true, isRepeatable: true, parentCompound: this.compounds.VISIT, value: [] }, VISIT_PR1: { name: "VISIT_PR1", type: "PR1", isOptional: true, isRepeatable: true, parentCompound: this.compounds.VISIT, value: [] }, VISIT_GT1: { name: "VISIT_GT1", type: "GT1", isOptional: true, isRepeatable: true, parentCompound: this.compounds.VISIT, value: [] }, VISIT_NK1: { name: "VISIT_NK1", type: "NK1", isOptional: true, isRepeatable: true, parentCompound: this.compounds.VISIT, value: [] }, VISIT_IN1: { name: "VISIT_IN1", type: "IN1", isOptional: true, isRepeatable: true, parentCompound: this.compounds.VISIT, value: [] }, VISIT_ACC: { name: "VISIT_ACC", type: "ACC", isOptional: true, isRepeatable: false, parentCompound: this.compounds.VISIT, value: [] }, VISIT_UB1: { name: "VISIT_UB1", type: "UB1", isOptional: true, isRepeatable: false, parentCompound: this.compounds.VISIT, value: [] }, }; } get name() { return 'BAR_P01'; } get description() { return 'Add patient accounts'; } } exports.default = BAR_P01_Message;