Class: Redox::Request::Medications

Inherits:
Object
  • Object
show all
Defined in:
lib/redox/request/medications.rb

Constant Summary collapse

ADMINISTRATION_META =
Redox::Models::Meta.new(EventType: 'Administration', DataModel: 'Medications')

Class Method Summary collapse

Class Method Details

.administration(model, meta: Redox::Models::Meta.new) ⇒ Object



6
7
8
9
# File 'lib/redox/request/medications.rb', line 6

def self.administration(model, meta: Redox::Models::Meta.new)
  meta = ADMINISTRATION_META.merge(meta)
  return Redox::Models::Model.from_response((RedoxClient.connection.request(body: Redox::Request.build_body(model, meta))))
end