Class: MalawiHivProgramReports::Clinic::LimsResults

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

Instance Attribute Summary collapse

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) ⇒ LimsResults

Returns a new instance of LimsResults.



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

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

Instance Attribute Details

#end_dateObject (readonly)

Returns the value of attribute end_date.



8
9
10
# File 'app/services/malawi_hiv_program_reports/clinic/lims_results.rb', line 8

def end_date
  @end_date
end

#start_dateObject (readonly)

Returns the value of attribute start_date.



8
9
10
# File 'app/services/malawi_hiv_program_reports/clinic/lims_results.rb', line 8

def start_date
  @start_date
end

Instance Method Details

#find_reportObject



16
17
18
# File 'app/services/malawi_hiv_program_reports/clinic/lims_results.rb', line 16

def find_report
  data
end