UNPKG

@dotbase/hl7-v2-message

Version:

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

156 lines (155 loc) 4.82 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Unsolicited vaccination record update */ class VXU_V04_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { PATIENT: { name: "PATIENT", isOptional: true, isRepeatable: false, }, INSURANCE: { name: "INSURANCE", isOptional: true, isRepeatable: true, }, ORDER: { name: "ORDER", isOptional: true, isRepeatable: true, }, ORDER_OBSERVATION: { name: "ORDER_OBSERVATION", isOptional: true, isRepeatable: true, parentCompound: "ORDER", }, }; this.segments = { MSH: { name: "MSH", type: "MSH", isOptional: false, isRepeatable: false, value: [] }, PID: { name: "PID", type: "PID", isOptional: false, isRepeatable: false, value: [] }, PD1: { name: "PD1", type: "PD1", isOptional: true, isRepeatable: false, value: [] }, NK1: { name: "NK1", type: "NK1", isOptional: true, isRepeatable: true, value: [] }, PATIENT_PV1: { name: "PATIENT_PV1", type: "PV1", isOptional: false, isRepeatable: false, parentCompound: this.compounds.PATIENT, value: [] }, PATIENT_PV2: { name: "PATIENT_PV2", type: "PV2", isOptional: true, isRepeatable: false, parentCompound: this.compounds.PATIENT, value: [] }, GT1: { name: "GT1", type: "GT1", isOptional: true, isRepeatable: true, value: [] }, INSURANCE_IN1: { name: "INSURANCE_IN1", type: "IN1", isOptional: false, isRepeatable: false, parentCompound: this.compounds.INSURANCE, value: [] }, INSURANCE_IN2: { name: "INSURANCE_IN2", type: "IN2", isOptional: true, isRepeatable: false, parentCompound: this.compounds.INSURANCE, value: [] }, INSURANCE_IN3: { name: "INSURANCE_IN3", type: "IN3", isOptional: true, isRepeatable: false, parentCompound: this.compounds.INSURANCE, value: [] }, ORDER_ORC: { name: "ORDER_ORC", type: "ORC", isOptional: true, isRepeatable: false, parentCompound: this.compounds.ORDER, value: [] }, ORDER_RXA: { name: "ORDER_RXA", type: "RXA", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER, value: [] }, ORDER_RXR: { name: "ORDER_RXR", type: "RXR", isOptional: true, isRepeatable: false, parentCompound: this.compounds.ORDER, value: [] }, ORDER_OBSERVATION_OBX: { name: "ORDER_OBSERVATION_OBX", type: "OBX", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER_OBSERVATION, value: [] }, ORDER_OBSERVATION_NTE: { name: "ORDER_OBSERVATION_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.ORDER_OBSERVATION, value: [] }, }; } get name() { return 'VXU_V04'; } get description() { return 'Unsolicited vaccination record update'; } } exports.default = VXU_V04_Message;