@dotbase/hl7-v2-message
Version:
Parses HL7 v2.x messages into typed javascript objects and makes them easily accessable.
77 lines (76 loc) • 2.56 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message"));
/**
* Application management query message
*/
class NMQ_N02_Message extends Hl7Message_1.default {
constructor() {
super(...arguments);
this.compounds = {
QRY_WITH_DETAIL: {
name: "QRY_WITH_DETAIL",
isOptional: true,
isRepeatable: false,
},
CLOCK_AND_STATISTICS: {
name: "CLOCK_AND_STATISTICS",
isOptional: false,
isRepeatable: true,
},
};
this.segments = {
MSH: {
name: "MSH",
type: "MSH",
isOptional: false,
isRepeatable: false,
value: []
},
QRY_WITH_DETAIL_QRD: {
name: "QRY_WITH_DETAIL_QRD",
type: "QRD",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.QRY_WITH_DETAIL,
value: []
},
QRY_WITH_DETAIL_QRF: {
name: "QRY_WITH_DETAIL_QRF",
type: "QRF",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.QRY_WITH_DETAIL,
value: []
},
CLOCK_AND_STATISTICS_NCK: {
name: "CLOCK_AND_STATISTICS_NCK",
type: "NCK",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.CLOCK_AND_STATISTICS,
value: []
},
CLOCK_AND_STATISTICS_NST: {
name: "CLOCK_AND_STATISTICS_NST",
type: "NST",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.CLOCK_AND_STATISTICS,
value: []
},
CLOCK_AND_STATISTICS_NSC: {
name: "CLOCK_AND_STATISTICS_NSC",
type: "NSC",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.CLOCK_AND_STATISTICS,
value: []
},
};
}
get name() { return 'NMQ_N02'; }
get description() { return 'Application management query message'; }
}
exports.default = NMQ_N02_Message;