Class: HealthcarePhony::Patient

Inherits:
Object
  • Object
show all
Defined in:
lib/healthcare_phony/patient.rb

Overview

Public: Randomly generate a Patient

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(init_args = {}) ⇒ Patient



28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/healthcare_phony/patient.rb', line 28

def initialize(init_args = {})
  define_gender(init_args)
  define_names(init_args)
  define_addresses(init_args)
  define_phones(init_args)
  define_dob(init_args)
  define_race(init_args)
  define_other
  define_identifiers
  define_birth_order
  define_death
end

Instance Attribute Details

#account_numberObject

Returns the value of attribute account_number.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def 
  @account_number
end

#addressesObject

Returns the value of attribute addresses.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def addresses
  @addresses
end

#birth_orderObject

Returns the value of attribute birth_order.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def birth_order
  @birth_order
end

#cell_phoneObject

Returns the value of attribute cell_phone.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def cell_phone
  @cell_phone
end

#date_of_birthObject

Returns the value of attribute date_of_birth.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def date_of_birth
  @date_of_birth
end

#death_datetimeObject

Returns the value of attribute death_datetime.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def death_datetime
  @death_datetime
end

#death_indicatorObject

Returns the value of attribute death_indicator.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def death_indicator
  @death_indicator
end

#drivers_licenseObject

Returns the value of attribute drivers_license.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def drivers_license
  @drivers_license
end

#emailObject

Returns the value of attribute email.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def email
  @email
end

#ethnic_groupObject

Returns the value of attribute ethnic_group.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def ethnic_group
  @ethnic_group
end

#genderObject

Returns the value of attribute gender.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def gender
  @gender
end

#home_phoneObject

Returns the value of attribute home_phone.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def home_phone
  @home_phone
end

#languageObject

Returns the value of attribute language.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def language
  @language
end

#marital_statusObject

Returns the value of attribute marital_status.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def marital_status
  @marital_status
end

#medical_record_numberObject

Returns the value of attribute medical_record_number.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def medical_record_number
  @medical_record_number
end

#multiple_birth_indicatorObject

Returns the value of attribute multiple_birth_indicator.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def multiple_birth_indicator
  @multiple_birth_indicator
end

#namesObject

Returns the value of attribute names.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def names
  @names
end

#racesObject

Returns the value of attribute races.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def races
  @races
end

#religionObject

Returns the value of attribute religion.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def religion
  @religion
end

#ssnObject

Returns the value of attribute ssn.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def ssn
  @ssn
end

#work_phoneObject

Returns the value of attribute work_phone.



6
7
8
# File 'lib/healthcare_phony/patient.rb', line 6

def work_phone
  @work_phone
end