From 7de2ad98db4d0ded0c31e10f14f6858d1737f13b Mon Sep 17 00:00:00 2001 From: Brady Miller Date: Sat, 17 Jun 2017 20:05:39 -0700 Subject: [PATCH] consolidated reviewMode in forms.php (this can then be used for view only acl users in the future) (#873) --- interface/patient_file/encounter/forms.php | 18 +++++++++-- .../patient_file/encounter/forms_review_footer.php | 36 ---------------------- .../patient_file/encounter/forms_review_header.php | 25 --------------- 3 files changed, 15 insertions(+), 64 deletions(-) delete mode 100644 interface/patient_file/encounter/forms_review_footer.php delete mode 100644 interface/patient_file/encounter/forms_review_header.php diff --git a/interface/patient_file/encounter/forms.php b/interface/patient_file/encounter/forms.php index e352896d1..d3e3d8366 100644 --- a/interface/patient_file/encounter/forms.php +++ b/interface/patient_file/encounter/forms.php @@ -14,7 +14,12 @@ require_once("$srcdir/patient.inc"); require_once("$srcdir/amc.php"); require_once $GLOBALS['srcdir'].'/ESign/Api.php'; require_once("$srcdir/../controllers/C_Document.class.php"); -require_once("forms_review_header.php"); + +$reviewMode = false; +if (!empty($_REQUEST['review_id'])) { + $reviewMode = true; + $encounter=$_REQUEST['review_id']; +} $is_group = ($attendant_type == 'gid') ? true : false; if($attendant_type == 'gid'){ @@ -258,6 +263,14 @@ jQuery(document).ready( function($) { } ?> + + $("body table:first").hide(); + $(".encounter-summary-column").hide(); + $(".css_button").hide(); + $(".css_button_small").hide(); + $(".encounter-summary-column:first").show(); + $(".title:first").text(" " + $(".title:first").text() + " ("++")"); + }); // Process click on Delete link. @@ -713,5 +726,4 @@ if (!$pass_sens_squad) { - - + \ No newline at end of file diff --git a/interface/patient_file/encounter/forms_review_footer.php b/interface/patient_file/encounter/forms_review_footer.php deleted file mode 100644 index 7c104a6de..000000000 --- a/interface/patient_file/encounter/forms_review_footer.php +++ /dev/null @@ -1,36 +0,0 @@ - - * - * LICENSE: This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * You should have received a copy of the GNU General Public License - * along with this program. If not, see ;. - * - * @package OpenEMR - * @author Kevin Yeh - * @link http://www.open-emr.org - */ -?> - - - - - diff --git a/interface/patient_file/encounter/forms_review_header.php b/interface/patient_file/encounter/forms_review_header.php deleted file mode 100644 index 266a3a541..000000000 --- a/interface/patient_file/encounter/forms_review_header.php +++ /dev/null @@ -1,25 +0,0 @@ - - * - * LICENSE: This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 3 - * of the License, or (at your option) any later version. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * You should have received a copy of the GNU General Public License - * along with this program. If not, see ;. - * - * @package OpenEMR - * @author Kevin Yeh - * @link http://www.open-emr.org - */ - -if(isset($_REQUEST['review_id'])) -{ - $encounter=$_REQUEST['review_id']; - -} -- 2.11.4.GIT