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 = "";
/** * 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']) {