Class: Redox::Request::PatientSearch

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

Constant Summary collapse

QUERY_ENDPOINT =
'/query'
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



9
10
11
12
13
14
15
# File 'lib/redox/request/patient_search.rb', line 9

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