public function showHighRiskMeds($record_id)
 {
     $record = Record::find($record_id);
     $dispositions = Disposition::all();
     // Update user status if user status was IDLE
     if (Auth::user()->status == 'IDLE') {
         Auth::user()->addStatus('BCW', $record->id);
     }
     return view('admin.high_risk_meds', compact('record', 'dispositions'));
 }
 public function showPneumoniaVaccination($record_id)
 {
     $record = Record::find($record_id);
     $dispositions = Disposition::all();
     // Update user status if user status was IDLE
     if (Auth::user()->status == 'IDLE') {
         Auth::user()->addStatus('BCW', $record->id);
     }
     return view('admin.pneumonia_vaccination', compact('record', 'dispositions'));
 }
 public function showBreastCancerScreening($record_id)
 {
     $record = Record::find($record_id);
     $dispositions = Disposition::all();
     // Update user status if user status was IDLE
     if (Auth::user()->status == 'IDLE') {
         Auth::user()->addStatus('BCW', $record->id);
     }
     return view('admin.breast_cancer_screening', compact('record', 'dispositions'));
 }
 public function showBloodPressure($record_id)
 {
     $record = Record::find($record_id);
     $dispositions = Disposition::all();
     // Update user status if user status was IDLE
     if (Auth::user()->status == 'IDLE') {
         Auth::user()->addStatus('BCW', $record->id);
     }
     return view('admin.blood_pressure', compact('record', 'dispositions'));
 }
 public function showDiabetesEyeExam($record_id)
 {
     $record = Record::find($record_id);
     $dispositions = Disposition::all();
     // Update user status if user status was IDLE
     if (Auth::user()->status == 'IDLE') {
         Auth::user()->addStatus('BCW', $record->id);
     }
     return view('admin.diabetes_eye_exam', compact('record', 'dispositions'));
 }
예제 #6
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($lead)
 {
     //send pusher event
     if ($lead->active == 0) {
         event(new LeadAccessed($lead));
     }
     // update lead's active to 1
     $lead->active = 1;
     $lead->save();
     $dispositions = Disposition::all();
     return view('lead.edit', compact('lead', 'dispositions'));
 }
 public function showHistory(Record $record)
 {
     $dispositions = Disposition::all();
     return view('medical_record_number.history', compact('record', 'dispositions'));
 }
예제 #8
0
 public static function showDemographics($record_id)
 {
     $record = Record::find($record_id);
     if (Auth::user()->status == 'IDLE') {
         Auth::user()->addStatus('BCW', $record->id);
     }
     // Check if there are checklist entries for this record
     if (count($record->checklist) != count($record->getList())) {
         // Delete first all related checklist
         Checklist::where('record_id', $record->id)->delete();
         // Generate list for this record
         foreach ($record->getList() as $list) {
             $record->checklist()->save(new Checklist($list));
         }
     }
     $dispositions = Disposition::all();
     $record = Record::find($record->id);
     // Reinstantiate.. To reflect immediately the changes in checklist
     return view('admin.demographics', compact('record', 'dispositions'));
 }