mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
35 lines
1.0 KiB
PHP
Executable File
35 lines
1.0 KiB
PHP
Executable File
<?php
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Streamline\Models\ReferralHospital;
|
|
|
|
class ReferralHospitalsSeeder extends Seeder {
|
|
|
|
/**
|
|
* Run the database seeders.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run() {
|
|
$referral_hospitals = [
|
|
['id' => '1', 'name' => 'Self'],
|
|
['id' => '2', 'name' => 'Ruharo Eye Centre, Mbarara'],
|
|
['id' => '3', 'name' => 'Nsambya Hospital, Kampala'],
|
|
['id' => '4', 'name' => 'Peoples Clinic Rubaale'],
|
|
['id' => '5', 'name' => 'Peoples Clinic Nyarushanje'],
|
|
['id' => '6', 'name' => 'Kambuga Hospital'],
|
|
['id' => '9', 'name' => 'Nyakishenyi Catholic HCIII'],
|
|
['id' => '10', 'name' => 'Mulago National Referral Hospital, Kampala']
|
|
];
|
|
|
|
foreach ($referral_hospitals as $value) {
|
|
ReferralHospital::firstOrCreate([
|
|
'id' => $value['id'],
|
|
'name' => $value['name'],
|
|
]);
|
|
}
|
|
}
|
|
|
|
}
|