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
-
Mother's Maiden Name
-
BirthDate
-
Patient Sex
-
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)
-
- (Patient) initialize(sequence_number, patient_id, last_name = "", first_name = "")
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
- (Patient) initialize(sequence_number, patient_id, last_name = "", first_name = "")
A new instance of Patient
68 69 70 71 72 73 |
# File 'lib/lis/messages/patient.rb', line 68 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.force_encoding("UTF-8"), first_name.force_encoding("UTF-8")].join("^") end |