Class: Renalware::Feeds::HL7Message::PatientIdentification

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
app/models/renalware/feeds/hl7_message.rb

Instance Method Summary collapse

Instance Method Details

#family_nameObject



121
122
123
# File 'app/models/renalware/feeds/hl7_message.rb', line 121

def family_name
  patient_name[0]
end

#given_nameObject



125
126
127
# File 'app/models/renalware/feeds/hl7_message.rb', line 125

def given_name
  patient_name[1]
end

#internal_idObject



113
114
115
# File 'app/models/renalware/feeds/hl7_message.rb', line 113

def internal_id
  patient_id_list.split("^").first
end

#nameObject



117
118
119
# File 'app/models/renalware/feeds/hl7_message.rb', line 117

def name
  Name.new(patient_name)
end