當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Patient::getName方法代碼示例

本文整理匯總了PHP中Patient::getName方法的典型用法代碼示例。如果您正苦於以下問題:PHP Patient::getName方法的具體用法?PHP Patient::getName怎麽用?PHP Patient::getName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Patient的用法示例。


在下文中一共展示了Patient::getName方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Patient

 */
$tab = "medical";
$nav = "history";
/**
 * Checking permissions
 */
require_once "../auth/login_check.php";
loginCheck(OPEN_PROFILE_DOCTOR);
require_once "../model/Query/History.php";
require_once "../model/Patient.php";
/**
 * Retrieving var (PGS)
 */
$idPatient = Check::postGetSessionInt('id_patient');
$patient = new Patient($idPatient);
if ($patient->getName() == '') {
    FlashMsg::add(_("That patient does not exist."), OPEN_MSG_ERROR);
    header("Location: ../medical/patient_search_form.php");
    exit;
}
/**
 * Search database for problem
 */
$historyQ = new Query_History();
if (!$historyQ->selectPersonal($idPatient)) {
    $historyQ->close();
    FlashMsg::add(_("That patient does not exist."), OPEN_MSG_ERROR);
    header("Location: ../medical/patient_search_form.php");
    exit;
}
$history = $historyQ->fetch();
開發者ID:edubort,項目名稱:openclinic-1,代碼行數:31,代碼來源:history_personal_view.php

示例2: Patient

 */
$tab = "medical";
$nav = "history";
/**
 * Checking permissions
 */
require_once "../auth/login_check.php";
loginCheck(OPEN_PROFILE_ADMINISTRATIVE);
require_once "../model/Query/History.php";
require_once "../model/Patient.php";
/**
 * Retrieving var (PGS)
 */
$idPatient = Check::postGetSessionInt('id_patient');
$patient = new Patient($idPatient);
if ($patient->getName() == '') {
    FlashMsg::add(_("Beneficiário não cadastrado."), OPEN_MSG_ERROR);
    header("Location: ../medical/patient_search_form.php");
    exit;
}
/**
 * Search database
 */
$historyQ = new Query_History();
if (!$historyQ->selectPersonal($idPatient)) {
    $historyQ->close();
    FlashMsg::add(_("Beneficiário não cadastrado."), OPEN_MSG_ERROR);
    header("Location: ../medical/patient_search_form.php");
    exit;
}
$history = $historyQ->fetch();
開發者ID:edubort,項目名稱:openclinic,代碼行數:31,代碼來源:history_personal_edit_form.php

示例3: Patient

/**
 * Checking permissions
 */
require_once "../auth/login_check.php";
loginCheck(OPEN_PROFILE_DOCTOR, false);
// Not in DEMO to prevent users' malice
require_once "../model/Query/Test.php";
require_once "../model/Patient.php";
require_once "../model/Problem.php";
/**
 * Retrieving vars (PGS)
 */
$idProblem = Check::postGetSessionInt('id_problem');
$idPatient = Check::postGetSessionInt('id_patient');
$patient = new Patient($idPatient);
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 . ')';
開發者ID:edubort,項目名稱:openclinic-1,代碼行數:31,代碼來源:test_list.php

示例4: __autoload

<?php

function __autoload($class_name)
{
    include 'classes/encapsulation/' . $class_name . '.php';
}
$patient = new Patient("Brian");
$patient->setWeight('200');
$patient->setHeight('72');
echo $patient->getName() . "<br>";
if ($patient->getBMI()) {
    echo $patient->getBMI() . "<br>";
}
開發者ID:rwestweb,項目名稱:module5-review,代碼行數:13,代碼來源:encapsulation.php

示例5: array

 */
$title = _("Delete Relative from list");
$titlePage = $patient->getName() . ' (' . $title . ')';
require_once "../layout/header.php";
//$returnLocation = "../medical/relative_list.php?id_patient=" . $idPatient; // controlling var
$returnLocation = "../medical/relative_list.php";
// controlling var
/**
 * Breadcrumb
 */
$links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", _("View Relatives") => $returnLocation, $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo $patient->getHeader();
/**
 * Confirm form
 */
echo HTML::start('form', array('method' => 'post', 'action' => '../medical/relative_del.php'));
$tbody = array();
$relative = new Patient($idRelative);
$tbody[] = Msg::warning(sprintf(_("Are you sure you want to delete relative, %s, from list?"), $relative->getName()));
$row = Form::hidden("id_patient", $idPatient);
$row .= Form::hidden("id_relative", $idRelative);
$row .= Form::hidden("name", $relative->getName());
$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";
開發者ID:edubort,項目名稱:openclinic-1,代碼行數:31,代碼來源:relative_del_confirm.php

示例6: Patient

$tab = "medical";
$nav = "problems";
/**
 * Checking permissions
 */
require_once "../auth/login_check.php";
loginCheck(OPEN_PROFILE_ADMINISTRATIVE);
require_once "../model/Patient.php";
require_once "../model/Problem.php";
/**
 * Retrieving vars (PGS)
 */
$idProblem = Check::postGetSessionInt('id_problem');
$idPatient = Check::postGetSessionInt('id_patient');
$patient = new Patient($idPatient);
if ($patient->getName() == '') {
    FlashMsg::add(_("O beneficiário em questão não possui cadastro."), OPEN_MSG_ERROR);
    header("Location: ../medical/patient_search_form.php");
    exit;
}
$problem = new Problem($idProblem);
if (!$problem) {
    FlashMsg::add(_("Nenhum atendimento foi realizado até o momento."), OPEN_MSG_ERROR);
    header("Location: ../medical/patient_search_form.php");
    exit;
}
$formVar["id_problem"] = $idProblem;
$formVar["id_patient"] = $idPatient;
$formVar["order_number"] = $problem->getOrderNumber();
$formVar["opening_date"] = $problem->getOpeningDate();
if (!isset($formError)) {
開發者ID:edubort,項目名稱:openclinic,代碼行數:31,代碼來源:problem_edit_form.php

示例7: Patient

$tab = "medical";
$nav = "social";
/**
 * Checking permissions
 */
require_once "../auth/login_check.php";
loginCheck(OPEN_PROFILE_ADMINISTRATIVE);
require_once "../lib/Form.php";
require_once "../lib/Check.php";
require_once "../model/Patient.php";
/**
 * Retrieving vars (PGS)
 */
$idPatient = Check::postGetSessionInt('id_patient');
$patient = new Patient($idPatient);
if ($patient->getName() == '') {
    FlashMsg::add(_("That patient does not exist."), OPEN_MSG_ERROR);
    header("Location: ../medical/patient_search_form.php");
    exit;
}
/**
 * Show page
 */
$title = _("Delete Patient");
$titlePage = $patient->getName() . ' (' . $title . ')';
require_once "../layout/header.php";
//$returnLocation = "../medical/patient_view.php?id_patient=" . $idPatient; // controlling var
$returnLocation = "../medical/patient_view.php";
// controlling var
/**
 * Breadcrumb
開發者ID:edubort,項目名稱:openclinic-1,代碼行數:31,代碼來源:patient_del_confirm.php

示例8: getName

 public function getName()
 {
     return strtoupper(parent::getName());
 }
開發者ID:rwestweb,項目名稱:module5-review,代碼行數:4,代碼來源:client.php

示例9: Patient

$nav = "problems";
/**
 * Checking permissions
 */
require_once "../auth/login_check.php";
loginCheck(OPEN_PROFILE_DOCTOR);
require_once "../model/Query/Staff.php";
require_once "../model/Patient.php";
require_once "../model/Problem.php";
/**
 * Retrieving vars (PGS)
 */
$idProblem = Check::postGetSessionInt('id_problem');
$idPatient = Check::postGetSessionInt('id_patient');
$patient = new Patient($idPatient);
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;
}
if ($problem->getClosingDate() != "" && $problem->getClosingDate() != '0000-00-00') {
    $nav = "history";
}
/**
 * Update session variables
開發者ID:edubort,項目名稱:openclinic-1,代碼行數:31,代碼來源:problem_view.php

示例10: isset

 */
$tab = "medical";
$nav = "problems";
/**
 * Checking permissions
 */
require_once "../auth/login_check.php";
loginCheck(OPEN_PROFILE_ADMINISTRATIVE);
/**
 * Retrieving vars (PGS)
 */
$idPatient = Check::postGetSessionInt('id_patient');
$orderNumber = Check::postGetSessionInt('order_number', isset($formVar["order_number"]) ? $formVar["order_number"] - 1 : 0);
require_once "../model/Patient.php";
$patient = new Patient($idPatient);
if ($patient->getName() == '') {
    FlashMsg::add(_("That patient does not exist."), OPEN_MSG_ERROR);
    header("Location: ../medical/patient_search_form.php");
    exit;
}
// after clean form vars
$formVar["id_patient"] = $idPatient;
//$formVar["id_member"] = ???; // @fixme si no está vacía y es la primera vez que se accede aquí es igual al médico que le corresponde por cupo?
$formVar["order_number"] = $orderNumber + 1;
$formVar["opening_date"] = date("Y-m-d");
// automatic date (ISO format) without getText
$formVar["last_update_date"] = date("Y-m-d");
// automatic date (ISO format) without getText
/**
 * Show page
 */
開發者ID:edubort,項目名稱:openclinic,代碼行數:31,代碼來源:problem_new_form.php

示例11: Patient

/**
 * Checking permissions
 */
require_once "../auth/login_check.php";
loginCheck(OPEN_PROFILE_ADMINISTRATIVE);
/**
 * Retrieving vars (PGS)
 */
$idPatient = Check::postGetSessionInt('id_patient');
/**
 * Checking for $formError to read data from database
 */
if (!isset($formError)) {
    include_once "../model/Patient.php";
    $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;
    }
    /**
     * load up post vars
     */
    $formVar["id_patient"] = $idPatient;
    //$formVar["last_update_date"] = date("Y-m-d"); // automatic date (ISO format)
    $formVar["id_member"] = $patient->getIdMember();
    $formVar["nif"] = $patient->getNIF();
    $formVar["first_name"] = $patient->getFirstName();
    $formVar["surname1"] = $patient->getSurname1();
    $formVar["surname2"] = $patient->getSurname2();
開發者ID:edubort,項目名稱:openclinic-1,代碼行數:31,代碼來源:patient_edit_form.php

示例12: stripslashes

 */
$idPatient = Check::postGetSessionInt('id_patient');
$currentPage = Check::postGetSessionInt('page', 1);
$searchType = Check::postGetSessionInt('search_type');
$logical = Check::postGetSessionString('logical');
$limit = Check::postGetSessionInt('limit');
// remove slashes added by form post
$searchText = stripslashes(Check::postGetSessionString('search_text'));
// remove redundant whitespace
$searchText = preg_replace("/[[:space:]]+/i", " ", $searchText);
// secure data
$searchText = urlencode($searchText);
// explode data
$arraySearch = explode("+", $searchText);
$patient = new Patient($idPatient);
if ($patient->getName() == '') {
    FlashMsg::add(_("That patient does not exist."), OPEN_MSG_ERROR);
    header("Location: ../medical/patient_search_form.php");
    exit;
}
/**
 * Search database
 */
$patQ = new Query_Page_Patient();
$patQ->setItemsPerPage(OPEN_ITEMS_PER_PAGE);
$patQ->search($searchType, $arraySearch, $currentPage, $logical, $limit);
/**
 * No results message if no results returned from search.
 */
if ($patQ->getRowCount() == 0) {
    $patQ->close();
開發者ID:edubort,項目名稱:openclinic-1,代碼行數:31,代碼來源:relative_search.php


注:本文中的Patient::getName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。