@dotbase/hl7-v2-message
Version:
Parses HL7 v2.x messages into typed javascript objects and makes them easily accessable.
262 lines (261 loc) • 8.84 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 query
*/
class ADR_A19_Message extends Hl7Message_1.default {
constructor() {
super(...arguments);
this.compounds = {
QUERY_RESPONSE: {
name: "QUERY_RESPONSE",
isOptional: false,
isRepeatable: true,
},
QUERY_RESPONSE_PROCEDURE: {
name: "QUERY_RESPONSE_PROCEDURE",
isOptional: true,
isRepeatable: true,
parentCompound: "QUERY_RESPONSE",
},
QUERY_RESPONSE_INSURANCE: {
name: "QUERY_RESPONSE_INSURANCE",
isOptional: true,
isRepeatable: true,
parentCompound: "QUERY_RESPONSE",
},
};
this.segments = {
MSH: {
name: "MSH",
type: "MSH",
isOptional: false,
isRepeatable: false,
value: []
},
MSA: {
name: "MSA",
type: "MSA",
isOptional: false,
isRepeatable: false,
value: []
},
ERR: {
name: "ERR",
type: "ERR",
isOptional: true,
isRepeatable: false,
value: []
},
QAK: {
name: "QAK",
type: "QAK",
isOptional: true,
isRepeatable: false,
value: []
},
QRD: {
name: "QRD",
type: "QRD",
isOptional: false,
isRepeatable: false,
value: []
},
QRF: {
name: "QRF",
type: "QRF",
isOptional: true,
isRepeatable: false,
value: []
},
QUERY_RESPONSE_EVN: {
name: "QUERY_RESPONSE_EVN",
type: "EVN",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.QUERY_RESPONSE,
value: []
},
QUERY_RESPONSE_PID: {
name: "QUERY_RESPONSE_PID",
type: "PID",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.QUERY_RESPONSE,
value: []
},
QUERY_RESPONSE_PD1: {
name: "QUERY_RESPONSE_PD1",
type: "PD1",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.QUERY_RESPONSE,
value: []
},
QUERY_RESPONSE_ROL: {
name: "QUERY_RESPONSE_ROL",
type: "ROL",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.QUERY_RESPONSE,
value: []
},
QUERY_RESPONSE_NK1: {
name: "QUERY_RESPONSE_NK1",
type: "NK1",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.QUERY_RESPONSE,
value: []
},
QUERY_RESPONSE_PV1: {
name: "QUERY_RESPONSE_PV1",
type: "PV1",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.QUERY_RESPONSE,
value: []
},
QUERY_RESPONSE_PV2: {
name: "QUERY_RESPONSE_PV2",
type: "PV2",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.QUERY_RESPONSE,
value: []
},
QUERY_RESPONSE_DB1: {
name: "QUERY_RESPONSE_DB1",
type: "DB1",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.QUERY_RESPONSE,
value: []
},
QUERY_RESPONSE_OBX: {
name: "QUERY_RESPONSE_OBX",
type: "OBX",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.QUERY_RESPONSE,
value: []
},
QUERY_RESPONSE_AL1: {
name: "QUERY_RESPONSE_AL1",
type: "AL1",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.QUERY_RESPONSE,
value: []
},
QUERY_RESPONSE_DG1: {
name: "QUERY_RESPONSE_DG1",
type: "DG1",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.QUERY_RESPONSE,
value: []
},
QUERY_RESPONSE_DRG: {
name: "QUERY_RESPONSE_DRG",
type: "DRG",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.QUERY_RESPONSE,
value: []
},
QUERY_RESPONSE_PROCEDURE_PR1: {
name: "QUERY_RESPONSE_PROCEDURE_PR1",
type: "PR1",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.QUERY_RESPONSE_PROCEDURE,
value: []
},
QUERY_RESPONSE_PROCEDURE_ROL: {
name: "QUERY_RESPONSE_PROCEDURE_ROL",
type: "ROL",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.QUERY_RESPONSE_PROCEDURE,
value: []
},
QUERY_RESPONSE_GT1: {
name: "QUERY_RESPONSE_GT1",
type: "GT1",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.QUERY_RESPONSE,
value: []
},
QUERY_RESPONSE_INSURANCE_IN1: {
name: "QUERY_RESPONSE_INSURANCE_IN1",
type: "IN1",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.QUERY_RESPONSE_INSURANCE,
value: []
},
QUERY_RESPONSE_INSURANCE_IN2: {
name: "QUERY_RESPONSE_INSURANCE_IN2",
type: "IN2",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.QUERY_RESPONSE_INSURANCE,
value: []
},
QUERY_RESPONSE_INSURANCE_IN3: {
name: "QUERY_RESPONSE_INSURANCE_IN3",
type: "IN3",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.QUERY_RESPONSE_INSURANCE,
value: []
},
QUERY_RESPONSE_INSURANCE_ROL: {
name: "QUERY_RESPONSE_INSURANCE_ROL",
type: "ROL",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.QUERY_RESPONSE_INSURANCE,
value: []
},
QUERY_RESPONSE_ACC: {
name: "QUERY_RESPONSE_ACC",
type: "ACC",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.QUERY_RESPONSE,
value: []
},
QUERY_RESPONSE_UB1: {
name: "QUERY_RESPONSE_UB1",
type: "UB1",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.QUERY_RESPONSE,
value: []
},
QUERY_RESPONSE_UB2: {
name: "QUERY_RESPONSE_UB2",
type: "UB2",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.QUERY_RESPONSE,
value: []
},
DSC: {
name: "DSC",
type: "DSC",
isOptional: true,
isRepeatable: false,
value: []
},
};
}
get name() { return 'ADR_A19'; }
get description() { return 'Patient query'; }
}
exports.default = ADR_A19_Message;