2 include_once("../../globals.php");
3 include_once("$srcdir/lists.inc");
4 include_once("$srcdir/acl.inc");
9 <link rel
=stylesheet href
="<?echo $css_header;?>" type
="text/css">
12 font
-family
: sans
-serif
;
13 text
-decoration
: none
;
20 <body
<?
echo $bottom_bg_line;?
> topmargin
='0' rightmargin
='0' leftmargin
='2'
21 bottommargin
='0' marginwidth
='2' marginheight
='0'>
24 $thisauth = acl_check('patients', 'med');
26 echo "<p>(Issues not authorized)</p>\n";
27 echo "</body>\n</html>\n";
33 <td width
="20%" valign
="top">
34 <a href
="stats_full.php?active=all" target
="Main"><font
class="title">Medical Problems
</font
><font
class=more
><?
echo $tmore;?
></font
></a
><br
>
36 if ($result = getListByType($pid, "medical_problem", "id,title,comments", 1, "all", 0)){
37 foreach ($result as $iter) {
38 echo "<a class=link target=Main href='stats_full.php?active=1'>" . $iter{"title"} . "</a><br>\n";
46 <td width
="20%" valign
="top">
47 <a href
="stats_full.php?active=all" target
="Main"><font
class="title">Medications
</font
><font
class=more
><?
echo $tmore;?
></font
></a
><br
>
49 if ($result = getListByType($pid, "medication", "id,title", 1, "all", 0)){
50 foreach ($result as $iter) {
51 echo "<a class=link target=Main href='stats_full.php?active=1'>" . $iter{"title"} . "</a><br>\n";
58 <td width
="20%" valign
="top">
59 <a href
="stats_full.php?active=all" target
="Main"><font
class="title">Allergies
</font
><font
class=more
><?
echo $tmore;?
></font
></a
><br
>
61 if ($result = getListByType($pid, "allergy", "id,title", 1, "all", 0)){
62 foreach ($result as $iter) {
63 echo "<a class=link target=Main href='stats_full.php?active=1'>" . $iter{"title"} . "</a><br>\n";
71 <td width
="20%" valign
="top">
72 <a href
="stats_full.php?active=all" target
="Main"><font
class="title">Surgeries
</font
><font
class=more
><?
echo $tmore;?
></font
></a
><br
>
74 if ($result = getListByType($pid, "surgery", "id,title,comments", 1, "all", 0)){
75 foreach ($result as $iter) {
76 echo "<a class=link target=Main href='stats_full.php?active=1'>" . $iter{"title"} . ": ".strterm($iter{"comments"},20)."</a><br>\n";
84 <td width
="20%" valign
="top">
85 <a href
="immunizations.php" target
="Main"><font
class="title">Immunizations
</font
><font
class=more
><?
echo $tmore;?
></font
></a
><br
>
86 <?
$sql = "select if(i1.administered_date
87 ,concat(i1.administered_date,' - ',i2.name)
88 ,substring(i1.note,1,20)
89 ) as immunization_data
91 left join immunization i2
92 on i1.immunization_id = i2.id
93 where i1.patient_id = $pid
94 order by administered_date desc";
96 $result = sqlStatement($sql);
98 while ($row=sqlFetchArray($result)){
99 echo "<a class=link target=Main href='immunizations.php'>" . $row{'immunization_data'} . "</a><br>\n";
105 <td width
="20%" valign
="top">
109 require_once("library/classes/Controller.class.php");
110 $c = new Controller();
111 echo '<font class="title">Prescriptions</font>';
112 echo $c->act(array("prescription" => "", "block" => "", "patient_id" => $pid));