Class: LifenFhir::Telecom
Instance Method Summary
collapse
Methods inherited from Element
#fhir_payload_as_reference, #reference
Instance Method Details
#attributes_from_json(json) ⇒ Object
7
8
9
10
11
12
13
|
# File 'lib/lifen_fhir/telecom.rb', line 7
def attributes_from_json(json)
self.uuid = json.fetch("id")
self.system = json.fetch("system")
self.value = json.fetch("value")
self
end
|
#fhir_payload ⇒ Object
15
16
17
18
19
20
|
# File 'lib/lifen_fhir/telecom.rb', line 15
def fhir_payload
{
"system": system,
"value": value
}
end
|