UNPKG

@dotbase/hl7-v2-message

Version:

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

114 lines (113 loc) 3.67 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Order response */ class ORR_O02_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { PATIENT: { name: "PATIENT", isOptional: true, isRepeatable: false, }, PATIENT_ORDER: { name: "PATIENT_ORDER", isOptional: false, isRepeatable: true, parentCompound: "PATIENT", }, PATIENT_ORDER_OBRORORX1: { name: "PATIENT_ORDER_OBRORORX1", isOptional: true, isRepeatable: true, parentCompound: "PATIENT_ORDER", }, }; this.segments = { MSH: { name: "MSH", type: "MSH", isOptional: false, isRepeatable: false, value: [] }, MSA: { name: "MSA", type: "MSA", isOptional: false, isRepeatable: false, value: [] }, NTE: { name: "NTE", type: "NTE", isOptional: true, isRepeatable: true, value: [] }, PATIENT_PID: { name: "PATIENT_PID", type: "PID", 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_ORDER_ORC: { name: "PATIENT_ORDER_ORC", type: "ORC", isOptional: false, isRepeatable: false, parentCompound: this.compounds.PATIENT_ORDER, value: [] }, PATIENT_ORDER_OBRORORX1_OBR: { name: "PATIENT_ORDER_OBRORORX1_OBR", type: "OBR", isOptional: false, isRepeatable: false, parentCompound: this.compounds.PATIENT_ORDER_OBRORORX1, value: [] }, PATIENT_ORDER_OBRORORX1_ORO: { name: "PATIENT_ORDER_OBRORORX1_ORO", type: "ORO", isOptional: false, isRepeatable: false, parentCompound: this.compounds.PATIENT_ORDER_OBRORORX1, value: [] }, PATIENT_ORDER_OBRORORX1_RX1: { name: "PATIENT_ORDER_OBRORORX1_RX1", type: "RX1", isOptional: false, isRepeatable: false, parentCompound: this.compounds.PATIENT_ORDER_OBRORORX1, value: [] }, PATIENT_ORDER_NTE: { name: "PATIENT_ORDER_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.PATIENT_ORDER, value: [] }, }; } get name() { return 'ORR_O02'; } get description() { return 'Order response'; } } exports.default = ORR_O02_Message;