示例#1
0
    $problemQ = new Query_Page_Problem();
    /**
     * Record log process (before deleting process)
     */
    $recordQ = new Query_Page_Record();
    for ($i = 0; $i < $numRows; $i++) {
        $recordQ->log("Query_Page_Problem", "DELETE", array($array[$i]->getIdProblem()));
    }
    $recordQ->close();
    unset($recordQ);
    for ($i = 0; $i < $numRows; $i++) {
        $problemQ->delete($array[$i]->getIdProblem());
    }
    $problemQ->close();
    unset($problemQ);
    unset($array);
}
/**
 * Update session variables
 */
require_once "../lib/LastViewedPatient.php";
LastViewedPatient::delete($idPatient);
/**
 * Reset abort setting
 */
ignore_user_abort($oldAbort);
/**
 * Redirect to $returnLocation to avoid reload problem
 */
FlashMsg::add(sprintf(_("Patient, %s, has been deleted."), $patName));
header("Location: " . $returnLocation);
示例#2
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);
示例#3
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
示例#4
0
    exit;
}
$problem = new Problem($idProblem);
if (!$problem) {
    FlashMsg::add(_("That medical problem does not exist."), OPEN_MSG_ERROR);
    header("Location: ../medical/patient_search_form.php");
    exit;
}
if ($problem->getClosingDate() != "" && $problem->getClosingDate() != '0000-00-00') {
    $nav = "history";
}
/**
 * Update session variables
 */
require_once "../lib/LastViewedPatient.php";
LastViewedPatient::add($idPatient, $patient->getName());
/**
 * Show page
 */
$title = $problem->getWordingPreview();
//_("View Medical Problem");
$titlePage = $patient->getName() . ' [' . $title . ']';
require_once "../layout/header.php";
/**
 * Breadcrumb
 */
$links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", $nav == "problems" ? _("Medical Problems Report") : _("Clinic History") => $nav == "problems" ? "../medical/problem_list.php" : "../medical/history_list.php", $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo $patient->getHeader();
$relatedLinks = "";
示例#5
0
/**
 * Retrieving var (PGS)
 */
$idPatient = Check::postGetSessionInt('id_patient');
$patient = new Patient($idPatient);
$patName = $patient->getName();
if ($patName == '') {
    FlashMsg::add(_("That patient does not exist."), OPEN_MSG_ERROR);
    header("Location: ../medical/patient_search_form.php");
    exit;
}
/**
 * Update session variables
 */
require_once "../lib/LastViewedPatient.php";
LastViewedPatient::add($patient->getIdPatient(), $patName);
/**
 * Show page
 */
$title = $patName;
//_("Social Data");
require_once "../layout/header.php";
/**
 * Breadcrumb
 */
$links = array(_("Medical Records") => "../medical/index.php", $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo HTML::section(2, _("Dados Sociais"));
$relatedLinks = "";
if ($_SESSION['auth']['is_administrative']) {