@dotbase/hl7-v2-message
Version:
Parses HL7 v2.x messages into typed javascript objects and makes them easily accessable.
335 lines (334 loc) • 8.3 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 PID_Fields extends Hl7Fields_1.default {
constructor() {
super(...arguments);
/**
* Set ID - Patient ID
*/
this.PID_1 = {
index: 0,
identifier: "PID_1",
description: "Set ID - Patient ID",
length: 4,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Patient ID
*/
this.PID_2 = {
index: 1,
identifier: "PID_2",
description: "Patient ID",
length: 16,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Patient ID
*/
this.PID_3 = {
index: 2,
identifier: "PID_3",
description: "Patient ID",
length: 20,
isOptional: false,
isRepeatable: true,
value: "",
};
/**
* Alternate Patient ID
*/
this.PID_4 = {
index: 3,
identifier: "PID_4",
description: "Alternate Patient ID",
length: 12,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Patient Name
*/
this.PID_5 = {
index: 4,
identifier: "PID_5",
description: "Patient Name",
length: 48,
isOptional: false,
isRepeatable: false,
value: "",
};
/**
* Mothers Maiden Name
*/
this.PID_6 = {
index: 5,
identifier: "PID_6",
description: "Mothers Maiden Name",
length: 30,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Date of Birth
*/
this.PID_7 = {
index: 6,
identifier: "PID_7",
description: "Date of Birth",
length: 26,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Sex
*/
this.PID_8 = {
index: 7,
identifier: "PID_8",
description: "Sex",
length: 1,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Patient Alias
*/
this.PID_9 = {
index: 8,
identifier: "PID_9",
description: "Patient Alias",
length: 48,
isOptional: true,
isRepeatable: true,
value: "",
};
/**
* Race
*/
this.PID_10 = {
index: 9,
identifier: "PID_10",
description: "Race",
length: 1,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Patient Address
*/
this.PID_11 = {
index: 10,
identifier: "PID_11",
description: "Patient Address",
length: 106,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* County code
*/
this.PID_12 = {
index: 11,
identifier: "PID_12",
description: "County code",
length: 4,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Phone Number - Home
*/
this.PID_13 = {
index: 12,
identifier: "PID_13",
description: "Phone Number - Home",
length: 40,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Phone Number - Business
*/
this.PID_14 = {
index: 13,
identifier: "PID_14",
description: "Phone Number - Business",
length: 40,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Language - Patient
*/
this.PID_15 = {
index: 14,
identifier: "PID_15",
description: "Language - Patient",
length: 25,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Marital Status
*/
this.PID_16 = {
index: 15,
identifier: "PID_16",
description: "Marital Status",
length: 1,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Religion
*/
this.PID_17 = {
index: 16,
identifier: "PID_17",
description: "Religion",
length: 3,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Patient Account Number
*/
this.PID_18 = {
index: 17,
identifier: "PID_18",
description: "Patient Account Number",
length: 20,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Social security number - patient
*/
this.PID_19 = {
index: 18,
identifier: "PID_19",
description: "Social security number - patient",
length: 16,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Drivers license number - patient
*/
this.PID_20 = {
index: 19,
identifier: "PID_20",
description: "Drivers license number - patient",
length: 25,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Mothers Identifier
*/
this.PID_21 = {
index: 20,
identifier: "PID_21",
description: "Mothers Identifier",
length: 20,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Ethnic Group
*/
this.PID_22 = {
index: 21,
identifier: "PID_22",
description: "Ethnic Group",
length: 1,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Birth Place
*/
this.PID_23 = {
index: 22,
identifier: "PID_23",
description: "Birth Place",
length: 25,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Multiple Birth Indicator
*/
this.PID_24 = {
index: 23,
identifier: "PID_24",
description: "Multiple Birth Indicator",
length: 2,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Birth Order
*/
this.PID_25 = {
index: 24,
identifier: "PID_25",
description: "Birth Order",
length: 2,
isOptional: true,
isRepeatable: false,
value: "",
};
/**
* Citizenship
*/
this.PID_26 = {
index: 25,
identifier: "PID_26",
description: "Citizenship",
length: 3,
isOptional: true,
isRepeatable: true,
value: "",
};
/**
* Veterans Military Status
*/
this.PID_27 = {
index: 26,
identifier: "PID_27",
description: "Veterans Military Status",
length: 60,
isOptional: true,
isRepeatable: false,
value: "",
};
}
}
exports.default = PID_Fields;