public function postCheckEncounter() { $eid = Session::get('eid'); $error = ""; $hpi = Hpi::find($eid); $pe = Pe::find($eid); $assessment = Assessment::find($eid); $encounter = Encounters::find($eid); $billing = Billing::where('eid', '=', $eid)->first(); if (!$hpi) { $error .= "Missing History of Present Illness<br>"; } if ($encounter->encounter_template == 'standardmedical') { if (!$pe) { $error .= "Missing Physical Exam<br>"; } } if (!$assessment) { $error .= "Missing Assessment<br>"; } if (!$billing) { $error .= "Missing Billing<br>"; } echo $error; }
public function filterReglab() { $filterreglab = Input::get('noreglab'); //Untuk pencarian berdasarkan tanggal periksa $bils = Billing::where('NoRegLab', '=', $filterreglab)->orWhere('nama', 'LIKE', '%' . $filterreglab . '%')->orderBy('Tgl_Periksa')->paginate(5); return View::make('billing.filterbil')->with('bils', $bils); }
| */ //login Route::get('test', function () { $kelurahan = Kelurahan::all(); $kepalaKeluarga = KepalaKeluarga::where('nama_kk', '=', 'Helmi')->first(); return $kepalaKeluarga->kelurahan->nama_kelurahan; }); Route::group(array('before' => 'auth'), function () { Route::get('logout', array('uses' => 'UserController@logout')); // Route yang ingin diproteksi simpan disini Route::get('/', function () { date_default_timezone_set("Asia/Bangkok"); $tgl_reg = date("Y-m-d"); $transdat = DB::table('v_datapasien')->where('tgl_reg', '=', $tgl_reg)->count(); $transbil = Billing::where('tgl_reg', '=', $tgl_reg)->count(); $transruj = ViewRujukandetail::where('tgl_reg', '=', $tgl_reg)->count(); return View::make('index', compact('transbil', 'transruj', 'transdat')); }); //dashboard Route::get('dashboard', 'DashboardController@index'); //profile Route::get('profile', 'ProfileController@index'); //bantuan Route::get('bantuan', 'BantuanController@index'); //Satuan Route::get('satuan', 'SatuanController@index'); Route::get('satuan/create', 'SatuanController@create'); Route::post('satuan/create', 'SatuanController@handleCreate'); Route::get('satuan/edit/{KdSatuan}', 'SatuanController@edit'); Route::post('satuan/edit', 'SatuanController@handleEdit');
/** * Consultation helper function * * @return float */ public function getFixedCharges() { return Billing::where('type', '=', 'Fixed Charges')->get(); }
| Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the Closure to execute when that URI is requested. | */ /** * Register route bindings * FYI - Should be done in the service providers */ // Start a new visit Route::bind('patient', function ($value, $route) { return $patient = Patient::find($value); }); // Destroy a billing item Route::bind('billing', function ($value, $route) { return Billing::where('id', $value)->first(); }); // Destroy a client Route::bind('bima', function ($value, $route) { return Bima::find($value); }); /** * Homepage */ Route::get('/', array('as' => 'home', 'uses' => 'HomeController@home')); /** * Authenticated Users */ Route::group(array('before' => 'auth'), function () { /** * CSRF protection group