public function patientList() { //appel des composants en base $patients = Patient::all(); //retour de la vue return View::make('backend.patient.list', compact('patients')); }
/** * 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')); }
/** * 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')); }
/** * 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'); }
/** * 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')); }
public function showSearchPMR() { $patients = Patient::all(); return View::make('medical_records.search-pmr', compact('patients')); }
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; }
public function index() { $patients = Patient::all(); return View::make('ipd.index', compact('patients')); }
@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>