@dotbase/hl7-v2-message
Version:
Parses HL7 v2.x messages into typed javascript objects and makes them easily accessable.
364 lines (363 loc) • 13.8 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message"));
/**
* Patient Pathway Goal-Oriented Message
*/
class PPG_PCJ_Message extends Hl7Message_1.default {
constructor() {
super(...arguments);
this.compounds = {
PATIENT_VISIT: {
name: "PATIENT_VISIT",
isOptional: true,
isRepeatable: false,
},
PATHWAY: {
name: "PATHWAY",
isOptional: false,
isRepeatable: true,
},
PATHWAY_PATHWAY_ROLE: {
name: "PATHWAY_PATHWAY_ROLE",
isOptional: true,
isRepeatable: true,
parentCompound: "PATHWAY",
},
PATHWAY_GOAL: {
name: "PATHWAY_GOAL",
isOptional: true,
isRepeatable: true,
parentCompound: "PATHWAY",
},
PATHWAY_GOAL_GOAL_ROLE: {
name: "PATHWAY_GOAL_GOAL_ROLE",
isOptional: true,
isRepeatable: true,
parentCompound: "PATHWAY_GOAL",
},
PATHWAY_GOAL_GOAL_OBSERVATION: {
name: "PATHWAY_GOAL_GOAL_OBSERVATION",
isOptional: true,
isRepeatable: true,
parentCompound: "PATHWAY_GOAL",
},
PATHWAY_GOAL_PROBLEM: {
name: "PATHWAY_GOAL_PROBLEM",
isOptional: true,
isRepeatable: true,
parentCompound: "PATHWAY_GOAL",
},
PATHWAY_GOAL_PROBLEM_PROBLEM_ROLE: {
name: "PATHWAY_GOAL_PROBLEM_PROBLEM_ROLE",
isOptional: true,
isRepeatable: true,
parentCompound: "PATHWAY_GOAL_PROBLEM",
},
PATHWAY_GOAL_PROBLEM_PROBLEM_OBSERVATION: {
name: "PATHWAY_GOAL_PROBLEM_PROBLEM_OBSERVATION",
isOptional: true,
isRepeatable: true,
parentCompound: "PATHWAY_GOAL_PROBLEM",
},
PATHWAY_GOAL_ORDER: {
name: "PATHWAY_GOAL_ORDER",
isOptional: true,
isRepeatable: true,
parentCompound: "PATHWAY_GOAL",
},
PATHWAY_GOAL_ORDER_ORDER_DETAIL: {
name: "PATHWAY_GOAL_ORDER_ORDER_DETAIL",
isOptional: true,
isRepeatable: false,
parentCompound: "PATHWAY_GOAL_ORDER",
},
PATHWAY_GOAL_ORDER_ORDER_DETAIL_OBRRXORXE: {
name: "PATHWAY_GOAL_ORDER_ORDER_DETAIL_OBRRXORXE",
isOptional: true,
isRepeatable: true,
parentCompound: "PATHWAY_GOAL_ORDER_ORDER_DETAIL",
},
PATHWAY_GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION: {
name: "PATHWAY_GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION",
isOptional: true,
isRepeatable: true,
parentCompound: "PATHWAY_GOAL_ORDER_ORDER_DETAIL",
},
};
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: []
},
PATIENT_VISIT_PV1: {
name: "PATIENT_VISIT_PV1",
type: "PV1",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.PATIENT_VISIT,
value: []
},
PATIENT_VISIT_PV2: {
name: "PATIENT_VISIT_PV2",
type: "PV2",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.PATIENT_VISIT,
value: []
},
PATHWAY_PTH: {
name: "PATHWAY_PTH",
type: "PTH",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.PATHWAY,
value: []
},
PATHWAY_NTE: {
name: "PATHWAY_NTE",
type: "NTE",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY,
value: []
},
PATHWAY_VAR: {
name: "PATHWAY_VAR",
type: "VAR",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY,
value: []
},
PATHWAY_PATHWAY_ROLE_ROL: {
name: "PATHWAY_PATHWAY_ROLE_ROL",
type: "ROL",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.PATHWAY_PATHWAY_ROLE,
value: []
},
PATHWAY_PATHWAY_ROLE_VAR: {
name: "PATHWAY_PATHWAY_ROLE_VAR",
type: "VAR",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY_PATHWAY_ROLE,
value: []
},
PATHWAY_GOAL_GOL: {
name: "PATHWAY_GOAL_GOL",
type: "GOL",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.PATHWAY_GOAL,
value: []
},
PATHWAY_GOAL_NTE: {
name: "PATHWAY_GOAL_NTE",
type: "NTE",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY_GOAL,
value: []
},
PATHWAY_GOAL_VAR: {
name: "PATHWAY_GOAL_VAR",
type: "VAR",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY_GOAL,
value: []
},
PATHWAY_GOAL_GOAL_ROLE_ROL: {
name: "PATHWAY_GOAL_GOAL_ROLE_ROL",
type: "ROL",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.PATHWAY_GOAL_GOAL_ROLE,
value: []
},
PATHWAY_GOAL_GOAL_ROLE_VAR: {
name: "PATHWAY_GOAL_GOAL_ROLE_VAR",
type: "VAR",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY_GOAL_GOAL_ROLE,
value: []
},
PATHWAY_GOAL_GOAL_OBSERVATION_OBX: {
name: "PATHWAY_GOAL_GOAL_OBSERVATION_OBX",
type: "OBX",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.PATHWAY_GOAL_GOAL_OBSERVATION,
value: []
},
PATHWAY_GOAL_GOAL_OBSERVATION_NTE: {
name: "PATHWAY_GOAL_GOAL_OBSERVATION_NTE",
type: "NTE",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY_GOAL_GOAL_OBSERVATION,
value: []
},
PATHWAY_GOAL_PROBLEM_PRB: {
name: "PATHWAY_GOAL_PROBLEM_PRB",
type: "PRB",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.PATHWAY_GOAL_PROBLEM,
value: []
},
PATHWAY_GOAL_PROBLEM_NTE: {
name: "PATHWAY_GOAL_PROBLEM_NTE",
type: "NTE",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY_GOAL_PROBLEM,
value: []
},
PATHWAY_GOAL_PROBLEM_VAR: {
name: "PATHWAY_GOAL_PROBLEM_VAR",
type: "VAR",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY_GOAL_PROBLEM,
value: []
},
PATHWAY_GOAL_PROBLEM_PROBLEM_ROLE_ROL: {
name: "PATHWAY_GOAL_PROBLEM_PROBLEM_ROLE_ROL",
type: "ROL",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.PATHWAY_GOAL_PROBLEM_PROBLEM_ROLE,
value: []
},
PATHWAY_GOAL_PROBLEM_PROBLEM_ROLE_VAR: {
name: "PATHWAY_GOAL_PROBLEM_PROBLEM_ROLE_VAR",
type: "VAR",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY_GOAL_PROBLEM_PROBLEM_ROLE,
value: []
},
PATHWAY_GOAL_PROBLEM_PROBLEM_OBSERVATION_OBX: {
name: "PATHWAY_GOAL_PROBLEM_PROBLEM_OBSERVATION_OBX",
type: "OBX",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.PATHWAY_GOAL_PROBLEM_PROBLEM_OBSERVATION,
value: []
},
PATHWAY_GOAL_PROBLEM_PROBLEM_OBSERVATION_NTE: {
name: "PATHWAY_GOAL_PROBLEM_PROBLEM_OBSERVATION_NTE",
type: "NTE",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY_GOAL_PROBLEM_PROBLEM_OBSERVATION,
value: []
},
PATHWAY_GOAL_ORDER_ORC: {
name: "PATHWAY_GOAL_ORDER_ORC",
type: "ORC",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.PATHWAY_GOAL_ORDER,
value: []
},
PATHWAY_GOAL_ORDER_ORDER_DETAIL_OBRRXORXE_OBR: {
name: "PATHWAY_GOAL_ORDER_ORDER_DETAIL_OBRRXORXE_OBR",
type: "OBR",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY_GOAL_ORDER_ORDER_DETAIL_OBRRXORXE,
value: []
},
PATHWAY_GOAL_ORDER_ORDER_DETAIL_OBRRXORXE_RXO: {
name: "PATHWAY_GOAL_ORDER_ORDER_DETAIL_OBRRXORXE_RXO",
type: "RXO",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY_GOAL_ORDER_ORDER_DETAIL_OBRRXORXE,
value: []
},
PATHWAY_GOAL_ORDER_ORDER_DETAIL_OBRRXORXE_RXE: {
name: "PATHWAY_GOAL_ORDER_ORDER_DETAIL_OBRRXORXE_RXE",
type: "RXE",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY_GOAL_ORDER_ORDER_DETAIL_OBRRXORXE,
value: []
},
PATHWAY_GOAL_ORDER_ORDER_DETAIL_NTE: {
name: "PATHWAY_GOAL_ORDER_ORDER_DETAIL_NTE",
type: "NTE",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY_GOAL_ORDER_ORDER_DETAIL,
value: []
},
PATHWAY_GOAL_ORDER_ORDER_DETAIL_VAR: {
name: "PATHWAY_GOAL_ORDER_ORDER_DETAIL_VAR",
type: "VAR",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY_GOAL_ORDER_ORDER_DETAIL,
value: []
},
PATHWAY_GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION_OBX: {
name: "PATHWAY_GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION_OBX",
type: "OBX",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.PATHWAY_GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION,
value: []
},
PATHWAY_GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION_NTE: {
name: "PATHWAY_GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION_NTE",
type: "NTE",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY_GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION,
value: []
},
PATHWAY_GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION_VAR: {
name: "PATHWAY_GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION_VAR",
type: "VAR",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY_GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION,
value: []
},
};
}
get name() { return 'PPG_PCJ'; }
get description() { return 'Patient Pathway Goal-Oriented Message'; }
}
exports.default = PPG_PCJ_Message;