当前位置: 首页>>代码示例>>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;未经允许,请勿转载。