@dotbase/hl7-v2-message
Version:
Parses HL7 v2.x messages into typed javascript objects and makes them easily accessable.
77 lines (76 loc) • 2.63 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message"));
/**
* Clinical study with phases and schedules master file
*/
class MFN_M06_Message extends Hl7Message_1.default {
constructor() {
super(...arguments);
this.compounds = {
MF_CLIN_STUDY: {
name: "MF_CLIN_STUDY",
isOptional: false,
isRepeatable: true,
},
MF_CLIN_STUDY_MF_PHASE_SCHED_DETAIL: {
name: "MF_CLIN_STUDY_MF_PHASE_SCHED_DETAIL",
isOptional: true,
isRepeatable: true,
parentCompound: "MF_CLIN_STUDY",
},
};
this.segments = {
MSH: {
name: "MSH",
type: "MSH",
isOptional: false,
isRepeatable: false,
value: []
},
MFI: {
name: "MFI",
type: "MFI",
isOptional: false,
isRepeatable: false,
value: []
},
MF_CLIN_STUDY_MFE: {
name: "MF_CLIN_STUDY_MFE",
type: "MFE",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.MF_CLIN_STUDY,
value: []
},
MF_CLIN_STUDY_CM0: {
name: "MF_CLIN_STUDY_CM0",
type: "CM0",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.MF_CLIN_STUDY,
value: []
},
MF_CLIN_STUDY_MF_PHASE_SCHED_DETAIL_CM1: {
name: "MF_CLIN_STUDY_MF_PHASE_SCHED_DETAIL_CM1",
type: "CM1",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.MF_CLIN_STUDY_MF_PHASE_SCHED_DETAIL,
value: []
},
MF_CLIN_STUDY_MF_PHASE_SCHED_DETAIL_CM2: {
name: "MF_CLIN_STUDY_MF_PHASE_SCHED_DETAIL_CM2",
type: "CM2",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.MF_CLIN_STUDY_MF_PHASE_SCHED_DETAIL,
value: []
},
};
}
get name() { return 'MFN_M06'; }
get description() { return 'Clinical study with phases and schedules master file'; }
}
exports.default = MFN_M06_Message;