From bf3eb5da9f9927f8055f8120b1e5e4a4e77b87f3 Mon Sep 17 00:00:00 2001 From: Binal Date: Tue, 13 Oct 2020 17:04:34 -0700 Subject: [PATCH 1/2] Include registerLabworkType() and registerHistoryDataSource(), which was removed in the EHR module. --- WNPRC_EHR/src/org/labkey/wnprc_ehr/WNPRC_EHRModule.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WNPRC_EHR/src/org/labkey/wnprc_ehr/WNPRC_EHRModule.java b/WNPRC_EHR/src/org/labkey/wnprc_ehr/WNPRC_EHRModule.java index 3f5225c1b..c8121d5a2 100644 --- a/WNPRC_EHR/src/org/labkey/wnprc_ehr/WNPRC_EHRModule.java +++ b/WNPRC_EHR/src/org/labkey/wnprc_ehr/WNPRC_EHRModule.java @@ -249,6 +249,8 @@ protected void doStartupAfterSpringConfig(ModuleContext moduleContext) EHRService.get().registerHistoryDataSource(new DefaultAlopeciaDataSource(this)); EHRService.get().registerHistoryDataSource(new DefaultBodyConditionDataSource(this)); EHRService.get().registerHistoryDataSource(new DefaultTBDataSource(this)); + EHRService.get().registerHistoryDataSource(new DefaultClinicalRemarksDataSource(module)); + EHRService.get().registerLabworkType(new iStatLabworkType(module)); EHRService.get().addModuleRequiringLegacyExt3EditUI(this); From 986c6a84bedc9409e348443aff4d64dd223bd84b Mon Sep 17 00:00:00 2001 From: Binal Date: Tue, 13 Oct 2020 17:58:43 -0700 Subject: [PATCH 2/2] Include import statements --- WNPRC_EHR/src/org/labkey/wnprc_ehr/WNPRC_EHRModule.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/WNPRC_EHR/src/org/labkey/wnprc_ehr/WNPRC_EHRModule.java b/WNPRC_EHR/src/org/labkey/wnprc_ehr/WNPRC_EHRModule.java index c8121d5a2..6307fc53f 100644 --- a/WNPRC_EHR/src/org/labkey/wnprc_ehr/WNPRC_EHRModule.java +++ b/WNPRC_EHR/src/org/labkey/wnprc_ehr/WNPRC_EHRModule.java @@ -32,6 +32,8 @@ import org.labkey.api.ehr.security.EHRStartedDeletePermission; import org.labkey.api.ehr.security.EHRStartedInsertPermission; import org.labkey.api.ehr.security.EHRStartedUpdatePermission; +import org.labkey.api.ehr.history.DefaultClinicalRemarksDataSource; +import org.labkey.api.ehr.history.iStatLabworkType; import org.labkey.api.exp.ChangePropertyDescriptorException; import org.labkey.api.ldk.ExtendedSimpleModule; import org.labkey.api.ldk.notification.Notification; @@ -249,8 +251,8 @@ protected void doStartupAfterSpringConfig(ModuleContext moduleContext) EHRService.get().registerHistoryDataSource(new DefaultAlopeciaDataSource(this)); EHRService.get().registerHistoryDataSource(new DefaultBodyConditionDataSource(this)); EHRService.get().registerHistoryDataSource(new DefaultTBDataSource(this)); - EHRService.get().registerHistoryDataSource(new DefaultClinicalRemarksDataSource(module)); - EHRService.get().registerLabworkType(new iStatLabworkType(module)); + EHRService.get().registerHistoryDataSource(new DefaultClinicalRemarksDataSource(this)); + EHRService.get().registerLabworkType(new iStatLabworkType(this)); EHRService.get().addModuleRequiringLegacyExt3EditUI(this);