UNPKG

@dotbase/hl7-v2-message

Version:

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

131 lines (130 loc) 4.92 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Message_1 = tslib_1.__importDefault(require("../../../model/Hl7Message")); /** * Response message to oml */ class ORL_O22_Message extends Hl7Message_1.default { constructor() { super(...arguments); this.compounds = { RESPONSE: { name: "RESPONSE", isOptional: true, isRepeatable: false, }, RESPONSE_PATIENT: { name: "RESPONSE_PATIENT", isOptional: true, isRepeatable: false, parentCompound: "RESPONSE", }, RESPONSE_PATIENT_GENERAL_ORDER: { name: "RESPONSE_PATIENT_GENERAL_ORDER", isOptional: false, isRepeatable: true, parentCompound: "RESPONSE_PATIENT", }, RESPONSE_PATIENT_GENERAL_ORDER_CONTAINER: { name: "RESPONSE_PATIENT_GENERAL_ORDER_CONTAINER", isOptional: true, isRepeatable: false, parentCompound: "RESPONSE_PATIENT_GENERAL_ORDER", }, RESPONSE_PATIENT_GENERAL_ORDER_ORDER: { name: "RESPONSE_PATIENT_GENERAL_ORDER_ORDER", isOptional: true, isRepeatable: true, parentCompound: "RESPONSE_PATIENT_GENERAL_ORDER", }, RESPONSE_PATIENT_GENERAL_ORDER_ORDER_OBSERVATION_REQUEST: { name: "RESPONSE_PATIENT_GENERAL_ORDER_ORDER_OBSERVATION_REQUEST", isOptional: true, isRepeatable: false, parentCompound: "RESPONSE_PATIENT_GENERAL_ORDER_ORDER", }, }; 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: [] }, NTE: { name: "NTE", type: "NTE", isOptional: true, isRepeatable: true, value: [] }, RESPONSE_PATIENT_PID: { name: "RESPONSE_PATIENT_PID", type: "PID", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RESPONSE_PATIENT, value: [] }, RESPONSE_PATIENT_GENERAL_ORDER_CONTAINER_SAC: { name: "RESPONSE_PATIENT_GENERAL_ORDER_CONTAINER_SAC", type: "SAC", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RESPONSE_PATIENT_GENERAL_ORDER_CONTAINER, value: [] }, RESPONSE_PATIENT_GENERAL_ORDER_CONTAINER_OBX: { name: "RESPONSE_PATIENT_GENERAL_ORDER_CONTAINER_OBX", type: "OBX", isOptional: true, isRepeatable: true, parentCompound: this.compounds.RESPONSE_PATIENT_GENERAL_ORDER_CONTAINER, value: [] }, RESPONSE_PATIENT_GENERAL_ORDER_ORDER_ORC: { name: "RESPONSE_PATIENT_GENERAL_ORDER_ORDER_ORC", type: "ORC", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RESPONSE_PATIENT_GENERAL_ORDER_ORDER, value: [] }, RESPONSE_PATIENT_GENERAL_ORDER_ORDER_OBSERVATION_REQUEST_OBR: { name: "RESPONSE_PATIENT_GENERAL_ORDER_ORDER_OBSERVATION_REQUEST_OBR", type: "OBR", isOptional: false, isRepeatable: false, parentCompound: this.compounds.RESPONSE_PATIENT_GENERAL_ORDER_ORDER_OBSERVATION_REQUEST, value: [] }, RESPONSE_PATIENT_GENERAL_ORDER_ORDER_OBSERVATION_REQUEST_SAC: { name: "RESPONSE_PATIENT_GENERAL_ORDER_ORDER_OBSERVATION_REQUEST_SAC", type: "SAC", isOptional: true, isRepeatable: true, parentCompound: this.compounds.RESPONSE_PATIENT_GENERAL_ORDER_ORDER_OBSERVATION_REQUEST, value: [] }, }; } get name() { return 'ORL_O22'; } get description() { return 'Response message to oml'; } } exports.default = ORL_O22_Message;