UNPKG

@dotbase/hl7-v2-message

Version:

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

274 lines (273 loc) 9.76 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Order message */ class ORM_O01_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { PATIENT: { name: "PATIENT", isOptional: true, isRepeatable: false, }, PATIENT_PATIENT_VISIT: { name: "PATIENT_PATIENT_VISIT", isOptional: true, isRepeatable: false, parentCompound: "PATIENT", }, PATIENT_INSURANCE: { name: "PATIENT_INSURANCE", isOptional: true, isRepeatable: true, parentCompound: "PATIENT", }, ORDER: { name: "ORDER", isOptional: false, isRepeatable: true, }, ORDER_ORDER_DETAIL: { name: "ORDER_ORDER_DETAIL", isOptional: true, isRepeatable: false, parentCompound: "ORDER", }, ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT: { name: "ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT", isOptional: true, isRepeatable: true, parentCompound: "ORDER_ORDER_DETAIL", }, ORDER_ORDER_DETAIL_OBSERVATION: { name: "ORDER_ORDER_DETAIL_OBSERVATION", isOptional: true, isRepeatable: true, parentCompound: "ORDER_ORDER_DETAIL", }, }; this.segments = { MSH: { name: "MSH", type: "MSH", isOptional: false, 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_PD1: { name: "PATIENT_PD1", type: "PD1", isOptional: true, isRepeatable: false, parentCompound: this.compounds.PATIENT, value: [] }, PATIENT_NTE: { name: "PATIENT_NTE", type: "NTE", 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_INSURANCE_IN1: { name: "PATIENT_INSURANCE_IN1", type: "IN1", isOptional: false, isRepeatable: false, parentCompound: this.compounds.PATIENT_INSURANCE, value: [] }, PATIENT_INSURANCE_IN2: { name: "PATIENT_INSURANCE_IN2", type: "IN2", isOptional: true, isRepeatable: false, parentCompound: this.compounds.PATIENT_INSURANCE, value: [] }, PATIENT_INSURANCE_IN3: { name: "PATIENT_INSURANCE_IN3", type: "IN3", isOptional: true, isRepeatable: false, parentCompound: this.compounds.PATIENT_INSURANCE, value: [] }, PATIENT_GT1: { name: "PATIENT_GT1", type: "GT1", isOptional: true, isRepeatable: false, parentCompound: this.compounds.PATIENT, value: [] }, PATIENT_AL1: { name: "PATIENT_AL1", type: "AL1", isOptional: true, isRepeatable: true, parentCompound: this.compounds.PATIENT, value: [] }, ORDER_ORC: { name: "ORDER_ORC", type: "ORC", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER, value: [] }, ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT_OBR: { name: "ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT_OBR", type: "OBR", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT, value: [] }, ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT_RQD: { name: "ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT_RQD", type: "RQD", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT, value: [] }, ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT_RQ1: { name: "ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT_RQ1", type: "RQ1", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT, value: [] }, ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT_RXO: { name: "ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT_RXO", type: "RXO", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT, value: [] }, ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT_ODS: { name: "ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT_ODS", type: "ODS", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT, value: [] }, ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT_ODT: { name: "ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT_ODT", type: "ODT", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER_ORDER_DETAIL_OBRRQDRQ1RXOODSODT, value: [] }, ORDER_ORDER_DETAIL_NTE: { name: "ORDER_ORDER_DETAIL_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.ORDER_ORDER_DETAIL, value: [] }, ORDER_ORDER_DETAIL_CTD: { name: "ORDER_ORDER_DETAIL_CTD", type: "CTD", isOptional: true, isRepeatable: false, parentCompound: this.compounds.ORDER_ORDER_DETAIL, value: [] }, ORDER_ORDER_DETAIL_DG1: { name: "ORDER_ORDER_DETAIL_DG1", type: "DG1", isOptional: true, isRepeatable: true, parentCompound: this.compounds.ORDER_ORDER_DETAIL, value: [] }, ORDER_ORDER_DETAIL_OBSERVATION_OBX: { name: "ORDER_ORDER_DETAIL_OBSERVATION_OBX", type: "OBX", isOptional: false, isRepeatable: false, parentCompound: this.compounds.ORDER_ORDER_DETAIL_OBSERVATION, value: [] }, ORDER_ORDER_DETAIL_OBSERVATION_NTE: { name: "ORDER_ORDER_DETAIL_OBSERVATION_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.ORDER_ORDER_DETAIL_OBSERVATION, value: [] }, ORDER_FT1: { name: "ORDER_FT1", type: "FT1", isOptional: true, isRepeatable: true, parentCompound: this.compounds.ORDER, value: [] }, ORDER_CTI: { name: "ORDER_CTI", type: "CTI", isOptional: true, isRepeatable: true, parentCompound: this.compounds.ORDER, value: [] }, ORDER_BLG: { name: "ORDER_BLG", type: "BLG", isOptional: true, isRepeatable: false, parentCompound: this.compounds.ORDER, value: [] }, }; } get name() { return 'ORM_O01'; } get description() { return 'Order message'; } } exports.default = ORM_O01_Message;