File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33class AppPatientSearchFormComponent < ViewComponent ::Base
4- # Remove these statuses once implemented or fully migrated.
5- HIDDEN_PROGRAMME_STATUSES = %w[
6- needs_consent_follow_up_requested
7- needs_consent_request_failed
8- ] . freeze
4+ # Remove these statuses once implemented.
5+ HIDDEN_PROGRAMME_STATUSES = %w[ needs_consent_request_failed ] . freeze
96
107 def initialize (
118 form ,
Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ class Patient::ProgrammeStatus < ApplicationRecord
9797 "needs_consent_request_scheduled" => 11 ,
9898 "needs_consent_request_failed" => 12 ,
9999 "needs_consent_no_response" => 13 ,
100- "needs_consent_follow_up_requested" => 14 ,
101100 "needs_consent_no_contact_details" => 15
102101 } . freeze
103102
Original file line number Diff line number Diff line change 6161 has_refusal_consent_refused : Has a refusal
6262 needs_consent : Needs consent
6363 has_refusal_follow_up_requested : Has a refusal
64- needs_consent_follow_up_requested : Needs consent
6564 needs_consent_no_response : Needs consent
6665 needs_consent_request_failed : Needs consent
6766 needs_consent_request_not_scheduled : Needs consent
9089 has_refusal_consent_refused : orange
9190 needs_consent : blue
9291 has_refusal_follow_up_requested : orange
93- needs_consent_follow_up_requested : blue
9492 needs_consent_no_response : blue
9593 needs_consent_request_failed : blue
9694 needs_consent_request_not_scheduled : blue
111109 has_refusal_consent_conflicts : Conflicting consent
112110 has_refusal_consent_refused : Consent refused
113111 has_refusal_follow_up_requested : Follow-up requested
114- needs_consent_follow_up_requested : Follow-up requested
115112 needs_consent_no_response : No response
116113 needs_consent_request_failed : Request failed
117114 needs_consent_request_not_scheduled : Request not scheduled
Original file line number Diff line number Diff line change 33class UpdateFollowUpRequestedProgrammeStatus < ActiveRecord ::Migration [ 8.1 ]
44 def up
55 Patient ::ProgrammeStatus
6- . where ( status : :needs_consent_follow_up_requested )
6+ . where ( status : 14 )
77 . find_each { PatientStatusUpdater . call ( patient : it . patient ) }
88 end
99
You can’t perform that action at this time.
0 commit comments