wip - JSON columns
This commit is contained in:
parent
bec5d3f488
commit
0118f10c7a
@ -10,7 +10,7 @@ class StudiesController extends HashidControllerBase
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$studies = Study::where('is_active', true)
|
||||
$studies = Study::active()
|
||||
->orderBy('study_date', 'desc')
|
||||
->paginate(15);
|
||||
|
||||
@ -20,7 +20,7 @@ public function index()
|
||||
public function details()
|
||||
{
|
||||
$this->decodeKeys();
|
||||
$study = Study::with(['series', 'details'])->findOrFail($this->key);
|
||||
$study = Study::with(['details'])->findOrFail($this->key);
|
||||
audit()
|
||||
->did(Activity::Study_Metadata_View)
|
||||
->on($study)
|
||||
|
@ -26,11 +26,6 @@ public function attachments(): HasMany
|
||||
return $this->hasMany(StudyAttachment::class);
|
||||
}
|
||||
|
||||
public function series(): HasMany
|
||||
{
|
||||
return $this->hasMany(StudySeries::class);
|
||||
}
|
||||
|
||||
public function reports(): HasMany
|
||||
{
|
||||
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
|
||||
|
|
||||
<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"
|
||||
href="{{ route('radiologist.report-write', $study->id) }}">TXT</a>
|
||||
|
Loading…
Reference in New Issue
Block a user