2 //------------report.php
3 include_once(dirname(__FILE__
).'/../../globals.php');
4 include_once("../../../library/api.inc");
5 include_once("content_parser.php");
6 function CAMOS_report($pid, $encounter, $cols, $id)
8 $data = formFetch("form_CAMOS", $id);
10 //echo "(category) ".stripslashes($data['category'])." | ";
11 //echo "(subcategory) ".stripslashes($data['subcategory'])." | ";
12 //echo "(item) ".stripslashes($data['item']);
13 echo "<div class='navigateLink'><a href='" . $GLOBALS['webroot'] .
14 "/interface/forms/CAMOS/rx_print.php?sigline=embossed' target=_new>" . xl('Rx') . "</a>\n";
16 echo "<a href='" . $GLOBALS['webroot'] .
17 "/interface/forms/CAMOS/rx_print.php?sigline=signed' target=_new>" . xl('Signed Rx') . "</a>\n";
19 echo "<a href='" . $GLOBALS['webroot'] .
20 "/interface/forms/CAMOS/rx_print.php?letterhead=true&signer=patient' target=_new>" . xl('Letterhead that patient signs') . "</a>\n";
22 echo "<a href='" . $GLOBALS['webroot'] .
23 "/interface/forms/CAMOS/rx_print.php?letterhead=true&signer=doctor' target=_new>" . xl('Letterhead that doctor signs') . "</a>\n";
25 echo "<a href='" . $GLOBALS['webroot'] .
26 "/interface/forms/CAMOS/notegen.php?pid=".$pid."&encounter=".$encounter."' target=_new>" . xl('Print This Encounter') . "</a>\n";
28 echo "<a href='" . $GLOBALS['webroot'] .
29 "/interface/forms/CAMOS/notegen.php' target=_new>" . xl('Print Any Encounter') . "</a></div>\n";
30 // echo "<pre>".wordwrap(stripslashes(content_parser($data['content'])))."</pre><hr>\n";
31 echo "<pre>".wordwrap(stripslashes(replace($pid, $encounter, $data['content'])))."</pre><hr>\n";