Skip to content

Commit a20e803

Browse files
committed
Expand SIV Queries
1 parent c65afbf commit a20e803

File tree

4 files changed

+97
-1
lines changed

4 files changed

+97
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
CREATE TABLE studies.subjectAnchorDates (
2+
rowid serial,
3+
subjectId varchar(4000),
4+
date int,
5+
eventLabel varchar(1000),
6+
anchorEventId int,
7+
8+
container entityid,
9+
created timestamp,
10+
createdby int,
11+
modified timestamp,
12+
modifiedby int,
13+
14+
CONSTRAINT PK_subjectAnchorDates PRIMARY KEY (rowid)
15+
);
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
CREATE TABLE studies.subjectAnchorDates (
2+
rowid int identity(1,1),
3+
subjectId varchar(4000),
4+
date int,
5+
eventLabel varchar(1000),
6+
anchorEventId int,
7+
8+
container entityid,
9+
created datetime,
10+
createdby int,
11+
modified datetime,
12+
modifiedby int,
13+
14+
CONSTRAINT PK_subjectAnchorDates PRIMARY KEY (rowid)
15+
);

Studies/resources/schemas/studies.xml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,4 +485,70 @@
485485
</column>
486486
</columns>
487487
</table>
488+
489+
<table tableName="subjectAnchorDates" tableDbType="TABLE" useColumnOrder="true">
490+
<tableTitle>Timepoint to Date Range</tableTitle>
491+
<javaCustomizer class="org.labkey.ldk.query.DefaultTableCustomizer" />
492+
<description>Per subject, this table contains the anchor dates, which are key dates that establish relative time within the study</description>
493+
<auditLogging>DETAILED</auditLogging>
494+
<importUrl></importUrl>
495+
<insertUrl></insertUrl>
496+
<updateUrl></updateUrl>
497+
<deleteUrl></deleteUrl>
498+
<columns>
499+
<column columnName="rowid">
500+
<isAutoInc>true</isAutoInc>
501+
<shownInUpdateView>false</shownInUpdateView>
502+
<shownInInsertView>false</shownInInsertView>
503+
<isKeyField>true</isKeyField>
504+
</column>
505+
<column columnName="subjectId">
506+
<columnTitle>Subject Id</columnTitle>
507+
<conceptURI>http://cpas.labkey.com/Study#ParticipantId</conceptURI>
508+
<nullable>false</nullable>
509+
</column>
510+
<column columnName="date">
511+
<columnTitle>Date</columnTitle>
512+
<nullable>false</nullable>
513+
</column>
514+
<column columnName="eventLabel">
515+
<columnTitle>Event Label</columnTitle>
516+
</column>
517+
<column columnName="anchorEventId">
518+
<columnTitle>Anchor Event Id</columnTitle>
519+
<fk>
520+
<fkDbSchema>studies</fkDbSchema>
521+
<fkTable>anchorEvents</fkTable>
522+
<fkColumnName>rowId</fkColumnName>
523+
<fkDisplayColumnName>label</fkDisplayColumnName>
524+
</fk>
525+
</column>
526+
527+
<column columnName="container">
528+
<isUserEditable>false</isUserEditable>
529+
<nullable>true</nullable>
530+
<isHidden>true</isHidden>
531+
</column>
532+
<column columnName="createdby">
533+
<isUserEditable>false</isUserEditable>
534+
<nullable>true</nullable>
535+
<isHidden>true</isHidden>
536+
</column>
537+
<column columnName="created">
538+
<isUserEditable>false</isUserEditable>
539+
<nullable>true</nullable>
540+
<isHidden>true</isHidden>
541+
</column>
542+
<column columnName="modifiedby">
543+
<isUserEditable>false</isUserEditable>
544+
<nullable>true</nullable>
545+
<isHidden>true</isHidden>
546+
</column>
547+
<column columnName="modified">
548+
<isUserEditable>false</isUserEditable>
549+
<nullable>true</nullable>
550+
<isHidden>true</isHidden>
551+
</column>
552+
</columns>
553+
</table>
488554
</tables>

Studies/src/org/labkey/studies/StudiesModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public String getName()
3131
@Override
3232
public @Nullable Double getSchemaVersion()
3333
{
34-
return 23.002;
34+
return 23.003;
3535
}
3636

3737
@Override

0 commit comments

Comments
 (0)