@dotbase/hl7-v2-message
Version:
Parses HL7 v2.x messages into typed javascript objects and makes them easily accessable.
311 lines (310 loc) • 8.07 kB
JavaScript
"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: 5,
isOptional: false,
isRepeatable: false,
value: "",
};
/**
* Sending Application
*/
this.MSH_3 = {
index: 2,
identifier: "MSH_3",
description: "Sending Application",
length: undefined,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Sending Facility
*/
this.MSH_4 = {
index: 3,
identifier: "MSH_4",
description: "Sending Facility",
length: undefined,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Receiving Application
*/
this.MSH_5 = {
index: 4,
identifier: "MSH_5",
description: "Receiving Application",
length: undefined,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Receiving Facility
*/
this.MSH_6 = {
index: 5,
identifier: "MSH_6",
description: "Receiving Facility",
length: undefined,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Date/Time of Message
*/
this.MSH_7 = {
index: 6,
identifier: "MSH_7",
description: "Date/Time of Message",
length: undefined,
isOptional: false,
isRepeatable: false,
value: "",
};
/**
* Security
*/
this.MSH_8 = {
index: 7,
identifier: "MSH_8",
description: "Security",
length: undefined,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Message Type
*/
this.MSH_9 = {
index: 8,
identifier: "MSH_9",
description: "Message Type",
length: undefined,
isOptional: false,
isRepeatable: false,
value: "",
};
/**
* Message Control ID
*/
this.MSH_10 = {
index: 9,
identifier: "MSH_10",
description: "Message Control ID",
length: 199,
isOptional: false,
isRepeatable: false,
value: "",
};
/**
* Processing ID
*/
this.MSH_11 = {
index: 10,
identifier: "MSH_11",
description: "Processing ID",
length: undefined,
isOptional: false,
isRepeatable: false,
value: "",
};
/**
* Version ID
*/
this.MSH_12 = {
index: 11,
identifier: "MSH_12",
description: "Version ID",
length: undefined,
isOptional: false,
isRepeatable: false,
value: "",
};
/**
* Sequence Number
*/
this.MSH_13 = {
index: 12,
identifier: "MSH_13",
description: "Sequence Number",
length: undefined,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Continuation Pointer
*/
this.MSH_14 = {
index: 13,
identifier: "MSH_14",
description: "Continuation Pointer",
length: undefined,
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: 15,
isOptional: true,
isRepeatable: true,
value: "",
};
/**
* Principal Language Of Message
*/
this.MSH_19 = {
index: 18,
identifier: "MSH_19",
description: "Principal Language Of Message",
length: undefined,
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: 13,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Message Profile Identifier
*/
this.MSH_21 = {
index: 20,
identifier: "MSH_21",
description: "Message Profile Identifier",
length: undefined,
isOptional: true,
isRepeatable: true,
value: "",
};
/**
* Sending Responsible Organization
*/
this.MSH_22 = {
index: 21,
identifier: "MSH_22",
description: "Sending Responsible Organization",
length: undefined,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Receiving Responsible Organization
*/
this.MSH_23 = {
index: 22,
identifier: "MSH_23",
description: "Receiving Responsible Organization",
length: undefined,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Sending Network Address
*/
this.MSH_24 = {
index: 23,
identifier: "MSH_24",
description: "Sending Network Address",
length: undefined,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Receiving Network Address
*/
this.MSH_25 = {
index: 24,
identifier: "MSH_25",
description: "Receiving Network Address",
length: undefined,
isOptional: true,
isRepeatable: false,
value: "",
};
}
}
exports.default = MSH_Fields;