wip
This commit is contained in:
parent
f334ca6081
commit
19608adf66
@ -4,6 +4,7 @@
|
||||
|
||||
use App\Http\Controllers\HashidControllerBase;
|
||||
use App\Models\Study;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class StudyViewerController extends HashidControllerBase
|
||||
{
|
||||
@ -13,7 +14,7 @@ private function loadViewer(\Closure $callback)
|
||||
$study = Study::findOrFail($this->key);
|
||||
$url = $callback($study);
|
||||
abort_if(blank($url), 404);
|
||||
$title = $study->patient_name;
|
||||
$title = Str::limit($study->patient_name, 20) . ' | ' . config('app.name');
|
||||
|
||||
return view('staff.studies.viewer', compact('url', 'title'));
|
||||
}
|
||||
|
@ -13,4 +13,11 @@ public function index()
|
||||
|
||||
return view('staff.worklist.index', compact('studies'));
|
||||
}
|
||||
|
||||
public function details($hashid)
|
||||
{
|
||||
$study = WorklistFactory::getViewer($hashid)->get();
|
||||
|
||||
return view('staff.worklist.details', compact('study'));
|
||||
}
|
||||
}
|
||||
|
@ -11,6 +11,6 @@ public function __invoke()
|
||||
{
|
||||
(new StudiesSync)->execute();
|
||||
|
||||
return redirect()->route('woklist.index');
|
||||
return redirect()->route('staff.worklist.index');
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
@extends('layouts/layoutMaster')
|
||||
@extends('layouts.layoutMaster')
|
||||
|
||||
@section('title', 'Studies List')
|
||||
@section('title', 'Worklist')
|
||||
|
||||
@section('vendor-style')
|
||||
@vite([
|
||||
|
@ -33,10 +33,6 @@
|
||||
Route::get('/report-write/{id}', ReportWriteController::class)->name('report-write');
|
||||
});
|
||||
|
||||
Route::group(['prefix' => 'worklist', 'as' => 'worklist.'], function () {
|
||||
Route::get('/', [WorklistController::class, 'index'])->name('index');
|
||||
Route::get('{hashid}/details', [WorklistController::class, 'details'])->name('details');
|
||||
});
|
||||
|
||||
Route::group(['prefix' => 'viewer', 'as' => 'viewer.'], function () {
|
||||
Route::get('stone/{hashid}', [StudyViewerController::class, 'stone'])->name('stone');
|
||||
@ -45,6 +41,11 @@
|
||||
|
||||
Route::group(['as' => 'staff.'], function () {
|
||||
|
||||
Route::group(['prefix' => 'worklist', 'as' => 'worklist.'], function () {
|
||||
Route::get('/', [WorklistController::class, 'index'])->name('index');
|
||||
Route::get('{hashid}/details', [WorklistController::class, 'details'])->name('details');
|
||||
});
|
||||
|
||||
Route::group(['prefix' => 'history', 'as' => 'history.'], function () {
|
||||
Route::get('{hashid}', [StudyHistoryController::class, 'view'])->name('view');
|
||||
Route::get('{hashid}/edit', [StudyHistoryController::class, 'edit'])->name('edit');
|
||||
|
Loading…
Reference in New Issue
Block a user