Class: MalawiHivProgramReports::Clinic::VlCollection

Inherits:
Object
  • Object
show all
Includes:
Utils::CommonSqlQueryUtils
Defined in:
app/services/malawi_hiv_program_reports/clinic/vl_collection.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) ⇒ VlCollection

Returns a new instance of VlCollection.



8
9
10
11
12
# File 'app/services/malawi_hiv_program_reports/clinic/vl_collection.rb', line 8

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

Instance Method Details

#find_reportObject



14
15
16
# File 'app/services/malawi_hiv_program_reports/clinic/vl_collection.rb', line 14

def find_report
  data
end