Skip to content

Commit

Permalink
minor adjustments (#4906)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymiller committed Feb 13, 2022
1 parent 4cec753 commit ac97285
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interface/reports/encounters_report.php
Expand Up @@ -196,6 +196,7 @@ function refreshme() {

// Called to switch to the specified encounter having the specified DOS.
function toEncounter(newpid, enc) {
top.restoreSession();
top.RTop.location = "<?php echo $GLOBALS['webroot']; ?>/interface/patient_file/summary/demographics.php?set_pid=" + encodeURIComponent(newpid) + "&set_encounterid=" + encodeURIComponent(enc);
}

Expand Down Expand Up @@ -484,7 +485,7 @@ function toEncounter(newpid, enc) {
</td>
<td>
<?php echo "<input type='button' class='btn btn-sm btn-secondary' value='" .
text($row['encounter']) . "-" . text($row['pid']) .
attr($row['encounter']) . "-" . attr($row['pid']) .
"' onClick='toEncounter(" . attr_js($row['pid']) . ", " . attr_js($row['encounter']) .
"); ' />" ?> &nbsp;
</td>
Expand Down

1 comment on commit ac97285

@stephenwaite
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh jeez, thank you
oscar

Please sign in to comment.