File tree Expand file tree Collapse file tree 8 files changed +3
-19
lines changed Expand file tree Collapse file tree 8 files changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,7 @@ class ImmunisationImportRow
77
77
"unwell" => :not_well ,
78
78
"vaccination contraindicated" => :contraindications ,
79
79
"already had elsewhere" => :already_had ,
80
- "did not attend" => :absent_from_session ,
81
- "absent from school" => :absent_from_school
80
+ "did not attend" => :absent_from_session
82
81
} . freeze
83
82
84
83
SCHOOL_URN_HOME_EDUCATED = "999999"
Original file line number Diff line number Diff line change @@ -50,8 +50,7 @@ class PatientSession::SessionStatus < ApplicationRecord
50
50
had_contraindications : 3 ,
51
51
refused : 4 ,
52
52
absent_from_session : 5 ,
53
- unwell : 6 ,
54
- absent_from_school : 7
53
+ unwell : 6
55
54
} ,
56
55
default : :none_yet ,
57
56
validate : true
@@ -70,8 +69,6 @@ def assign_status
70
69
:absent_from_session
71
70
elsif status_should_be_unwell?
72
71
:unwell
73
- elsif status_should_be_absent_from_school?
74
- :absent_from_school
75
72
else
76
73
:none_yet
77
74
end
@@ -105,10 +102,6 @@ def status_should_be_unwell?
105
102
vaccination_record &.not_well?
106
103
end
107
104
108
- def status_should_be_absent_from_school?
109
- vaccination_record &.absent_from_school?
110
- end
111
-
112
105
def latest_consents
113
106
@latest_consents ||= ConsentGrouper . call ( consents , programme_id :)
114
107
end
Original file line number Diff line number Diff line change @@ -128,7 +128,6 @@ class VaccinationRecord < ApplicationRecord
128
128
not_well : 2 ,
129
129
contraindications : 3 ,
130
130
already_had : 4 ,
131
- absent_from_school : 5 ,
132
131
absent_from_session : 6
133
132
} ,
134
133
validate : true
Original file line number Diff line number Diff line change 210
210
right_arm_lower_position : Right arm (lower position)
211
211
right_arm_upper_position : Right arm (upper position)
212
212
outcomes :
213
- absent_from_school : Absent from school
214
213
absent_from_session : Absent from session
215
214
administered : Vaccinated
216
215
already_had : Already had the vaccine
584
583
will_be_vaccinated_elsewhere : they will be given the vaccine elsewhere
585
584
vaccination_mailer :
586
585
reasons_did_not_vaccinate :
587
- absent_from_school : they were off school
588
586
absent_from_session : they were not in the vaccination session
589
587
already_had : they've already had the vaccine
590
588
contraindications : they had contraindications
Original file line number Diff line number Diff line change 54
54
not_well : " %{full_name} was not well enough"
55
55
contraindications : " %{full_name} had contraindications"
56
56
already_had : " %{full_name} has already had the vaccine"
57
- absent_from_school : " %{full_name} was absent from school"
58
57
absent_from_session : " %{full_name} was absent from the session"
59
58
gave_consent : " Their %{who_responded} gave consent"
60
59
triaged_do_not_vaccinate : " Do not vaccinate in programme"
Original file line number Diff line number Diff line change 42
42
unknown : grey
43
43
session :
44
44
label :
45
- absent_from_school : Absent from school
46
45
absent_from_session : Absent from session
47
46
already_had : Already had vaccine
48
47
had_contraindications : Had contraindications
51
50
unwell : Unwell
52
51
vaccinated : Vaccinated
53
52
colour :
54
- absent_from_school : dark-orange
55
53
absent_from_session : dark-orange
56
54
already_had : green
57
55
had_contraindications : red
Original file line number Diff line number Diff line change 1414
1414
"unwell" => "not_well" ,
1415
1415
"vaccination contraindicated" => "contraindications" ,
1416
1416
"already had elsewhere" => "already_had" ,
1417
- "did not attend" => "absent_from_session" ,
1418
- "absent from school" => "absent_from_school"
1417
+ "did not attend" => "absent_from_session"
1419
1418
} . each do |input_reason , expected_enum |
1420
1419
context "with reason '#{ input_reason } '" do
1421
1420
let ( :data ) do
Original file line number Diff line number Diff line change 42
42
refused
43
43
absent_from_session
44
44
unwell
45
- absent_from_school
46
45
]
47
46
)
48
47
end
You can’t perform that action at this time.
0 commit comments