@dotbase/hl7-v2-message
Version:
Parses HL7 v2.x messages into typed javascript objects and makes them easily accessable.
98 lines (97 loc) • 3.12 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message"));
/**
* Specimen Status Message
*/
class SSU_U03_Message extends Hl7Message_1.default {
constructor() {
super(...arguments);
this.compounds = {
SPECIMEN_CONTAINER: {
name: "SPECIMEN_CONTAINER",
isOptional: false,
isRepeatable: true,
},
SPECIMEN_CONTAINER_SPECIMEN: {
name: "SPECIMEN_CONTAINER_SPECIMEN",
isOptional: true,
isRepeatable: true,
parentCompound: "SPECIMEN_CONTAINER",
},
};
this.segments = {
MSH: {
name: "MSH",
type: "MSH",
isOptional: false,
isRepeatable: false,
value: []
},
SFT: {
name: "SFT",
type: "SFT",
isOptional: true,
isRepeatable: true,
value: []
},
UAC: {
name: "UAC",
type: "UAC",
isOptional: true,
isRepeatable: false,
value: []
},
EQU: {
name: "EQU",
type: "EQU",
isOptional: false,
isRepeatable: false,
value: []
},
SPECIMEN_CONTAINER_SAC: {
name: "SPECIMEN_CONTAINER_SAC",
type: "SAC",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.SPECIMEN_CONTAINER,
value: []
},
SPECIMEN_CONTAINER_OBX: {
name: "SPECIMEN_CONTAINER_OBX",
type: "OBX",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.SPECIMEN_CONTAINER,
value: []
},
SPECIMEN_CONTAINER_SPECIMEN_SPM: {
name: "SPECIMEN_CONTAINER_SPECIMEN_SPM",
type: "SPM",
isOptional: false,
isRepeatable: false,
parentCompound: this.compounds.SPECIMEN_CONTAINER_SPECIMEN,
value: []
},
SPECIMEN_CONTAINER_SPECIMEN_OBX: {
name: "SPECIMEN_CONTAINER_SPECIMEN_OBX",
type: "OBX",
isOptional: true,
isRepeatable: true,
parentCompound: this.compounds.SPECIMEN_CONTAINER_SPECIMEN,
value: []
},
ROL: {
name: "ROL",
type: "ROL",
isOptional: true,
isRepeatable: false,
value: []
},
};
}
get name() { return 'SSU_U03'; }
get description() { return 'Specimen Status Message'; }
}
exports.default = SSU_U03_Message;