UNPKG

@dotbase/hl7-v2-message

Version:

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

263 lines (262 loc) 6.67 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: 227, isOptional: true, isRepeatable: false, value: "", }; /** * Sending Facility */ this.MSH_4 = { index: 3, identifier: "MSH_4", description: "Sending Facility", length: 227, isOptional: true, isRepeatable: false, value: "", }; /** * Receiving Application */ this.MSH_5 = { index: 4, identifier: "MSH_5", description: "Receiving Application", length: 227, isOptional: true, isRepeatable: false, value: "", }; /** * Receiving Facility */ this.MSH_6 = { index: 5, identifier: "MSH_6", description: "Receiving Facility", length: 227, isOptional: true, isRepeatable: false, value: "", }; /** * Date/Time Of Message */ this.MSH_7 = { index: 6, identifier: "MSH_7", description: "Date/Time Of Message", length: 26, isOptional: false, 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: 15, 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: 3, isOptional: false, isRepeatable: false, value: "", }; /** * Version ID */ this.MSH_12 = { index: 11, identifier: "MSH_12", description: "Version ID", length: 60, 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: "", }; /** * Accept Acknowledgment Type */ this.MSH_15 = { index: 14, identifier: "MSH_15", description: "Accept Acknowledgment Type", length: 2, isOptional: true, isRepeatable: false, value: "", }; /** * Application Acknowledgment Type */ this.MSH_16 = { index: 15, identifier: "MSH_16", description: "Application Acknowledgment Type", length: 2, isOptional: true, isRepeatable: false, value: "", }; /** * Country Code */ this.MSH_17 = { index: 16, identifier: "MSH_17", description: "Country Code", length: 3, isOptional: true, isRepeatable: false, value: "", }; /** * Character Set */ this.MSH_18 = { index: 17, identifier: "MSH_18", description: "Character Set", length: 16, isOptional: true, isRepeatable: true, value: "", }; /** * Principal Language Of Message */ this.MSH_19 = { index: 18, identifier: "MSH_19", description: "Principal Language Of Message", length: 250, isOptional: true, isRepeatable: false, value: "", }; /** * Alternate Character Set Handling Scheme */ this.MSH_20 = { index: 19, identifier: "MSH_20", description: "Alternate Character Set Handling Scheme", length: 20, isOptional: true, isRepeatable: false, value: "", }; /** * Message Profile Identifier */ this.MSH_21 = { index: 20, identifier: "MSH_21", description: "Message Profile Identifier", length: 427, isOptional: true, isRepeatable: true, value: "", }; } } exports.default = MSH_Fields;