Class: MalawiHivProgramReports::Clinic::RegimensByWeightAndGender

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

Constant Summary

Constants included from Utils::ConcurrencyUtils

Utils::ConcurrencyUtils::LOCK_FILES_DIR_PATH

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils::ConcurrencyUtils

#with_lock

Constructor Details

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

Returns a new instance of RegimensByWeightAndGender.



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

def initialize(start_date:, end_date:, **kwargs)
  @start_date = start_date
  @end_date = end_date
  @rebuild_outcomes = true
  @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/regimens_by_weight_and_gender.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/regimens_by_weight_and_gender.rb', line 8

def start_date
  @start_date
end

Instance Method Details

#find_reportObject



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

def find_report
  regimen_counts
end