@dotbase/hl7-v2-message
Version:
Parses HL7 v2.x messages into typed javascript objects and makes them easily accessable.
501 lines (500 loc) • 18.7 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message"));
/**
* Collaborative Care Message
*/
class CCM_I21_Message extends Hl7Message_1.default {
constructor() {
super(...arguments);
this.compounds = {
INSURANCE: {
name: "INSURANCE",
isOptional: true,
isRepeatable: true,
},
APPOINTMENT_HISTORY: {
name: "APPOINTMENT_HISTORY",
isOptional: true,
isRepeatable: true,
},
APPOINTMENT_HISTORY_RESOURCES: {
name: "APPOINTMENT_HISTORY_RESOURCES",
isOptional: true,
isRepeatable: true,
parentCompound: "APPOINTMENT_HISTORY",
},
APPOINTMENT_HISTORY_RESOURCES_RESOURCE_DETAIL: {
name: "APPOINTMENT_HISTORY_RESOURCES_RESOURCE_DETAIL",
isOptional: true,
isRepeatable: true,
parentCompound: "APPOINTMENT_HISTORY_RESOURCES",
},
APPOINTMENT_HISTORY_RESOURCES_RESOURCE_DETAIL_: {
name: "APPOINTMENT_HISTORY_RESOURCES_RESOURCE_DETAIL_",
isOptional: true,
isRepeatable: true,
parentCompound: "APPOINTMENT_HISTORY_RESOURCES_RESOURCE_DETAIL",
},
CLINICAL_HISTORY: {
name: "CLINICAL_HISTORY",
isOptional: true,
isRepeatable: true,
},
CLINICAL_HISTORY_CLINICAL_HISTORY_DETAIL: {
name: "CLINICAL_HISTORY_CLINICAL_HISTORY_DETAIL",
isOptional: true,
isRepeatable: true,
parentCompound: "CLINICAL_HISTORY",
},
CLINICAL_HISTORY_CLINICAL_HISTORY_DETAIL_: {
name: "CLINICAL_HISTORY_CLINICAL_HISTORY_DETAIL_",
isOptional: true,
isRepeatable: true,
parentCompound: "CLINICAL_HISTORY_CLINICAL_HISTORY_DETAIL",
},
CLINICAL_HISTORY_ROLE_CLINICAL_HISTORY: {
name: "CLINICAL_HISTORY_ROLE_CLINICAL_HISTORY",
isOptional: true,
isRepeatable: true,
parentCompound: "CLINICAL_HISTORY",
},
CLINICAL_HISTORY_ROLE_CLINICAL_HISTORY_: {
name: "CLINICAL_HISTORY_ROLE_CLINICAL_HISTORY_",
isOptional: true,
isRepeatable: true,
parentCompound: "CLINICAL_HISTORY_ROLE_CLINICAL_HISTORY",
},
PATIENT_VISITS: {
name: "PATIENT_VISITS",
isOptional: false,
isRepeatable: true,
},
MEDICATION_HISTORY: {
name: "MEDICATION_HISTORY",
isOptional: true,
isRepeatable: true,
},
MEDICATION_HISTORY_MEDICATION_ORDER_DETAIL: {
name: "MEDICATION_HISTORY_MEDICATION_ORDER_DETAIL",
isOptional: true,
isRepeatable: false,
parentCompound: "MEDICATION_HISTORY",
},
MEDICATION_HISTORY_MEDICATION_ENCODING_DETAIL: {
name: "MEDICATION_HISTORY_MEDICATION_ENCODING_DETAIL",
isOptional: true,
isRepeatable: false,
parentCompound: "MEDICATION_HISTORY",
},
MEDICATION_HISTORY_MEDICATION_ADMINISTRATION_DETAIL: {
name: "MEDICATION_HISTORY_MEDICATION_ADMINISTRATION_DETAIL",
isOptional: true,
isRepeatable: true,
parentCompound: "MEDICATION_HISTORY",
},
PROBLEM: {
name: "PROBLEM",
isOptional: true,
isRepeatable: true,
},
PROBLEM_ROLE_PROBLEM: {
name: "PROBLEM_ROLE_PROBLEM",
isOptional: true,
isRepeatable: true,
parentCompound: "PROBLEM",
},
PROBLEM_ROLE_PROBLEM_: {
name: "PROBLEM_ROLE_PROBLEM_",
isOptional: true,
isRepeatable: true,
parentCompound: "PROBLEM_ROLE_PROBLEM",
},
GOAL: {
name: "GOAL",
isOptional: true,
isRepeatable: true,
},
GOAL_ROLE_GOAL: {
name: "GOAL_ROLE_GOAL",
isOptional: true,
isRepeatable: true,
parentCompound: "GOAL",
},
GOAL_ROLE_GOAL_: {
name: "GOAL_ROLE_GOAL_",
isOptional: true,
isRepeatable: true,
parentCompound: "GOAL_ROLE_GOAL",
},
PATHWAY: {
name: "PATHWAY",
isOptional: true,
isRepeatable: true,
},
PATHWAY_ROLE_PATHWAY: {
name: "PATHWAY_ROLE_PATHWAY",
isOptional: true,
isRepeatable: true,
parentCompound: "PATHWAY",
},
PATHWAY_ROLE_PATHWAY_: {
name: "PATHWAY_ROLE_PATHWAY_",
isOptional: true,
isRepeatable: true,
parentCompound: "PATHWAY_ROLE_PATHWAY",
},
};
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: []
},
NK1: {
name: "NK1",
type: "NK1",
isOptional: true,
isRepeatable: true,
value: []
},
INSURANCE_IN1: {
name: "INSURANCE_IN1",
type: "IN1",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.INSURANCE,
value: []
},
INSURANCE_IN2: {
name: "INSURANCE_IN2",
type: "IN2",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.INSURANCE,
value: []
},
INSURANCE_IN3: {
name: "INSURANCE_IN3",
type: "IN3",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.INSURANCE,
value: []
},
APPOINTMENT_HISTORY_SCH: {
name: "APPOINTMENT_HISTORY_SCH",
type: "SCH",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.APPOINTMENT_HISTORY,
value: []
},
APPOINTMENT_HISTORY_RESOURCES_RGS: {
name: "APPOINTMENT_HISTORY_RESOURCES_RGS",
type: "RGS",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.APPOINTMENT_HISTORY_RESOURCES,
value: []
},
APPOINTMENT_HISTORY_RESOURCES_RESOURCE_DETAIL_OBX: {
name: "APPOINTMENT_HISTORY_RESOURCES_RESOURCE_DETAIL_OBX",
type: "OBX",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.APPOINTMENT_HISTORY_RESOURCES_RESOURCE_DETAIL,
value: []
},
CLINICAL_HISTORY_ORC: {
name: "CLINICAL_HISTORY_ORC",
type: "ORC",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.CLINICAL_HISTORY,
value: []
},
CLINICAL_HISTORY_CLINICAL_HISTORY_DETAIL_OBX: {
name: "CLINICAL_HISTORY_CLINICAL_HISTORY_DETAIL_OBX",
type: "OBX",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.CLINICAL_HISTORY_CLINICAL_HISTORY_DETAIL,
value: []
},
CLINICAL_HISTORY_ROLE_CLINICAL_HISTORY_VAR: {
name: "CLINICAL_HISTORY_ROLE_CLINICAL_HISTORY_VAR",
type: "VAR",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.CLINICAL_HISTORY_ROLE_CLINICAL_HISTORY,
value: []
},
CLINICAL_HISTORY_CTI: {
name: "CLINICAL_HISTORY_CTI",
type: "CTI",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.CLINICAL_HISTORY,
value: []
},
PATIENT_VISITS_PV1: {
name: "PATIENT_VISITS_PV1",
type: "PV1",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.PATIENT_VISITS,
value: []
},
PATIENT_VISITS_PV2: {
name: "PATIENT_VISITS_PV2",
type: "PV2",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.PATIENT_VISITS,
value: []
},
MEDICATION_HISTORY_ORC: {
name: "MEDICATION_HISTORY_ORC",
type: "ORC",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.MEDICATION_HISTORY,
value: []
},
MEDICATION_HISTORY_MEDICATION_ORDER_DETAIL_RXO: {
name: "MEDICATION_HISTORY_MEDICATION_ORDER_DETAIL_RXO",
type: "RXO",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.MEDICATION_HISTORY_MEDICATION_ORDER_DETAIL,
value: []
},
MEDICATION_HISTORY_MEDICATION_ORDER_DETAIL_RXR: {
name: "MEDICATION_HISTORY_MEDICATION_ORDER_DETAIL_RXR",
type: "RXR",
isOptional: false,
isRepeatable: true,
parentCompound: this.compounds.MEDICATION_HISTORY_MEDICATION_ORDER_DETAIL,
value: []
},
MEDICATION_HISTORY_MEDICATION_ORDER_DETAIL_RXC: {
name: "MEDICATION_HISTORY_MEDICATION_ORDER_DETAIL_RXC",
type: "RXC",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.MEDICATION_HISTORY_MEDICATION_ORDER_DETAIL,
value: []
},
MEDICATION_HISTORY_MEDICATION_ORDER_DETAIL_OBX: {
name: "MEDICATION_HISTORY_MEDICATION_ORDER_DETAIL_OBX",
type: "OBX",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.MEDICATION_HISTORY_MEDICATION_ORDER_DETAIL,
value: []
},
MEDICATION_HISTORY_MEDICATION_ENCODING_DETAIL_RXE: {
name: "MEDICATION_HISTORY_MEDICATION_ENCODING_DETAIL_RXE",
type: "RXE",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.MEDICATION_HISTORY_MEDICATION_ENCODING_DETAIL,
value: []
},
MEDICATION_HISTORY_MEDICATION_ENCODING_DETAIL_RXR: {
name: "MEDICATION_HISTORY_MEDICATION_ENCODING_DETAIL_RXR",
type: "RXR",
isOptional: false,
isRepeatable: true,
parentCompound: this.compounds.MEDICATION_HISTORY_MEDICATION_ENCODING_DETAIL,
value: []
},
MEDICATION_HISTORY_MEDICATION_ENCODING_DETAIL_RXC: {
name: "MEDICATION_HISTORY_MEDICATION_ENCODING_DETAIL_RXC",
type: "RXC",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.MEDICATION_HISTORY_MEDICATION_ENCODING_DETAIL,
value: []
},
MEDICATION_HISTORY_MEDICATION_ENCODING_DETAIL_OBX: {
name: "MEDICATION_HISTORY_MEDICATION_ENCODING_DETAIL_OBX",
type: "OBX",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.MEDICATION_HISTORY_MEDICATION_ENCODING_DETAIL,
value: []
},
MEDICATION_HISTORY_MEDICATION_ADMINISTRATION_DETAIL_RXA: {
name: "MEDICATION_HISTORY_MEDICATION_ADMINISTRATION_DETAIL_RXA",
type: "RXA",
isOptional: false,
isRepeatable: true,
parentCompound: this.compounds.MEDICATION_HISTORY_MEDICATION_ADMINISTRATION_DETAIL,
value: []
},
MEDICATION_HISTORY_MEDICATION_ADMINISTRATION_DETAIL_RXR: {
name: "MEDICATION_HISTORY_MEDICATION_ADMINISTRATION_DETAIL_RXR",
type: "RXR",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.MEDICATION_HISTORY_MEDICATION_ADMINISTRATION_DETAIL,
value: []
},
MEDICATION_HISTORY_MEDICATION_ADMINISTRATION_DETAIL_OBX: {
name: "MEDICATION_HISTORY_MEDICATION_ADMINISTRATION_DETAIL_OBX",
type: "OBX",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.MEDICATION_HISTORY_MEDICATION_ADMINISTRATION_DETAIL,
value: []
},
MEDICATION_HISTORY_CTI: {
name: "MEDICATION_HISTORY_CTI",
type: "CTI",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.MEDICATION_HISTORY,
value: []
},
PROBLEM_PRB: {
name: "PROBLEM_PRB",
type: "PRB",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.PROBLEM,
value: []
},
PROBLEM_VAR: {
name: "PROBLEM_VAR",
type: "VAR",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PROBLEM,
value: []
},
PROBLEM_ROLE_PROBLEM_VAR: {
name: "PROBLEM_ROLE_PROBLEM_VAR",
type: "VAR",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PROBLEM_ROLE_PROBLEM,
value: []
},
PROBLEM_OBX: {
name: "PROBLEM_OBX",
type: "OBX",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PROBLEM,
value: []
},
GOAL_GOL: {
name: "GOAL_GOL",
type: "GOL",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.GOAL,
value: []
},
GOAL_VAR: {
name: "GOAL_VAR",
type: "VAR",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.GOAL,
value: []
},
GOAL_ROLE_GOAL_VAR: {
name: "GOAL_ROLE_GOAL_VAR",
type: "VAR",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.GOAL_ROLE_GOAL,
value: []
},
GOAL_OBX: {
name: "GOAL_OBX",
type: "OBX",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.GOAL,
value: []
},
PATHWAY_PTH: {
name: "PATHWAY_PTH",
type: "PTH",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.PATHWAY,
value: []
},
PATHWAY_VAR: {
name: "PATHWAY_VAR",
type: "VAR",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY,
value: []
},
PATHWAY_ROLE_PATHWAY_VAR: {
name: "PATHWAY_ROLE_PATHWAY_VAR",
type: "VAR",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY_ROLE_PATHWAY,
value: []
},
PATHWAY_OBX: {
name: "PATHWAY_OBX",
type: "OBX",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.PATHWAY,
value: []
},
REL: {
name: "REL",
type: "REL",
isOptional: true,
isRepeatable: true,
value: []
},
};
}
get name() { return 'CCM_I21'; }
get description() { return 'Collaborative Care Message'; }
}
exports.default = CCM_I21_Message;