seeder
This commit is contained in:
parent
9c4b04d6de
commit
8cae2b2754
@ -16,6 +16,7 @@ public function run(): void
|
|||||||
RoleSeeder::class,
|
RoleSeeder::class,
|
||||||
InstituteSeeder::class,
|
InstituteSeeder::class,
|
||||||
UserSeeder::class,
|
UserSeeder::class,
|
||||||
|
ModalityProcedureSeeder::class,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
78
database/seeders/ModalityProcedureSeeder.php
Normal file
78
database/seeders/ModalityProcedureSeeder.php
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use App\Models\Modality;
|
||||||
|
use Illuminate\Database\Seeder;
|
||||||
|
|
||||||
|
class ModalityProcedureSeeder extends Seeder
|
||||||
|
{
|
||||||
|
public function run(): void
|
||||||
|
{
|
||||||
|
$this->seedModalities();
|
||||||
|
$this->seedProcedures();
|
||||||
|
}
|
||||||
|
|
||||||
|
private function seedModalities(): void
|
||||||
|
{
|
||||||
|
$modalities = [
|
||||||
|
['name' => 'CR', 'description' => 'Computed Radiography'],
|
||||||
|
['name' => 'CT', 'description' => 'Computed Tomography'],
|
||||||
|
['name' => 'MR', 'description' => 'Magnetic Resonance'],
|
||||||
|
['name' => 'NM', 'description' => 'Nuclear Medicine'],
|
||||||
|
['name' => 'US', 'description' => 'Ultrasound'],
|
||||||
|
['name' => 'OT', 'description' => 'Other'],
|
||||||
|
['name' => 'BI', 'description' => 'Biomagnetic Imaging'],
|
||||||
|
['name' => 'CD', 'description' => 'Color Flow Doppler'],
|
||||||
|
['name' => 'DD', 'description' => 'Duplex Doppler'],
|
||||||
|
['name' => 'ES', 'description' => 'Endoscopy'],
|
||||||
|
['name' => 'LS', 'description' => 'Laser Surface Scan'],
|
||||||
|
['name' => 'PT', 'description' => 'Positron Emission Tomography (PET)'],
|
||||||
|
['name' => 'RG', 'description' => 'Radiographic Imaging (conventional film/screen)'],
|
||||||
|
['name' => 'TG', 'description' => 'Thermography'],
|
||||||
|
['name' => 'XA', 'description' => 'X-Ray Angiography'],
|
||||||
|
['name' => 'RF', 'description' => 'Radio Fluoroscopy'],
|
||||||
|
['name' => 'RTIMAGE', 'description' => 'Radiotherapy Image'],
|
||||||
|
['name' => 'RTDOSE', 'description' => 'Radiotherapy Dose'],
|
||||||
|
['name' => 'RTSTRUCT', 'description' => 'Radiotherapy Structure Set'],
|
||||||
|
['name' => 'RTPLAN', 'description' => 'Radiotherapy Plan'],
|
||||||
|
['name' => 'RTRECORD', 'description' => 'RT Treatment Record'],
|
||||||
|
['name' => 'HC', 'description' => 'Hard Copy'],
|
||||||
|
['name' => 'DX', 'description' => 'Digital Radiography'],
|
||||||
|
['name' => 'MG', 'description' => 'Mammography'],
|
||||||
|
['name' => 'IO', 'description' => 'Intra-oral Radiography'],
|
||||||
|
['name' => 'PX', 'description' => 'Panoramic X-Ray'],
|
||||||
|
['name' => 'GM', 'description' => 'General Microscopy'],
|
||||||
|
['name' => 'SM', 'description' => 'Slide Microscopy'],
|
||||||
|
['name' => 'XC', 'description' => 'External-camera Photography'],
|
||||||
|
['name' => 'PR', 'description' => 'Presentation State'],
|
||||||
|
['name' => 'AU', 'description' => 'Audio'],
|
||||||
|
['name' => 'ECG', 'description' => 'Electrocardiography'],
|
||||||
|
['name' => 'EPS', 'description' => 'Cardiac Electrophysiology'],
|
||||||
|
['name' => 'HD', 'description' => 'Hemodynamic Waveform'],
|
||||||
|
['name' => 'SR', 'description' => 'SR Document'],
|
||||||
|
['name' => 'IVUS', 'description' => 'Intravascular Ultrasound'],
|
||||||
|
['name' => 'OP', 'description' => 'Ophthalmic Photography'],
|
||||||
|
['name' => 'SMR', 'description' => 'Stereometric Relationship'],
|
||||||
|
['name' => 'OCT', 'description' => 'Optical Coherence Tomography (non-Ophthalmic)'],
|
||||||
|
['name' => 'OPR', 'description' => 'Ophthalmic Refraction'],
|
||||||
|
['name' => 'OPV', 'description' => 'Ophthalmic Visual Field'],
|
||||||
|
['name' => 'OPM', 'description' => 'Ophthalmic Mapping'],
|
||||||
|
['name' => 'KO', 'description' => 'Key Object Selection'],
|
||||||
|
['name' => 'SEG', 'description' => 'Segmentation'],
|
||||||
|
['name' => 'REG', 'description' => 'Registration'],
|
||||||
|
['name' => 'OPT', 'description' => 'Ophthalmic Tomography'],
|
||||||
|
['name' => 'BDUS', 'description' => 'Bone Densitometry (ultrasound)'],
|
||||||
|
['name' => 'BMD', 'description' => 'Bone Densitometry (X-Ray)'],
|
||||||
|
['name' => 'DOC', 'description' => 'Document'],
|
||||||
|
['name' => 'FID', 'description' => 'Fiducials'],
|
||||||
|
['name' => 'PLAN', 'description' => 'Plan'],
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($modalities as $modality) {
|
||||||
|
Modality::create($modality);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private function seedProcedures() {}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user