pacing 1.0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/pacing_spec.rb CHANGED
@@ -1,8 +1,200 @@
1
1
  require 'spec_helper'
2
2
  require 'date'
3
3
 
4
+ # what happens when reset date falls in holiday, do we shift it to after the holidays?
5
+
4
6
  RSpec.describe Pacing::Pacer do
5
- describe "monthly pacer" do
7
+ describe "#interval" do
8
+ it "return some the current interval #1" do
9
+ school_plan = {
10
+ school_plan_services: [
11
+ {
12
+ school_plan_type: 'IEP',
13
+ start_date: '04-01-2022',
14
+ end_date: '04-01-2023',
15
+ type_of_service: 'Language Therapy',
16
+ frequency: 6,
17
+ interval: 'monthly',
18
+ time_per_session_in_minutes: 30,
19
+ completed_visits_for_current_interval: 7,
20
+ extra_sessions_allowable: 1,
21
+ interval_for_extra_sessions_allowable: 'monthly'
22
+ }, {
23
+ school_plan_type: 'IEP',
24
+ start_date: '04-01-2022',
25
+ end_date: '04-01-2023',
26
+ type_of_service: 'Physical Therapy',
27
+ frequency: 6,
28
+ interval: 'monthly',
29
+ time_per_session_in_minutes: 30,
30
+ completed_visits_for_current_interval: 2,
31
+ extra_sessions_allowable: 1,
32
+ interval_for_extra_sessions_allowable: 'monthly'
33
+ }
34
+ ]
35
+ }
36
+
37
+ date = '04-22-2022'
38
+ non_business_days = ['04-25-2022']
39
+ results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days, mode: :strict).interval
40
+
41
+ expect(results).to eq([
42
+ {
43
+ discipline: 'Speech Therapy',
44
+ start_date: '04-01-2022',
45
+ reset_date: '05-01-2022'
46
+ },
47
+ {
48
+ discipline: 'Physical Therapy',
49
+ start_date: '04-01-2022',
50
+ reset_date: '05-01-2022'
51
+ }
52
+ ])
53
+ end
54
+
55
+ it "return some the current interval #2" do
56
+ school_plan = {
57
+ school_plan_services: [
58
+ {
59
+ school_plan_type: 'IEP',
60
+ start_date: '04-01-2022',
61
+ end_date: '04-01-2023',
62
+ type_of_service: 'Language Therapy',
63
+ frequency: 6,
64
+ interval: 'monthly',
65
+ time_per_session_in_minutes: 30,
66
+ completed_visits_for_current_interval: 7,
67
+ extra_sessions_allowable: 1,
68
+ interval_for_extra_sessions_allowable: 'monthly'
69
+ }, {
70
+ school_plan_type: 'IEP',
71
+ start_date: '04-01-2022',
72
+ end_date: '04-01-2023',
73
+ type_of_service: 'Physical Therapy',
74
+ frequency: 2,
75
+ interval: 'weekly',
76
+ time_per_session_in_minutes: 30,
77
+ completed_visits_for_current_interval: 2,
78
+ extra_sessions_allowable: 1,
79
+ interval_for_extra_sessions_allowable: 'weekly'
80
+ }
81
+ ]
82
+ }
83
+
84
+ date = '05-19-2022'
85
+ non_business_days = ['04-25-2022']
86
+ results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days, mode: :strict).interval
87
+
88
+ expect(results).to eq([
89
+ {
90
+ discipline: 'Speech Therapy',
91
+ start_date: '05-01-2022',
92
+ reset_date: '06-01-2022'
93
+ },
94
+ {
95
+ discipline: 'Physical Therapy',
96
+ start_date: '05-13-2022',
97
+ reset_date: '05-20-2022'
98
+ }
99
+ ])
100
+ end
101
+
102
+ it "return some the current interval #3" do
103
+ school_plan = {
104
+ school_plan_services: [
105
+ {
106
+ school_plan_type: 'IEP',
107
+ start_date: '04-11-2022',
108
+ end_date: '04-11-2023',
109
+ type_of_service: 'Language Therapy',
110
+ frequency: 6,
111
+ interval: 'monthly',
112
+ time_per_session_in_minutes: 30,
113
+ completed_visits_for_current_interval: 7,
114
+ extra_sessions_allowable: 1,
115
+ interval_for_extra_sessions_allowable: 'monthly'
116
+ }, {
117
+ school_plan_type: 'IEP',
118
+ start_date: '04-11-2022',
119
+ end_date: '04-11-2023',
120
+ type_of_service: 'Physical Therapy',
121
+ frequency: 6,
122
+ interval: 'monthly',
123
+ time_per_session_in_minutes: 30,
124
+ completed_visits_for_current_interval: 2,
125
+ extra_sessions_allowable: 1,
126
+ interval_for_extra_sessions_allowable: 'monthly'
127
+ }
128
+ ]
129
+ }
130
+
131
+ date = '04-22-2022'
132
+ non_business_days = ['04-25-2022']
133
+ results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days, mode: :liberal).interval
134
+
135
+ expect(results).to eq([
136
+ {
137
+ discipline: 'Speech Therapy',
138
+ start_date: '04-01-2022',
139
+ reset_date: '05-01-2022'
140
+ },
141
+ {
142
+ discipline: 'Physical Therapy',
143
+ start_date: '04-01-2022',
144
+ reset_date: '05-01-2022'
145
+ }
146
+ ])
147
+ end
148
+
149
+ it "return some the current interval #4" do
150
+ school_plan = {
151
+ school_plan_services: [
152
+ {
153
+ school_plan_type: 'IEP',
154
+ start_date: '04-01-2022',
155
+ end_date: '04-01-2023',
156
+ type_of_service: 'Language Therapy',
157
+ frequency: 6,
158
+ interval: 'monthly',
159
+ time_per_session_in_minutes: 30,
160
+ completed_visits_for_current_interval: 7,
161
+ extra_sessions_allowable: 1,
162
+ interval_for_extra_sessions_allowable: 'monthly'
163
+ }, {
164
+ school_plan_type: 'IEP',
165
+ start_date: '04-01-2022',
166
+ end_date: '04-01-2023',
167
+ type_of_service: 'Physical Therapy',
168
+ frequency: 2,
169
+ interval: 'weekly',
170
+ time_per_session_in_minutes: 30,
171
+ completed_visits_for_current_interval: 2,
172
+ extra_sessions_allowable: 1,
173
+ interval_for_extra_sessions_allowable: 'weekly'
174
+ }
175
+ ]
176
+ }
177
+
178
+ date = '05-19-2022'
179
+ non_business_days = ['04-25-2022']
180
+ results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days, mode: :liberal).interval
181
+
182
+ expect(results).to eq([
183
+ {
184
+ discipline: 'Speech Therapy',
185
+ start_date: '05-01-2022',
186
+ reset_date: '06-01-2022'
187
+ },
188
+ {
189
+ discipline: 'Physical Therapy',
190
+ start_date: '05-16-2022',
191
+ reset_date: '05-23-2022'
192
+ }
193
+ ])
194
+ end
195
+ end
196
+
197
+ describe "#calculate" do
6
198
  it "return some data" do
7
199
  school_plan = {
8
200
  school_plan_services: [
@@ -617,7 +809,7 @@ RSpec.describe Pacing::Pacer do
617
809
  it "should respond with a friendly error message if date is out of range of school plan service start and end date" do
618
810
  school_plan = {school_plan_services: [{school_plan_type: 'IEP', start_date: '04-01-2022', end_date: '04-01-2023', type_of_service: 'Language Therapy', frequency: 6, interval: 'monthly', time_per_session_in_minutes: 30, completed_visits_for_current_interval: 7, extra_sessions_allowable: 1, interval_for_extra_sessions_allowable: 'monthly' }, {school_plan_type: 'IEP', start_date: '04-01-2022', end_date: '04-01-2023', type_of_service: 'Physical Therapy', frequency: 6, interval: 'monthly', time_per_session_in_minutes: 30, completed_visits_for_current_interval: 7, extra_sessions_allowable: 1, interval_for_extra_sessions_allowable: 'monthly' }]}
619
811
  date = '04-01-2018'
620
- non_business_days = ['25-01-2022']
812
+ non_business_days = ['02-11-2022']
621
813
  expect { Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days ).calculate }.to raise_error('Date must be within the interval range of the school plan')
622
814
  end
623
815
 
@@ -728,7 +920,7 @@ RSpec.describe Pacing::Pacer do
728
920
  date = "10-17-2022"
729
921
  non_business_days = []
730
922
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
731
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
923
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
732
924
  end
733
925
 
734
926
  it "should correctly parse the pacing for patient 23" do
@@ -762,7 +954,7 @@ RSpec.describe Pacing::Pacer do
762
954
  date = "10-17-2022"
763
955
  non_business_days = []
764
956
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
765
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
957
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
766
958
  end
767
959
 
768
960
  it "should correctly parse the pacing for patient 28" do
@@ -778,7 +970,7 @@ RSpec.describe Pacing::Pacer do
778
970
  date = "10-17-2022"
779
971
  non_business_days = []
780
972
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
781
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>12, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
973
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>22, :used_visits=>3, :pace=>-10, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>13, :reset_date=>"11-01-2022"}])
782
974
  end
783
975
 
784
976
  it "should correctly parse the pacing for patient 50" do
@@ -786,7 +978,7 @@ RSpec.describe Pacing::Pacer do
786
978
  date = "10-17-2022"
787
979
  non_business_days = []
788
980
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
789
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
981
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
790
982
  end
791
983
 
792
984
  it "should correctly parse the pacing for patient 51" do
@@ -802,7 +994,7 @@ RSpec.describe Pacing::Pacer do
802
994
  date = "10-17-2022"
803
995
  non_business_days = []
804
996
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
805
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
997
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
806
998
  end
807
999
 
808
1000
  it "should correctly parse the pacing for patient 86" do
@@ -826,7 +1018,7 @@ RSpec.describe Pacing::Pacer do
826
1018
  date = "10-17-2022"
827
1019
  non_business_days = []
828
1020
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
829
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1021
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
830
1022
  end
831
1023
 
832
1024
  it "should correctly parse the pacing for patient 115" do
@@ -842,7 +1034,7 @@ RSpec.describe Pacing::Pacer do
842
1034
  date = "10-17-2022"
843
1035
  non_business_days = []
844
1036
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
845
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>20, :used_visits=>4, :pace=>-8, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>12, :reset_date=>"11-01-2022"}])
1037
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>22, :used_visits=>2, :pace=>-10, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>12, :reset_date=>"11-01-2022"}])
846
1038
  end
847
1039
 
848
1040
  it "should correctly parse the pacing for patient 135" do
@@ -1130,7 +1322,7 @@ RSpec.describe Pacing::Pacer do
1130
1322
  date = "10-17-2022"
1131
1323
  non_business_days = []
1132
1324
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1133
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>0, :used_visits=>2, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>0, :reset_date=>"10-24-2022"}])
1325
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>1, :used_visits=>1, :pace=>1, :pace_indicator=>"🐇", :pace_suggestion=>"once a week", :expected_visits_at_date=>0, :reset_date=>"10-24-2022"}])
1134
1326
  end
1135
1327
 
1136
1328
  it "should correctly parse the pacing for patient 545" do
@@ -1282,7 +1474,7 @@ RSpec.describe Pacing::Pacer do
1282
1474
  date = "10-17-2022"
1283
1475
  non_business_days = []
1284
1476
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1285
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>2, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
1477
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>7, :used_visits=>1, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
1286
1478
  end
1287
1479
 
1288
1480
  it "should correctly parse the pacing for patient 715" do
@@ -1290,7 +1482,7 @@ RSpec.describe Pacing::Pacer do
1290
1482
  date = "10-17-2022"
1291
1483
  non_business_days = []
1292
1484
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1293
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>2, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
1485
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>7, :used_visits=>1, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
1294
1486
  end
1295
1487
 
1296
1488
  it "should correctly parse the pacing for patient 722" do
@@ -1338,7 +1530,7 @@ RSpec.describe Pacing::Pacer do
1338
1530
  date = "10-17-2022"
1339
1531
  non_business_days = []
1340
1532
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1341
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1533
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1342
1534
  end
1343
1535
 
1344
1536
  it "should correctly parse the pacing for patient 753" do
@@ -1354,7 +1546,7 @@ RSpec.describe Pacing::Pacer do
1354
1546
  date = "10-17-2022"
1355
1547
  non_business_days = []
1356
1548
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1357
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>2, :used_visits=>2, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>2, :reset_date=>"11-01-2022"}])
1549
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>3, :used_visits=>1, :pace=>-1, :pace_indicator=>"🐢", :pace_suggestion=>"once every 4 days", :expected_visits_at_date=>2, :reset_date=>"11-01-2022"}])
1358
1550
  end
1359
1551
 
1360
1552
  it "should correctly parse the pacing for patient 780" do
@@ -1362,7 +1554,7 @@ RSpec.describe Pacing::Pacer do
1362
1554
  date = "10-17-2022"
1363
1555
  non_business_days = []
1364
1556
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1365
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>12, :used_visits=>4, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>8, :reset_date=>"11-01-2022"}])
1557
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>14, :used_visits=>2, :pace=>-6, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>8, :reset_date=>"11-01-2022"}])
1366
1558
  end
1367
1559
 
1368
1560
  it "should correctly parse the pacing for patient 795" do
@@ -1378,7 +1570,7 @@ RSpec.describe Pacing::Pacer do
1378
1570
  date = "10-17-2022"
1379
1571
  non_business_days = []
1380
1572
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1381
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>16, :used_visits=>8, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>12, :reset_date=>"11-01-2022"}])
1573
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>20, :used_visits=>4, :pace=>-8, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>12, :reset_date=>"11-01-2022"}])
1382
1574
  end
1383
1575
 
1384
1576
  it "should correctly parse the pacing for patient 812" do
@@ -1490,7 +1682,7 @@ RSpec.describe Pacing::Pacer do
1490
1682
  date = "10-17-2022"
1491
1683
  non_business_days = []
1492
1684
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1493
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1685
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1494
1686
  end
1495
1687
 
1496
1688
  it "should correctly parse the pacing for patient 940" do
@@ -1498,7 +1690,7 @@ RSpec.describe Pacing::Pacer do
1498
1690
  date = "10-17-2022"
1499
1691
  non_business_days = []
1500
1692
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1501
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1693
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1502
1694
  end
1503
1695
 
1504
1696
  it "should correctly parse the pacing for patient 945" do
@@ -1506,7 +1698,7 @@ RSpec.describe Pacing::Pacer do
1506
1698
  date = "10-17-2022"
1507
1699
  non_business_days = []
1508
1700
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1509
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1701
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1510
1702
  end
1511
1703
 
1512
1704
  it "should correctly parse the pacing for patient 946" do
@@ -1514,7 +1706,7 @@ RSpec.describe Pacing::Pacer do
1514
1706
  date = "10-17-2022"
1515
1707
  non_business_days = []
1516
1708
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1517
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1709
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1518
1710
  end
1519
1711
 
1520
1712
  it "should correctly parse the pacing for patient 947" do
@@ -1522,7 +1714,7 @@ RSpec.describe Pacing::Pacer do
1522
1714
  date = "10-17-2022"
1523
1715
  non_business_days = []
1524
1716
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1525
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1717
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1526
1718
  end
1527
1719
 
1528
1720
  it "should correctly parse the pacing for patient 951" do
@@ -1530,7 +1722,7 @@ RSpec.describe Pacing::Pacer do
1530
1722
  date = "10-17-2022"
1531
1723
  non_business_days = []
1532
1724
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1533
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>104, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"09-29-2023"}])
1725
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>106, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"09-29-2023"}])
1534
1726
  end
1535
1727
 
1536
1728
  it "should correctly parse the pacing for patient 973" do
@@ -1594,7 +1786,7 @@ RSpec.describe Pacing::Pacer do
1594
1786
  date = "10-17-2022"
1595
1787
  non_business_days = []
1596
1788
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1597
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>2, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
1789
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>1, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
1598
1790
  end
1599
1791
 
1600
1792
  it "should correctly parse the pacing for patient 1077" do
@@ -1634,7 +1826,7 @@ RSpec.describe Pacing::Pacer do
1634
1826
  date = "10-17-2022"
1635
1827
  non_business_days = []
1636
1828
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1637
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>4, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
1829
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>2, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
1638
1830
  end
1639
1831
 
1640
1832
  it "should correctly parse the pacing for patient 1138" do
@@ -1658,7 +1850,7 @@ RSpec.describe Pacing::Pacer do
1658
1850
  date = "10-17-2022"
1659
1851
  non_business_days = []
1660
1852
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1661
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1853
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1662
1854
  end
1663
1855
 
1664
1856
  it "should correctly parse the pacing for patient 1172" do
@@ -1682,7 +1874,7 @@ RSpec.describe Pacing::Pacer do
1682
1874
  date = "10-17-2022"
1683
1875
  non_business_days = []
1684
1876
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1685
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>0, :used_visits=>138, :pace=>46, :pace_indicator=>"🐇", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>92, :reset_date=>"12-01-2022"}, {:discipline=>"Occupational Therapy", :remaining_visits=>0, :used_visits=>69, :pace=>42, :pace_indicator=>"🐇", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>27, :reset_date=>"12-01-2022"}])
1877
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>39, :used_visits=>69, :pace=>-23, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>92, :reset_date=>"12-01-2022"}, {:discipline=>"Occupational Therapy", :remaining_visits=>0, :used_visits=>69, :pace=>42, :pace_indicator=>"🐇", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>27, :reset_date=>"12-01-2022"}])
1686
1878
  end
1687
1879
 
1688
1880
  it "should correctly parse the pacing for patient 1193" do
@@ -1730,7 +1922,7 @@ RSpec.describe Pacing::Pacer do
1730
1922
  date = "10-17-2022"
1731
1923
  non_business_days = []
1732
1924
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1733
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1925
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>1, :pace=>-5, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1734
1926
  end
1735
1927
 
1736
1928
  it "should correctly parse the pacing for patient 1235" do
@@ -1754,7 +1946,7 @@ RSpec.describe Pacing::Pacer do
1754
1946
  date = "10-17-2022"
1755
1947
  non_business_days = []
1756
1948
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1757
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1949
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>12, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1758
1950
  end
1759
1951
 
1760
1952
  it "should correctly parse the pacing for patient 1285" do
@@ -1762,7 +1954,7 @@ RSpec.describe Pacing::Pacer do
1762
1954
  date = "10-17-2022"
1763
1955
  non_business_days = []
1764
1956
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1765
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}, {:discipline=>"Occupational Therapy", :remaining_visits=>0, :used_visits=>4, :pace=>3, :pace_indicator=>"🐇", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>1, :reset_date=>"11-01-2022"}])
1957
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}, {:discipline=>"Occupational Therapy", :remaining_visits=>0, :used_visits=>4, :pace=>3, :pace_indicator=>"🐇", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>1, :reset_date=>"11-01-2022"}])
1766
1958
  end
1767
1959
 
1768
1960
  it "should correctly parse the pacing for patient 1287" do
@@ -1770,7 +1962,7 @@ RSpec.describe Pacing::Pacer do
1770
1962
  date = "10-17-2022"
1771
1963
  non_business_days = []
1772
1964
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1773
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>8, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>8, :reset_date=>"11-01-2022"}])
1965
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>14, :used_visits=>4, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>8, :reset_date=>"11-01-2022"}])
1774
1966
  end
1775
1967
 
1776
1968
  it "should correctly parse the pacing for patient 1293" do
@@ -1778,7 +1970,7 @@ RSpec.describe Pacing::Pacer do
1778
1970
  date = "10-17-2022"
1779
1971
  non_business_days = []
1780
1972
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1781
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1973
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1782
1974
  end
1783
1975
 
1784
1976
  it "should correctly parse the pacing for patient 1298" do
@@ -1794,7 +1986,7 @@ RSpec.describe Pacing::Pacer do
1794
1986
  date = "10-17-2022"
1795
1987
  non_business_days = []
1796
1988
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1797
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1989
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>12, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1798
1990
  end
1799
1991
 
1800
1992
  it "should correctly parse the pacing for patient 1314" do
@@ -1802,7 +1994,7 @@ RSpec.describe Pacing::Pacer do
1802
1994
  date = "10-17-2022"
1803
1995
  non_business_days = []
1804
1996
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1805
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>8, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>8, :reset_date=>"11-01-2022"}])
1997
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>14, :used_visits=>4, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>8, :reset_date=>"11-01-2022"}])
1806
1998
  end
1807
1999
 
1808
2000
  it "should correctly parse the pacing for patient 1316" do
@@ -1858,7 +2050,7 @@ RSpec.describe Pacing::Pacer do
1858
2050
  date = "10-17-2022"
1859
2051
  non_business_days = []
1860
2052
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1861
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>12, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2053
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>13, :used_visits=>1, :pace=>-5, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1862
2054
  end
1863
2055
 
1864
2056
  it "should correctly parse the pacing for patient 1376" do
@@ -1954,7 +2146,7 @@ RSpec.describe Pacing::Pacer do
1954
2146
  date = "10-17-2022"
1955
2147
  non_business_days = []
1956
2148
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1957
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2149
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1958
2150
  end
1959
2151
 
1960
2152
  it "should correctly parse the pacing for patient 1514" do
@@ -1978,7 +2170,7 @@ RSpec.describe Pacing::Pacer do
1978
2170
  date = "10-17-2022"
1979
2171
  non_business_days = []
1980
2172
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1981
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2173
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1982
2174
  end
1983
2175
 
1984
2176
  it "should correctly parse the pacing for patient 1533" do
@@ -1994,7 +2186,7 @@ RSpec.describe Pacing::Pacer do
1994
2186
  date = "10-17-2022"
1995
2187
  non_business_days = []
1996
2188
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
1997
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>2, :used_visits=>10, :pace=>4, :pace_indicator=>"🐇", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2189
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>7, :used_visits=>5, :pace=>-1, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
1998
2190
  end
1999
2191
 
2000
2192
  it "should correctly parse the pacing for patient 1550" do
@@ -2018,7 +2210,7 @@ RSpec.describe Pacing::Pacer do
2018
2210
  date = "10-17-2022"
2019
2211
  non_business_days = []
2020
2212
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2021
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2213
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>12, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2022
2214
  end
2023
2215
 
2024
2216
  it "should correctly parse the pacing for patient 1566" do
@@ -2034,7 +2226,7 @@ RSpec.describe Pacing::Pacer do
2034
2226
  date = "10-17-2022"
2035
2227
  non_business_days = []
2036
2228
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2037
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2229
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2038
2230
  end
2039
2231
 
2040
2232
  it "should correctly parse the pacing for patient 1581" do
@@ -2106,7 +2298,7 @@ RSpec.describe Pacing::Pacer do
2106
2298
  date = "10-17-2022"
2107
2299
  non_business_days = []
2108
2300
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2109
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2301
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2110
2302
  end
2111
2303
 
2112
2304
  it "should correctly parse the pacing for patient 1652" do
@@ -2122,7 +2314,7 @@ RSpec.describe Pacing::Pacer do
2122
2314
  date = "10-17-2022"
2123
2315
  non_business_days = []
2124
2316
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2125
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>14, :used_visits=>6, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>9, :reset_date=>"11-01-2022"}])
2317
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>17, :used_visits=>3, :pace=>-6, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>9, :reset_date=>"11-01-2022"}])
2126
2318
  end
2127
2319
 
2128
2320
  it "should correctly parse the pacing for patient 1678" do
@@ -2130,7 +2322,7 @@ RSpec.describe Pacing::Pacer do
2130
2322
  date = "10-17-2022"
2131
2323
  non_business_days = []
2132
2324
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2133
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2325
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2134
2326
  end
2135
2327
 
2136
2328
  it "should correctly parse the pacing for patient 1680" do
@@ -2138,7 +2330,7 @@ RSpec.describe Pacing::Pacer do
2138
2330
  date = "10-17-2022"
2139
2331
  non_business_days = []
2140
2332
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2141
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8,:used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2333
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11,:used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2142
2334
  end
2143
2335
 
2144
2336
  it "should correctly parse the pacing for patient 1681" do
@@ -2170,7 +2362,7 @@ RSpec.describe Pacing::Pacer do
2170
2362
  date = "10-17-2022"
2171
2363
  non_business_days = []
2172
2364
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2173
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2365
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2174
2366
  end
2175
2367
 
2176
2368
  it "should correctly parse the pacing for patient 1736" do
@@ -2194,7 +2386,7 @@ RSpec.describe Pacing::Pacer do
2194
2386
  date = "10-17-2022"
2195
2387
  non_business_days = []
2196
2388
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2197
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2389
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2198
2390
  end
2199
2391
 
2200
2392
  it "should correctly parse the pacing for patient 1773" do
@@ -2218,7 +2410,7 @@ RSpec.describe Pacing::Pacer do
2218
2410
  date = "10-17-2022"
2219
2411
  non_business_days = []
2220
2412
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2221
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2413
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2222
2414
  end
2223
2415
 
2224
2416
  it "should correctly parse the pacing for patient 1793" do
@@ -2250,7 +2442,7 @@ RSpec.describe Pacing::Pacer do
2250
2442
  date = "10-17-2022"
2251
2443
  non_business_days = []
2252
2444
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2253
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2445
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2254
2446
  end
2255
2447
 
2256
2448
  it "should correctly parse the pacing for patient 1824" do
@@ -2266,7 +2458,7 @@ RSpec.describe Pacing::Pacer do
2266
2458
  date = "10-17-2022"
2267
2459
  non_business_days = []
2268
2460
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2269
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2461
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2270
2462
  end
2271
2463
 
2272
2464
  it "should correctly parse the pacing for patient 1856" do
@@ -2290,7 +2482,7 @@ RSpec.describe Pacing::Pacer do
2290
2482
  date = "10-17-2022"
2291
2483
  non_business_days = []
2292
2484
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2293
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>104, :pace=>88, :pace_indicator=>"🐇", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>16, :reset_date=>"08-29-2023"}])
2485
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>56, :used_visits=>52, :pace=>37, :pace_indicator=>"🐇", :pace_suggestion=>"once every 4 days", :expected_visits_at_date=>15, :reset_date=>"08-29-2023"}])
2294
2486
  end
2295
2487
 
2296
2488
  it "should correctly parse the pacing for patient 1909" do
@@ -2330,7 +2522,7 @@ RSpec.describe Pacing::Pacer do
2330
2522
  date = "10-17-2022"
2331
2523
  non_business_days = []
2332
2524
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2333
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2525
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>12, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2334
2526
  end
2335
2527
 
2336
2528
  it "should correctly parse the pacing for patient 1973" do
@@ -2338,7 +2530,7 @@ RSpec.describe Pacing::Pacer do
2338
2530
  date = "10-17-2022"
2339
2531
  non_business_days = []
2340
2532
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2341
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>2, :used_visits=>2, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>2, :reset_date=>"11-01-2022"}])
2533
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>3, :used_visits=>1, :pace=>-1, :pace_indicator=>"🐢", :pace_suggestion=>"once every 4 days", :expected_visits_at_date=>2, :reset_date=>"11-01-2022"}])
2342
2534
  end
2343
2535
 
2344
2536
  it "should correctly parse the pacing for patient 1980" do
@@ -2346,7 +2538,7 @@ RSpec.describe Pacing::Pacer do
2346
2538
  date = "10-17-2022"
2347
2539
  non_business_days = []
2348
2540
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2349
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2541
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2350
2542
  end
2351
2543
 
2352
2544
  it "should correctly parse the pacing for patient 1981" do
@@ -2410,7 +2602,7 @@ RSpec.describe Pacing::Pacer do
2410
2602
  date = "10-17-2022"
2411
2603
  non_business_days = []
2412
2604
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2413
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2605
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2414
2606
  end
2415
2607
 
2416
2608
  it "should correctly parse the pacing for patient 2052" do
@@ -2418,7 +2610,7 @@ RSpec.describe Pacing::Pacer do
2418
2610
  date = "10-17-2022"
2419
2611
  non_business_days = []
2420
2612
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2421
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>0, :used_visits=>126, :pace=>84, :pace_indicator=>"🐇", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>42, :reset_date=>"04-11-2023"}])
2613
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>45, :used_visits=>63, :pace=>20, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>43, :reset_date=>"04-11-2023"}])
2422
2614
  end
2423
2615
 
2424
2616
  it "should correctly parse the pacing for patient 2057" do
@@ -2466,7 +2658,7 @@ RSpec.describe Pacing::Pacer do
2466
2658
  date = "10-17-2022"
2467
2659
  non_business_days = []
2468
2660
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2469
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2661
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2470
2662
  end
2471
2663
 
2472
2664
  it "should correctly parse the pacing for patient 2124" do
@@ -2490,7 +2682,7 @@ RSpec.describe Pacing::Pacer do
2490
2682
  date = "10-17-2022"
2491
2683
  non_business_days = []
2492
2684
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2493
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2685
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2494
2686
  end
2495
2687
 
2496
2688
  it "should correctly parse the pacing for patient 2154" do
@@ -2514,7 +2706,7 @@ RSpec.describe Pacing::Pacer do
2514
2706
  date = "10-17-2022"
2515
2707
  non_business_days = []
2516
2708
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2517
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>0, :used_visits=>138, :pace=>126, :pace_indicator=>"🐇", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>12, :reset_date=>"09-07-2023"}])
2709
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>41, :used_visits=>69, :pace=>57, :pace_indicator=>"🐇", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>12, :reset_date=>"09-07-2023"}])
2518
2710
  end
2519
2711
 
2520
2712
  it "should correctly parse the pacing for patient 2193" do
@@ -2546,7 +2738,7 @@ RSpec.describe Pacing::Pacer do
2546
2738
  date = "10-17-2022"
2547
2739
  non_business_days = []
2548
2740
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2549
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2741
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2550
2742
  end
2551
2743
 
2552
2744
  it "should correctly parse the pacing for patient 2210" do
@@ -2602,7 +2794,7 @@ RSpec.describe Pacing::Pacer do
2602
2794
  date = "10-17-2022"
2603
2795
  non_business_days = []
2604
2796
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2605
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>22, :used_visits=>2, :pace=>-10, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>12, :reset_date=>"11-01-2022"}])
2797
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>23, :used_visits=>1, :pace=>-11, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>12, :reset_date=>"11-01-2022"}])
2606
2798
  end
2607
2799
 
2608
2800
  it "should correctly parse the pacing for patient 2267" do
@@ -2626,7 +2818,7 @@ RSpec.describe Pacing::Pacer do
2626
2818
  date = "10-17-2022"
2627
2819
  non_business_days = []
2628
2820
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2629
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2821
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2630
2822
  end
2631
2823
 
2632
2824
  it "should correctly parse the pacing for patient 2286" do
@@ -2634,7 +2826,7 @@ RSpec.describe Pacing::Pacer do
2634
2826
  date = "10-17-2022"
2635
2827
  non_business_days = []
2636
2828
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2637
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2829
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2638
2830
  end
2639
2831
 
2640
2832
  it "should correctly parse the pacing for patient 2290" do
@@ -2642,7 +2834,7 @@ RSpec.describe Pacing::Pacer do
2642
2834
  date = "10-17-2022"
2643
2835
  non_business_days = []
2644
2836
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2645
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>2, :used_visits=>6, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
2837
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>5, :used_visits=>3, :pace=>-1, :pace_indicator=>"🐢", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
2646
2838
  end
2647
2839
 
2648
2840
  it "should correctly parse the pacing for patient 2292" do
@@ -2698,7 +2890,7 @@ RSpec.describe Pacing::Pacer do
2698
2890
  date = "10-17-2022"
2699
2891
  non_business_days = []
2700
2892
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2701
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2893
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2702
2894
  end
2703
2895
 
2704
2896
  it "should correctly parse the pacing for patient 2327" do
@@ -2714,7 +2906,7 @@ RSpec.describe Pacing::Pacer do
2714
2906
  date = "10-17-2022"
2715
2907
  non_business_days = []
2716
2908
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2717
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>60, :used_visits=>2, :pace=>-1, :pace_indicator=>"🐢", :pace_suggestion=>"once every 4 days", :expected_visits_at_date=>3, :reset_date=>"09-28-2023"}])
2909
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>61, :used_visits=>1, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"once every 4 days", :expected_visits_at_date=>3, :reset_date=>"09-28-2023"}])
2718
2910
  end
2719
2911
 
2720
2912
  it "should correctly parse the pacing for patient 2348" do
@@ -2722,7 +2914,7 @@ RSpec.describe Pacing::Pacer do
2722
2914
  date = "10-17-2022"
2723
2915
  non_business_days = []
2724
2916
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2725
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>4, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
2917
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>2, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
2726
2918
  end
2727
2919
 
2728
2920
  it "should correctly parse the pacing for patient 2351" do
@@ -2762,7 +2954,7 @@ RSpec.describe Pacing::Pacer do
2762
2954
  date = "10-17-2022"
2763
2955
  non_business_days = []
2764
2956
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2765
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2957
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2766
2958
  end
2767
2959
 
2768
2960
  it "should correctly parse the pacing for patient 2389" do
@@ -2786,7 +2978,7 @@ RSpec.describe Pacing::Pacer do
2786
2978
  date = "10-17-2022"
2787
2979
  non_business_days = []
2788
2980
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2789
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2981
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2790
2982
  end
2791
2983
 
2792
2984
  it "should correctly parse the pacing for patient 2412" do
@@ -2794,7 +2986,7 @@ RSpec.describe Pacing::Pacer do
2794
2986
  date = "10-17-2022"
2795
2987
  non_business_days = []
2796
2988
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2797
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2989
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2798
2990
  end
2799
2991
 
2800
2992
  it "should correctly parse the pacing for patient 2424" do
@@ -2802,7 +2994,7 @@ RSpec.describe Pacing::Pacer do
2802
2994
  date = "10-17-2022"
2803
2995
  non_business_days = []
2804
2996
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2805
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>2, :used_visits=>10, :pace=>4, :pace_indicator=>"🐇", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2997
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>7, :used_visits=>5, :pace=>-1, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2806
2998
  end
2807
2999
 
2808
3000
  it "should correctly parse the pacing for patient 2425" do
@@ -2810,7 +3002,7 @@ RSpec.describe Pacing::Pacer do
2810
3002
  date = "10-17-2022"
2811
3003
  non_business_days = []
2812
3004
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2813
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3005
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2814
3006
  end
2815
3007
 
2816
3008
  it "should correctly parse the pacing for patient 2426" do
@@ -2834,7 +3026,7 @@ RSpec.describe Pacing::Pacer do
2834
3026
  date = "10-17-2022"
2835
3027
  non_business_days = []
2836
3028
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2837
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3029
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2838
3030
  end
2839
3031
 
2840
3032
  it "should correctly parse the pacing for patient 2460" do
@@ -2994,7 +3186,7 @@ RSpec.describe Pacing::Pacer do
2994
3186
  date = "10-17-2022"
2995
3187
  non_business_days = []
2996
3188
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
2997
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3189
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
2998
3190
  end
2999
3191
 
3000
3192
  it "should correctly parse the pacing for patient 2627" do
@@ -3002,7 +3194,7 @@ RSpec.describe Pacing::Pacer do
3002
3194
  date = "10-17-2022"
3003
3195
  non_business_days = []
3004
3196
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3005
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>2, :used_visits=>6, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
3197
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>5, :used_visits=>3, :pace=>-1, :pace_indicator=>"🐢", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
3006
3198
  end
3007
3199
 
3008
3200
  it "should correctly parse the pacing for patient 2636" do
@@ -3058,7 +3250,7 @@ RSpec.describe Pacing::Pacer do
3058
3250
  date = "10-17-2022"
3059
3251
  non_business_days = []
3060
3252
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3061
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>1, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
3253
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>1, :pace=>-5, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3062
3254
  end
3063
3255
 
3064
3256
  it "should correctly parse the pacing for patient 2698" do
@@ -3066,7 +3258,7 @@ RSpec.describe Pacing::Pacer do
3066
3258
  date = "10-17-2022"
3067
3259
  non_business_days = []
3068
3260
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3069
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3261
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3070
3262
  end
3071
3263
 
3072
3264
  it "should correctly parse the pacing for patient 2699" do
@@ -3074,7 +3266,7 @@ RSpec.describe Pacing::Pacer do
3074
3266
  date = "10-17-2022"
3075
3267
  non_business_days = []
3076
3268
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3077
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3269
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3078
3270
  end
3079
3271
 
3080
3272
  it "should correctly parse the pacing for patient 2706" do
@@ -3082,7 +3274,7 @@ RSpec.describe Pacing::Pacer do
3082
3274
  date = "10-17-2022"
3083
3275
  non_business_days = []
3084
3276
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3085
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3277
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3086
3278
  end
3087
3279
 
3088
3280
  it "should correctly parse the pacing for patient 2707" do
@@ -3122,7 +3314,7 @@ RSpec.describe Pacing::Pacer do
3122
3314
  date = "10-17-2022"
3123
3315
  non_business_days = []
3124
3316
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3125
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3317
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3126
3318
  end
3127
3319
 
3128
3320
  it "should correctly parse the pacing for patient 2729" do
@@ -3138,7 +3330,7 @@ RSpec.describe Pacing::Pacer do
3138
3330
  date = "10-17-2022"
3139
3331
  non_business_days = []
3140
3332
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3141
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3333
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3142
3334
  end
3143
3335
 
3144
3336
  it "should correctly parse the pacing for patient 2737" do
@@ -3146,7 +3338,7 @@ RSpec.describe Pacing::Pacer do
3146
3338
  date = "10-17-2022"
3147
3339
  non_business_days = []
3148
3340
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3149
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3341
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3150
3342
  end
3151
3343
 
3152
3344
  it "should correctly parse the pacing for patient 2738" do
@@ -3154,7 +3346,7 @@ RSpec.describe Pacing::Pacer do
3154
3346
  date = "10-17-2022"
3155
3347
  non_business_days = []
3156
3348
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3157
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3349
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>12, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3158
3350
  end
3159
3351
 
3160
3352
  it "should correctly parse the pacing for patient 2739" do
@@ -3162,7 +3354,7 @@ RSpec.describe Pacing::Pacer do
3162
3354
  date = "10-17-2022"
3163
3355
  non_business_days = []
3164
3356
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3165
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>4, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
3357
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>2, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
3166
3358
  end
3167
3359
 
3168
3360
  it "should correctly parse the pacing for patient 2750" do
@@ -3210,7 +3402,7 @@ RSpec.describe Pacing::Pacer do
3210
3402
  date = "10-17-2022"
3211
3403
  non_business_days = []
3212
3404
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3213
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3405
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3214
3406
  end
3215
3407
 
3216
3408
  it "should correctly parse the pacing for patient 2861" do
@@ -3323,7 +3515,7 @@ RSpec.describe Pacing::Pacer do
3323
3515
  date = "10-17-2022"
3324
3516
  non_business_days = []
3325
3517
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3326
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3518
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>1, :pace=>-5, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3327
3519
  end
3328
3520
 
3329
3521
  it "should correctly parse the pacing for patient 3003" do
@@ -3395,7 +3587,7 @@ RSpec.describe Pacing::Pacer do
3395
3587
  date = "10-17-2022"
3396
3588
  non_business_days = []
3397
3589
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3398
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>4, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
3590
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>2, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
3399
3591
  end
3400
3592
 
3401
3593
  it "should correctly parse the pacing for patient 3118" do
@@ -3475,7 +3667,7 @@ RSpec.describe Pacing::Pacer do
3475
3667
  date = "10-17-2022"
3476
3668
  non_business_days = []
3477
3669
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3478
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3670
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3479
3671
  end
3480
3672
 
3481
3673
  it "should correctly parse the pacing for patient 3177" do
@@ -3595,7 +3787,7 @@ RSpec.describe Pacing::Pacer do
3595
3787
  date = "10-17-2022"
3596
3788
  non_business_days = []
3597
3789
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3598
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3790
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3599
3791
  end
3600
3792
 
3601
3793
  it "should correctly parse the pacing for patient 3287" do
@@ -3603,7 +3795,7 @@ RSpec.describe Pacing::Pacer do
3603
3795
  date = "10-17-2022"
3604
3796
  non_business_days = []
3605
3797
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3606
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>2, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
3798
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>7, :used_visits=>1, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
3607
3799
  end
3608
3800
 
3609
3801
  it "should correctly parse the pacing for patient 3294" do
@@ -3651,7 +3843,7 @@ RSpec.describe Pacing::Pacer do
3651
3843
  date = "10-17-2022"
3652
3844
  non_business_days = []
3653
3845
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3654
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3846
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3655
3847
  end
3656
3848
 
3657
3849
  it "should correctly parse the pacing for patient 3339" do
@@ -3675,7 +3867,7 @@ RSpec.describe Pacing::Pacer do
3675
3867
  date = "10-17-2022"
3676
3868
  non_business_days = []
3677
3869
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3678
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3870
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3679
3871
  end
3680
3872
 
3681
3873
  it "should correctly parse the pacing for patient 3391" do
@@ -3739,7 +3931,7 @@ RSpec.describe Pacing::Pacer do
3739
3931
  date = "10-17-2022"
3740
3932
  non_business_days = []
3741
3933
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3742
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3934
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3743
3935
  end
3744
3936
 
3745
3937
  it "should correctly parse the pacing for patient 3497" do
@@ -3747,7 +3939,7 @@ RSpec.describe Pacing::Pacer do
3747
3939
  date = "10-17-2022"
3748
3940
  non_business_days = []
3749
3941
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3750
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3942
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3751
3943
  end
3752
3944
 
3753
3945
  it "should correctly parse the pacing for patient 3511" do
@@ -3755,7 +3947,7 @@ RSpec.describe Pacing::Pacer do
3755
3947
  date = "10-17-2022"
3756
3948
  non_business_days = []
3757
3949
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3758
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3950
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3759
3951
  end
3760
3952
 
3761
3953
  it "should correctly parse the pacing for patient 3516" do
@@ -3763,7 +3955,7 @@ RSpec.describe Pacing::Pacer do
3763
3955
  date = "10-17-2022"
3764
3956
  non_business_days = []
3765
3957
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3766
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>12, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3958
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>13, :used_visits=>1, :pace=>-5, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3767
3959
  end
3768
3960
 
3769
3961
  it "should correctly parse the pacing for patient 3523" do
@@ -3803,7 +3995,7 @@ RSpec.describe Pacing::Pacer do
3803
3995
  date = "10-17-2022"
3804
3996
  non_business_days = []
3805
3997
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3806
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3998
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3807
3999
  end
3808
4000
 
3809
4001
  it "should correctly parse the pacing for patient 3571" do
@@ -3819,7 +4011,7 @@ RSpec.describe Pacing::Pacer do
3819
4011
  date = "10-17-2022"
3820
4012
  non_business_days = []
3821
4013
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3822
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4014
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3823
4015
  end
3824
4016
 
3825
4017
  it "should correctly parse the pacing for patient 3590" do
@@ -3827,7 +4019,7 @@ RSpec.describe Pacing::Pacer do
3827
4019
  date = "10-17-2022"
3828
4020
  non_business_days = []
3829
4021
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3830
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4022
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3831
4023
  end
3832
4024
 
3833
4025
  it "should correctly parse the pacing for patient 3595" do
@@ -3851,7 +4043,7 @@ RSpec.describe Pacing::Pacer do
3851
4043
  date = "10-17-2022"
3852
4044
  non_business_days = []
3853
4045
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3854
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4046
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3855
4047
  end
3856
4048
 
3857
4049
  it "should correctly parse the pacing for patient 3612" do
@@ -3859,7 +4051,7 @@ RSpec.describe Pacing::Pacer do
3859
4051
  date = "10-17-2022"
3860
4052
  non_business_days = []
3861
4053
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3862
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4054
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3863
4055
  end
3864
4056
 
3865
4057
  it "should correctly parse the pacing for patient 3616" do
@@ -3899,7 +4091,7 @@ RSpec.describe Pacing::Pacer do
3899
4091
  date = "10-17-2022"
3900
4092
  non_business_days = []
3901
4093
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3902
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>4, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
4094
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>2, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
3903
4095
  end
3904
4096
 
3905
4097
  it "should correctly parse the pacing for patient 3690" do
@@ -3923,7 +4115,7 @@ RSpec.describe Pacing::Pacer do
3923
4115
  date = "10-17-2022"
3924
4116
  non_business_days = []
3925
4117
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3926
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>2, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
4118
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>7, :used_visits=>1, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
3927
4119
  end
3928
4120
 
3929
4121
  it "should correctly parse the pacing for patient 3703" do
@@ -3939,7 +4131,7 @@ RSpec.describe Pacing::Pacer do
3939
4131
  date = "10-17-2022"
3940
4132
  non_business_days = []
3941
4133
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3942
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4134
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>12, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3943
4135
  end
3944
4136
 
3945
4137
  it "should correctly parse the pacing for patient 3707" do
@@ -3947,7 +4139,7 @@ RSpec.describe Pacing::Pacer do
3947
4139
  date = "10-17-2022"
3948
4140
  non_business_days = []
3949
4141
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3950
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>4, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
4142
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>2, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
3951
4143
  end
3952
4144
 
3953
4145
  it "should correctly parse the pacing for patient 3714" do
@@ -3955,7 +4147,7 @@ RSpec.describe Pacing::Pacer do
3955
4147
  date = "10-17-2022"
3956
4148
  non_business_days = []
3957
4149
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3958
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4150
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3959
4151
  end
3960
4152
 
3961
4153
  it "should correctly parse the pacing for patient 3814" do
@@ -3963,7 +4155,7 @@ RSpec.describe Pacing::Pacer do
3963
4155
  date = "10-17-2022"
3964
4156
  non_business_days = []
3965
4157
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3966
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>4, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
4158
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>2, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
3967
4159
  end
3968
4160
 
3969
4161
  it "should correctly parse the pacing for patient 3815" do
@@ -3987,7 +4179,7 @@ RSpec.describe Pacing::Pacer do
3987
4179
  date = "10-17-2022"
3988
4180
  non_business_days = []
3989
4181
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3990
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4182
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3991
4183
  end
3992
4184
 
3993
4185
  it "should correctly parse the pacing for patient 3822" do
@@ -3995,7 +4187,7 @@ RSpec.describe Pacing::Pacer do
3995
4187
  date = "10-17-2022"
3996
4188
  non_business_days = []
3997
4189
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
3998
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4190
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
3999
4191
  end
4000
4192
 
4001
4193
  it "should correctly parse the pacing for patient 3824" do
@@ -4003,7 +4195,7 @@ RSpec.describe Pacing::Pacer do
4003
4195
  date = "10-17-2022"
4004
4196
  non_business_days = []
4005
4197
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4006
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4198
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4007
4199
  end
4008
4200
 
4009
4201
  it "should correctly parse the pacing for patient 3827" do
@@ -4011,7 +4203,7 @@ RSpec.describe Pacing::Pacer do
4011
4203
  date = "10-17-2022"
4012
4204
  non_business_days = []
4013
4205
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4014
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>2, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
4206
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>1, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
4015
4207
  end
4016
4208
 
4017
4209
  it "should correctly parse the pacing for patient 3828" do
@@ -4051,7 +4243,7 @@ RSpec.describe Pacing::Pacer do
4051
4243
  date = "10-17-2022"
4052
4244
  non_business_days = []
4053
4245
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4054
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4246
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4055
4247
  end
4056
4248
 
4057
4249
  it "should correctly parse the pacing for patient 3844" do
@@ -4155,7 +4347,7 @@ RSpec.describe Pacing::Pacer do
4155
4347
  date = "10-17-2022"
4156
4348
  non_business_days = []
4157
4349
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4158
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4350
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4159
4351
  end
4160
4352
 
4161
4353
  it "should correctly parse the pacing for patient 4032" do
@@ -4219,7 +4411,7 @@ RSpec.describe Pacing::Pacer do
4219
4411
  date = "10-17-2022"
4220
4412
  non_business_days = []
4221
4413
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4222
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4414
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4223
4415
  end
4224
4416
 
4225
4417
  it "should correctly parse the pacing for patient 4070" do
@@ -4227,7 +4419,7 @@ RSpec.describe Pacing::Pacer do
4227
4419
  date = "10-17-2022"
4228
4420
  non_business_days = []
4229
4421
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4230
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4422
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4231
4423
  end
4232
4424
 
4233
4425
  it "should correctly parse the pacing for patient 4072" do
@@ -4243,7 +4435,7 @@ RSpec.describe Pacing::Pacer do
4243
4435
  date = "10-17-2022"
4244
4436
  non_business_days = []
4245
4437
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4246
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>20, :used_visits=>4, :pace=>-8, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>12, :reset_date=>"11-01-2022"}])
4438
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>22, :used_visits=>2, :pace=>-10, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>12, :reset_date=>"11-01-2022"}])
4247
4439
  end
4248
4440
 
4249
4441
  it "should correctly parse the pacing for patient 4085" do
@@ -4259,7 +4451,7 @@ RSpec.describe Pacing::Pacer do
4259
4451
  date = "10-17-2022"
4260
4452
  non_business_days = []
4261
4453
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4262
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4454
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>1, :pace=>-5, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4263
4455
  end
4264
4456
 
4265
4457
  it "should correctly parse the pacing for patient 4096" do
@@ -4275,7 +4467,7 @@ RSpec.describe Pacing::Pacer do
4275
4467
  date = "10-17-2022"
4276
4468
  non_business_days = []
4277
4469
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4278
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4470
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4279
4471
  end
4280
4472
 
4281
4473
  it "should correctly parse the pacing for patient 4102" do
@@ -4291,7 +4483,7 @@ RSpec.describe Pacing::Pacer do
4291
4483
  date = "10-17-2022"
4292
4484
  non_business_days = []
4293
4485
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4294
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>10, :pace=>4, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4486
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>5, :pace=>-1, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4295
4487
  end
4296
4488
 
4297
4489
  it "should correctly parse the pacing for patient 4114" do
@@ -4315,7 +4507,7 @@ RSpec.describe Pacing::Pacer do
4315
4507
  date = "10-17-2022"
4316
4508
  non_business_days = []
4317
4509
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4318
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>4, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4510
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4319
4511
  end
4320
4512
 
4321
4513
  it "should correctly parse the pacing for patient 4130" do
@@ -4339,7 +4531,7 @@ RSpec.describe Pacing::Pacer do
4339
4531
  date = "10-17-2022"
4340
4532
  non_business_days = []
4341
4533
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4342
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4534
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4343
4535
  end
4344
4536
 
4345
4537
  it "should correctly parse the pacing for patient 4150" do
@@ -4363,7 +4555,7 @@ RSpec.describe Pacing::Pacer do
4363
4555
  date = "10-17-2022"
4364
4556
  non_business_days = []
4365
4557
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4366
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>9, :pace=>1, :pace_indicator=>"🐇", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>8, :reset_date=>"11-01-2022"}])
4558
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>13, :used_visits=>3, :pace=>-5, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>8, :reset_date=>"11-01-2022"}])
4367
4559
  end
4368
4560
 
4369
4561
  it "should correctly parse the pacing for patient 4170" do
@@ -4371,7 +4563,7 @@ RSpec.describe Pacing::Pacer do
4371
4563
  date = "10-17-2022"
4372
4564
  non_business_days = []
4373
4565
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4374
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>18, :used_visits=>90, :pace=>-6, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>96, :reset_date=>"11-18-2022"}])
4566
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>63, :used_visits=>45, :pace=>-51, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>96, :reset_date=>"11-18-2022"}])
4375
4567
  end
4376
4568
 
4377
4569
  it "should correctly parse the pacing for patient 4180" do
@@ -4435,7 +4627,7 @@ RSpec.describe Pacing::Pacer do
4435
4627
  date = "10-17-2022"
4436
4628
  non_business_days = []
4437
4629
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4438
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4630
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4439
4631
  end
4440
4632
 
4441
4633
  it "should correctly parse the pacing for patient 4216" do
@@ -4587,7 +4779,7 @@ RSpec.describe Pacing::Pacer do
4587
4779
  date = "10-17-2022"
4588
4780
  non_business_days = []
4589
4781
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4590
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>12, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4782
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>13, :used_visits=>1, :pace=>-5, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4591
4783
  end
4592
4784
 
4593
4785
  it "should correctly parse the pacing for patient 4288" do
@@ -4595,7 +4787,7 @@ RSpec.describe Pacing::Pacer do
4595
4787
  date = "10-17-2022"
4596
4788
  non_business_days = []
4597
4789
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4598
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4790
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4599
4791
  end
4600
4792
 
4601
4793
  it "should correctly parse the pacing for patient 4289" do
@@ -4603,7 +4795,7 @@ RSpec.describe Pacing::Pacer do
4603
4795
  date = "10-17-2022"
4604
4796
  non_business_days = []
4605
4797
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4606
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>2, :used_visits=>6, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
4798
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>5, :used_visits=>3, :pace=>-1, :pace_indicator=>"🐢", :pace_suggestion=>"once every 3 days", :expected_visits_at_date=>4, :reset_date=>"11-01-2022"}])
4607
4799
  end
4608
4800
 
4609
4801
  it "should correctly parse the pacing for patient 4292" do
@@ -4611,7 +4803,7 @@ RSpec.describe Pacing::Pacer do
4611
4803
  date = "10-17-2022"
4612
4804
  non_business_days = []
4613
4805
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4614
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>0, :used_visits=>160, :pace=>126, :pace_indicator=>"🐇", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>34, :reset_date=>"05-04-2023"}])
4806
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>30, :used_visits=>80, :pace=>46, :pace_indicator=>"🐇", :pace_suggestion=>"once a week", :expected_visits_at_date=>34, :reset_date=>"05-04-2023"}])
4615
4807
  end
4616
4808
 
4617
4809
  it "should correctly parse the pacing for patient 4297" do
@@ -4627,7 +4819,7 @@ RSpec.describe Pacing::Pacer do
4627
4819
  date = "10-17-2022"
4628
4820
  non_business_days = []
4629
4821
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4630
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>6, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>8, :reset_date=>"11-01-2022"}])
4822
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>13, :used_visits=>3, :pace=>-5, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>8, :reset_date=>"11-01-2022"}])
4631
4823
  end
4632
4824
 
4633
4825
  it "should correctly parse the pacing for patient 4305" do
@@ -4651,7 +4843,7 @@ RSpec.describe Pacing::Pacer do
4651
4843
  date = "10-17-2022"
4652
4844
  non_business_days = []
4653
4845
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4654
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>8, :used_visits=>6, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4846
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>3, :pace=>-3, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4655
4847
  end
4656
4848
 
4657
4849
  it "should correctly parse the pacing for patient 4312" do
@@ -4763,7 +4955,7 @@ RSpec.describe Pacing::Pacer do
4763
4955
  date = "10-17-2022"
4764
4956
  non_business_days = []
4765
4957
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4766
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4958
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>12, :used_visits=>2, :pace=>-4, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4767
4959
  end
4768
4960
 
4769
4961
  it "should correctly parse the pacing for patient 4388" do
@@ -4859,7 +5051,7 @@ RSpec.describe Pacing::Pacer do
4859
5051
  date = "10-17-2022"
4860
5052
  non_business_days = []
4861
5053
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4862
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
5054
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4863
5055
  end
4864
5056
 
4865
5057
  it "should correctly parse the pacing for patient 4512" do
@@ -4875,7 +5067,7 @@ RSpec.describe Pacing::Pacer do
4875
5067
  date = "10-17-2022"
4876
5068
  non_business_days = []
4877
5069
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4878
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
5070
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4879
5071
  end
4880
5072
 
4881
5073
  it "should correctly parse the pacing for patient 4531" do
@@ -4907,7 +5099,7 @@ RSpec.describe Pacing::Pacer do
4907
5099
  date = "10-17-2022"
4908
5100
  non_business_days = []
4909
5101
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4910
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
5102
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4911
5103
  end
4912
5104
 
4913
5105
  it "should also accept 'per year' as an interval" do
@@ -4931,7 +5123,7 @@ RSpec.describe Pacing::Pacer do
4931
5123
  date = "10-17-2022"
4932
5124
  non_business_days = []
4933
5125
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4934
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
5126
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4935
5127
  end
4936
5128
 
4937
5129
  it "should also accept 'Language' as a type of service" do
@@ -4939,7 +5131,7 @@ RSpec.describe Pacing::Pacer do
4939
5131
  date = "10-17-2022"
4940
5132
  non_business_days = []
4941
5133
  results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days).calculate
4942
- expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>6, :used_visits=>8, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
5134
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022"}])
4943
5135
  end
4944
5136
 
4945
5137
  it "should also accept 'Speech and language' as a type of service" do
@@ -4990,4 +5182,54 @@ RSpec.describe Pacing::Pacer do
4990
5182
  expect(results).to eq([{:discipline=>"Occupational Therapy", :remaining_visits=>1, :used_visits=>0, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once a week", :expected_visits_at_date=>0, :reset_date=>"10-24-2022"}, {:discipline=>"Physical Therapy", :remaining_visits=>1, :used_visits=>0, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once a week", :expected_visits_at_date=>0, :reset_date=>"10-24-2022"}])
4991
5183
  end
4992
5184
  end
4993
- end
5185
+ end
5186
+
5187
+ describe "should include frequency in the output if show frequency is true" do
5188
+ it "should correctly parse the pacing for patient 4558" do
5189
+ school_plan = {:school_plan_services=>[{:school_plan_type=>"IEP", :start_date=>"02-23-2022", :end_date=>"02-23-2023", :type_of_service=>"Speech Therapy", :frequency=>12, :interval=>"monthly", :time_per_session_in_minutes=>20, :completed_visits_for_current_interval=>3, :extra_sessions_allowable=>0, :interval_for_extra_sessions_allowable=>"monthly"}, {:school_plan_type=>"IEP", :start_date=>"05-19-2022", :end_date=>"11-01-2022", :type_of_service=>"Language Therapy", :frequency=>3, :interval=>"weekly", :time_per_session_in_minutes=>20, :completed_visits_for_current_interval=>0, :extra_sessions_allowable=>0, :interval_for_extra_sessions_allowable=>"weekly"}]}
5190
+ date = "10-17-2022"
5191
+ non_business_days = []
5192
+ results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days, show_frequency: true).calculate
5193
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>22, :used_visits=>3, :pace=>-10, :pace_indicator=>"🐢", :pace_suggestion=>"once a day", :expected_visits_at_date=>13, :reset_date=>"11-01-2022", :frequency=>"25Mx20ST"}])
5194
+ end
5195
+
5196
+ it "should correctly parse the pacing for patient 4559" do
5197
+ school_plan = {:school_plan_services=>[{:school_plan_type=>"IEP", :start_date=>"10-27-2021", :end_date=>"10-27-2022", :type_of_service=>"Speech Therapy", :frequency=>8, :interval=>"monthly", :time_per_session_in_minutes=>20, :completed_visits_for_current_interval=>1, :extra_sessions_allowable=>0, :interval_for_extra_sessions_allowable=>"monthly"}, {:school_plan_type=>"IEP", :start_date=>"10-27-2021", :end_date=>"10-27-2022", :type_of_service=>"Speech Therapy", :frequency=>1, :interval=>"weekly", :time_per_session_in_minutes=>45, :completed_visits_for_current_interval=>0, :extra_sessions_allowable=>0, :interval_for_extra_sessions_allowable=>"weekly"}]}
5198
+ date = "10-17-2022"
5199
+ non_business_days = []
5200
+ results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days, show_frequency: true).calculate
5201
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>11, :used_visits=>1, :pace=>-5, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022", :frequency=>"12Mx45ST"}])
5202
+ end
5203
+
5204
+ it "should also accept 'Language' as a type of service 4560" do
5205
+ school_plan = {:school_plan_services=>[{:school_plan_type=>"IEP", :start_date=>"05-23-2022", :end_date=>"05-23-2023", :type_of_service=>"Speech Therapy", :frequency=>6, :interval=>"monthly", :time_per_session_in_minutes=>20, :completed_visits_for_current_interval=>4, :extra_sessions_allowable=>1, :interval_for_extra_sessions_allowable=>"monthly"}, {:school_plan_type=>"IEP", :start_date=>"05-23-2022", :end_date=>"05-23-2023", :type_of_service=>"Language", :frequency=>6, :interval=>"monthly", :time_per_session_in_minutes=>20, :completed_visits_for_current_interval=>4, :extra_sessions_allowable=>1, :interval_for_extra_sessions_allowable=>"monthly"}]}
5206
+ date = "10-17-2022"
5207
+ non_business_days = []
5208
+ results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days, show_frequency: true).calculate
5209
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>10, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022", :frequency=>"12Mx20ST"}])
5210
+ end
5211
+
5212
+ it "should correctly parse the pacing for patient 4561" do
5213
+ school_plan = {:school_plan_services=>[{:school_plan_type=>"IEP", :start_date=>"12-03-2021", :end_date=>"12-03-2022", :type_of_service=>"Speech and language", :frequency=>12, :interval=>"monthly", :time_per_session_in_minutes=>20, :completed_visits_for_current_interval=>4, :extra_sessions_allowable=>1, :interval_for_extra_sessions_allowable=>"monthly"}]}
5214
+ date = "10-17-2022"
5215
+ non_business_days = []
5216
+ results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days, show_frequency: true).calculate
5217
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>9, :used_visits=>4, :pace=>-2, :pace_indicator=>"🐢", :pace_suggestion=>"about once every other day", :expected_visits_at_date=>6, :reset_date=>"11-01-2022", :frequency=>"12Mx20ST"}])
5218
+ end
5219
+
5220
+ it "should correctly parse the pacing for patient 4562" do
5221
+ school_plan = {:school_plan_services=>[{:school_plan_type=>"IEP", :start_date=>"09-27-2022", :end_date=>"09-27-2023", :type_of_service=>"Language Therapy", :frequency=>30, :interval=>"yearly", :time_per_session_in_minutes=>20, :completed_visits_for_current_interval=>4, :extra_sessions_allowable=>0, :interval_for_extra_sessions_allowable=>"yearly"}]}
5222
+ date = "10-17-2022"
5223
+ non_business_days = []
5224
+ results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days, show_frequency: true).calculate
5225
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>26, :used_visits=>4, :pace=>2, :pace_indicator=>"🐇", :pace_suggestion=>"less than once per week", :expected_visits_at_date=>2, :reset_date=>"09-27-2023", :frequency=>"30Yx20ST"}])
5226
+ end
5227
+
5228
+ it "should correctly parse the pacing for patient 4563" do
5229
+ school_plan = {:school_plan_services=>[{:school_plan_type=>"IEP", :start_date=>"11-03-2021", :end_date=>"11-03-2022", :type_of_service=>"Speech Therapy", :frequency=>1, :interval=>"weekly", :time_per_session_in_minutes=>20, :completed_visits_for_current_interval=>0, :extra_sessions_allowable=>0, :interval_for_extra_sessions_allowable=>"weekly"}]}
5230
+ date = "10-17-2022"
5231
+ non_business_days = []
5232
+ results = Pacing::Pacer.new(school_plan: school_plan, date: date, non_business_days: non_business_days, show_frequency: true).calculate
5233
+ expect(results).to eq([{:discipline=>"Speech Therapy", :remaining_visits=>1, :used_visits=>0, :pace=>0, :pace_indicator=>"😁", :pace_suggestion=>"once a week", :expected_visits_at_date=>0, :reset_date=>"10-24-2022", :frequency=>"1Wx20ST"}])
5234
+ end
5235
+ end