UNPKG

@dotbase/hl7-v2-message

Version:

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

210 lines (209 loc) 7.66 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Response to Appointment Modification Request */ class SRR_S03_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { SCHEDULE: { name: "SCHEDULE", isOptional: true, isRepeatable: false, }, SCHEDULE_PATIENT: { name: "SCHEDULE_PATIENT", isOptional: true, isRepeatable: true, parentCompound: "SCHEDULE", }, SCHEDULE_RESOURCES: { name: "SCHEDULE_RESOURCES", isOptional: false, isRepeatable: true, parentCompound: "SCHEDULE", }, SCHEDULE_RESOURCES_SERVICE: { name: "SCHEDULE_RESOURCES_SERVICE", isOptional: true, isRepeatable: true, parentCompound: "SCHEDULE_RESOURCES", }, SCHEDULE_RESOURCES_GENERAL_RESOURCE: { name: "SCHEDULE_RESOURCES_GENERAL_RESOURCE", isOptional: true, isRepeatable: true, parentCompound: "SCHEDULE_RESOURCES", }, SCHEDULE_RESOURCES_LOCATION_RESOURCE: { name: "SCHEDULE_RESOURCES_LOCATION_RESOURCE", isOptional: true, isRepeatable: true, parentCompound: "SCHEDULE_RESOURCES", }, SCHEDULE_RESOURCES_PERSONNEL_RESOURCE: { name: "SCHEDULE_RESOURCES_PERSONNEL_RESOURCE", isOptional: true, isRepeatable: true, parentCompound: "SCHEDULE_RESOURCES", }, }; this.segments = { MSH: { name: "MSH", type: "MSH", isOptional: false, isRepeatable: false, value: [] }, MSA: { name: "MSA", type: "MSA", isOptional: false, isRepeatable: false, value: [] }, ERR: { name: "ERR", type: "ERR", isOptional: true, isRepeatable: true, value: [] }, SCHEDULE_SCH: { name: "SCHEDULE_SCH", type: "SCH", isOptional: false, isRepeatable: false, parentCompound: this.compounds.SCHEDULE, value: [] }, SCHEDULE_TQ1: { name: "SCHEDULE_TQ1", type: "TQ1", isOptional: true, isRepeatable: true, parentCompound: this.compounds.SCHEDULE, value: [] }, SCHEDULE_NTE: { name: "SCHEDULE_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.SCHEDULE, value: [] }, SCHEDULE_PATIENT_PID: { name: "SCHEDULE_PATIENT_PID", type: "PID", isOptional: false, isRepeatable: false, parentCompound: this.compounds.SCHEDULE_PATIENT, value: [] }, SCHEDULE_PATIENT_PV1: { name: "SCHEDULE_PATIENT_PV1", type: "PV1", isOptional: true, isRepeatable: false, parentCompound: this.compounds.SCHEDULE_PATIENT, value: [] }, SCHEDULE_PATIENT_PV2: { name: "SCHEDULE_PATIENT_PV2", type: "PV2", isOptional: true, isRepeatable: false, parentCompound: this.compounds.SCHEDULE_PATIENT, value: [] }, SCHEDULE_PATIENT_DG1: { name: "SCHEDULE_PATIENT_DG1", type: "DG1", isOptional: true, isRepeatable: true, parentCompound: this.compounds.SCHEDULE_PATIENT, value: [] }, SCHEDULE_RESOURCES_RGS: { name: "SCHEDULE_RESOURCES_RGS", type: "RGS", isOptional: false, isRepeatable: false, parentCompound: this.compounds.SCHEDULE_RESOURCES, value: [] }, SCHEDULE_RESOURCES_SERVICE_AIS: { name: "SCHEDULE_RESOURCES_SERVICE_AIS", type: "AIS", isOptional: false, isRepeatable: false, parentCompound: this.compounds.SCHEDULE_RESOURCES_SERVICE, value: [] }, SCHEDULE_RESOURCES_SERVICE_NTE: { name: "SCHEDULE_RESOURCES_SERVICE_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.SCHEDULE_RESOURCES_SERVICE, value: [] }, SCHEDULE_RESOURCES_GENERAL_RESOURCE_AIG: { name: "SCHEDULE_RESOURCES_GENERAL_RESOURCE_AIG", type: "AIG", isOptional: false, isRepeatable: false, parentCompound: this.compounds.SCHEDULE_RESOURCES_GENERAL_RESOURCE, value: [] }, SCHEDULE_RESOURCES_GENERAL_RESOURCE_NTE: { name: "SCHEDULE_RESOURCES_GENERAL_RESOURCE_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.SCHEDULE_RESOURCES_GENERAL_RESOURCE, value: [] }, SCHEDULE_RESOURCES_LOCATION_RESOURCE_AIL: { name: "SCHEDULE_RESOURCES_LOCATION_RESOURCE_AIL", type: "AIL", isOptional: false, isRepeatable: false, parentCompound: this.compounds.SCHEDULE_RESOURCES_LOCATION_RESOURCE, value: [] }, SCHEDULE_RESOURCES_LOCATION_RESOURCE_NTE: { name: "SCHEDULE_RESOURCES_LOCATION_RESOURCE_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.SCHEDULE_RESOURCES_LOCATION_RESOURCE, value: [] }, SCHEDULE_RESOURCES_PERSONNEL_RESOURCE_AIP: { name: "SCHEDULE_RESOURCES_PERSONNEL_RESOURCE_AIP", type: "AIP", isOptional: false, isRepeatable: false, parentCompound: this.compounds.SCHEDULE_RESOURCES_PERSONNEL_RESOURCE, value: [] }, SCHEDULE_RESOURCES_PERSONNEL_RESOURCE_NTE: { name: "SCHEDULE_RESOURCES_PERSONNEL_RESOURCE_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.SCHEDULE_RESOURCES_PERSONNEL_RESOURCE, value: [] }, }; } get name() { return 'SRR_S03'; } get description() { return 'Response to Appointment Modification Request'; } } exports.default = SRR_S03_Message;