You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inner join ep_subject_episode_t se on se.screening_subject_id = tk.screening_subject_id
20
20
inner join screening_subject_t sst on (sst.screening_subject_id = tk.screening_subject_id)
21
21
inner join sd_contact_t sdc on (sdc.nhs_number = sst.subject_nhs_number)
22
-
where tk.tk_type_id = 2
22
+
where tk.tk_type_id = {smokescreen_properties["c2_fit_kit_tk_type_id"]}
23
23
and tk.logged_in_flag = 'N'
24
-
and sdc.hub_id = 23159
24
+
and sdc.hub_id = {smokescreen_properties["c2_fit_kit_logging_test_org_id"]}
25
25
and device_id is null
26
26
and tk.invalidated_date is null
27
-
and se.latest_event_status_id in (11198, 11213)
27
+
and se.latest_event_status_id in ({smokescreen_properties["c2_fit_kit_s10_event_status_id"]}, {smokescreen_properties["c2_fit_kit_s19_event_status_id"]})
28
28
order by tk.kitid DESC
29
-
fetch first 10 rows only"""
29
+
fetch first {smokescreen_properties["c2_total_fit_kits_to_retieve"]} rows only"""
0 commit comments