Skip to content

Commit 928588b

Browse files
Merge 24.11 to 25.3
2 parents 35f57d1 + 1475a37 commit 928588b

6 files changed

Lines changed: 117 additions & 27 deletions

File tree

onprc_billing/resources/queries/onprc_billing/ogasynchIR.sql

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,20 @@ SELECT ogasynch.lastIndexed,
44
ogasynch.modified,
55
ogasynch.created,
66
ogasynch.createdBy,
7-
/* ogasynch."ADFM EMP NUM",
8-
ogasynch."ADFM FULL NAME",
9-
ogasynch."ADFM LAST NAME",
10-
ogasynch."ADFM FIRST NAME",
11-
ogasynch."PI EMP NUM",
12-
ogasynch."PI FULL NAME",
13-
ogasynch."PI LAST NAME",
14-
ogasynch."PI FIRST NAME",
15-
ogasynch."PDFM EMP NUM",
16-
ogasynch."PDFM FULL NAME",
17-
ogasynch."PDFM LAST NAME",
18-
ogasynch."PDFM FIRST NAME",*/
197
ogasynch."AGENCY AWARD NUMBER",
208
ogasynch."OGA AWARD NUMBER",
219
ogasynch."OGA AWARD TYPE",
2210
ogasynch."OGA PROJECT NUMBER",
2311
ogasynch.ALIAS,
2412
ogasynch."ALIAS ENABLED FLAG",
2513
ogasynch."ALIAS ENABLED FLAG_MVIndicator",
26-
2714
ogasynch.faRate,
2815
ogasynch.Key,
2916
ogasynch.ORIGINATING_AGENCY_AWARD_NUM,
3017
ogasynch.oga_award_start_Date,
3118
ogasynch.oga_award_end_date,
3219
ir.IndirectRate AS IndirectRate -- Retrieve from the `indirectRate` tab
33-
/* Case When ogasynch.oga_award_start_Date >= '2024-07-01' then .475
34-
else .47
35-
End as IndirectRate
36-
*/
20+
3721
FROM ogasynch LEFT JOIN indirectRates ir
38-
ON ogasynch.oga_award_start_Date BETWEEN ir.StartDate AND ir.EndDate
22+
ON ogasynch.oga_award_start_Date >= ir.StartDate
23+
AND (ogasynch.oga_award_start_Date <= ir.EndDate OR ir.EndDate IS NULL);
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--This update allows the endDate field to be NULL
2+
--Revised 2025-06-30
3+
ALTER TABLE onprc_billing.IndirectRates
4+
ALTER COLUMN EndDate DATETIME NULL;

onprc_billing/src/org/labkey/onprc_billing/ONPRC_BillingModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public String getName()
8383
@Override
8484
public @Nullable Double getSchemaVersion()
8585
{
86-
return 25.005;
86+
return 25.006;
8787
}
8888

8989
@Override
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
/*
2+
* Copyright (c) 2014 LabKey Corporation
3+
*
4+
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
5+
*/
6+
7+
//Created: 2-4-2021 R.Blasa
8+
9+
Ext4.define('ONPRC_EHR.panel.ExamCasesHousingDataEntryPanel', {
10+
extend: 'EHR.panel.TaskDataEntryPanel',
11+
12+
13+
onBeforeSubmit: function(btn){
14+
if (!btn || !btn.targetQC || ['Completed', 'Review Required'].indexOf(btn.targetQC) == -1){
15+
return;
16+
}
17+
18+
var store = this.storeCollection.getClientStoreByName('Clinical Remarks');
19+
LDK.Assert.assertNotEmpty('Unable to find clinical remarks store', store);
20+
21+
var ids = [];
22+
store.each(function(r){
23+
if (r.get('Id'))
24+
ids.push(r.get('Id'))
25+
}, this);
26+
ids = Ext4.unique(ids);
27+
28+
if (!ids.length)
29+
return;
30+
31+
EHR.DemographicsCache.getDemographics(ids, function(ids, idMap){
32+
var missingCases = [];
33+
Ext4.Array.forEach(ids, function(id){
34+
if (idMap[id]){
35+
var cases = idMap[id].getActiveCases();
36+
if (!cases || !cases.length){
37+
missingCases.push(id);
38+
}
39+
else {
40+
var found = false;
41+
Ext4.Array.forEach(cases, function(c){
42+
if (c.category == 'Clinical' && c.isActive){
43+
found = true;
44+
}
45+
}, this);
46+
47+
if (!found){
48+
missingCases.push(id);
49+
}
50+
}
51+
}
52+
}, this);
53+
54+
if (missingCases.length){
55+
Ext4.Msg.confirm('No Case', 'There is no active clinical case for this animal, do you want to continue anyway?', function(val){
56+
if (val == 'yes'){
57+
this.onSubmit(btn, true);
58+
}
59+
else {
60+
61+
}
62+
}, this);
63+
}
64+
else {
65+
this.onSubmit(btn, true);
66+
}
67+
}, this);
68+
69+
return false;
70+
},
71+
72+
onStoreCollectionCommitComplete: function(sc, extraContext){
73+
if (Ext4.Msg.isVisible())
74+
Ext4.Msg.hide();
75+
76+
77+
var store = sc.getClientStoreByName('housing');
78+
LDK.Assert.assertNotEmpty('Unable to find housing store in HousingDataEntryPanel', store);
79+
80+
if (extraContext && extraContext.successURL && store.getCount() > 0){
81+
Ext4.Msg.confirm('Success', 'Do you want to view the room layout now? This will allow you to verify and/or change dividers', function(val){
82+
window.onbeforeunload = Ext4.emptyFn;
83+
if (val == 'yes'){
84+
85+
var rooms = [];
86+
store.each(function(r){
87+
if (r.get('room') && rooms.indexOf(r.get('room')) == -1){
88+
rooms.push(r.get('room'));
89+
}
90+
}, this);
91+
window.location = LABKEY.ActionURL.buildURL('onprc_ehr', 'printRoom', null, {rooms: rooms});
92+
93+
}
94+
else {
95+
window.location = extraContext.successURL;
96+
}
97+
}, this);
98+
99+
return;
100+
}
101+
102+
this.callParent(arguments);
103+
}
104+
});

onprc_ehr/src/org/labkey/onprc_ehr/dataentry/ClinicalReportFormType.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,11 @@ public ClinicalReportFormType(DataEntryFormContext ctx, Module owner)
9696
// Modified: 10-5-2017 R.Blasa reinstalled 2-12-21
9797
addClientDependency(ClientDependency.supplierFromPath("onprc_ehr/model/sources/ClinicalReport.js"));
9898

99-
//Added 4-3-2015 Blasa
100-
addClientDependency(ClientDependency.supplierFromPath("onprc_ehr/panel/HousingDataEntryPanel.js"));
101-
setJavascriptClass("ONPRC_EHR.panel.HousingDataEntryPanel");
10299

103-
// Added: 2-4-2021 R.Blasa
104-
addClientDependency(ClientDependency.supplierFromPath("onprc_ehr/panel/ExamCasesDataEntryPanel.js"));
100+
// Added: 7-22-2025 R.Blasa
101+
addClientDependency(ClientDependency.supplierFromPath("onprc_ehr/panel/ExamCasesHousingDataEntryPanel.js"));
105102
setDisplayReviewRequired(true);
106-
setJavascriptClass("ONPRC_EHR.panel.ExamCasesDataEntryPanel");
103+
setJavascriptClass("ONPRC_EHR.panel.ExamCasesHousingDataEntryPanel");
107104
}
108105

109106
@Override

onprc_ehr/src/org/labkey/onprc_ehr/query/ONPRC_EHRTriggerHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2411,7 +2411,7 @@ public void sendProjectNotifications(Integer projectid)
24112411
//Create header information on the report
24122412

24132413
html.append("<table border=1 style='border-collapse: collapse;'>");
2414-
html.append("<tr style='font-weight: bold;'><td>Center Project</td><td>Iacuc Protocol</td><td> Investigator</td><td> Project Start Date</td><td> Previous End Date</td><td> Project End Date</td></tr>\n");
2414+
html.append("<tr style='font-weight: bold;'><td>Center Project</td><td>Project ID</td><td>Iacuc Protocol</td><td> Investigator</td><td> Project Start Date</td><td> Project Previous End Date</td><td> Project End Date</td></tr>\n");
24152415
ts.forEach(new Selector.ForEachBlock<ResultSet>()
24162416
{
24172417

@@ -2429,7 +2429,7 @@ public void exec(ResultSet rs) throws SQLException
24292429
{
24302430
for (String Investname : ret2)
24312431
{
2432-
html.append("<tr><td>" + PageFlowUtil.filter(rs.getString("name")) + "</td><td>" + PageFlowUtil.filter(rs.getString("protocolID")) + "</td><td> " + PageFlowUtil.filter(Investname) + " </td><td>" + PageFlowUtil.filter(rs.getString("startdate")) + "</td><td>" + PageFlowUtil.filter(rs.getString("previousdate")) + "</td><td>" + PageFlowUtil.filter(rs.getString("enddate")) + "</td></tr>\n");
2432+
html.append("<tr><td>" + PageFlowUtil.filter(rs.getString("name")) + "</td><td>" + PageFlowUtil.filter(rs.getString("project")) + "</td><td>" + PageFlowUtil.filter(rs.getString("protocolID")) + "</td><td> " + PageFlowUtil.filter(Investname) + " </td><td>" + PageFlowUtil.filter(rs.getString("startdate")) + "</td><td>" + PageFlowUtil.filter(rs.getString("previousdate")) + "</td><td>" + PageFlowUtil.filter(rs.getString("enddate")) + "</td></tr>\n");
24332433
break;
24342434

24352435
}

0 commit comments

Comments
 (0)