From 0d6c19c84797b18d71cd8f69bcdd6b0dc56a3881 Mon Sep 17 00:00:00 2001 From: Gary Jones Date: Tue, 16 Jan 2024 13:52:42 -0700 Subject: [PATCH 1/2] 23.3 fb update randal etl Update (#894) * Update of ETL Processes for Randall Data removes old ETL and inserts a new one * Rename the labels for steps to be numeric * Update of ETL step naming to numeric sequential --- .../etls/mfshtoRandalData_2024_01.xml | 106 ++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 onprc_ehr/resources/etls/mfshtoRandalData_2024_01.xml diff --git a/onprc_ehr/resources/etls/mfshtoRandalData_2024_01.xml b/onprc_ehr/resources/etls/mfshtoRandalData_2024_01.xml new file mode 100644 index 000000000..27c3886ac --- /dev/null +++ b/onprc_ehr/resources/etls/mfshtoRandalData_2024_01.xml @@ -0,0 +1,106 @@ + + + mfshToRandalData_2024 + imports the data from mfsh animal details on ONPRC + + + Define Hansen Study Animals 2022 + + + + + Export Query to File Share + + + + + Export Query to File Share + + + + + Export Query to File Share + + + + + Export Query to File Share + + + + + Export Query to File Share + + + + + Export Query to File Share + + + + + Export Query to File Share + + + + + Export Query to File Share + + + + + Export Query to File Share + + + + + Export Query to File Share + + + + + Export Query to File Share + + + + + Export Query to File Share + + + + + Export Query to File Share + + + + + Export Query to File Share + + + + + Export Query to File Share + + + + + Export Query to File Share Project + + + + + Export Query to File Share Protocols + + + + + Export Query to File Share + + + + + + + + + \ No newline at end of file From 5fefd605957cd5904d9495e8f427de41d7aa8497 Mon Sep 17 00:00:00 2001 From: Ohsudev <76500320+Ohsudev@users.noreply.github.com> Date: Wed, 17 Jan 2024 10:18:27 -0800 Subject: [PATCH 2/2] Modified the process of determining cage size allowed. (#897) --- onprc_ehr/resources/scripts/onprc_ehr/utils.js | 2 +- .../org/labkey/onprc_ehr/query/ONPRC_EHRTriggerHelper.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/onprc_ehr/resources/scripts/onprc_ehr/utils.js b/onprc_ehr/resources/scripts/onprc_ehr/utils.js index 67eaaaced..ece0804ab 100644 --- a/onprc_ehr/resources/scripts/onprc_ehr/utils.js +++ b/onprc_ehr/resources/scripts/onprc_ehr/utils.js @@ -105,7 +105,7 @@ ONPRC_EHR.Utils = new function(){ if (!row.remark){ EHR.Server.Utils.addError(scriptErrors, cageField, 'You are required to enter a remark', 'INFO'); EHR.Server.Utils.addError(scriptErrors, 'Id', 'You are required to enter a remark', 'INFO'); - EHR.Server.Utils.addError(scriptErrors, 'remark', 'A remark is required because of the case size errors.', 'WARN'); + EHR.Server.Utils.addError(scriptErrors, 'remark', 'A remark is required because of the cage size errors.', 'WARN'); } } } diff --git a/onprc_ehr/src/org/labkey/onprc_ehr/query/ONPRC_EHRTriggerHelper.java b/onprc_ehr/src/org/labkey/onprc_ehr/query/ONPRC_EHRTriggerHelper.java index 4a452a252..73911a6d7 100644 --- a/onprc_ehr/src/org/labkey/onprc_ehr/query/ONPRC_EHRTriggerHelper.java +++ b/onprc_ehr/src/org/labkey/onprc_ehr/query/ONPRC_EHRTriggerHelper.java @@ -912,6 +912,7 @@ public List verifyCageSize(String room, String cage, List weight List ret = new ArrayList<>(); Double availableSqFt = cageRow.getSqFt(); Double availableHeight = cageRow.getHeight(); + String dividername = cageRow.getDividerName(); Double requiredSqFt = 0.0; for (Double w : weights) @@ -922,7 +923,11 @@ public List verifyCageSize(String room, String cage, List weight requiredSqFt += s; } } + if ("No Slide".equalsIgnoreCase(dividername)) + { + availableSqFt = availableSqFt * 2; + } if (requiredSqFt > availableSqFt) { ret.add("These animals are too LARGE for this cage. Has " + Math.round(availableSqFt) + " sq ft. Requires " + Math.round(requiredSqFt) + ".");