Class: MalawiHivProgramReports::Clinic::ExternalConsultationClients

Inherits:
Object
  • Object
show all
Includes:
Utils::CommonSqlQueryUtils
Defined in:
app/services/malawi_hiv_program_reports/clinic/external_consultation_clients.rb

Instance Method Summary collapse

Methods included from Utils::CommonSqlQueryUtils

#current_occupation_query, #external_client_query, #occupation_filter, #partition_by_site, #process_occupation

Constructor Details

#initialize(start_date:, end_date:, **kwargs) ⇒ ExternalConsultationClients

Returns a new instance of ExternalConsultationClients.



11
12
13
14
15
# File 'app/services/malawi_hiv_program_reports/clinic/external_consultation_clients.rb', line 11

def initialize(start_date:, end_date:, **kwargs)
  @start_date = start_date.to_date
  @end_date = end_date.to_date
  @occupation = kwargs[:occupation]
end

Instance Method Details

#listObject



17
18
19
# File 'app/services/malawi_hiv_program_reports/clinic/external_consultation_clients.rb', line 17

def list
  other_clients
end