Skip to content

Commit 343fba0

Browse files
authored
Merge pull request #205 from bimberlabinternal/25.11_fb_merge_25.7
Merge 25.7 to 25.11
2 parents bb108ec + 389425a commit 343fba0

19 files changed

+153
-38
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', 'PC529') 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', 'PC529') 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', 'PC529') 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;Cohort~neqornull=PC529"/>
129129

130130
<setting name="targetSchema" value="study"/>
131131
<setting name="targetQuery" value="treatments"/>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<customView xmlns="http://labkey.org/data/xml/queryCustomView" hidden="false" canOverride="false">
2+
<columns>
3+
<column name="Id"/>
4+
<column name="sex"/>
5+
<column name="projects/allStudies"/>
6+
<column name="projects/studyDescription"/>
7+
<column name="projects/subgroups"/>
8+
<column name="projects/analysisGroups"/>
9+
<column name="immunizations/immunizations"/>
10+
<column name="sivART/allInfections"/>
11+
<column name="sivART/ageAtInfection"/>
12+
<column name="sivART/allART"/>
13+
<column name="sivART/artInitiationDPI"/>
14+
<column name="sivART/artReleaseWPI"/>
15+
<column name="interventions/allInterventions"/>
16+
<column name="interventions/firstInterventionDPI"/>
17+
<column name="interventions/firstInterventionPostArtReleaseWeeks"/>
18+
<column name="pvlInfo/numPVL"/>
19+
<column name="pvlInfo/numPVLPostArtRelease"/>
20+
<column name="pvlInfo/lastPvlPostArtReleaseWeeks"/>
21+
</columns>
22+
<sorts>
23+
<sort column="Id" descending="false"/>
24+
</sorts>
25+
</customView>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<customView xmlns="http://labkey.org/data/xml/queryCustomView" hidden="false" canOverride="false">
2+
<columns>
3+
<column name="Id"/>
4+
<column name="sex"/>
5+
<column name="projects/allStudies"/>
6+
<column name="projects/studyDescription"/>
7+
<column name="projects/subgroups"/>
8+
<column name="projects/analysisGroups"/>
9+
<column name="immunizations/immunizations"/>
10+
<column name="sivART/allInfections"/>
11+
<column name="sivART/infectionDate"/>
12+
<column name="sivART/ageAtInfection"/>
13+
<column name="sivART/allART"/>
14+
<column name="interventions/allInterventions"/>
15+
<column name="interventions/firstInterventionDPI"/>
16+
<column name="pvlInfo/numPVL"/>
17+
</columns>
18+
<sorts>
19+
<sort column="Id" descending="false"/>
20+
</sorts>
21+
</customView>

SivStudies/resources/queries/study/demographics/Expanded.qview.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<column name="sex"/>
55
<column name="species"/>
66
<column name="calculated_status"/>
7-
<column name="birth"/>
8-
<column name="death"/>
97
<column name="sivART/ageAtInfection"/>
108
<column name="projects/allStudies"/>
119
<column name="projects/studyDescription"/>

SivStudies/resources/queries/study/demographics/SIV and ART Info.qview.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<column name="sex"/>
55
<column name="species"/>
66
<column name="calculated_status"/>
7-
<column name="projects/categories"/>
7+
<column name="projects/studyDescription"/>
88
<column name="projects/allStudies"/>
99
<column name="projects/subgroups"/>
1010
<column name="sivART/allInfections"/>

SivStudies/resources/queries/study/demographicsChallengeAndArt.query.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212
<columnTitle>SIV Infection</columnTitle>
1313
<url>/query/executeQuery.view?schemaName=study&amp;query.queryName=treatments&amp;query.Id~eq=${Id}&amp;query.category~eq=SIV Infection</url>
1414
<urlTarget>_blank</urlTarget>
15+
<displayWidth>150</displayWidth>
1516
</column>
1617
<column columnName="allART">
17-
<columnTitle>ART</columnTitle>
18+
<columnTitle>ART Regimen</columnTitle>
1819
<url>/query/executeQuery.view?schemaName=study&amp;query.queryName=treatments&amp;query.Id~eq=${Id}&amp;query.category~eq=ART</url>
1920
<urlTarget>_blank</urlTarget>
21+
<displayWidth>175</displayWidth>
2022
</column>
2123
<column columnName="infectionDate">
2224
<columnTitle>Infection Date</columnTitle>

SivStudies/resources/queries/study/demographicsChallengeAndArt.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ FROM (
55
SELECT
66
t.Id,
77
group_concat(DISTINCT CASE
8-
WHEN t.category = 'SIV Infection' THEN (cast(month(t.date) as varchar) || '/' || cast(dayofmonth(t.date) as varchar) || '/' || cast(year(t.date) as varchar) || ' (' || t.treatment || ')')
8+
WHEN t.category = 'SIV Infection' THEN (t.treatment || (CASE WHEN t.route IS NULL then '' ELSE (', ' || t.route) END) || (CASE WHEN t.amount IS NULL then '' ELSE (', ' || CAST(t.amount as VARCHAR) || ' ' || t.amount_units) END))
99
ELSE NULL
1010
END, char(10)) as allInfections,
1111
min(floor(age(t.DataSets.Demographics.birth, CASE WHEN t.category = 'SIV Infection' THEN t.date ELSE NULL END))) AS ageAtInfection,
1212

1313
group_concat(DISTINCT CASE
14-
WHEN t.category = 'ART' THEN (cast(month(t.date) as varchar) || '/' || cast(dayofmonth(t.date) as varchar) || '/' || cast(year(t.date) as varchar) || ' (' || t.treatment || ')')
14+
WHEN t.category = 'ART' THEN (t.treatment || ' (' || COALESCE(t.timePostSivChallenge.timePostInfection, 'Unk DPI') || ')')
1515
ELSE NULL
1616
END, char(10)) as allART,
1717
min(CASE

SivStudies/resources/queries/study/demographicsInterventions.query.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
<column columnName="firstInterventionWPI">
2323
<columnTitle>First Intervention (WPI)</columnTitle>
2424
</column>
25+
<column columnName="firstInterventionPostArtReleaseWeeks">
26+
<columnTitle>First Intervention Relative to ART Release (Weeks)</columnTitle>
27+
</column>
2528
</columns>
2629
<titleColumn>allInterventions</titleColumn>
2730
</table>

0 commit comments

Comments
 (0)