UNPKG

@dotbase/hl7-v2-message

Version:

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

108 lines (107 loc) 3.51 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Patient location master file */ class MFN_M05_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { MF_LOCATION: { name: "MF_LOCATION", isOptional: false, isRepeatable: true, }, MF_LOCATION_MF_LOC_DEPT: { name: "MF_LOCATION_MF_LOC_DEPT", isOptional: false, isRepeatable: true, parentCompound: "MF_LOCATION", }, }; this.segments = { MSH: { name: "MSH", type: "MSH", isOptional: false, isRepeatable: false, value: [] }, SFT: { name: "SFT", type: "SFT", isOptional: true, isRepeatable: true, value: [] }, MFI: { name: "MFI", type: "MFI", isOptional: false, isRepeatable: false, value: [] }, MF_LOCATION_MFE: { name: "MF_LOCATION_MFE", type: "MFE", isOptional: false, isRepeatable: false, parentCompound: this.compounds.MF_LOCATION, value: [] }, MF_LOCATION_LOC: { name: "MF_LOCATION_LOC", type: "LOC", isOptional: false, isRepeatable: false, parentCompound: this.compounds.MF_LOCATION, value: [] }, MF_LOCATION_LCH: { name: "MF_LOCATION_LCH", type: "LCH", isOptional: true, isRepeatable: true, parentCompound: this.compounds.MF_LOCATION, value: [] }, MF_LOCATION_LRL: { name: "MF_LOCATION_LRL", type: "LRL", isOptional: true, isRepeatable: true, parentCompound: this.compounds.MF_LOCATION, value: [] }, MF_LOCATION_MF_LOC_DEPT_LDP: { name: "MF_LOCATION_MF_LOC_DEPT_LDP", type: "LDP", isOptional: false, isRepeatable: false, parentCompound: this.compounds.MF_LOCATION_MF_LOC_DEPT, value: [] }, MF_LOCATION_MF_LOC_DEPT_LCH: { name: "MF_LOCATION_MF_LOC_DEPT_LCH", type: "LCH", isOptional: true, isRepeatable: true, parentCompound: this.compounds.MF_LOCATION_MF_LOC_DEPT, value: [] }, MF_LOCATION_MF_LOC_DEPT_LCC: { name: "MF_LOCATION_MF_LOC_DEPT_LCC", type: "LCC", isOptional: true, isRepeatable: true, parentCompound: this.compounds.MF_LOCATION_MF_LOC_DEPT, value: [] }, }; } get name() { return 'MFN_M05'; } get description() { return 'Patient location master file'; } } exports.default = MFN_M05_Message;