2 include_once("../../globals.php");
3 include_once("$srcdir/forms.inc");
4 include_once("$srcdir/encounter.inc");
5 include_once("$srcdir/patient.inc");
10 <?php
html_header_show();?
>
12 <link rel
="stylesheet" href
="<?php echo $css_header;?>" type
="text/css">
15 <body
class="body_title">
18 $result = getPatientData($pid, "fname,lname,pid,pubpid,phone_home,pharmacy_id,DOB,DATE_FORMAT(DOB,'%Y%m%d') as DOB_YMD");
19 $provider_results = sqlQuery("select * from users where username='" . $_SESSION{"authUser"} . "'");
20 $age = getPatientAge($result["DOB_YMD"]);
22 $info = 'ID: ' . $result['pubpid'];
23 if ($result['DOB']) $info .= ', DOB: ' . $result['DOB'] . ', Age: ' . $age;
24 if ($result['phone_home']) $info .= ', Home: ' . $result['phone_home'];
26 if ($result['pharmacy_id']) {
27 $pharmacy = new Pharmacy($result['pharmacy_id']);
28 if ($pharmacy->get_phone()) $info .= ', Pharm: ' . $pharmacy->get_phone();
31 if (!empty($_GET["set_encounter"])) {
32 setencounter($_GET["set_encounter"]);
35 if(!empty($encounter)){
36 $subresult = getEncounterDateByEncounter($encounter);
37 $encounter_date = dateformat(strtotime($subresult['date']));
39 $encounter_date = dateformat(); //otherwise, set today's date
43 <table border
="0" cellpadding
="0" cellspacing
="0" width
="100%" height
="100%">
45 <td width
="33%" valign
="middle" nowrap
>
47 <span
class="title_bar_top"><?php
echo $result{"fname"} . " " . $result{"lname"};?
></span
>
49 <span style
="font-size:8pt;">(<?php
echo $info; ?
>)</span
>
51 <td width
="33%" align
="center" valign
="middle" nowrap
>
52 <span
class="title"><?php
echo xl('Logged in as') . ': ' . $provider_results{"fname"} . ' ' . $provider_results{"lname"}; ?
></span
>
54 <td width
="33%" align
="right" valign
="middle" nowrap
>
55 <span
class="title_bar_top"><?php
xl('Encounter','e', '', ' '); echo $encounter_date; ?
> </span
>