From 1ec0e3567a806e1b8389d8c69a638c1c3f8b3e82 Mon Sep 17 00:00:00 2001 From: Marty Pradere Date: Fri, 1 Aug 2025 07:10:53 -0700 Subject: [PATCH 1/3] Add container field --- ehr/resources/views/ehrTemplates.html | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/ehr/resources/views/ehrTemplates.html b/ehr/resources/views/ehrTemplates.html index 85e8be151..0529d701f 100644 --- a/ehr/resources/views/ehrTemplates.html +++ b/ehr/resources/views/ehrTemplates.html @@ -37,14 +37,18 @@ } createEHRBillingDomainHandler = function () { - var ctx = EHR.Utils.getEHRContext(); + const ctx = EHR.Utils.getEHRContext(); + const container = document.getElementById("ehrbilling_container").value; + if (!container) { + LABKEY.Utils.alert("Error", "Must enter the container path of the compliance folder."); + } LABKEY.Domain.create({ module: ctx ? ctx['EHRCustomModule'] : null, domainKind: "EHR_Billing", domainGroup: "ehr_billing", importData: false, - containerPath: ctx ? ctx['EHRStudyContainer'] : null, + containerPath: container, success: function () { LABKEY.Utils.alert("Success","EHR_Billing tables updated successfully."); }, @@ -55,8 +59,8 @@ } createEHRComplianceDomainHandler = function () { - var ctx = EHR.Utils.getEHRContext(); - var container = document.getElementById("ehrcompliance_container").value; + const ctx = EHR.Utils.getEHRContext(); + const container = document.getElementById("ehrcompliance_container").value; if (!container) { LABKEY.Utils.alert("Error", "Must enter the container path of the compliance folder."); } @@ -90,16 +94,19 @@
Load EHR table definitions

+ Load EHR_Lookup table definitions

- Load EHR_Billing table definitions + + Load EHR_Billing table definitions + +

-
- Load EHR_Compliance table definitions - - -
+ Load EHR_Compliance table definitions + + +
\ No newline at end of file From ab7122d3eb0475a984fb8a0f5b13ad35b0a84fcd Mon Sep 17 00:00:00 2001 From: Marty Pradere Date: Tue, 5 Aug 2025 14:38:12 -0700 Subject: [PATCH 2/3] Update message --- ehr/resources/views/ehrTemplates.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ehr/resources/views/ehrTemplates.html b/ehr/resources/views/ehrTemplates.html index 0529d701f..8bc92b752 100644 --- a/ehr/resources/views/ehrTemplates.html +++ b/ehr/resources/views/ehrTemplates.html @@ -40,7 +40,7 @@ const ctx = EHR.Utils.getEHRContext(); const container = document.getElementById("ehrbilling_container").value; if (!container) { - LABKEY.Utils.alert("Error", "Must enter the container path of the compliance folder."); + LABKEY.Utils.alert("Error", "Must enter the container path of the billing folder."); } LABKEY.Domain.create({ From b3bf8335c522f74b1710670f49030de3810a1ee3 Mon Sep 17 00:00:00 2001 From: Marty Pradere Date: Wed, 6 Aug 2025 11:23:23 -0700 Subject: [PATCH 3/3] Move helper function to ehr helper --- ehr/test/src/org/labkey/test/util/ehr/EHRTestHelper.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ehr/test/src/org/labkey/test/util/ehr/EHRTestHelper.java b/ehr/test/src/org/labkey/test/util/ehr/EHRTestHelper.java index fcf79a5ef..32ec32e8c 100644 --- a/ehr/test/src/org/labkey/test/util/ehr/EHRTestHelper.java +++ b/ehr/test/src/org/labkey/test/util/ehr/EHRTestHelper.java @@ -290,6 +290,14 @@ public void verifyAllReportTabs(ParticipantViewPage participantView) verifyReportTabs(participantView, Collections.emptyMap()); } + public WebElement fillAnInputByName(String name, String value) + { + WebElement el = Locator.name(name).findElement(_test.getDriver()); + el.click(); + el.sendKeys(value); + return el; + } + /** * Verify that the specified reports have no errors * @param participantView Should be on a participant view or animal history page with some animals selected