本文整理汇总了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'));
}
示例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'));
}
示例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'));
}
示例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');
}
示例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'));
}
示例6: showSearchPMR
public function showSearchPMR()
{
$patients = Patient::all();
return View::make('medical_records.search-pmr', compact('patients'));
}
示例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;
}
示例8: index
public function index()
{
$patients = Patient::all();
return View::make('ipd.index', compact('patients'));
}
示例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>