Skip to content

Commit 611470b

Browse files
committed
Add "follow-up requested" to consent filters
On the session>chidlren page, we were excluding needs_consent_follow_up_requested as it wasn't implemented yet. It can now be included in the filtering options
1 parent 3c963ee commit 611470b

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

app/controllers/patients_controller.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ def set_programme_statuses
9696
[]
9797
else
9898
Patient::ProgrammeStatus.statuses.keys -
99-
Patient::ProgrammeStatus::NOT_ELIGIBLE_STATUSES.keys -
100-
%w[needs_consent_follow_up_requested]
99+
Patient::ProgrammeStatus::NOT_ELIGIBLE_STATUSES.keys
101100
end
102101
end
103102

app/controllers/schools/patients_controller.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ def index
5454
def set_programme_statuses
5555
@programme_statuses =
5656
Patient::ProgrammeStatus.statuses.keys -
57-
Patient::ProgrammeStatus::NOT_ELIGIBLE_STATUSES.keys -
58-
%w[needs_consent_follow_up_requested]
57+
Patient::ProgrammeStatus::NOT_ELIGIBLE_STATUSES.keys
5958
end
6059
end

app/controllers/sessions/base_controller.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ def set_session
1717
def set_programme_statuses
1818
@programme_statuses =
1919
Patient::ProgrammeStatus.statuses.keys -
20-
Patient::ProgrammeStatus::NOT_ELIGIBLE_STATUSES.keys -
21-
%w[needs_consent_follow_up_requested]
20+
Patient::ProgrammeStatus::NOT_ELIGIBLE_STATUSES.keys
2221
end
2322
end

0 commit comments

Comments
 (0)