Example #1
0
if ($patient->getName() == '') {
    FlashMsg::add(_("That patient does not exist."), OPEN_MSG_ERROR);
    header("Location: ../medical/patient_search_form.php");
    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;
}
/**
 * Show page
 */
$title = _("View Medical Tests");
$titlePage = $patient->getName() . ' [' . $problem->getWordingPreview() . '] (' . $title . ')';
require_once "../layout/header.php";
/**
 * Breadcrumb
 */
$links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", _("Medical Problems Report") => "../medical/problem_list.php", $problem->getWordingPreview() => "../medical/problem_view.php", $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo $patient->getHeader();
echo $problem->getHeader();
if ($_SESSION['auth']['is_administrative']) {
    echo HTML::para(HTML::link(_("Add New Medical Test"), '../medical/test_new_form.php', array('id_problem' => $idProblem, 'id_patient' => $idPatient)));
    echo HTML::rule();
}
$testQ = new Query_Test();
if (!$testQ->select($idProblem)) {
Example #2
0
    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 = "";
if ($_SESSION['auth']['is_administrative']) {
    if ($problem->getClosingDate() == "" || $problem->getClosingDate() == '0000-00-00') {
        $relatedLinks .= HTML::link(_("Edit Medical Problem Data"), '../medical/problem_edit_form.php', array('id_problem' => $idProblem, 'id_patient' => $idPatient));
        $relatedLinks .= ' | ';
Example #3
0
    $formVar["last_update_date"] = $problem->getLastUpdateDate();
    $formVar["id_member"] = $problem->getIdMember();
    $formVar["closed_problem"] = $problem->getClosingDate() != "" && $problem->getClosingDate() != "0000-00-00" ? "checked" : "";
    $formVar["meeting_place"] = $problem->getMeetingPlace();
    $formVar["wording"] = $problem->getWording();
    $formVar["subjective"] = $problem->getSubjective();
    $formVar["objective"] = $problem->getObjective();
    $formVar["appreciation"] = $problem->getAppreciation();
    $formVar["action_plan"] = $problem->getActionPlan();
    $formVar["prescription"] = $problem->getPrescription();
}
/**
 * Show page
 */
$title = _("Editar Atendimento");
$titlePage = $patient->getName() . ' [' . $problem->getWordingPreview() . '] (' . $title . ')';
$focusFormField = "wording";
// to avoid JavaScript mistakes in demo version
require_once "../layout/header.php";
//$returnLocation = "../medical/problem_view.php?id_problem=" . $idProblem . "&id_patient=" . $idPatient;
$returnLocation = "../medical/problem_view.php";
/**
 * Breadcrumb
 */
$links = array(_("Registro do Atendimento") => "../medical/index.php", $patient->getName() => "../medical/problem_view.php", _("Outras informações") => "../medical/problem_list.php", $problem->getWordingPreview() => $returnLocation, $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo $patient->getHeader();
echo Form::errorMsg();
/**
 * Edit form
require_once "../layout/header.php";
//$returnLocation = "../medical/connection_list.php?id_problem=" . $idProblem . "&id_patient=" . $idPatient; // controlling var
$returnLocation = "../medical/connection_list.php";
// controlling var
/**
 * Breadcrumb
 */
$links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", _("Medical Problems Report") => "../medical/problem_list.php", $problem->getWordingPreview() => "../medical/problem_view.php", _("View Connection Problems") => $returnLocation, $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo $patient->getHeader();
echo $problem->getHeader();
/**
 * Form
 */
echo HTML::start('form', array('method' => 'post', 'action' => '../medical/connection_del.php'));
$tbody = array();
$problem = new Problem($idConnection);
$wording = $problem->getWordingPreview();
$tbody[] = Msg::warning(sprintf(_("Are you sure you want to delete connection, %s, from list?"), $wording));
$row = Form::hidden("id_problem", $idProblem);
$row .= Form::hidden("id_connection", $idConnection);
$row .= Form::hidden("id_patient", $idPatient);
$row .= Form::hidden("wording", $wording);
$tbody[] = $row;
$tfoot = array(Form::button("delete", _("Delete")) . Form::generateToken());
$options = array('class' => 'center');
echo Form::fieldset($title, $tbody, $tfoot, $options);
echo HTML::end('form');
echo HTML::para(HTML::link(_("Return"), $returnLocation));
require_once "../layout/footer.php";