class Lifen::Binary

Public Instance Methods

download() click to toggle source
# File lib/lifen/binary.rb, line 16
def download
  application_client.get("fhir/#{reference}", { accept: "application/pdf" })
end
fhir_payload() click to toggle source
# File lib/lifen/binary.rb, line 8
def fhir_payload
  {
    contentReference: {
      reference: reference
    }
  }
end

Private Instance Methods

application_client() click to toggle source
# File lib/lifen/binary.rb, line 22
def application_client
  @application_client ||= AppAuthenticatedClient.new
end
reference() click to toggle source
# File lib/lifen/binary.rb, line 26
def reference
  "Binary/#{uuid}"
end