@dotbase/hl7-v2-message
Version:
Parses HL7 v2.x messages into typed javascript objects and makes them easily accessable.
122 lines (121 loc) • 3.54 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message"));
/**
* Segment pattern response
*/
class RSP_K25_Message extends Hl7Message_1.default {
constructor() {
super(...arguments);
this.compounds = {
STAFF: {
name: "STAFF",
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: []
},
QAK: {
name: "QAK",
type: "QAK",
isOptional: false,
isRepeatable: false,
value: []
},
QPD: {
name: "QPD",
type: "QPD",
isOptional: false,
isRepeatable: false,
value: []
},
RCP: {
name: "RCP",
type: "RCP",
isOptional: false,
isRepeatable: false,
value: []
},
STAFF_STF: {
name: "STAFF_STF",
type: "STF",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.STAFF,
value: []
},
STAFF_PRA: {
name: "STAFF_PRA",
type: "PRA",
isOptional: true,
isRepeatable: false,
parentCompound: this.compounds.STAFF,
value: []
},
STAFF_ORG: {
name: "STAFF_ORG",
type: "ORG",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.STAFF,
value: []
},
STAFF_AFF: {
name: "STAFF_AFF",
type: "AFF",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.STAFF,
value: []
},
STAFF_LAN: {
name: "STAFF_LAN",
type: "LAN",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.STAFF,
value: []
},
STAFF_EDU: {
name: "STAFF_EDU",
type: "EDU",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.STAFF,
value: []
},
DSC: {
name: "DSC",
type: "DSC",
isOptional: true,
isRepeatable: false,
value: []
},
};
}
get name() { return 'RSP_K25'; }
get description() { return 'Segment pattern response'; }
}
exports.default = RSP_K25_Message;