UNPKG

@dotbase/hl7-v2-message

Version:

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

78 lines (77 loc) 2.33 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Patient enters phase of clinical trial */ class CRM_C05_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { PATIENT: { name: "PATIENT", 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: [] }, PATIENT_PID: { name: "PATIENT_PID", type: "PID", isOptional: false, isRepeatable: false, parentCompound: this.compounds.PATIENT, value: [] }, PATIENT_PV1: { name: "PATIENT_PV1", type: "PV1", isOptional: true, isRepeatable: false, parentCompound: this.compounds.PATIENT, value: [] }, PATIENT_CSR: { name: "PATIENT_CSR", type: "CSR", isOptional: false, isRepeatable: false, parentCompound: this.compounds.PATIENT, value: [] }, PATIENT_CSP: { name: "PATIENT_CSP", type: "CSP", isOptional: true, isRepeatable: true, parentCompound: this.compounds.PATIENT, value: [] }, }; } get name() { return 'CRM_C05'; } get description() { return 'Patient enters phase of clinical trial'; } } exports.default = CRM_C05_Message;