UNPKG

@dotbase/hl7-v2-message

Version:

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

411 lines (410 loc) 14.9 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Detail Financial Transaction - Expanded */ class DFT_P11_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { COMMON_ORDER: { name: "COMMON_ORDER", isOptional: true, isRepeatable: true, }, COMMON_ORDER_TIMING_QUANTITY: { name: "COMMON_ORDER_TIMING_QUANTITY", isOptional: true, isRepeatable: true, parentCompound: "COMMON_ORDER", }, COMMON_ORDER_ORDER: { name: "COMMON_ORDER_ORDER", isOptional: true, isRepeatable: false, parentCompound: "COMMON_ORDER", }, COMMON_ORDER_OBSERVATION: { name: "COMMON_ORDER_OBSERVATION", isOptional: true, isRepeatable: true, parentCompound: "COMMON_ORDER", }, INSURANCE: { name: "INSURANCE", isOptional: true, isRepeatable: true, }, FINANCIAL: { name: "FINANCIAL", isOptional: false, isRepeatable: true, }, FINANCIAL_FINANCIAL_PROCEDURE: { name: "FINANCIAL_FINANCIAL_PROCEDURE", isOptional: true, isRepeatable: true, parentCompound: "FINANCIAL", }, FINANCIAL_FINANCIAL_COMMON_ORDER: { name: "FINANCIAL_FINANCIAL_COMMON_ORDER", isOptional: true, isRepeatable: true, parentCompound: "FINANCIAL", }, FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_TIMING_QUANTITY: { name: "FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_TIMING_QUANTITY", isOptional: true, isRepeatable: true, parentCompound: "FINANCIAL_FINANCIAL_COMMON_ORDER", }, FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_ORDER: { name: "FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_ORDER", isOptional: true, isRepeatable: false, parentCompound: "FINANCIAL_FINANCIAL_COMMON_ORDER", }, FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_OBSERVATION: { name: "FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_OBSERVATION", isOptional: true, isRepeatable: true, parentCompound: "FINANCIAL_FINANCIAL_COMMON_ORDER", }, FINANCIAL_FINANCIAL_INSURANCE: { name: "FINANCIAL_FINANCIAL_INSURANCE", isOptional: true, isRepeatable: true, parentCompound: "FINANCIAL", }, }; 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: [] }, EVN: { name: "EVN", type: "EVN", 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: [] }, ROL: { name: "ROL", type: "ROL", isOptional: true, isRepeatable: true, value: [] }, PV1: { name: "PV1", type: "PV1", isOptional: true, isRepeatable: false, value: [] }, PV2: { name: "PV2", type: "PV2", isOptional: true, isRepeatable: false, value: [] }, DB1: { name: "DB1", type: "DB1", isOptional: true, isRepeatable: true, value: [] }, COMMON_ORDER_ORC: { name: "COMMON_ORDER_ORC", type: "ORC", isOptional: true, isRepeatable: false, parentCompound: this.compounds.COMMON_ORDER, value: [] }, COMMON_ORDER_TIMING_QUANTITY_TQ1: { name: "COMMON_ORDER_TIMING_QUANTITY_TQ1", type: "TQ1", isOptional: false, isRepeatable: false, parentCompound: this.compounds.COMMON_ORDER_TIMING_QUANTITY, value: [] }, COMMON_ORDER_TIMING_QUANTITY_TQ2: { name: "COMMON_ORDER_TIMING_QUANTITY_TQ2", type: "TQ2", isOptional: true, isRepeatable: true, parentCompound: this.compounds.COMMON_ORDER_TIMING_QUANTITY, value: [] }, COMMON_ORDER_ORDER_OBR: { name: "COMMON_ORDER_ORDER_OBR", type: "OBR", isOptional: false, isRepeatable: false, parentCompound: this.compounds.COMMON_ORDER_ORDER, value: [] }, COMMON_ORDER_ORDER_NTE: { name: "COMMON_ORDER_ORDER_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.COMMON_ORDER_ORDER, value: [] }, COMMON_ORDER_OBSERVATION_OBX: { name: "COMMON_ORDER_OBSERVATION_OBX", type: "OBX", isOptional: false, isRepeatable: false, parentCompound: this.compounds.COMMON_ORDER_OBSERVATION, value: [] }, COMMON_ORDER_OBSERVATION_NTE: { name: "COMMON_ORDER_OBSERVATION_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.COMMON_ORDER_OBSERVATION, value: [] }, DG1: { name: "DG1", type: "DG1", isOptional: true, isRepeatable: true, value: [] }, DRG: { name: "DRG", type: "DRG", isOptional: true, isRepeatable: false, 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: true, parentCompound: this.compounds.INSURANCE, value: [] }, INSURANCE_ROL: { name: "INSURANCE_ROL", type: "ROL", isOptional: true, isRepeatable: true, parentCompound: this.compounds.INSURANCE, value: [] }, ACC: { name: "ACC", type: "ACC", isOptional: true, isRepeatable: false, value: [] }, FINANCIAL_FT1: { name: "FINANCIAL_FT1", type: "FT1", isOptional: false, isRepeatable: false, parentCompound: this.compounds.FINANCIAL, value: [] }, FINANCIAL_FINANCIAL_PROCEDURE_PR1: { name: "FINANCIAL_FINANCIAL_PROCEDURE_PR1", type: "PR1", isOptional: false, isRepeatable: false, parentCompound: this.compounds.FINANCIAL_FINANCIAL_PROCEDURE, value: [] }, FINANCIAL_FINANCIAL_PROCEDURE_ROL: { name: "FINANCIAL_FINANCIAL_PROCEDURE_ROL", type: "ROL", isOptional: true, isRepeatable: true, parentCompound: this.compounds.FINANCIAL_FINANCIAL_PROCEDURE, value: [] }, FINANCIAL_FINANCIAL_COMMON_ORDER_ORC: { name: "FINANCIAL_FINANCIAL_COMMON_ORDER_ORC", type: "ORC", isOptional: true, isRepeatable: false, parentCompound: this.compounds.FINANCIAL_FINANCIAL_COMMON_ORDER, value: [] }, FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_TIMING_QUANTITY_TQ1: { name: "FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_TIMING_QUANTITY_TQ1", type: "TQ1", isOptional: false, isRepeatable: false, parentCompound: this.compounds.FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_TIMING_QUANTITY, value: [] }, FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_TIMING_QUANTITY_TQ2: { name: "FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_TIMING_QUANTITY_TQ2", type: "TQ2", isOptional: true, isRepeatable: true, parentCompound: this.compounds.FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_TIMING_QUANTITY, value: [] }, FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_ORDER_OBR: { name: "FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_ORDER_OBR", type: "OBR", isOptional: false, isRepeatable: false, parentCompound: this.compounds.FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_ORDER, value: [] }, FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_ORDER_NTE: { name: "FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_ORDER_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_ORDER, value: [] }, FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_OBSERVATION_OBX: { name: "FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_OBSERVATION_OBX", type: "OBX", isOptional: false, isRepeatable: false, parentCompound: this.compounds.FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_OBSERVATION, value: [] }, FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_OBSERVATION_NTE: { name: "FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_OBSERVATION_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.FINANCIAL_FINANCIAL_COMMON_ORDER_FINANCIAL_OBSERVATION, value: [] }, FINANCIAL_DG1: { name: "FINANCIAL_DG1", type: "DG1", isOptional: true, isRepeatable: true, parentCompound: this.compounds.FINANCIAL, value: [] }, FINANCIAL_DRG: { name: "FINANCIAL_DRG", type: "DRG", isOptional: true, isRepeatable: false, parentCompound: this.compounds.FINANCIAL, value: [] }, FINANCIAL_GT1: { name: "FINANCIAL_GT1", type: "GT1", isOptional: true, isRepeatable: true, parentCompound: this.compounds.FINANCIAL, value: [] }, FINANCIAL_FINANCIAL_INSURANCE_IN1: { name: "FINANCIAL_FINANCIAL_INSURANCE_IN1", type: "IN1", isOptional: false, isRepeatable: false, parentCompound: this.compounds.FINANCIAL_FINANCIAL_INSURANCE, value: [] }, FINANCIAL_FINANCIAL_INSURANCE_IN2: { name: "FINANCIAL_FINANCIAL_INSURANCE_IN2", type: "IN2", isOptional: true, isRepeatable: false, parentCompound: this.compounds.FINANCIAL_FINANCIAL_INSURANCE, value: [] }, FINANCIAL_FINANCIAL_INSURANCE_IN3: { name: "FINANCIAL_FINANCIAL_INSURANCE_IN3", type: "IN3", isOptional: true, isRepeatable: true, parentCompound: this.compounds.FINANCIAL_FINANCIAL_INSURANCE, value: [] }, FINANCIAL_FINANCIAL_INSURANCE_ROL: { name: "FINANCIAL_FINANCIAL_INSURANCE_ROL", type: "ROL", isOptional: true, isRepeatable: true, parentCompound: this.compounds.FINANCIAL_FINANCIAL_INSURANCE, value: [] }, }; } get name() { return 'DFT_P11'; } get description() { return 'Detail Financial Transaction - Expanded'; } } exports.default = DFT_P11_Message;