reverted to plain text

This commit is contained in:
Dr Masroor Ehsan 2025-01-09 10:31:40 +06:00
parent fd8395d7ae
commit 1bec941b8c
4 changed files with 10 additions and 15 deletions

View File

@ -395,6 +395,11 @@ public function setReportStatus(ReportStatus $status, User|int|null $user = null
$this->update($params);
}
public function canEditReport(): bool
{
$this->report_status <= ReportStatus::Finalized;
}
protected function casts(): array
{
return [
@ -409,9 +414,4 @@ protected function casts(): array
'patient_birthdate' => 'immutable_date',
];
}
public function canEditReport(): bool
{
$this->report_status <= ReportStatus::Finalized;
}
}

View File

@ -2,7 +2,6 @@
namespace App\Models;
use App\Casts\Compressed;
use App\Models\Traits\HashableId;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
@ -41,10 +40,6 @@ protected function casts(): array
'properties' => 'array',
'series' => 'array',
'assignment_log' => 'array',
'clinical_history' => Compressed::class,
'surgical_history' => Compressed::class,
'lab_results' => Compressed::class,
'clinical_diagnosis' => Compressed::class,
];
}
}

View File

@ -13,10 +13,10 @@ public function up(): void
$table->foreignId('study_id')->unique()->constrained('studies')->cascadeOnDelete();
$table->string('orthanc_uuid')->unique();
// $table->foreignId('user_id')->constrained('users');
$table->binary('clinical_history')->nullable();
$table->binary('surgical_history')->nullable();
$table->binary('lab_results')->nullable();
$table->binary('clinical_diagnosis')->nullable();
$table->text('clinical_history')->nullable();
$table->text('surgical_history')->nullable();
$table->text('lab_results')->nullable();
$table->text('clinical_diagnosis')->nullable();
$table->jsonb('dicom_properties')->nullable();
$table->jsonb('properties')->nullable();
$table->jsonb('series')->nullable();

View File

@ -2,7 +2,7 @@
<div class="card-body">
<h5 class="card-title">{{ $title }}</h5>
<p class="card-text text-wrap">
{{ $content }}
{!! nl2br(e($content)) !!}
</p>
</div>
</div>