Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add print button and put patient's details at top of visit history page #7270 #7359

Merged
merged 7 commits into from
Apr 22, 2024
Merged
Prev Previous commit
Next Next commit
fix styling errors in PR
  • Loading branch information
ruthkonyn committed Apr 16, 2024
commit 5f969a0c0bc39e5b3f00db09069c8e4aeb421e87
10 changes: 2 additions & 8 deletions interface/patient_file/history/encounters.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ function changePageSize() {
$external_id = getPatientData($pid, "pubpid")['pubpid'];
echo $name . " (" . $external_id . ")" . "    DOB: " . $dob ;
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

need escaping:

echo text($name ). " (" . text($external_id) . ")" .  "     DOB: " . $dob ;


?>
?>
</span>

<div class="table-responsive">
Expand Down Expand Up @@ -390,7 +390,6 @@ function changePageSize() {
}

$numRes = 0;
(new SystemLogger())->debug("size, start, numRes", array( $pagesize, $pagestart, $numRes));

$sqlBindArray = array();
if ($attendant_type == 'pid') {
Expand Down Expand Up @@ -482,11 +481,7 @@ function changePageSize() {

// This generates document lines as appropriate for the date order.
while ($drow && $raw_encounter_date && $drow['docdate'] > $raw_encounter_date) {

(new SystemLogger())->debug(" generate: size, start, numRes", array( $pagesize, $pagestart, $numRes));

showDocument($drow);

showDocument($drow);
$drow = sqlFetchArray($dres);
}

Expand Down Expand Up @@ -840,7 +835,6 @@ function changePageSize() {

// Dump remaining document lines if count not exceeded.
while ($drow ) {

showDocument($drow);
$drow = sqlFetchArray($dres);
}
Expand Down
Loading