Class: Redox::Request::PatientSearch

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

Constant Summary collapse

QUERY_ENDPOINT =
'/query'.freeze
QUERY_META =
Redox::Models::Meta.new(EventType: 'Query', DataModel: 'PatientSearch')

Class Method Summary collapse

Class Method Details

.query(params, meta: Redox::Models::Meta.new) ⇒ Object



7
8
9
10
# File 'lib/redox/request/patient_search.rb', line 7

def self.query(params, meta: Redox::Models::Meta.new)
  meta = QUERY_META.merge(meta)
  return Redox::Models::Model.from_response((RedoxClient.connection.request(endpoint: QUERY_ENDPOINT, body: Redox::Request.build_body(params, meta))))
end