UNPKG

@dotbase/hl7-v2-message

Version:

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

179 lines (178 loc) 4.46 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const Hl7Fields_1 = tslib_1.__importDefault(require("../../../model/Hl7Fields")); class MSH_Fields extends Hl7Fields_1.default { constructor() { super(...arguments); /** * Field separator */ this.MSH_1 = { index: 0, identifier: "MSH_1", description: "Field separator", length: 1, isOptional: false, isRepeatable: false, value: "", }; /** * Encoding characters */ this.MSH_2 = { index: 1, identifier: "MSH_2", description: "Encoding characters", length: 4, isOptional: false, isRepeatable: false, value: "", }; /** * Sending application */ this.MSH_3 = { index: 2, identifier: "MSH_3", description: "Sending application", length: 15, isOptional: true, isRepeatable: false, value: "", }; /** * Sending facility */ this.MSH_4 = { index: 3, identifier: "MSH_4", description: "Sending facility", length: 20, isOptional: true, isRepeatable: false, value: "", }; /** * Receiving application */ this.MSH_5 = { index: 4, identifier: "MSH_5", description: "Receiving application", length: 15, isOptional: true, isRepeatable: false, value: "", }; /** * Receiving facility */ this.MSH_6 = { index: 5, identifier: "MSH_6", description: "Receiving facility", length: 30, isOptional: true, isRepeatable: false, value: "", }; /** * Date/time of message */ this.MSH_7 = { index: 6, identifier: "MSH_7", description: "Date/time of message", length: 19, isOptional: true, isRepeatable: false, value: "", }; /** * Security */ this.MSH_8 = { index: 7, identifier: "MSH_8", description: "Security", length: 40, isOptional: true, isRepeatable: false, value: "", }; /** * Message type */ this.MSH_9 = { index: 8, identifier: "MSH_9", description: "Message type", length: 7, isOptional: false, isRepeatable: false, value: "", }; /** * Message control id */ this.MSH_10 = { index: 9, identifier: "MSH_10", description: "Message control id", length: 20, isOptional: false, isRepeatable: false, value: "", }; /** * Processing id */ this.MSH_11 = { index: 10, identifier: "MSH_11", description: "Processing id", length: 1, isOptional: false, isRepeatable: false, value: "", }; /** * Version id */ this.MSH_12 = { index: 11, identifier: "MSH_12", description: "Version id", length: 8, isOptional: false, isRepeatable: false, value: "", }; /** * Sequence number */ this.MSH_13 = { index: 12, identifier: "MSH_13", description: "Sequence number", length: 15, isOptional: true, isRepeatable: false, value: "", }; /** * Continuation pointer */ this.MSH_14 = { index: 13, identifier: "MSH_14", description: "Continuation pointer", length: 180, isOptional: true, isRepeatable: false, value: "", }; } } exports.default = MSH_Fields;