Class: LIS::Message::Patient

Inherits:
Base
  • Object
show all
Defined in:
lib/lis/messages/patient.rb

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

  1. Record Type (P)

  2. Sequence #

  3. Practice Assigned Patient ID

  4. Laboratory Assigned Patient ID

  5. Patient ID

  6. Patient Name

    (Last^First^Initial; maximum of 20 characters for Last Name; maximum of 15 characters for First Name)
  7. Mother's Maiden Name

  8. BirthDate

    (YYYYMMDD; maximum of 8 characters)
  9. Patient Sex

    (M or F; maximum of 1 character)
  10. Patient Race

  11. Patient Address

  12. Reserved

  13. Patient Phone #

  14. Attending Physician ID

  15. Special Field 1

  16. Special Field 2

  17. Patient Height

  18. Patient Weight

  19. Patients Known or Suspected Diagnosis

  20. Patient active medications

  21. Patients Diet

  22. Practice Field #1

  23. Practice Field #2

  24. Admission and Discharge Dates

  25. Admission Status

  26. Location

  27. Nature of Alternative Diagnostic Code and Classification

  28. Alternative Diagnostic Code and Classification

  29. Patient Religion

  30. Marital Status

  31. Isolation Status

  32. Language

  33. Hospital Service

  34. Hospital Institution

  35. Dosage Category

Constant Summary

Constants included from ClassMethods

ClassMethods::CONVERSION_WRITER

Instance Method Summary (collapse)

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 = "")



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