diff --git a/app/Services/Pacs/StudyImporter.php b/app/Services/Pacs/StudyImporter.php index 9be6958..576b788 100644 --- a/app/Services/Pacs/StudyImporter.php +++ b/app/Services/Pacs/StudyImporter.php @@ -95,7 +95,7 @@ private function prepareData(mixed $study): array 'institution_name' => $inst_name, 'institute_id' => $inst_id, - 'patient_uuid' => $study['ParentPatient'], + 'patient_uid' => $study['ParentPatient'], 'patient_id' => data_get($study, 'PatientMainDicomTags.PatientID'), 'patient_name' => data_get($study, 'PatientMainDicomTags.PatientName'), 'patient_sex' => data_get($study, 'PatientMainDicomTags.PatientSex'), diff --git a/database/migrations/2024_12_27_060234_create_studies_table.php b/database/migrations/2024_12_27_060234_create_studies_table.php index 2faa5d3..01e2925 100644 --- a/database/migrations/2024_12_27_060234_create_studies_table.php +++ b/database/migrations/2024_12_27_060234_create_studies_table.php @@ -20,7 +20,7 @@ public function up(): void $table->boolean('is_locked')->default(true); $table->unsignedTinyInteger('study_priority')->default(0); $table->string('patient_id')->nullable(); - $table->string('patient_uuid')->nullable(); + $table->string('patient_uid')->nullable(); $table->string('patient_name'); $table->string('patient_sex')->nullable(); $table->date('patient_birthdate')->nullable();