Skip to content

Commit

Permalink
Enable SELECT at the end. Closes #22.
Browse files Browse the repository at this point in the history
  • Loading branch information
zimolzak committed Mar 7, 2021
1 parent 4eaf8dd commit 3a4d193
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions Fobt.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3543,13 +3543,15 @@ order by sta3n,sta6a,[year],[month]
--where FOBT_dt between (select sp_start from #FOBT_0_1_inputP) --altered (ORD_...Dflt) --altered (temp table)
-- and (select sp_end from #FOBT_0_1_inputP) --altered (ORD_...Dflt) --altered (temp table)
-- and Sta6a in (select sta6a from #FOBT_0_1_inputP) --altered (ORD_...Dflt) --altered (temp table)

---- red flagged fobt tests from sta6a in the study period
--select * from #FOBT_1_Inc_8_IncIns --altered (ORD_...Dflt) --altered (temp table)
--where CBC_dt between (select sp_start from #FOBT_0_1_inputP) --altered (ORD_...Dflt) --altered (temp table)
-- and (select sp_end from #FOBT_0_1_inputP) --altered (ORD_...Dflt) --altered (temp table)
-- and Sta6a in (select sta6a from #FOBT_0_1_inputP) --altered (ORD_...Dflt) --altered (temp table)

---- trigger positive fobt tests from sta6a in the study period
--select * from #FOBT_5_Ins_U_TriggerPos --altered (ORD_...Dflt) --altered (temp table)
--where CBC_dt between (select sp_start from #FOBT_0_1_inputP) --altered (ORD_...Dflt) --altered (temp table)
-- and (select sp_end from #FOBT_0_1_inputP) --altered (ORD_...Dflt) --altered (temp table)
-- and Sta6a in (select sta6a from #FOBT_0_1_inputP) --altered (ORD_...Dflt) --altered (temp table)
select * from #FOBT_5_Ins_U_TriggerPos --altered (ORD_...Dflt) --altered (temp table)
where CBC_dt between (select sp_start from #FOBT_0_1_inputP) --altered (ORD_...Dflt) --altered (temp table)
and (select sp_end from #FOBT_0_1_inputP) --altered (ORD_...Dflt) --altered (temp table)
and Sta6a in (select sta6a from #FOBT_0_1_inputP) --altered (ORD_...Dflt) --altered (temp table)
4 changes: 3 additions & 1 deletion Lung.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4056,7 +4056,9 @@ order by sta3n,sta6a,[year],[month]

---- data set: Chest XRay/CT performed
--select * from #Lung_1_In_2_All_Chest_XRayCT_Sta6a --altered (ORD_...Dflt) --altered (temp table)

---- data set: Chest XRay/CT which are red-flaged
--select * from #Lung_1_In_3_RedFlagXRayCT --altered (ORD_...Dflt) --altered (temp table)

---- data set: Chest XRay/CT which come out trigger positive
--select * from #Lung_3_Ins_U_TriggerPos --altered (ORD_...Dflt) --altered (temp table)
select * from #Lung_3_Ins_U_TriggerPos --altered (ORD_...Dflt) --altered (temp table)

0 comments on commit 3a4d193

Please sign in to comment.