Skip to content

Commit 32c7849

Browse files
committed
Improve ETLs to filter non-SIV data
1 parent 5fcf876 commit 32c7849

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

IDR/resources/queries/bimber_data/idrAnchorDateSource.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ PID0 as date,
77

88
FROM bimber_data.subjects
99
WHERE PID0 IS NOT NULL
10+
AND Cohort NOT IN ('PC549', 'PC585') AND Cohort NOT LIKE 'W%'
1011

1112
UNION ALL
1213

@@ -18,4 +19,5 @@ D0 as date,
1819
'Hansen/IDR' as dataSource
1920

2021
FROM bimber_data.subjects
21-
WHERE D0 IS NOT NULL
22+
WHERE D0 IS NOT NULL
23+
AND Cohort NOT IN ('PC549', 'PC585') AND Cohort NOT LIKE 'W%'

IDR/resources/queries/bimber_data/idrOutcomeSource.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ END as outcome,
1212
'Hansen/IDR' as dataSource
1313

1414
FROM bimber_data.subjects
15-
WHERE contprog IS NOT NULL AND contprog != ''
15+
WHERE contprog IS NOT NULL AND contprog != ''
16+
AND Cohort NOT IN ('PC549', 'PC585') AND Cohort NOT LIKE 'W%'

SivStudies/resources/etls/idr-data.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
<setting name="dataSourceColumns" value="Rh,PID0"/>
126126
<setting name="dataSourceColumnMapping" value="Rh=Id,PID0=date"/>
127127
<setting name="dataSourceColumnDefaults" value="dataSource=Hansen/IDR;category=SIV Infection;treatment=SIV - Unknown"/>
128-
<setting name="dataSourceAdditionalFilters" value="PID0~isnonblank="/>
128+
<setting name="dataSourceAdditionalFilters" value="PID0~isnonblank=;Cohort~neqornull=PC549;Cohort~neqornull=PC585;Cohort~neqornull=W1170;Cohort~neqornull=W1173"/>
129129

130130
<setting name="targetSchema" value="study"/>
131131
<setting name="targetQuery" value="treatments"/>

0 commit comments

Comments
 (0)