Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CDR Module: Added CDR global options and secured the patient summary …

…widgets with an acl.

 -CDR global options can be found at Adminsitraiton->Globals->CDR tab.
 -Both the Clinical Reminder and Patient Reminder widgets in the
   patient summary screen are protected by the patients->med aco.
  • Loading branch information...
commit 7073a1d466db20860106f3f8890b4e9d396498d9 1 parent 98df8c9
@bradymiller bradymiller authored
View
6 interface/main/left_nav.php
@@ -1112,9 +1112,9 @@ function selpopup(selobj) {
<?php if (acl_check('admin', 'acl' )) genMiscLink('RTop','adm','0',xl('ACL'),'usergroup/adminacl.php'); ?>
<?php if (acl_check('admin', 'super' )) genMiscLink('RTop','adm','0',xl('Files'),'super/manage_site_files.php'); ?>
<?php if (acl_check('admin', 'super' )) genMiscLink('RTop','adm','0',xl('Backup'),'main/backup.php'); ?>
- <?php if (acl_check('admin', 'super' )) genMiscLink('RTop','adm','0',xl('Rules'),'super/rules/index.php?action=browse!list'); ?>
- <?php if (acl_check('admin', 'super' )) genMiscLink('RTop','adm','0',xl('Alerts'),'super/rules/index.php?action=alerts!listactmgr'); ?>
- <?php if (acl_check('admin', 'super' )) genMiscLink('RTop','adm','0',xl('Patient Reminders'),'patient_file/reminder/patient_reminders.php?mode=admin&patient_id='); ?>
+ <?php if (acl_check('admin', 'super' ) && $GLOBALS['enable_cdr']) genMiscLink('RTop','adm','0',xl('Rules'),'super/rules/index.php?action=browse!list'); ?>
+ <?php if (acl_check('admin', 'super' ) && $GLOBALS['enable_cdr']) genMiscLink('RTop','adm','0',xl('Alerts'),'super/rules/index.php?action=alerts!listactmgr'); ?>
+ <?php if (acl_check('admin', 'super' ) && $GLOBALS['enable_cdr']) genMiscLink('RTop','adm','0',xl('Patient Reminders'),'patient_file/reminder/patient_reminders.php?mode=admin&patient_id='); ?>
<?php if ( ($GLOBALS['include_de_identification']) && (acl_check('admin', 'super' )) ) genMiscLink('RTop','adm','0',xl('De Identification'),'de_identification_forms/de_identification_screen1.php'); ?>
<?php if ( ($GLOBALS['include_de_identification']) && (acl_check('admin', 'super' )) ) genMiscLink('RTop','adm','0',xl('Re Identification'),'de_identification_forms/re_identification_input_screen.php'); ?>
<?php if (acl_check('admin', 'super') && !empty($GLOBALS['code_types']['IPPF'])) genMiscLink('RTop','adm','0',xl('Export'),'main/ippf_export.php'); ?>
View
70 interface/patient_file/summary/demographics.php
@@ -239,20 +239,26 @@ function toggleIndicator(target,div) {
});
$("#pnotes_ps_expand").load("pnotes_fragment.php");
$("#disclosures_ps_expand").load("disc_fragment.php");
- $("#clinical_reminders_ps_expand").load("clinical_reminders_fragment.php", { 'embeddedScreen' : true }, function() {
- // (note need to place javascript code here also to get the dynamic link to work)
- $(".medium_modal").fancybox( {
- 'overlayOpacity' : 0.0,
- 'showCloseButton' : true,
- 'frameHeight' : 500,
- 'frameWidth' : 800,
- 'centerOnScroll' : false,
- 'callbackOnClose' : function() {
- refreshme();
- }
- });
- });
- $("#patient_reminders_ps_expand").load("patient_reminders_fragment.php");
+
+ <?php if ($GLOBALS['enable_cdr'] && $GLOBALS['enable_cdr_crw']) { ?>
+ $("#clinical_reminders_ps_expand").load("clinical_reminders_fragment.php", { 'embeddedScreen' : true }, function() {
+ // (note need to place javascript code here also to get the dynamic link to work)
+ $(".medium_modal").fancybox( {
+ 'overlayOpacity' : 0.0,
+ 'showCloseButton' : true,
+ 'frameHeight' : 500,
+ 'frameWidth' : 800,
+ 'centerOnScroll' : false,
+ 'callbackOnClose' : function() {
+ refreshme();
+ }
+ });
+ });
+ <?php } // end crw?>
+
+ <?php if ($GLOBALS['enable_cdr'] && $GLOBALS['enable_cdr_prw']) { ?>
+ $("#patient_reminders_ps_expand").load("patient_reminders_fragment.php");
+ <?php } // end prw?>
<?php if ($vitals_is_registered) { ?>
// Initialize the Vitals form if it is registered.
@@ -686,9 +692,9 @@ function toggleIndicator(target,div) {
</div>
</td>
</tr>
- <tr>
- <td width='650px'>
- <?php // patient reminders collapse widget
+ <?php if ( (acl_check('patients', 'med')) && ($GLOBALS['enable_cdr'] && $GLOBALS['enable_cdr_prw']) ) {
+ echo "<tr><td width='650px'>";
+ // patient reminders collapse widget
$widgetTitle = xl("Patient Reminders");
$widgetLabel = "patient_reminders";
$widgetButtonLabel = xl("Edit");
@@ -703,7 +709,9 @@ function toggleIndicator(target,div) {
<div style='margin-left:10px' class='text'><image src='../../pic/ajax-loader.gif'/></div><br/>
</div>
</td>
- </tr>
+ </tr>
+ <?php } //end if prw is activated ?>
+
<tr>
<td width='650px'>
<?php
@@ -988,20 +996,22 @@ function toggleIndicator(target,div) {
"ORDER BY e.pc_eventDate, e.pc_startTime";
$res = sqlStatement($query, array($pid) );
- // clinical summary expand collapse widget
- $widgetTitle = xl("Clinical Reminders");
- $widgetLabel = "clinical_reminders";
- $widgetButtonLabel = xl("Edit");
- $widgetButtonLink = "../reminder/clinical_reminders.php?patient_id=".$pid;;
- $widgetButtonClass = "";
- $linkMethod = "html";
- $bodyClass = "summary_item small";
- $widgetAuth = true;
- $fixedWidth = false;
- expand_collapse_widget($widgetTitle, $widgetLabel, $widgetButtonLabel , $widgetButtonLink, $widgetButtonClass, $linkMethod, $bodyClass, $widgetAuth, $fixedWidth);
+ if ( (acl_check('patients', 'med')) && ($GLOBALS['enable_cdr'] && $GLOBALS['enable_cdr_crw']) ) {
+ // clinical summary expand collapse widget
+ $widgetTitle = xl("Clinical Reminders");
+ $widgetLabel = "clinical_reminders";
+ $widgetButtonLabel = xl("Edit");
+ $widgetButtonLink = "../reminder/clinical_reminders.php?patient_id=".$pid;;
+ $widgetButtonClass = "";
+ $linkMethod = "html";
+ $bodyClass = "summary_item small";
+ $widgetAuth = true;
+ $fixedWidth = false;
+ expand_collapse_widget($widgetTitle, $widgetLabel, $widgetButtonLabel , $widgetButtonLink, $widgetButtonClass, $linkMethod, $bodyClass, $widgetAuth, $fixedWidth);
echo "<br/>";
echo "<div style='margin-left:10px' class='text'><image src='../../pic/ajax-loader.gif'/></div><br/>";
- echo "</div>";
+ echo "</div>";
+ } // end if crw
// appointments expand collapse widget
$widgetTitle = xl("Appointments");
View
30 library/globals.inc.php
@@ -797,10 +797,30 @@
),
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- // PQRI Tab
+ // CDR (Clinical Decision Rules)
//
- 'PQRI Registry' => array(
+ 'CDR' => array(
+
+ 'enable_cdr' => array(
+ xl('Enable Clinical Decisions Rules (CDR)'),
+ 'bool', // data type
+ '1', // default
+ xl('Enable Clinical Decisions Rules (CDR)')
+ ),
+
+ 'enable_cdr_crw' => array(
+ xl('Enable Clinical Reminder Widget'),
+ 'bool', // data type
+ '1', // default
+ xl('Enable Clinical Reminder Widget')
+ ),
+
+ 'enable_cdr_prw' => array(
+ xl('Enable Patient Reminder Widget'),
+ 'bool', // data type
+ '1', // default
+ xl('Enable Patient Reminder Widget')
+ ),
'pqri_registry_name' => array(
xl('PQRI Registry Name'),
@@ -808,17 +828,15 @@
'Model Registry', // default
xl('PQRI Registry Name')
),
-
+
'pqri_registry_id' => array(
xl('PQRI Registry ID'),
'text', // data type
'125789123', // default
xl('PQRI Registry ID')
),
-
),
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Logging
//
Please sign in to comment.
Something went wrong with that request. Please try again.