diff --git a/snprc_ehr/resources/web/snprc_ehr/Panel/LabworkRequestDataEntryPanel.js b/snprc_ehr/resources/web/snprc_ehr/Panel/LabworkRequestDataEntryPanel.js index a8ee9b5b0..fbe7eb3a3 100644 --- a/snprc_ehr/resources/web/snprc_ehr/Panel/LabworkRequestDataEntryPanel.js +++ b/snprc_ehr/resources/web/snprc_ehr/Panel/LabworkRequestDataEntryPanel.js @@ -7,34 +7,10 @@ Ext4.define('SNPRC_EHR.panel.LabworkRequestDataEntryPanel', { extend: 'EHR.panel.RequestDataEntryPanel', alias: 'widget.snprc-labworkrequestdataentrypanel', - initComponent: function(){ - var mergeURL = LABKEY.getModuleProperty('MergeSync', 'MergeURL'); - - this.callParent(arguments); - }, - onStoreCollectionCommitComplete: function(sc, extraContext){ if (Ext4.Msg.isVisible()) Ext4.Msg.hide(); - if (extraContext && extraContext.successURL){ - var mergeURL = LABKEY.getModuleProperty('MergeSync', 'MergeURL'); - if (mergeURL){ - Ext4.Msg.confirm('Success', 'The requests have been synced to merge. Do you want to open merge now?' + - (!Ext4.isIE ? ' Note: merge does not work well in any browser besides IE, and you may want to switch to that browser.' : ''), function(val){ - window.onbeforeunload = Ext4.emptyFn; - if (val == 'yes'){ - window.location = mergeURL; - } - else { - window.location = extraContext.successURL; - } - }, this); - - return; - } - } - this.callParent(arguments); } }); \ No newline at end of file diff --git a/snprc_ehr/resources/web/snprc_ehr/Panel/LabworkRequestInstructionsPanel.js b/snprc_ehr/resources/web/snprc_ehr/Panel/LabworkRequestInstructionsPanel.js deleted file mode 100644 index e6a955e3b..000000000 --- a/snprc_ehr/resources/web/snprc_ehr/Panel/LabworkRequestInstructionsPanel.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2016-2018 LabKey Corporation - * - * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 - */ -Ext4.define('SNPRC_EHR.panel.RequestInstructionsPanel', { - extend: 'Ext.panel.Panel', - alias: 'widget.snprc-labworkrequestinstructionspanel', - - initComponent: function(){ - var mergeURL = LABKEY.getModuleProperty('MergeSync', 'MergeURL'); - var items; - if (mergeURL){ - items = [{ - html: 'This form allows you to request Labwork, similar to requesting in Merge. After requesting Clinpath services through this form, this request will be created in Merge. You can print print labels through Merge.
' + - 'Click here to open Merge
' +
- 'Click here for instructions on Merge label printing',
- style: 'padding: 5px;'
- }]
- }
- else {
- items = [{
- html: 'The Merge URL has not been configured for this site',
- style: 'padding: 5px;'
- }]
- }
-
- Ext4.apply(this, {
- defaults: {
- border: false
- },
- items: items
- });
-
- this.callParent(arguments);
- }
-});
\ No newline at end of file
diff --git a/snprc_ehr/src/org/labkey/snprc_ehr/SNPRC_EHRModule.java b/snprc_ehr/src/org/labkey/snprc_ehr/SNPRC_EHRModule.java
index c759d33c9..c6c01f789 100644
--- a/snprc_ehr/src/org/labkey/snprc_ehr/SNPRC_EHRModule.java
+++ b/snprc_ehr/src/org/labkey/snprc_ehr/SNPRC_EHRModule.java
@@ -307,7 +307,6 @@ protected void doStartupAfterSpringConfig(ModuleContext moduleContext)
// EHRService.get().registerFormType(new DefaultDataEntryFormFactory(AuxProcedureFormType.class, this));
// EHRService.get().registerFormType(new DefaultDataEntryFormFactory(ASBRequestFormType.class, this));
// EHRService.get().registerFormType(new DefaultDataEntryFormFactory(ColonyRequestFormType.class, this));
-// // Requires mergesync
// EHRService.get().registerFormType(new DefaultDataEntryFormFactory(LabworkRequestFormType.class, this));
// EHRService.get().registerFormType(new DefaultDataEntryFormFactory(HousingRequestFormType.class, this));
// EHRService.get().registerFormType(new DefaultDataEntryFormFactory(BloodRequestBulkEditFormType.class, this));
diff --git a/snprc_ehr/src/org/labkey/snprc_ehr/dataentry/dataentry/LabworkRequestFormType.java b/snprc_ehr/src/org/labkey/snprc_ehr/dataentry/dataentry/LabworkRequestFormType.java
index 0de3a3efd..f864abaa5 100644
--- a/snprc_ehr/src/org/labkey/snprc_ehr/dataentry/dataentry/LabworkRequestFormType.java
+++ b/snprc_ehr/src/org/labkey/snprc_ehr/dataentry/dataentry/LabworkRequestFormType.java
@@ -40,7 +40,6 @@ public LabworkRequestFormType(DataEntryFormContext ctx, Module owner)
{
super(ctx, owner, NAME, LABEL, "Requests", Arrays.