Ejemplo n.º 1
0
 * @version   CVS: $Id: medical.php,v 1.29 2013/01/13 16:28:24 jact Exp $
 * @author    jact <*****@*****.**>
 */
require_once dirname(__FILE__) . "/../lib/exe_protect.php";
executionProtection(__FILE__);
require_once "../lib/LastViewedPatient.php";
require_once "../layout/component.php";
$array = null;
$array[] = HTML::link(_("Summary"), '../medical/index.php', null, $nav == 'summary' ? array('class' => 'selected') : null);
$array[] = HTML::link(_("Search Patient"), '../medical/patient_search_form.php', null, $nav == 'searchform' || $nav == 'search' ? array('class' => 'selected') : null);
if ($nav == 'search') {
    //$array[] = array(HTML::link(_("Search Results"), '../medical/???.php', null, array('class' => 'selected')));
    $array[] = array(HTML::tag('span', _("Search Results"), array('class' => 'selected')));
}
if (defined("OPEN_DEMO") && !OPEN_DEMO) {
    $_viewedPatients = LastViewedPatient::get();
    if ($_viewedPatients) {
        foreach ($_viewedPatients as $arrKey => $arrValue) {
            if (isset($idPatient) && $arrKey == $idPatient) {
                $array[] = HTML::link(HTML::tag('em', $arrValue), '../medical/patient_view.php', array('id_patient' => $arrKey), array('class' => 'selected'));
                if ($nav == "social" || $nav == "relatives" || $nav == "history" || $nav == "problems" || $nav == "print") {
                    $array[] = patientLinks($idPatient, $nav);
                }
            } else {
                $array[] = HTML::link(HTML::tag('em', $arrValue), '../medical/patient_view.php', array('id_patient' => $arrKey));
            }
        }
    }
} else {
    if ($nav == "relatives" || $nav == "history" || $nav == "problems" || $nav == "print") {
        $array[] = patientLinks($idPatient, $nav);
Ejemplo n.º 2
0
 */
require_once "../auth/login_check.php";
loginCheck(OPEN_PROFILE_DOCTOR);
require_once "../lib/LastViewedPatient.php";
/**
 * Show page
 */
$title = _("Medical Records");
require_once "../layout/header.php";
echo HTML::section(1, $title, array('class' => 'icon icon_medical'));
echo HTML::para(_("Use the following functions located in the left hand navigation area to manage your medical records."));
echo HTML::section(2, HTML::link(_("Search Patient"), '../medical/patient_search_form.php'), array('class' => 'icon icon_search'));
echo HTML::para(_("Search and view patients. Once a patient is selected you can:"));
$array = array(_("manage social data"), _("manage clinic history"), _("manage problems report"), _("print medical record"));
echo HTML::itemList($array);
$viewedPatient = LastViewedPatient::get();
if ($viewedPatient) {
    echo HTML::rule();
    echo HTML::section(2, _("Last Viewed Patients"), array('class' => 'icon icon_patient'));
    $array = array();
    foreach ($viewedPatient as $key => $value) {
        $array[] = HTML::link($value, '../medical/patient_view.php', array('id_patient' => $key));
    }
    echo HTML::itemList($array);
}
if ($_SESSION['auth']['is_administrative']) {
    echo HTML::rule();
    echo HTML::section(2, HTML::link(_("New Patient"), '../medical/patient_new_form.php'), array('class' => 'icon icon_patient'));
    echo HTML::para(_("Build a new patient information in medical records system."));
}
// end if