update
[openemr.git] / interface / forms / CAMOS / report.php
blob8c2ccded7d55cdf2ef01729e69d44a92f66aed1d
1 <?php
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);
8 if ($data) {
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";
14 echo " | ";
15 echo "<a href='" . $GLOBALS['webroot'] .
16 "/interface/forms/CAMOS/rx_print.php?sigline=signed' target=_new>sig_rx</a>\n";
17 echo " | ";
18 echo "<a href='" . $GLOBALS['webroot'] .
19 "/interface/forms/CAMOS/rx_print.php?letterhead=true&signer=patient' target=_new>letterhead; patient signs</a>\n";
20 echo " | ";
21 echo "<a href='" . $GLOBALS['webroot'] .
22 "/interface/forms/CAMOS/rx_print.php?letterhead=true&signer=doctor' target=_new>letterhead; doctor signs</a>\n";
23 echo " | ";
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";
26 echo " | ";
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";
33 ?>