2 //------------report.php
3 include_once("../../globals.php");
4 include_once("../../../library/api.inc");
5 include_once("content_parser.php");
6 function CAMOS_report( $pid, $encounter, $cols, $id) {
7 $data = formFetch("form_CAMOS", $id);
9 //echo "(category) ".stripslashes($data['category'])." | ";
10 //echo "(subcategory) ".stripslashes($data['subcategory'])." | ";
11 //echo "(item) ".stripslashes($data['item']);
12 echo "<a href='" . $GLOBALS['webroot'] .
13 "/interface/forms/CAMOS/rx_print.php?sigline=embossed' target=_new>rx</a>\n";
15 echo "<a href='" . $GLOBALS['webroot'] .
16 "/interface/forms/CAMOS/rx_print.php?sigline=signed' target=_new>sig_rx</a>\n";
18 echo "<a href='" . $GLOBALS['webroot'] .
19 "/interface/forms/CAMOS/rx_print.php?letterhead=true&signer=patient' target=_new>letterhead; patient signs</a>\n";
21 echo "<a href='" . $GLOBALS['webroot'] .
22 "/interface/forms/CAMOS/rx_print.php?letterhead=true&signer=doctor' target=_new>letterhead; doctor signs</a>\n";
24 echo "<a href='" . $GLOBALS['webroot'] .
25 "/interface/forms/CAMOS/notegen.php?pid=".$GLOBALS['pid']."&encounter=".$GLOBALS['encounter']."' target=_new>Print This Encounter</a>\n";
27 echo "<a href='" . $GLOBALS['webroot'] .
28 "/interface/forms/CAMOS/notegen.php' target=_new>Print Any Encounter</a>\n";
29 // echo "<pre>".wordwrap(stripslashes(content_parser($data['content'])))."</pre><hr>\n";
30 echo "<pre>".wordwrap(stripslashes(replace($GLOBALS['pid'],$GLOBALS['encounter'],$data['content'])))."</pre><hr>\n";