Skip to content

Commit c138c87

Browse files
Merge 25.7 to develop
2 parents 524ea84 + 284c7cd commit c138c87

8 files changed

Lines changed: 48 additions & 26 deletions

File tree

nirc_ehr/resources/queries/study/obs/.qview.xml

Lines changed: 0 additions & 18 deletions
This file was deleted.

nirc_ehr/resources/queries/study/treatmentSchedule.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
SELECT
33
d.id,
4+
d_alias.alias AS Name,
45
d.calculated_status,
56
s.*,
67
s.objectid AS treatmentid,
@@ -63,6 +64,6 @@ JOIN(
6364

6465
) s ON (s.animalid = d.id)
6566
LEFT JOIN study.drug drug ON s.objectid = drug.treatmentid AND s.date = IFDEFINED(drug.scheduledDate)
66-
67+
LEFT JOIN (SELECT Id, GROUP_CONCAT(alias, ', ') alias FROM alias WHERE category.title = 'Name' GROUP BY Id) d_alias ON d.id = d_alias.id
6768
WHERE (d.lastDayatCenter IS NULL OR d.lastDayAtCenter > s.enddate OR s.enddate IS NULL)
6869
AND s.date >= s.startDate AND (s.enddate IS NULL OR s.date <= s.enddate)

nirc_ehr/src/org/labkey/nirc_ehr/NIRC_EHRModule.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ protected void doStartupAfterSpringConfig(ModuleContext moduleContext)
184184
EHRService.get().registerMoreActionsButton(new MarkCompletedButton(this, "study", "flags", "Set End Date"), "study", "flags");
185185

186186
registerDataEntry();
187-
NotificationService.get().registerNotification(new NIRCDeathNotification());
188-
NotificationService.get().registerNotification(new NIRCClinicalMoveNotification());
189-
NotificationService.get().registerNotification(new NIRCProcedureOverdueNotification());
190-
NotificationService.get().registerNotification(new NIRCPregnancyOutcomeNotification());
187+
NotificationService.get().registerNotification(new NIRCDeathNotification(this));
188+
NotificationService.get().registerNotification(new NIRCClinicalMoveNotification(this));
189+
NotificationService.get().registerNotification(new NIRCProcedureOverdueNotification(this));
190+
NotificationService.get().registerNotification(new NIRCPregnancyOutcomeNotification(this));
191191

192192
EHRService.get().registerReportLink(EHRService.REPORT_LINK_TYPE.moreReports, "Printable Necropsy Report", this, DetailsURL.fromString("/nirc_ehr-necropsy.view"), "Pathology");
193193

nirc_ehr/src/org/labkey/nirc_ehr/history/NIRCEndTreatmentOrderDataSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ else if (amountExists)
4343
}
4444
else if (volumeExists)
4545
{
46-
sb.append(safeAppend(rs, "Volume", rs.getString("volume") + " " + rs.getString("volume_units")));
46+
sb.append(safeAppend(rs, "Volume", rs.getString("volume") + " " + rs.getString("vol_units")));
4747
}
4848
sb.append(safeAppend(rs, "End Ordered By", "orderedby/displayName"));
4949

nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCClinicalMoveNotification.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,23 @@
33
import org.jetbrains.annotations.Nullable;
44
import org.labkey.api.data.Container;
55
import org.labkey.api.ehr.notification.AbstractEHRNotification;
6+
import org.labkey.api.module.Module;
67
import org.labkey.api.security.User;
78

89
import java.util.Date;
910

1011
public class NIRCClinicalMoveNotification extends AbstractEHRNotification
1112
{
13+
public NIRCClinicalMoveNotification(Module owner)
14+
{
15+
super(owner);
16+
}
17+
18+
public NIRCClinicalMoveNotification()
19+
{
20+
super();
21+
}
22+
1223
@Override
1324
public String getName()
1425
{

nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCDeathNotification.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,23 @@
1717

1818
import org.labkey.api.data.Container;
1919
import org.labkey.api.ehr.notification.AbstractEHRNotification;
20+
import org.labkey.api.module.Module;
2021
import org.labkey.api.security.User;
2122

2223
import java.util.Date;
2324

2425
public class NIRCDeathNotification extends AbstractEHRNotification
2526
{
27+
public NIRCDeathNotification(Module owner)
28+
{
29+
super(owner);
30+
}
31+
32+
public NIRCDeathNotification()
33+
{
34+
super();
35+
}
36+
2637
@Override
2738
public String getName()
2839
{

nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCPregnancyOutcomeNotification.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,27 @@
1717

1818
import org.labkey.api.data.Container;
1919
import org.labkey.api.ehr.notification.AbstractEHRNotification;
20+
import org.labkey.api.module.Module;
2021
import org.labkey.api.security.User;
2122

2223
import java.util.Date;
2324

2425
public class NIRCPregnancyOutcomeNotification extends AbstractEHRNotification
2526
{
27+
public NIRCPregnancyOutcomeNotification(Module owner)
28+
{
29+
super(owner);
30+
}
31+
32+
public NIRCPregnancyOutcomeNotification()
33+
{
34+
super();
35+
}
36+
2637
@Override
2738
public String getName()
2839
{
29-
return "NIRC Pregnancy Outcome Notification";
40+
return "Pregnancy Outcome Notification";
3041
}
3142

3243
@Override

nirc_ehr/src/org/labkey/nirc_ehr/notification/NIRCProcedureOverdueNotification.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.labkey.api.data.TableInfo;
66
import org.labkey.api.data.TableSelector;
77
import org.labkey.api.ehr.notification.AbstractEHRNotification;
8+
import org.labkey.api.module.Module;
89
import org.labkey.api.query.QueryService;
910
import org.labkey.api.query.UserSchema;
1011
import org.labkey.api.security.User;
@@ -17,10 +18,15 @@
1718

1819
public class NIRCProcedureOverdueNotification extends AbstractEHRNotification
1920
{
21+
public NIRCProcedureOverdueNotification(Module owner)
22+
{
23+
super(owner);
24+
}
25+
2026
@Override
2127
public String getName()
2228
{
23-
return "NIRC Procedure Overdue Notification";
29+
return "Procedure Overdue Notification";
2430
}
2531

2632
@Override

0 commit comments

Comments
 (0)