diff --git a/interface/super/rules/controllers/browse/controller.php b/interface/super/rules/controllers/browse/controller.php index a857e2838eb..b4e43a7354c 100644 --- a/interface/super/rules/controllers/browse/controller.php +++ b/interface/super/rules/controllers/browse/controller.php @@ -19,17 +19,10 @@ function _action_list() { function _action_getrows() { $rows = array(); - $rules = resolve_rules_sql(); + $rules = resolve_rules_sql('','0',TRUE); foreach( $rules as $rowRule ) { - $titleResult = sqlFetchArray( sqlStatement( - "SELECT title FROM list_options WHERE option_id = ?", array( $rowRule['id'] ) ) ); - $title = $titleResult['title']; - $type = $rowRule['patient_reminder_flag'] == 1 ? "Reminder" : "CQM/AMC"; - - if ( $rowRule['cqm_flag'] == 1 || $rowRule['amc_flag'] == 1 ) { - // for now, only - continue; - } + $title = getLabel($rowRule['id'],'clinical_rules'); + $type = "Reminder"; $row = array( "title" => $title, diff --git a/interface/super/rules/library/CdrAlertManager.class.php b/interface/super/rules/library/CdrAlertManager.class.php index d83996f27c3..6e088dc4165 100644 --- a/interface/super/rules/library/CdrAlertManager.class.php +++ b/interface/super/rules/library/CdrAlertManager.class.php @@ -37,7 +37,7 @@ function CdrActivationManager ($id = "", $prefix = "") { function populate() { $cdra = array(); - $rules = resolve_rules_sql(NULL, 0, TRUE); + $rules = resolve_rules_sql('', 0, TRUE); foreach( $rules as $rowRule ) { $rule_id = $rowRule['id']; diff --git a/library/clinical_rules.php b/library/clinical_rules.php index fe590045f9b..81f908ea6d8 100644 --- a/library/clinical_rules.php +++ b/library/clinical_rules.php @@ -837,14 +837,8 @@ function resolve_rules_sql($type='',$patient_id='0',$configurableOnly=FALSE,$pla } } else { - if ($goRule['active_alert_flag'] == 1 || - $goRule['passive_alert_flag'] == 1 || - $goRule['cqm_flag'] == 1 || - $goRule['amc_flag'] == 1 || - $goRule['patient_reminder_flag'] == 1) { - // active, so use the rule - array_push($newReturnArray,$goRule); - } + // no filter, so return the rule + array_push($newReturnArray,$goRule); } } $returnArray = $newReturnArray;