wip - JSON columns
This commit is contained in:
parent
bec5d3f488
commit
0118f10c7a
@ -10,7 +10,7 @@ class StudiesController extends HashidControllerBase
|
|||||||
{
|
{
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$studies = Study::where('is_active', true)
|
$studies = Study::active()
|
||||||
->orderBy('study_date', 'desc')
|
->orderBy('study_date', 'desc')
|
||||||
->paginate(15);
|
->paginate(15);
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ public function index()
|
|||||||
public function details()
|
public function details()
|
||||||
{
|
{
|
||||||
$this->decodeKeys();
|
$this->decodeKeys();
|
||||||
$study = Study::with(['series', 'details'])->findOrFail($this->key);
|
$study = Study::with(['details'])->findOrFail($this->key);
|
||||||
audit()
|
audit()
|
||||||
->did(Activity::Study_Metadata_View)
|
->did(Activity::Study_Metadata_View)
|
||||||
->on($study)
|
->on($study)
|
||||||
|
@ -26,11 +26,6 @@ public function attachments(): HasMany
|
|||||||
return $this->hasMany(StudyAttachment::class);
|
return $this->hasMany(StudyAttachment::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function series(): HasMany
|
|
||||||
{
|
|
||||||
return $this->hasMany(StudySeries::class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function reports(): HasMany
|
public function reports(): HasMany
|
||||||
{
|
{
|
||||||
return $this->hasMany(StudyReport::class);
|
return $this->hasMany(StudyReport::class);
|
||||||
|
@ -91,7 +91,7 @@ class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-
|
|||||||
@endif
|
@endif
|
||||||
|
|
|
|
||||||
<a target="_blank" class="btn"
|
<a target="_blank" class="btn"
|
||||||
href="{{ \App\Services\Pacs\PacsUrlGen::archive($study->orthanc_uid) }}">ZIP</a>
|
href="{{ \App\Services\Pacs\PacsUrlGen::archive($study->orthanc_uuid) }}">ZIP</a>
|
||||||
|
|
|
|
||||||
<a target="_blank" class="btn"
|
<a target="_blank" class="btn"
|
||||||
href="{{ route('radiologist.report-write', $study->id) }}">TXT</a>
|
href="{{ route('radiologist.report-write', $study->id) }}">TXT</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user