lib/fhir_client/ext/reference.rb in fhir_client-3.0.7 vs lib/fhir_client/ext/reference.rb in fhir_client-3.1.0
- old
+ new
@@ -57,20 +57,20 @@
def read
return if !(relative? || absolute?)
if relative? || reference == client.full_resource_url(resource: resource_class, id: reference_id)
read_client = client
else
- read_client = FHIR::Client.new base_uri, default_format: client.default_format
+ read_client = FHIR::Client.new base_uri, default_format: client.default_format, proxy: client.proxy
end
resource_class.read(reference_id, read_client)
end
def vread
return if !(relative? || absolute?) || version_id.blank?
if relative? || reference == client.full_resource_url(resource: resource_class, id: reference_id)
read_client = client
else
- read_client = FHIR::Client.new base_uri, default_format: client.default_format
+ read_client = FHIR::Client.new base_uri, default_format: client.default_format, proxy: client.proxy
end
resource_class.vread(reference_id, version_id, read_client)
end
end