class Lifen::Attachment
Public Instance Methods
fhir_payload()
click to toggle source
# File lib/lifen/attachment.rb, line 9 def fhir_payload { contentAttachment: { data: base_64_encoded_content, title: title, contentType: "{#{content_type}}" } } end
Private Instance Methods
base_64_encoded_content()
click to toggle source
# File lib/lifen/attachment.rb, line 21 def base_64_encoded_content Base64.encode64(File.open(path, "rb").read) end