22
33The Screening Subject Search utility allows for
44
5- - searching for relevant subjects using their NHS Number, forename, last name, DOB, post code , episode closed date, status or latest event status
6- - verifying the subject's event status using their nhs number
5+ - searching for relevant subjects using their NHS Number, forename, last name, DOB, postcode , episode closed date, status or latest event status
6+ - verifying the subject's event status using their NHS number
77
88## Table of Contents
99
1010- [ Utility Guide: Screening Subject Page Searcher] ( #utility-guide-screening-subject-page-searcher )
1111 - [ Table of Contents] ( #table-of-contents )
1212 - [ Functions Overview] ( #functions-overview )
13- - [ Verify subject event status by nhs no] ( #verify-subject-event-status-by-nhs-no )
13+ - [ The page object parameter:] ( #the-page-object-parameter )
14+ - [ Verify subject event status by NHS no] ( #verify-subject-event-status-by-nhs-no )
1415 - [ Arguments] ( #arguments )
1516 - [ How This Function Works] ( #how-this-function-works )
16- - [ Search subject by nhs number] ( #search-subject-by-nhs-number )
17+ - [ Search subject by NHS number] ( #search-subject-by-nhs-number )
1718 - [ Arguments] ( #arguments-1 )
1819 - [ How This Function Works] ( #how-this-function-works-1 )
1920 - [ Search subject by surname] ( #search-subject-by-surname )
@@ -25,7 +26,7 @@ The Screening Subject Search utility allows for
2526 - [ Search subject by date of birth] ( #search-subject-by-date-of-birth )
2627 - [ Arguments] ( #arguments-4 )
2728 - [ How This Function Works] ( #how-this-function-works-4 )
28- - [ Search subject by post code ] ( #search-subject-by-post-code )
29+ - [ Search subject by postcode ] ( #search-subject-by-postcode )
2930 - [ Arguments] ( #arguments-5 )
3031 - [ How This Function Works] ( #how-this-function-works-5 )
3132 - [ Search subject by episode closed date] ( #search-subject-by-episode-closed-date )
@@ -61,10 +62,13 @@ For this utility we have the following functions:
6162- ` search_subject_by_search_area `
6263- ` check_clear_filters_button_works `
6364
64- ### Verify subject event status by nhs no
65+ ### The page object parameter:
66+ - is required for all the listed functions above. It is listed as an arguement just once to avoid repetition
67+
68+ ### Verify subject event status by NHS no
6569
6670This is used to check that the latest event status of a subject has been updated to what is expected.
67- The provided nhs no is used to search the whole database and then verifies the latest event status is as expected.
71+ The provided NHS no is used to search the whole database and then verifies the latest event status is as expected.
6872
6973#### Arguments
7074
@@ -73,7 +77,7 @@ The provided nhs no is used to search the whole database and then verifies the l
7377 - This is the playwright page object which is used to tell playwright what page the test is currently on
7478- ` nhs_no ` :
7579 - Type: ` str `
76- - This is the subject's nhs number. For example: 123 456 7890
80+ - This is the subject's NHS number. For example: 123 456 7890
7781- ` latest_event_status ` :
7882 - Type: ` str `
7983 - This is the expected status of the subject that is being verified
@@ -82,37 +86,31 @@ The provided nhs no is used to search the whole database and then verifies the l
8286
83871 . It starts off by navigating to the main menu if not already on this page. This is done to ensure that this can be called from any page
84882 . Once on the main menu it navigates to the screening subject search page
85- 3 . From here it fills in the nhs number filter field with the supplied nhs number and chooses the whole area database as the search area option
89+ 3 . From here it fills in the NHS number filter field with the supplied NHS number and chooses the whole area database as the search area option
86904 . It then clicks the search button
87915 . Once the subject is returned, it then verifies that the latest event status matches the supplied event status
8892
89- ### Search subject by nhs number
93+ ### Search subject by NHS number
9094
9195This searches for a subject by their NHS Number
9296
9397#### Arguments
9498
95- - ` page ` :
96- - Type: ` Page `
97- - This is the playwright page object which is used to tell playwright what page the test is currently on
9899- ` nhs_no ` :
99100 - Type: ` str `
100- - This is the subject's nhs number. For example: 123 456 7890
101+ - This is the subject's NHS number. For example: 123 456 7890
101102
102103#### How This Function Works
103104
1041051 . It starts off by clicking on the ** Clear filters** button to remove any persisting filters
105- 2 . It then fills in the nhs number filter field with the supplied nhs number and clicks the search button
106+ 2 . It then fills in the NHS number filter field with the supplied NHS number and clicks the search button
106107
107108### Search subject by surname
108109
109110This searches for a subject by their surname
110111
111112#### Arguments
112113
113- - ` page ` :
114- - Type: ` Page `
115- - This is the playwright page object which is used to tell playwright what page the test is currently on
116114- ` surname ` :
117115 - Type: ` str `
118116 - This is the subject's surname
@@ -128,9 +126,6 @@ This searches for a subject by their forename
128126
129127#### Arguments
130128
131- - ` page ` :
132- - Type: ` Page `
133- - This is the playwright page object which is used to tell playwright what page the test is currently on
134129- ` forename ` :
135130 - Type: ` str `
136131 - This is the subject's forename
@@ -146,9 +141,6 @@ This searches for a subject by their date of birth
146141
147142#### Arguments
148143
149- - ` page ` :
150- - Type: ` Page `
151- - This is the playwright page object which is used to tell playwright what page the test is currently on
152144- ` dob ` :
153145 - Type: ` str `
154146 - This is the subject's date of birth
@@ -158,33 +150,27 @@ This searches for a subject by their date of birth
1581501 . It starts off by clicking on the ** Clear filters** button to remove any persisting filters
1591512 . It then fills in the date of birth filter field with the supplied DOB and clicks the search button
160152
161- ### Search subject by post code
153+ ### Search subject by postcode
162154
163- This searches for a subject by their post code
155+ This searches for a subject by their postcode
164156
165157#### Arguments
166158
167- - ` page ` :
168- - Type: ` Page `
169- - This is the playwright page object which is used to tell playwright what page the test is currently on
170159- ` postcode ` :
171160 - Type: ` str `
172- - This is the subject's post code
161+ - This is the subject's postcode
173162
174163#### How This Function Works
175164
1761651 . It starts off by clicking on the ** Clear filters** button to remove any persisting filters
177- 2 . It then fills in the post code filter field with the supplied post code and clicks the search button
166+ 2 . It then fills in the postcode filter field with the supplied postcode and clicks the search button
178167
179168### Search subject by episode closed date
180169
181170This searches for a subject by their episode closed date
182171
183172#### Arguments
184173
185- - ` page ` :
186- - Type: ` Page `
187- - This is the playwright page object which is used to tell playwright what page the test is currently on
188174- ` episode_closed_date ` :
189175 - Type: ` str `
190176 - This is the subject's episode closed date
@@ -200,9 +186,6 @@ This searches for a subject by their screening status
200186
201187#### Arguments
202188
203- - ` page ` :
204- - Type: ` Page `
205- - This is the playwright page object which is used to tell playwright what page the test is currently on
206189- ` status ` :
207190 - Type: ` str `
208191 - This is the subject's screening status
@@ -218,9 +201,6 @@ This searches for a subject by their latest event status
218201
219202#### Arguments
220203
221- - ` page ` :
222- - Type: ` Page `
223- - This is the playwright page object which is used to tell playwright what page the test is currently on
224204- ` status ` :
225205 - Type: ` str `
226206 - This is the subject's latest event status
@@ -236,9 +216,6 @@ This searches for a subject by search area
236216
237217#### Required Arguments
238218
239- - ` page ` :
240- - Type: ` Page `
241- - This is the playwright page object which is used to tell playwright what page the test is currently on
242219- ` status ` :
243220 - Type: ` str `
244221 - This is the subject's screening status
@@ -267,14 +244,11 @@ This checks that the "clear filter" button works as intended
267244
268245#### Arguments
269246
270- - ` page ` :
271- - Type: ` Page `
272- - This is the playwright page object which is used to tell playwright what page the test is currently on
273247- ` nhs_no ` :
274248 - Type: ` str `
275- - This is the subject's nhs number. For example: 123 456 7890
249+ - This is the subject's NHS number. For example: 123 456 7890
276250
277251#### How This Function Works
278252
279- 1 . It fills in the nhs number filter field with the supplied nhs number and verifies that the nhs number filter field contains the entered value
280- 2 . It then clicks the clear filters button and verifies that the nhs number filter field is now empty
253+ 1 . It fills in the NHS number filter field with the supplied NHS number and verifies that the NHS number filter field contains the entered value
254+ 2 . It then clicks the clear filters button and verifies that the NHS number filter field is now empty
0 commit comments