UNPKG

@dotbase/hl7-v2-message

Version:

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

298 lines (297 loc) 10.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Goal add */ class PGL_PC6_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { PATIENT_VISIT: { name: "PATIENT_VISIT", isOptional: true, isRepeatable: false, }, GOAL: { name: "GOAL", isOptional: false, isRepeatable: true, }, GOAL_GOAL_ROLE: { name: "GOAL_GOAL_ROLE", isOptional: true, isRepeatable: true, parentCompound: "GOAL", }, GOAL_PATHWAY: { name: "GOAL_PATHWAY", isOptional: true, isRepeatable: true, parentCompound: "GOAL", }, GOAL_OBSERVATION: { name: "GOAL_OBSERVATION", isOptional: true, isRepeatable: true, parentCompound: "GOAL", }, GOAL_PROBLEM: { name: "GOAL_PROBLEM", isOptional: true, isRepeatable: true, parentCompound: "GOAL", }, GOAL_PROBLEM_PROBLEM_ROLE: { name: "GOAL_PROBLEM_PROBLEM_ROLE", isOptional: true, isRepeatable: true, parentCompound: "GOAL_PROBLEM", }, GOAL_PROBLEM_PROBLEM_OBSERVATION: { name: "GOAL_PROBLEM_PROBLEM_OBSERVATION", isOptional: true, isRepeatable: true, parentCompound: "GOAL_PROBLEM", }, GOAL_ORDER: { name: "GOAL_ORDER", isOptional: true, isRepeatable: true, parentCompound: "GOAL", }, GOAL_ORDER_ORDER_DETAIL: { name: "GOAL_ORDER_ORDER_DETAIL", isOptional: true, isRepeatable: false, parentCompound: "GOAL_ORDER", }, GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION: { name: "GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION", isOptional: true, isRepeatable: true, parentCompound: "GOAL_ORDER_ORDER_DETAIL", }, }; this.segments = { MSH: { name: "MSH", type: "MSH", isOptional: false, 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: [] }, GOAL_GOL: { name: "GOAL_GOL", type: "GOL", isOptional: false, isRepeatable: false, parentCompound: this.compounds.GOAL, value: [] }, GOAL_NTE: { name: "GOAL_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.GOAL, value: [] }, GOAL_VAR: { name: "GOAL_VAR", type: "VAR", isOptional: true, isRepeatable: true, parentCompound: this.compounds.GOAL, value: [] }, GOAL_GOAL_ROLE_ROL: { name: "GOAL_GOAL_ROLE_ROL", type: "ROL", isOptional: false, isRepeatable: false, parentCompound: this.compounds.GOAL_GOAL_ROLE, value: [] }, GOAL_GOAL_ROLE_VAR: { name: "GOAL_GOAL_ROLE_VAR", type: "VAR", isOptional: true, isRepeatable: true, parentCompound: this.compounds.GOAL_GOAL_ROLE, value: [] }, GOAL_PATHWAY_PTH: { name: "GOAL_PATHWAY_PTH", type: "PTH", isOptional: false, isRepeatable: false, parentCompound: this.compounds.GOAL_PATHWAY, value: [] }, GOAL_PATHWAY_VAR: { name: "GOAL_PATHWAY_VAR", type: "VAR", isOptional: true, isRepeatable: true, parentCompound: this.compounds.GOAL_PATHWAY, value: [] }, GOAL_OBSERVATION_OBX: { name: "GOAL_OBSERVATION_OBX", type: "OBX", isOptional: false, isRepeatable: false, parentCompound: this.compounds.GOAL_OBSERVATION, value: [] }, GOAL_OBSERVATION_NTE: { name: "GOAL_OBSERVATION_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.GOAL_OBSERVATION, value: [] }, GOAL_PROBLEM_PRB: { name: "GOAL_PROBLEM_PRB", type: "PRB", isOptional: false, isRepeatable: false, parentCompound: this.compounds.GOAL_PROBLEM, value: [] }, GOAL_PROBLEM_NTE: { name: "GOAL_PROBLEM_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.GOAL_PROBLEM, value: [] }, GOAL_PROBLEM_VAR: { name: "GOAL_PROBLEM_VAR", type: "VAR", isOptional: true, isRepeatable: true, parentCompound: this.compounds.GOAL_PROBLEM, value: [] }, GOAL_PROBLEM_PROBLEM_ROLE_ROL: { name: "GOAL_PROBLEM_PROBLEM_ROLE_ROL", type: "ROL", isOptional: false, isRepeatable: false, parentCompound: this.compounds.GOAL_PROBLEM_PROBLEM_ROLE, value: [] }, GOAL_PROBLEM_PROBLEM_ROLE_VAR: { name: "GOAL_PROBLEM_PROBLEM_ROLE_VAR", type: "VAR", isOptional: true, isRepeatable: true, parentCompound: this.compounds.GOAL_PROBLEM_PROBLEM_ROLE, value: [] }, GOAL_PROBLEM_PROBLEM_OBSERVATION_OBX: { name: "GOAL_PROBLEM_PROBLEM_OBSERVATION_OBX", type: "OBX", isOptional: false, isRepeatable: false, parentCompound: this.compounds.GOAL_PROBLEM_PROBLEM_OBSERVATION, value: [] }, GOAL_PROBLEM_PROBLEM_OBSERVATION_NTE: { name: "GOAL_PROBLEM_PROBLEM_OBSERVATION_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.GOAL_PROBLEM_PROBLEM_OBSERVATION, value: [] }, GOAL_ORDER_ORC: { name: "GOAL_ORDER_ORC", type: "ORC", isOptional: false, isRepeatable: false, parentCompound: this.compounds.GOAL_ORDER, value: [] }, GOAL_ORDER_ORDER_DETAIL_OBR: { name: "GOAL_ORDER_ORDER_DETAIL_OBR", type: "OBR", isOptional: false, isRepeatable: false, parentCompound: this.compounds.GOAL_ORDER_ORDER_DETAIL, value: [] }, GOAL_ORDER_ORDER_DETAIL_NTE: { name: "GOAL_ORDER_ORDER_DETAIL_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.GOAL_ORDER_ORDER_DETAIL, value: [] }, GOAL_ORDER_ORDER_DETAIL_VAR: { name: "GOAL_ORDER_ORDER_DETAIL_VAR", type: "VAR", isOptional: true, isRepeatable: true, parentCompound: this.compounds.GOAL_ORDER_ORDER_DETAIL, value: [] }, GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION_OBX: { name: "GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION_OBX", type: "OBX", isOptional: false, isRepeatable: false, parentCompound: this.compounds.GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION, value: [] }, GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION_NTE: { name: "GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION_NTE", type: "NTE", isOptional: true, isRepeatable: true, parentCompound: this.compounds.GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION, value: [] }, GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION_VAR: { name: "GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION_VAR", type: "VAR", isOptional: true, isRepeatable: true, parentCompound: this.compounds.GOAL_ORDER_ORDER_DETAIL_ORDER_OBSERVATION, value: [] }, }; } get name() { return 'PGL_PC6'; } get description() { return 'Goal add'; } } exports.default = PGL_PC6_Message;