margin: 9pt;
 font-family: sans-serif; 
 font-size: 1em;
}
</style>

<script type="text/javascript" src="../../library/topdialog.js"></script>
<script language="JavaScript">
<?php require($GLOBALS['srcdir'] . "/restoreSession.php"); ?>
</script>

</head>
<body>
<?php
if (empty($_POST['form_sign_list'])) {
  generate_order_report($orderid, true, true, $finals_only);
}
else {
?>
<script language='JavaScript'>
 if (opener.document.forms && opener.document.forms[0]) {
  // Opener should be list_reports.php. Make it refresh.
  var f = opener.document.forms[0];
  if (f.form_external_refresh) {
   f.form_external_refresh.value = '1';
   f.submit();
  }
 }
 window.close();
</script>
<?php
Example #2
0
function procedure_order_report($pid, $encounter, $cols, $id)
{
    generate_order_report($id);
}
Example #3
0
         }
         // end if-else
     }
     // end Documents loop
     echo "</div>";
 } else {
     if ($key == "procedures") {
         if ($auth_med) {
             echo "<hr />";
             echo "<div class='text documents'>";
             foreach ($val as $valkey => $poid) {
                 echo "<h1>" . xlt('Procedure Order') . ":</h1>";
                 echo "<br />\n";
                 // Need to move the inline styles from this function to the stylesheet, but until
                 // then we do it just for PDFs to avoid breaking anything.
                 generate_order_report($poid, false, !$PDF_OUTPUT);
                 echo "<br />\n";
             }
             echo "</div>";
         }
     } else {
         if (strpos($key, "issue_") === 0) {
             // display patient Issues
             if ($first_issue) {
                 $prevIssueType = 'asdf1234!@#$';
                 // random junk so as to not match anything
                 $first_issue = 0;
                 echo "<hr />";
                 echo "<h1>" . xl("Issues") . "</h1>";
             }
             preg_match('/^(.*)_(\\d+)$/', $key, $res);
    }
}
?>
<html>
<head>
<?php 
html_header_show();
?>
<link rel="stylesheet" href='<?php 
echo $css_header;
?>
' type='text/css'>
<title><?php 
echo xlt('Order Results');
?>
</title>
<style>
body {
 margin: 9pt;
 font-family: sans-serif; 
 font-size: 1em;
}
</style>
</head>
<body>
<?php 
generate_order_report($orderid, true);
?>
</body>
</html>