Class: Lifen::Binary

Inherits:
Base
  • Object
show all
Defined in:
lib/lifen/binary.rb

Instance Method Summary collapse

Instance Method Details

#downloadObject



16
17
18
# File 'lib/lifen/binary.rb', line 16

def download
  application_client.get("fhir/#{reference}", { accept: "application/pdf" })
end

#fhir_payloadObject



8
9
10
11
12
13
14
# File 'lib/lifen/binary.rb', line 8

def fhir_payload
  {
    contentReference: {
      reference: reference
    }
  }
end