lib/lifen_fhir/patient.rb in lifen_fhir-0.3.0 vs lib/lifen_fhir/patient.rb in lifen_fhir-0.4.0

- old
+ new

@@ -20,10 +20,11 @@ self end def self.find_by_uuid(uuid) - json = application_client.get("fhir/Patient/#{uuid}") + patient = new(uuid:uuid) + json = application_client.get("fhir/#{LifenFhir::Reference.new(patient)}") patient = new patient.attributes_from_json(json) patient