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


PHP Patient::all方法代碼示例

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


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

示例1: patientList

 public function patientList()
 {
     //appel des composants en base
     $patients = Patient::all();
     //retour de la vue
     return View::make('backend.patient.list', compact('patients'));
 }
開發者ID:TwanoO67,項目名稱:CRM_Patientele,代碼行數:7,代碼來源:BackEndController.php

示例2: edit

 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $doctors = Employee::where('role', 'Doctor')->where('status', 'active')->get();
     $patients = Patient::all();
     $opt = Opt::find($id);
     $timeslot = $opt->timeslot->first()->where('dutyday_id', $opt->timeslot->dutyday_id)->lists('slot', 'id');
     return View::make('opt.edit', compact('timeslot', 'opt', 'doctors', 'patients'));
 }
開發者ID:saqibtalib,項目名稱:EMR-ex-,代碼行數:14,代碼來源:OptController.php

示例3: edit

 /**
  * Show the form for editing the specified seance.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $seance = Seance::find($id);
     $liste_patients = Patient::all();
     $patients = array();
     foreach ($liste_patients as $pat) {
         $patients[$pat->id] = strtoupper($pat->nom) . " " . ucwords($pat->prenom);
     }
     return View::make('backend.seances.edit', compact('seance', 'patients'));
 }
開發者ID:TwanoO67,項目名稱:CRM_Patientele,代碼行數:16,代碼來源:SeancesController.php

示例4: store

 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store()
 {
     $UpdateHs = new UpdateHs();
     //Input::get('sheet');
     //        $patients = Patient::find(Input::get('patients'));
     //        $UpdateHs->patient_id=$patients->id;
     //        $UpdateHs->save();
     $UpdateHs->health_sheet = Input::get('sheet', false);
     $UpdateHs->patient_id = Input::get('patient_id', false);
     $UpdateHs->save();
     $patients = Patient::all();
     return View::make('nurse.layouts.index', compact('patients'));
     // return Redirect::route('nurse.layouts.index');
 }
開發者ID:saqibtalib,項目名稱:EMR-ex-,代碼行數:19,代碼來源:NurseController.php

示例5: store

 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store()
 {
     //  return  Input::get('patient_id');
     $Consumptions = new Consumptions();
     //        $id = $_GET['id'];
     //    $id = Patient::find('id');
     //      $Consumptions->patient_id = $id->id;
     $Consumptions->patient_id = Input::get('patient_id');
     $Consumptions->meal = Input::get('meal');
     //        $Consumptions->save();
     $Consumptions->medicine = Input::get('medicine');
     //        $Consumptions->save();
     $Consumptions->bed = Input::get('bed');
     //        $Consumptions->save();
     $Consumptions->room = Input::get('room');
     //        $Consumptions->save();
     $Consumptions->operation = Input::get('operation');
     $Consumptions->save();
     $patients = Patient::all();
     return View::make('consumptions.index', compact('patients'));
     //        $Consumptions = Consumptions::all();
     //        return View::make('consumptions.listcons', compact('Consumptions'));
 }
開發者ID:saqibtalib,項目名稱:EMR-ex-,代碼行數:28,代碼來源:ConsumptionsController.php

示例6: showSearchPMR

 public function showSearchPMR()
 {
     $patients = Patient::all();
     return View::make('medical_records.search-pmr', compact('patients'));
 }
開發者ID:saqibtalib,項目名稱:EMR-ex-,代碼行數:5,代碼來源:HomeController.php

示例7: maxAge

 public function maxAge()
 {
     $query = Patient::all();
     $datearr = array();
     foreach ($query as $patient) {
         $dat = strtotime($patient->birth_date);
         $dat1 = date("Y", $dat);
         $datearr[] = $dat1;
     }
     $len = count($datearr) - 1;
     rsort($datearr, SORT_NUMERIC);
     $age = date("Y") - $datearr[$len];
     return $age;
 }
開發者ID:kelvinmbwilo,項目名稱:cervical,代碼行數:14,代碼來源:BaseController.php

示例8: index

 public function index()
 {
     $patients = Patient::all();
     return View::make('ipd.index', compact('patients'));
 }
開發者ID:saqibtalib,項目名稱:EMR-ex-,代碼行數:5,代碼來源:IPDController.php

示例9: url

@section('title')
Patients
@stop

@section('breadcumbs')
<li>
    <a href="{{ url('home') }}">Dashboard</a>
</li>
<li class="active">Patients</li>

@stop

@section('contents')
<?php 
$patient = Patient::all();
?>

<div class="tile-body color blue rounded-corners">
    <div class="row"> <a href="{{ url('patient/register') }}" class="btn btn-primary btn-xs add pull-right" id="add">New Registration <i class="fa fa-plus"></i> </a></div>
    <div class="table-responsive">
        <table  class="table table-datatable table-custom" id="advancedDataTable">
            <thead>
            <tr>
                <th> # </th>
                <th> Hosptal_id </th>
                <th> Name </th>
                <th> Age </th>
                <th> Region </th>
                <th> District </th>
                <th> Facility </th>
開發者ID:kelvinmbwilo,項目名稱:cervical,代碼行數:30,代碼來源:list.blade.php


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