22
33
44class ScreeningStatusSearchOptions :
5+ CALL_STATUS = "4001"
6+ INACTIVE_STATUS = "4002"
7+ RECALL_STATUS = "4004"
8+ OPT_IN_STATUS = "4003"
9+ SELF_REFERRAL_STATUS = "4005"
10+ SURVEILLANCE_STATUS = "4006"
11+ SEEKING_FURTHER_DATA_STATUS = "4007"
12+ CEASED_STATUS = "4008"
13+ BOWEL_SCOPE_STATUS = "4009"
14+ LYNCH_SURVEILLANCE_STATUS = "306442"
15+ LYNCH_SELF_REFERRAL_STATUS = "307129"
16+
517 def __init__ (self , page : Page ):
618 self .page = page
719
@@ -10,40 +22,44 @@ def __init__(self, page: Page):
1022
1123 # Select screening status options
1224 def select_status_call (self ):
13- self .select_status .select_option ("4001" )
25+ self .select_status .select_option (self . CALL_STATUS )
1426
1527 def select_status_inactive (self ):
16- self .select_status .select_option ("4002" )
28+ self .select_status .select_option (self . INACTIVE_STATUS )
1729
1830 def select_status_recall (self ):
19- self .select_status .select_option ("4004" )
31+ self .select_status .select_option (self . RECALL_STATUS )
2032
2133 def select_status_opt_in (self ):
22- self .select_status .select_option ("4003" )
34+ self .select_status .select_option (self . OPT_IN_STATUS )
2335
2436 def select_status_self_referral (self ):
25- self .select_status .select_option ("4005" )
37+ self .select_status .select_option (self . SELF_REFERRAL_STATUS )
2638
2739 def select_status_surveillance (self ):
28- self .select_status .select_option ("4006" )
40+ self .select_status .select_option (self . SURVEILLANCE_STATUS )
2941
3042 def select_status_seeking_further_data (self ):
31- self .select_status .select_option ("4007" )
43+ self .select_status .select_option (self . SEEKING_FURTHER_DATA_STATUS )
3244
3345 def select_status_ceased (self ):
34- self .select_status .select_option ("4008" )
46+ self .select_status .select_option (self . CEASED_STATUS )
3547
3648 def select_status_bowel_scope (self ):
37- self .select_status .select_option ("4009" )
49+ self .select_status .select_option (self . BOWEL_SCOPE_STATUS )
3850
3951 def select_status_lynch_surveillance (self ):
40- self .select_status .select_option ("306442" )
52+ self .select_status .select_option (self . LYNCH_SURVEILLANCE_STATUS )
4153
4254 def select_status_lynch_self_referral (self ):
43- self .select_status .select_option ("307129" )
55+ self .select_status .select_option (self . LYNCH_SELF_REFERRAL_STATUS )
4456
4557
4658class LatestEpisodeStatusSearchOptions :
59+ OPEN_PAUSED_STATUS = "1"
60+ CLOSED_STATUS = "2"
61+ NO_EPISODE_STATUS = "3"
62+
4763 def __init__ (self , page : Page ):
4864 self .page = page
4965
@@ -52,16 +68,23 @@ def __init__(self, page: Page):
5268
5369 # Select latest episode status options
5470 def select_status_open_paused (self ):
55- self .select_status .select_option ("1" )
71+ self .select_status .select_option (self . OPEN_PAUSED_STATUS )
5672
5773 def select_status_closed (self ):
58- self .select_status .select_option ("2" )
74+ self .select_status .select_option (self . CLOSED_STATUS )
5975
6076 def select_status_no_episode (self ):
61- self .select_status .select_option ("3" )
77+ self .select_status .select_option (self . NO_EPISODE_STATUS )
6278
6379
6480class SearchAreaSearchOptions :
81+ SEARCH_AREA_HOME_HUB = "01"
82+ SEARCH_AREA_GP_PRACTICE = "02"
83+ SEARCH_AREA_CCG = "03"
84+ SEARCH_AREA_SCREENING_CENTRE = "05"
85+ SEARCH_AREA_OTHER_HUB = "06"
86+ SEARCH_AREA_WHOLE_DATABASE = "07"
87+
6588 def __init__ (self , page : Page ):
6689 self .page = page
6790
@@ -70,19 +93,19 @@ def __init__(self, page: Page):
7093
7194 # Select search area options
7295 def select_search_area_home_hub (self ):
73- self .select_area .select_option ("01" )
96+ self .select_area .select_option (self . SEARCH_AREA_HOME_HUB )
7497
7598 def select_search_area_gp_practice (self ):
76- self .select_area .select_option ("02" )
99+ self .select_area .select_option (self . SEARCH_AREA_GP_PRACTICE )
77100
78101 def select_search_area_ccg (self ):
79- self .select_area .select_option ("03" )
102+ self .select_area .select_option (self . SEARCH_AREA_CCG )
80103
81104 def select_search_area_screening_centre (self ):
82- self .select_area .select_option ("05" )
105+ self .select_area .select_option (self . SEARCH_AREA_SCREENING_CENTRE )
83106
84107 def select_search_area_other_hub (self ):
85- self .select_area .select_option ("06" )
108+ self .select_area .select_option (self . SEARCH_AREA_OTHER_HUB )
86109
87110 def select_search_area_whole_database (self ):
88- self .select_area .select_option ("07" )
111+ self .select_area .select_option (self . SEARCH_AREA_WHOLE_DATABASE )
0 commit comments