@dotbase/hl7-v2-message
Version:
Parses HL7 v2.x messages into typed javascript objects and makes them easily accessable.
100 lines (99 loc) • 2.91 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message"));
/**
* Document response
*/
class DOC_T12_Message extends Hl7Message_1.default {
constructor() {
super(...arguments);
this.compounds = {
RESULT: {
name: "RESULT",
isOptional: false,
isRepeatable: true,
},
};
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: []
},
RESULT_EVN: {
name: "RESULT_EVN",
type: "EVN",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.RESULT,
value: []
},
RESULT_PID: {
name: "RESULT_PID",
type: "PID",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.RESULT,
value: []
},
RESULT_PV1: {
name: "RESULT_PV1",
type: "PV1",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.RESULT,
value: []
},
RESULT_TXA: {
name: "RESULT_TXA",
type: "TXA",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.RESULT,
value: []
},
RESULT_OBX: {
name: "RESULT_OBX",
type: "OBX",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.RESULT,
value: []
},
DSC: {
name: "DSC",
type: "DSC",
isOptional: true,
isRepeatable: false,
value: []
},
};
}
get name() { return 'DOC_T12'; }
get description() { return 'Document response'; }
}
exports.default = DOC_T12_Message;