@dotbase/hl7-v2-message
Version:
Parses HL7 v2.x messages into typed javascript objects and makes them easily accessable.
183 lines (182 loc) • 5.62 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message"));
/**
* Unsolicited Pre-Ordered Point-Of-Care Observation
*/
class ORU_R32_Message extends Hl7Message_1.default {
constructor() {
super(...arguments);
this.compounds = {
PATIENT_OBSERVATION: {
name: "PATIENT_OBSERVATION",
isOptional: true,
isRepeatable: true,
},
VISIT: {
name: "VISIT",
isOptional: true,
isRepeatable: false,
},
TIMING_QTY: {
name: "TIMING_QTY",
isOptional: true,
isRepeatable: true,
},
OBSERVATION: {
name: "OBSERVATION",
isOptional: false,
isRepeatable: true,
},
};
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: []
},
PID: {
name: "PID",
type: "PID",
isOptional: false,
isRepeatable: false,
value: []
},
PD1: {
name: "PD1",
type: "PD1",
isOptional: true,
isRepeatable: false,
value: []
},
PRT: {
name: "PRT",
type: "PRT",
isOptional: true,
isRepeatable: true,
value: []
},
PATIENT_OBSERVATION_OBX: {
name: "PATIENT_OBSERVATION_OBX",
type: "OBX",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.PATIENT_OBSERVATION,
value: []
},
PATIENT_OBSERVATION_PRT: {
name: "PATIENT_OBSERVATION_PRT",
type: "PRT",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATIENT_OBSERVATION,
value: []
},
VISIT_PV1: {
name: "VISIT_PV1",
type: "PV1",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.VISIT,
value: []
},
VISIT_PV2: {
name: "VISIT_PV2",
type: "PV2",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.VISIT,
value: []
},
VISIT_PRT: {
name: "VISIT_PRT",
type: "PRT",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.VISIT,
value: []
},
ORC: {
name: "ORC",
type: "ORC",
isOptional: false,
isRepeatable: false,
value: []
},
OBR: {
name: "OBR",
type: "OBR",
isOptional: false,
isRepeatable: false,
value: []
},
NTE: {
name: "NTE",
type: "NTE",
isOptional: true,
isRepeatable: true,
value: []
},
TIMING_QTY_TQ1: {
name: "TIMING_QTY_TQ1",
type: "TQ1",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.TIMING_QTY,
value: []
},
TIMING_QTY_TQ2: {
name: "TIMING_QTY_TQ2",
type: "TQ2",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.TIMING_QTY,
value: []
},
OBSERVATION_OBX: {
name: "OBSERVATION_OBX",
type: "OBX",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.OBSERVATION,
value: []
},
OBSERVATION_PRT: {
name: "OBSERVATION_PRT",
type: "PRT",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.OBSERVATION,
value: []
},
OBSERVATION_NTE: {
name: "OBSERVATION_NTE",
type: "NTE",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.OBSERVATION,
value: []
},
};
}
get name() { return 'ORU_R32'; }
get description() { return 'Unsolicited Pre-Ordered Point-Of-Care Observation'; }
}
exports.default = ORU_R32_Message;