Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
bradymiller committed Apr 17, 2011
1 parent 98df8c9 commit 7073a1d
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 39 deletions.
6 changes: 3 additions & 3 deletions interface/main/left_nav.php
Expand Up @@ -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'); ?>
Expand Down
70 changes: 40 additions & 30 deletions interface/patient_file/summary/demographics.php
Expand Up @@ -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.
Expand Down Expand Up @@ -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");
Expand All @@ -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
Expand Down Expand Up @@ -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");
Expand Down
30 changes: 24 additions & 6 deletions library/globals.inc.php
Expand Up @@ -797,28 +797,46 @@

),

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 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'),
'text', // data type
'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
//
Expand Down

0 comments on commit 7073a1d

Please sign in to comment.