@dotbase/hl7-v2-message
Version:
Parses HL7 v2.x messages into typed javascript objects and makes them easily accessable.
224 lines (223 loc) • 7.04 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message"));
/**
* Add patient accounts
*/
class BAR_P01_Message extends Hl7Message_1.default {
constructor() {
super(...arguments);
this.compounds = {
VISIT: {
name: "VISIT",
isOptional: false,
isRepeatable: true,
},
VISIT_PROCEDURE: {
name: "VISIT_PROCEDURE",
isOptional: true,
isRepeatable: true,
parentCompound: "VISIT",
},
VISIT_INSURANCE: {
name: "VISIT_INSURANCE",
isOptional: true,
isRepeatable: true,
parentCompound: "VISIT",
},
};
this.segments = {
MSH: {
name: "MSH",
type: "MSH",
isOptional: false,
isRepeatable: false,
value: []
},
EVN: {
name: "EVN",
type: "EVN",
isOptional: false,
isRepeatable: false,
value: []
},
PID: {
name: "PID",
type: "PID",
isOptional: false,
isRepeatable: false,
value: []
},
PD1: {
name: "PD1",
type: "PD1",
isOptional: true,
isRepeatable: false,
value: []
},
ROL: {
name: "ROL",
type: "ROL",
isOptional: true,
isRepeatable: true,
value: []
},
VISIT_PV1: {
name: "VISIT_PV1",
type: "PV1",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.VISIT,
value: []
},
VISIT_PV2: {
name: "VISIT_PV2",
type: "PV2",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.VISIT,
value: []
},
VISIT_ROL: {
name: "VISIT_ROL",
type: "ROL",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.VISIT,
value: []
},
VISIT_DB1: {
name: "VISIT_DB1",
type: "DB1",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.VISIT,
value: []
},
VISIT_OBX: {
name: "VISIT_OBX",
type: "OBX",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.VISIT,
value: []
},
VISIT_AL1: {
name: "VISIT_AL1",
type: "AL1",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.VISIT,
value: []
},
VISIT_DG1: {
name: "VISIT_DG1",
type: "DG1",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.VISIT,
value: []
},
VISIT_DRG: {
name: "VISIT_DRG",
type: "DRG",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.VISIT,
value: []
},
VISIT_PROCEDURE_PR1: {
name: "VISIT_PROCEDURE_PR1",
type: "PR1",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.VISIT_PROCEDURE,
value: []
},
VISIT_PROCEDURE_ROL: {
name: "VISIT_PROCEDURE_ROL",
type: "ROL",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.VISIT_PROCEDURE,
value: []
},
VISIT_GT1: {
name: "VISIT_GT1",
type: "GT1",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.VISIT,
value: []
},
VISIT_NK1: {
name: "VISIT_NK1",
type: "NK1",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.VISIT,
value: []
},
VISIT_INSURANCE_IN1: {
name: "VISIT_INSURANCE_IN1",
type: "IN1",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.VISIT_INSURANCE,
value: []
},
VISIT_INSURANCE_IN2: {
name: "VISIT_INSURANCE_IN2",
type: "IN2",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.VISIT_INSURANCE,
value: []
},
VISIT_INSURANCE_IN3: {
name: "VISIT_INSURANCE_IN3",
type: "IN3",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.VISIT_INSURANCE,
value: []
},
VISIT_INSURANCE_ROL: {
name: "VISIT_INSURANCE_ROL",
type: "ROL",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.VISIT_INSURANCE,
value: []
},
VISIT_ACC: {
name: "VISIT_ACC",
type: "ACC",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.VISIT,
value: []
},
VISIT_UB1: {
name: "VISIT_UB1",
type: "UB1",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.VISIT,
value: []
},
VISIT_UB2: {
name: "VISIT_UB2",
type: "UB2",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.VISIT,
value: []
},
};
}
get name() { return 'BAR_P01'; }
get description() { return 'Add patient accounts'; }
}
exports.default = BAR_P01_Message;