@dotbase/hl7-v2-message
Version:
Parses HL7 v2.x messages into typed javascript objects and makes them easily accessable.
215 lines (214 loc) • 5.4 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: 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: 30,
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: 26,
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: "",
};
/**
* Accept acknowledgement type
*/
this.MSH_15 = {
index: 14,
identifier: "MSH_15",
description: "Accept acknowledgement type",
length: 2,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Application acknowledgement type
*/
this.MSH_16 = {
index: 15,
identifier: "MSH_16",
description: "Application acknowledgement type",
length: 2,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Country code
*/
this.MSH_17 = {
index: 16,
identifier: "MSH_17",
description: "Country code",
length: 2,
isOptional: true,
isRepeatable: false,
value: "",
};
}
}
exports.default = MSH_Fields;