Class: Redox::Models::Patient
- Inherits:
-
Model
- Object
- Hashie::Trash
- Model
- Redox::Models::Patient
show all
- Defined in:
- lib/redox/models/patient.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Model
from_response, #initialize, #to_h, #to_json
Class Method Details
.query(params, meta: Meta.new) ⇒ Object
Instance Method Details
#add_identifier(type:, value:) ⇒ Object
25
26
27
28
29
|
# File 'lib/redox/models/patient.rb', line 25
def add_identifier(type: , value: )
self[:Identifiers] << Identifier.new({'ID' => value, 'IDType' => type})
return self
end
|
#add_insurance(data = {}) ⇒ Object
31
32
33
34
35
|
# File 'lib/redox/models/patient.rb', line 31
def add_insurance(data = {})
self[:Insurances] << Insurance.new(data)
return self
end
|
#create(meta: Meta.new) ⇒ Object
#primary_care_provider ⇒ Object
21
22
23
|
# File 'lib/redox/models/patient.rb', line 21
def primary_care_provider
self[:PCP] ||= PCP.new
end
|
#update(meta: Meta.new) ⇒ Object