lib/pacing/pacer.rb in pacing-2.1.0 vs lib/pacing/pacer.rb in pacing-2.2.0
- old
+ new
@@ -99,11 +99,11 @@
services
end
# discipline iep frequency
def discipline_frequency(service)
- service[:frequency].to_s + service[:interval][0].gsub(/(per)|p/i, "").strip.upcase + "x" + service[:time_per_session_in_minutes].to_s + service[:type_of_service][0].upcase + "T"
+ service[:frequency].to_s + service[:interval].gsub(/(per)|p/i, "").strip[0].upcase + "x" + service[:time_per_session_in_minutes].to_s + service[:type_of_service][0].upcase + "T"
end
# get a spreadout of visit dates over an interval by using simple proportion.
def expected_visits(start_date:, end_date:, frequency:, interval:)
reset_start = start_of_treatment_date(start_date, interval)
@@ -346,8 +346,8 @@
holidays_end = parse_date("08-01-#{parse_date(@date).year}")
holidays_start += 1 until holidays_start.wday == 1
[holidays_start, holidays_end]
- end
+ end
end
end