Skip to content

Commit 9e95654

Browse files
committed
Added manual_cease folder and files, and feature file outlines (from the selenium feature files)
1 parent a7c5580 commit 9e95654

6 files changed

+1498
-0
lines changed
Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
# Feature: Scenarios ceasing a subject who has been age extended
2+
3+
# Scenario numbering is gappy because the original 'age extension' feature was split into two, for manual/SSPI ceases
4+
5+
# Scenario: Test 2 - Subject has agex attribute set, no episode started since agex attribute was set, immediate manual cease - agex attribute removed
6+
7+
# This scenario includes a test that the overnight failsafe will age extend a subject if their "agex birthday" is later than their SC's "agex start date". As part of age extension, an inactive subject's due date is set, but not their calculated due date (which is only set based on episode history).
8+
9+
# Given I log in to BCSS "England" as user role "Hub Manager"
10+
# And there is a subject who meets the following criteria:
11+
# | Calculated FOBT Due Date | null |
12+
# | Has GP Practice | Yes - Active |
13+
# | Manual cease requested | No |
14+
# | Screening Due Date | null |
15+
# | Screening Status | Inactive |
16+
# | Subject Age | 56 |
17+
# | Subject Has Episodes | No |
18+
# | Subject Has FOBT Episodes | No |
19+
# | Subject has unprocessed SSPI updates | No |
20+
# | Subject has user DOB updates | No |
21+
# | Subject Lower FOBT Age | Default |
22+
# When I update the age extension age 56 start date for my subject's screening centre to 400 days in the "past"
23+
# And I pause for "5" seconds to let the process complete
24+
# And I run the overnight failsafe job for my subject
25+
# And I pause for "5" seconds to let the process complete
26+
# Then my subject has been updated as follows:
27+
# | Calculated FOBT Due Date | null |
28+
# | Screening Due Date | last birthday |
29+
# | Screening Due Date Date of Change | today |
30+
# | Screening Due Date Reason | Eligible for Screening |
31+
# | Screening Status | Call |
32+
# | Subject Lower FOBT Age | 56 |
33+
# When I manually cease the subject with reason "Informed Dissent (verbal only)"
34+
# And I pause for "5" seconds to let the process complete
35+
# Then my subject has been updated as follows:
36+
# | Calculated FOBT Due Date | Unchanged |
37+
# | Calculated Surveillance Due Date | Unchanged |
38+
# | Ceased confirmation date | Today |
39+
# | Clinical reason for cease | Null |
40+
# | Screening Due Date | Null |
41+
# | Screening Due Date Reason | Ceased |
42+
# | Screening Due Date Date of change | Today |
43+
# | Screening Status | Ceased |
44+
# | Screening Status Reason | Informed Dissent (verbal only) |
45+
# | Subject Lower FOBT Age | Default |
46+
# | Surveillance Due Date | Null |
47+
# And I remove the age extension age 56 start date from my subject's screening centre
48+
49+
50+
# Scenario: Test 2a - Subject has agex attribute set, no episode started since agex attribute was set, immediate manual cease - agex attribute removed
51+
# This is the same as test 2, but with immediate cease reason "No Colon (programme assessed)"
52+
# Given I log in to BCSS "England" as user role "Hub Manager"
53+
# And there is a subject who meets the following criteria:
54+
# | Has GP Practice | Yes - Active |
55+
# | Manual cease requested | No |
56+
# | Screening Status | Call |
57+
# | Subject Has Episodes | No |
58+
# | Subject Has FOBT Episodes | No |
59+
# | Subject Lower FOBT Age | NOT: default |
60+
# When I manually cease the subject with reason "No Colon (programme assessed)"
61+
# And I pause for "5" seconds to let the process complete
62+
# And I view the subject
63+
# Then my subject has been updated as follows:
64+
# | Calculated FOBT Due Date | Unchanged |
65+
# | Calculated Surveillance Due Date | Unchanged |
66+
# | Ceased confirmation date | Today |
67+
# | Clinical reason for cease | Null |
68+
# | Screening Due Date | Null |
69+
# | Screening Due Date Reason | Ceased |
70+
# | Screening Due Date Date of change | Today |
71+
# | Screening Status | Ceased |
72+
# | Screening Status Reason | No Colon (programme assessed) |
73+
# | Subject Lower FOBT Age | Default |
74+
# | Surveillance Due Date | Null |
75+
76+
77+
# Scenario: Test 2b - Subject has agex attribute set, no episode started since agex attribute was set, immediate manual cease - agex attribute removed
78+
# # This is the same as test 2, but with immediate cease reason "Informal Death"
79+
# Given I log in to BCSS "England" as user role "Hub Manager"
80+
# And there is a subject who meets the following criteria:
81+
# | Has GP Practice | Yes - Active |
82+
# | Manual cease requested | No |
83+
# | Screening Status | Call |
84+
# | Subject Has Episodes | No |
85+
# | Subject Has FOBT Episodes | No |
86+
# | Subject Lower FOBT Age | NOT: default |
87+
# When I manually cease the subject with reason "Informal Death"
88+
# And I pause for "5" seconds to let the process complete
89+
# And I view the subject
90+
# Then my subject has been updated as follows:
91+
# | Calculated FOBT Due Date | Unchanged |
92+
# | Calculated Surveillance Due Date | Unchanged |
93+
# | Ceased confirmation date | Today |
94+
# | Clinical reason for cease | Null |
95+
# | Screening Due Date | Null |
96+
# | Screening Due Date Reason | Ceased |
97+
# | Screening Due Date Date of change | Today |
98+
# | Screening Status | Ceased |
99+
# | Screening Status Reason | Informal Death |
100+
# | Subject Lower FOBT Age | Default |
101+
# | Surveillance Due Date | Null |
102+
103+
104+
# Scenario: Setup 3 - Subject has agex attribute set, no episode started since agex attribute was set
105+
# Given I log in to BCSS "England" as user role "Hub Manager"
106+
# And there are no subjects who meet the following criteria:
107+
# | Has GP Practice | Yes - Active |
108+
# | Manual cease requested | No |
109+
# | Screening Status | Call |
110+
# | Subject Has FOBT Episodes | No |
111+
# | Subject Lower FOBT Age | NOT: default |
112+
# And there is a subject who meets the following criteria:
113+
# | Calculated FOBT Due Date | null |
114+
# | Has GP Practice | Yes - Active |
115+
# | Manual cease requested | No |
116+
# | Screening Due Date | null |
117+
# | Screening Status | Inactive |
118+
# | Subject Age | 56 |
119+
# | Subject Has FOBT Episodes | No |
120+
# | Subject Lower FOBT Age | Default |
121+
# When I update the age extension age 56 start date for my subject's screening centre to 400 days in the "past"
122+
# And I view the subject
123+
# And I run the overnight failsafe job for my subject
124+
# And I pause for "5" seconds to let the process complete
125+
# And I view the subject
126+
# Then my subject has been updated as follows:
127+
# | Calculated FOBT Due Date | null |
128+
# | Has GP Practice | Yes - Active |
129+
# | Screening Due Date | last birthday |
130+
# | Screening Due Date Date of Change | today |
131+
# | Screening Due Date Reason | Eligible for Screening |
132+
# | Screening Status | Call |
133+
# | Subject Has FOBT Episodes | No |
134+
# | Subject Lower FOBT Age | 56 |
135+
# And I remove the age extension age 56 start date from my subject's screening centre
136+
137+
138+
# Scenario: Test 3 - Subject has agex attribute set, no episode started since agex attribute was set, manual cease with confirmation (disclaimer) - agex attribute removed
139+
# Given I log in to BCSS "England" as user role "Hub Manager"
140+
# And there is a subject who meets the following criteria:
141+
# | Has GP Practice | Yes - Active |
142+
# | Manual cease requested | No |
143+
# | Screening Status | Call |
144+
# | Subject Has FOBT Episodes | No |
145+
# | Subject Lower FOBT Age | NOT: default |
146+
# When I manually cease the subject with reason "Informed Dissent"
147+
# And I view the subject
148+
# Then my subject has been updated as follows:
149+
# | Calculated FOBT Due Date | Unchanged |
150+
# | Calculated Surveillance Due Date | Unchanged |
151+
# | Ceased confirmation date | Today |
152+
# | Clinical reason for cease | Null |
153+
# | Screening Due Date | Null |
154+
# | Screening Due Date Reason | Ceased |
155+
# | Screening Due Date Date of change | Today |
156+
# | Screening Status | Ceased |
157+
# | Screening Status Reason | Informed Dissent |
158+
# | Subject Lower FOBT Age | Default |
159+
# | Surveillance Due Date | Null |
160+
161+
162+
# Scenario: Test 3a - Subject has agex attribute set, no episode started since agex attribute was set, manual cease with confirmation (disclaimer) - agex attribute removed
163+
# # This is the same as test 2, but with immediate cease reason "No Colon (subject request)"
164+
# Given I log in to BCSS "England" as user role "Hub Manager"
165+
# And there is a subject who meets the following criteria:
166+
# | Has GP Practice | Yes - Active |
167+
# | Manual cease requested | No |
168+
# | Screening Status | Call |
169+
# | Subject Has FOBT Episodes | No |
170+
# | Subject Lower FOBT Age | NOT: default |
171+
# When I manually cease the subject with reason "No Colon (subject request)"
172+
# And I view the subject
173+
# Then my subject has been updated as follows:
174+
# | Calculated FOBT Due Date | Unchanged |
175+
# | Calculated Surveillance Due Date | Unchanged |
176+
# | Ceased confirmation date | Today |
177+
# | Clinical reason for cease | Null |
178+
# | Screening Due Date | Null |
179+
# | Screening Due Date Reason | Ceased |
180+
# | Screening Due Date Date of change | Today |
181+
# | Screening Status | Ceased |
182+
# | Screening Status Reason | No Colon (subject request) |
183+
# | Subject Lower FOBT Age | Default |
184+
# | Surveillance Due Date | Null |
185+
186+
187+
# Scenario: Test 5 - Subject has agex attribute set, has episode started since agex attribute was set, immediate manual cease - agex attribute remains set
188+
# Given I log in to BCSS "England" as user role "Hub Manager"
189+
# And there is a subject who meets the following criteria:
190+
# | Has GP Practice | Yes - Active |
191+
# | Latest episode status | Open |
192+
# | Screening Status | Call |
193+
# | Subject Has FOBT Episodes | Yes |
194+
# | Subject Lower FOBT Age | NOT: default |
195+
# When I view the subject
196+
# And I close the subject's episode for "Cease Request"
197+
# And I manually cease the subject with reason "Informed Dissent (verbal only)"
198+
# And I view the subject
199+
# Then my subject has been updated as follows:
200+
# | Ceased confirmation date | Today |
201+
# | Clinical reason for cease | Null |
202+
# | Screening Due Date | Null |
203+
# | Screening Due Date Reason | Ceased |
204+
# | Screening Due Date Date of change | Today |
205+
# | Screening Status | Ceased |
206+
# | Screening Status Reason | Informed Dissent (verbal only) |
207+
# | Subject Lower FOBT Age | NOT: default |
208+
# | Surveillance Due Date | Null |
209+
210+
211+
# Scenario: Test 6 - Subject has agex attribute set, has episode started since agex attribute was set, manual cease with confirmation (disclaimer) - agex attribute remains set
212+
# Given I log in to BCSS "England" as user role "Hub Manager"
213+
# And there is a subject who meets the following criteria:
214+
# | Has GP Practice | Yes - Active |
215+
# | Latest episode status | Open |
216+
# | Screening Status | Call |
217+
# | Subject Has FOBT Episodes | Yes |
218+
# | Subject Lower FOBT Age | NOT: default |
219+
# When I view the subject
220+
# And I close the subject's episode for "Cease Request"
221+
# And I manually cease the subject with reason "Informed Dissent"
222+
# And I view the subject
223+
# Then my subject has been updated as follows:
224+
# | Ceased confirmation date | Today |
225+
# | Clinical reason for cease | Null |
226+
# | Screening Due Date | Null |
227+
# | Screening Due Date Reason | Ceased |
228+
# | Screening Due Date Date of change | Today |
229+
# | Screening Status | Ceased |
230+
# | Screening Status Reason | Informed Dissent |
231+
# | Subject Lower FOBT Age | NOT: default |
232+
# | Surveillance Due Date | Null |

0 commit comments

Comments
 (0)