Class: LifenFhir::Attachment

Inherits:
Base
  • Object
show all
Defined in:
lib/lifen_fhir/attachment.rb

Instance Method Summary collapse

Instance Method Details

#fhir_payloadObject



9
10
11
12
13
14
15
16
17
# File 'lib/lifen_fhir/attachment.rb', line 9

def fhir_payload
  {
    contentAttachment: {
      data: base_64_encoded_content,
      title: title,
      contentType: "{#{content_type}}"
    }
  }
end