UNPKG

@dotbase/hl7-v2-message

Version:

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

366 lines (365 loc) 13.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Pharmacy/Treatment Administration */ class RAS_O17_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { PATIENT: { name: "PATIENT", isOptional: true, isRepeatable: false, }, PATIENT_ADDITIONAL_DEMOGRAPHICS: { name: "PATIENT_ADDITIONAL_DEMOGRAPHICS", isOptional: true, isRepeatable: false, parentCompound: "PATIENT", }, PATIENT_PATIENT_VISIT: { name: "PATIENT_PATIENT_VISIT", isOptional: true, isRepeatable: false, parentCompound: "PATIENT", }, ORDER: { name: "ORDER", isOptional: false, isRepeatable: true, }, ORDER_TIMING: { name: "ORDER_TIMING", isOptional: true, isRepeatable: true, parentCompound: "ORDER", }, ORDER_ORDER_DETAIL: { name: "ORDER_ORDER_DETAIL", isOptional: true, isRepeatable: false, parentCompound: "ORDER", }, ORDER_ORDER_DETAIL_ORDER_DETAIL_SUPPLEMENT: { name: "ORDER_ORDER_DETAIL_ORDER_DETAIL_SUPPLEMENT", isOptional: true, isRepeatable: false, parentCompound: "ORDER_ORDER_DETAIL", }, ORDER_ORDER_DETAIL_ORDER_DETAIL_SUPPLEMENT_COMPONENTS: { name: "ORDER_ORDER_DETAIL_ORDER_DETAIL_SUPPLEMENT_COMPONENTS", isOptional: true, isRepeatable: true, parentCompound: "ORDER_ORDER_DETAIL_ORDER_DETAIL_SUPPLEMENT", }, ORDER_ENCODING: { name: "ORDER_ENCODING", isOptional: true, isRepeatable: false, parentCompound: "ORDER", }, ORDER_ENCODING_TIMING_ENCODED: { name: "ORDER_ENCODING_TIMING_ENCODED", isOptional: false, isRepeatable: true, parentCompound: "ORDER_ENCODING", }, ORDER_ADMINISTRATION: { name: "ORDER_ADMINISTRATION", isOptional: false, isRepeatable: true, parentCompound: "ORDER", }, ORDER_ADMINISTRATION_OBSERVATION: { name: "ORDER_ADMINISTRATION_OBSERVATION", isOptional: true, isRepeatable: true, parentCompound: "ORDER_ADMINISTRATION", }, }; 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: [] }, NTE: { name: "NTE", type: "NTE", isOptional: true, isRepeatable: true, value: [] }, PATIENT_PID: { name: "PATIENT_PID", type: "PID", isOptional: false, isRepeatable: false, parentCompound: this.compounds.PATIENT, value: [] }, PATIENT_ADDITIONAL_DEMOGRAPHICS_PD1: { name: "PATIENT_ADDITIONAL_DEMOGRAPHICS_PD1", type: "PD1", isOptional: false, isRepeatable: false, parentCompound: this.compounds.PATIENT_ADDITIONAL_DEMOGRAPHICS, value: [] }, PATIENT_ADDITIONAL_DEMOGRAPHICS_PRT: { name: "PATIENT_ADDITIONAL_DEMOGRAPHICS_PRT", type: "PRT", isOptional: true, isRepeatable: true, parentCompound: this.compounds.PATIENT_ADDITIONAL_DEMOGRAPHICS, value: [] }, PATIENT_NTE: { name: "PATIENT_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.PATIENT, value: [] }, PATIENT_AL1: { name: "PATIENT_AL1", type: "AL1", isOptional: true, isRepeatable: true, parentCompound: this.compounds.PATIENT, value: [] }, PATIENT_PATIENT_VISIT_PV1: { name: "PATIENT_PATIENT_VISIT_PV1", type: "PV1", isOptional: false, isRepeatable: false, parentCompound: this.compounds.PATIENT_PATIENT_VISIT, value: [] }, PATIENT_PATIENT_VISIT_PV2: { name: "PATIENT_PATIENT_VISIT_PV2", type: "PV2", isOptional: true, isRepeatable: false, parentCompound: this.compounds.PATIENT_PATIENT_VISIT, value: [] }, PATIENT_PATIENT_VISIT_PRT: { name: "PATIENT_PATIENT_VISIT_PRT", type: "PRT", isOptional: true, isRepeatable: true, parentCompound: this.compounds.PATIENT_PATIENT_VISIT, value: [] }, ORDER_ORC: { name: "ORDER_ORC", type: "ORC", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER, value: [] }, ORDER_TIMING_TQ1: { name: "ORDER_TIMING_TQ1", type: "TQ1", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER_TIMING, value: [] }, ORDER_TIMING_TQ2: { name: "ORDER_TIMING_TQ2", type: "TQ2", isOptional: true, isRepeatable: true, parentCompound: this.compounds.ORDER_TIMING, value: [] }, ORDER_ORDER_DETAIL_RXO: { name: "ORDER_ORDER_DETAIL_RXO", type: "RXO", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER_ORDER_DETAIL, value: [] }, ORDER_ORDER_DETAIL_ORDER_DETAIL_SUPPLEMENT_NTE: { name: "ORDER_ORDER_DETAIL_ORDER_DETAIL_SUPPLEMENT_NTE", type: "NTE", isOptional: false, isRepeatable: true, parentCompound: this.compounds.ORDER_ORDER_DETAIL_ORDER_DETAIL_SUPPLEMENT, value: [] }, ORDER_ORDER_DETAIL_ORDER_DETAIL_SUPPLEMENT_RXR: { name: "ORDER_ORDER_DETAIL_ORDER_DETAIL_SUPPLEMENT_RXR", type: "RXR", isOptional: false, isRepeatable: true, parentCompound: this.compounds.ORDER_ORDER_DETAIL_ORDER_DETAIL_SUPPLEMENT, value: [] }, ORDER_ORDER_DETAIL_ORDER_DETAIL_SUPPLEMENT_COMPONENTS_RXC: { name: "ORDER_ORDER_DETAIL_ORDER_DETAIL_SUPPLEMENT_COMPONENTS_RXC", type: "RXC", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER_ORDER_DETAIL_ORDER_DETAIL_SUPPLEMENT_COMPONENTS, value: [] }, ORDER_ORDER_DETAIL_ORDER_DETAIL_SUPPLEMENT_COMPONENTS_NTE: { name: "ORDER_ORDER_DETAIL_ORDER_DETAIL_SUPPLEMENT_COMPONENTS_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.ORDER_ORDER_DETAIL_ORDER_DETAIL_SUPPLEMENT_COMPONENTS, value: [] }, ORDER_PRT: { name: "ORDER_PRT", type: "PRT", isOptional: true, isRepeatable: true, parentCompound: this.compounds.ORDER, value: [] }, ORDER_ENCODING_RXE: { name: "ORDER_ENCODING_RXE", type: "RXE", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER_ENCODING, value: [] }, ORDER_ENCODING_PRT: { name: "ORDER_ENCODING_PRT", type: "PRT", isOptional: true, isRepeatable: true, parentCompound: this.compounds.ORDER_ENCODING, value: [] }, ORDER_ENCODING_NTE: { name: "ORDER_ENCODING_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.ORDER_ENCODING, value: [] }, ORDER_ENCODING_TIMING_ENCODED_TQ1: { name: "ORDER_ENCODING_TIMING_ENCODED_TQ1", type: "TQ1", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER_ENCODING_TIMING_ENCODED, value: [] }, ORDER_ENCODING_TIMING_ENCODED_TQ2: { name: "ORDER_ENCODING_TIMING_ENCODED_TQ2", type: "TQ2", isOptional: true, isRepeatable: true, parentCompound: this.compounds.ORDER_ENCODING_TIMING_ENCODED, value: [] }, ORDER_ENCODING_RXR: { name: "ORDER_ENCODING_RXR", type: "RXR", isOptional: false, isRepeatable: true, parentCompound: this.compounds.ORDER_ENCODING, value: [] }, ORDER_ENCODING_RXC: { name: "ORDER_ENCODING_RXC", type: "RXC", isOptional: true, isRepeatable: true, parentCompound: this.compounds.ORDER_ENCODING, value: [] }, ORDER_ADMINISTRATION_RXA: { name: "ORDER_ADMINISTRATION_RXA", type: "RXA", isOptional: false, isRepeatable: true, parentCompound: this.compounds.ORDER_ADMINISTRATION, value: [] }, ORDER_ADMINISTRATION_PRT: { name: "ORDER_ADMINISTRATION_PRT", type: "PRT", isOptional: true, isRepeatable: true, parentCompound: this.compounds.ORDER_ADMINISTRATION, value: [] }, ORDER_ADMINISTRATION_RXR: { name: "ORDER_ADMINISTRATION_RXR", type: "RXR", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER_ADMINISTRATION, value: [] }, ORDER_ADMINISTRATION_OBSERVATION_OBX: { name: "ORDER_ADMINISTRATION_OBSERVATION_OBX", type: "OBX", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER_ADMINISTRATION_OBSERVATION, value: [] }, ORDER_ADMINISTRATION_OBSERVATION_PRT: { name: "ORDER_ADMINISTRATION_OBSERVATION_PRT", type: "PRT", isOptional: true, isRepeatable: true, parentCompound: this.compounds.ORDER_ADMINISTRATION_OBSERVATION, value: [] }, ORDER_ADMINISTRATION_OBSERVATION_NTE: { name: "ORDER_ADMINISTRATION_OBSERVATION_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.ORDER_ADMINISTRATION_OBSERVATION, value: [] }, ORDER_CTI: { name: "ORDER_CTI", type: "CTI", isOptional: true, isRepeatable: true, parentCompound: this.compounds.ORDER, value: [] }, }; } get name() { return 'RAS_O17'; } get description() { return 'Pharmacy/Treatment Administration'; } } exports.default = RAS_O17_Message;