Skip to content

Commit bb108ec

Browse files
committed
Expand SivStudiesDataValidationNotification
1 parent 25e7206 commit bb108ec

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

SivStudies/src/org/labkey/sivstudies/notification/SivStudiesDataValidationNotification.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public String getEmailSubject(Container c)
7777
pvlWithoutInfectionDate(c, u, msg);
7878
idsMissingFromDemographics(c, u, msg);
7979
missingArtRecord(c, u, msg);
80+
missingAnchorDates(c, u, msg);
8081

8182
if (!msg.isEmpty())
8283
{
@@ -163,6 +164,17 @@ private void missingArtRecord(Container c, User u, StringBuilder msg)
163164
genericQueryCheck(c, u, msg, "study", s.getSubjectNounSingular(), "IDs assigned to an ART study without a record of ART", filter);
164165
}
165166

167+
private void missingAnchorDates(Container c, User u, StringBuilder msg)
168+
{
169+
Study s = StudyService.get().getStudy(getTargetContainer(c));
170+
if (s == null)
171+
{
172+
return;
173+
}
174+
175+
genericQueryCheck(c, u, msg, "study", "missingAnchorDates", "records missing from the anchor dates table");
176+
}
177+
166178
protected Container getTargetContainer(Container c)
167179
{
168180
return c.isWorkbookOrTab() ? c.getParent() : c;

0 commit comments

Comments
 (0)