public function showPatientInfo(Request $request) { $patient = Patient::getPatient($request->patientId); return response()->json($patient); }
public function getPatientInfo(Request $request) { $patient = Patient::getPatient($request->patientId); return view('add-diagnosis')->with('patient', $patient); }