Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CDR Module: Administration screen that allows quick
toggling of rules. -Can be found at Administration->Alerts
- Loading branch information
1 parent
ba98c68
commit ac14c01
Showing
6 changed files
with
145 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
153 changes: 0 additions & 153 deletions
153
interface/super/rules/controllers/alerts/model/CdrHelper.class.php
This file was deleted.
Oops, something went wrong.
42 changes: 27 additions & 15 deletions
42
...er/rules/controllers/alerts/view/list.php → ...s/controllers/alerts/view/list_actmgr.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,56 @@ | ||
<form name="cdralertmgr" method="post" action="index.php?action=alerts!submit" > | ||
<table class="header"> | ||
<tr> | ||
<td class="title"><?php echo out( xl('Clinical Decision Rules Alert Manager') ); ?></td> | ||
|
||
</tr> | ||
<tr> | ||
<td> | ||
<a href="javascript:document.cdralertmgr.submit();" class="css_button"><span><?php echo out( xl('Save') ); ?></span></a><a href="javascript:document.cdralertmgr.reset();" class="css_button" ><span><?php echo out( xl('Reset') ); ?></span></a> | ||
</td> | ||
</tr> | ||
</table> | ||
|
||
| ||
|
||
<form name="cdralertmgr" method="post" action="index.php?action=alerts!submitactmgr" > | ||
<table cellpadding="1" cellspacing="0" class="showborder"> | ||
<tr class="showborder_head"> | ||
<th width="250px"><?php echo out( xl( 'Title' ) ); ?></th> | ||
<th width="250px"><?php echo out( xl('Title') ); ?></th> | ||
<th width="40px"> </th> | ||
<th width="10px"><?php echo out( xl( 'Active' ) );?></th> | ||
<th width="10px"><?php echo out( xl('Active Alert') ); ?></th> | ||
<th width="40px"> </th> | ||
<th width="10px"><?php echo out( xl( 'Passive' ) );?></th> | ||
<th width="10px"><?php echo out( xl('Passive Alert') ); ?></th> | ||
<th width="40px"> </th> | ||
<th width="10px"><?php echo out( xl( 'Reminders' ) );?></th> | ||
<th width="10px"><?php echo out( xl('Patient Reminder') ); ?></th> | ||
<th></th> | ||
</tr> | ||
<?php $index = -1; ?> | ||
<?php foreach($viewBean->rules as $rule) {?> | ||
<?php $index++; ?> | ||
<tr height="22"> | ||
<td><?php echo out( xl( $rule->get_rule() ) );?></td> | ||
<td><?php echo out( xl($rule->get_rule()) );?></td> | ||
<td> </td> | ||
<?php if ($rule->active_alert_flag() == "1"){ ?> | ||
<td><input type="checkbox" name="active[<?php echo($index)?>]" checked="yes"></td> | ||
<td><input type="checkbox" name="active[<?php echo $index ?>]" checked="yes"></td> | ||
<?php }else {?> | ||
<td><input type="checkbox" name="active[<?php echo($index)?>]" ></td> | ||
<td><input type="checkbox" name="active[<?php echo $index ?>]" ></td> | ||
<?php } ?> | ||
<td> </td> | ||
<?php if ($rule->passive_alert_flag() == "1"){ ?> | ||
<td><input type="checkbox" name="passive[<?php echo($index)?>]]" checked="yes"></td> | ||
<td><input type="checkbox" name="passive[<?php echo $index ?>]]" checked="yes"></td> | ||
<?php }else {?> | ||
<td><input type="checkbox" name="passive[<?php echo($index)?>]]"></td> | ||
<td><input type="checkbox" name="passive[<?php echo $index ?>]]"></td> | ||
<?php } ?> | ||
<td> </td> | ||
<?php if ($rule->patient_reminder_flag() == "1"){ ?> | ||
<td><input type="checkbox" name="reminder[<?php echo($index)?>]]" checked="yes"></td> | ||
<td><input type="checkbox" name="reminder[<?php echo $index ?>]]" checked="yes"></td> | ||
<?php }else {?> | ||
<td><input type="checkbox" name="reminder[<?php echo($index)?>]]"></td> | ||
<td><input type="checkbox" name="reminder[<?php echo $index ?>]]"></td> | ||
<?php } ?> | ||
<td><input style="display:none" name="id[<?php echo($index)?>]]" value=<?php echo out( $rule->get_id() ); ?> /></td> | ||
<td><input style="display:none" name="id[<?php echo $index ?>]]" value=<?php echo out($rule->get_id()); ?> /></td> | ||
</tr> | ||
<?php }?> | ||
</table> | ||
<br> | ||
<a href="javascript:document.cdralertmgr.submit();" class="css_button"><span><?php echo out( xl( 'Save' ) ); ?></span></a><a href="javascript:document.cdralertmgr.reset();" class="css_button" ><span><?php echo out( xl( 'Cancel' ) ); ?></span></a> | ||
</form> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.