UNPKG

@dotbase/hl7-v2-message

Version:

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

194 lines (193 loc) 6.45 kB
"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_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: [] }, QRD: { name: "QRD", type: "QRD", isOptional: false, 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_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_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_PR1: { name: "QUERY_RESPONSE_PR1", type: "PR1", isOptional: true, isRepeatable: true, parentCompound: this.compounds.QUERY_RESPONSE, 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: false, 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;