Class: LIS::Message::Patient
Overview
Patient Message
Contains patient information, patient ID, name.
Message Examples
2P|1|101|||Riker^Al||19611102|F|||||Bashere
2P|3|326829;AH|||Last 3^First 3|||F|||||
2P|1|119813;TGH|||Last 1^First 1|||F|||||
5P|2|66412558|||||||||||
Message Structure
-
Record Type (P)
-
Sequence #
-
Practice Assigned Patient ID
-
Laboratory Assigned Patient ID
-
Patient ID
-
Patient Name
(Last^First^Initial; maximum of 20 characters for Last Name; maximum of 15 characters for First Name) -
Mother’s Maiden Name
-
BirthDate
(YYYYMMDD; maximum of 8 characters) -
Patient Sex
(M or F; maximum of 1 character) -
Patient Race
-
Patient Address
-
Reserved
-
Patient Phone #
-
Attending Physician ID
-
Special Field 1
-
Special Field 2
-
Patient Height
-
Patient Weight
-
Patients Known or Suspected Diagnosis
-
Patient active medications
-
Patients Diet
-
Practice Field #1
-
Practice Field #2
-
Admission and Discharge Dates
-
Admission Status
-
Location
-
Nature of Alternative Diagnostic Code and Classification
-
Alternative Diagnostic Code and Classification
-
Patient Religion
-
Marital Status
-
Isolation Status
-
Language
-
Hospital Service
-
Hospital Institution
-
Dosage Category
Constant Summary
Constants included from ClassMethods
ClassMethods::CONVERSION_WRITER
Instance Method Summary collapse
-
#initialize(sequence_number, patient_id, last_name = "", first_name = "") ⇒ Patient
constructor
A new instance of Patient.
Methods inherited from Base
from_string, #to_message, #type_id
Methods included from ClassMethods
#default_fields, #field_count, #get_field_attributes, #get_index_for, #has_field, #set_field_attributes, #set_index_for, #type_id
Constructor Details
#initialize(sequence_number, patient_id, last_name = "", first_name = "") ⇒ Patient
Returns a new instance of Patient.
73 74 75 76 77 78 |
# File 'lib/lis/messages/patient.rb', line 73 def initialize(sequence_number, patient_id, last_name = "", first_name = "") self.sequence_number = sequence_number self.practice_assigned_patient_id = patient_id self.patient_id = patient_id self.name = [last_name, first_name].join("^") end |