UNPKG

@dotbase/hl7-v2-message

Version:

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

251 lines (250 loc) 6.24 kB
"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 external */ this.PID_2 = { index: 1, identifier: "PID_2", description: "Patient id external", length: 16, isOptional: true, isRepeatable: false, value: "", }; /** * Patient id internal */ this.PID_3 = { index: 2, identifier: "PID_3", description: "Patient id internal", length: 16, isOptional: false, isRepeatable: false, 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: 8, 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: "", }; /** * Ethnic group */ this.PID_10 = { index: 9, identifier: "PID_10", description: "Ethnic group", 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: "", }; /** * Ssn number - patient */ this.PID_19 = { index: 18, identifier: "PID_19", description: "Ssn number - patient", length: 16, isOptional: true, isRepeatable: false, value: "", }; /** * Drivers lic num - patient */ this.PID_20 = { index: 19, identifier: "PID_20", description: "Drivers lic num - patient", length: 25, isOptional: true, isRepeatable: false, value: "", }; } } exports.default = PID_Fields;