This commit is contained in:
Dr Masroor Ehsan 2024-12-31 08:33:24 +06:00
parent 0118f10c7a
commit 7bd8f2277b
3 changed files with 14 additions and 4 deletions

View File

@ -0,0 +1,10 @@
<?php
namespace App\Models\Enums;
enum PatientSex: string
{
case Female = 'F';
case Male = 'M';
case Other = 'O';
}

View File

@ -19,7 +19,7 @@ public function up(): void
$table->boolean('is_locked')->default(false);
$table->unsignedTinyInteger('study_priority')->default(0);
$table->string('patient_id')->nullable();
$table->string('patient_uid')->nullable();
$table->string('patient_uuid')->nullable()->index();
$table->string('patient_name');
$table->string('patient_sex')->nullable();
$table->date('patient_birthdate')->nullable();
@ -52,7 +52,7 @@ public function up(): void
$table->timestamps();
$table->index(['referring_physician_id', 'receive_date']);
$table->index(['institute_id', 'receive_date']);
$table->index(['institute_id', 'receive_date', 'is_archived']);
$table->index(['institute_id', 'report_status', 'study_priority', 'receive_date']);
$table->index(['assigned_physician_id', 'report_status', 'study_priority', 'receive_date']);
});

View File

@ -16,8 +16,8 @@ public function up(): void
$table->text('surgical_history')->nullable();
$table->text('lab_results')->nullable();
$table->text('clinical_diagnosis')->nullable();
$table->json('properties')->nullable();
$table->json('series')->nullable();
$table->jsonb('properties')->nullable();
$table->jsonb('series')->nullable();
$table->timestamps();
});
}