wip - JSON columns

This commit is contained in:
Dr Masroor Ehsan 2024-12-31 08:00:40 +06:00
parent bec5d3f488
commit 0118f10c7a
3 changed files with 3 additions and 8 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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>