mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 19:51:30 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Streamline\Models\Patient;
|
||||
use Faker\Factory as Faker;
|
||||
|
||||
class PatientsTableSeeder extends Seeder {
|
||||
|
||||
/**
|
||||
* Run the database seeders.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run() {
|
||||
|
||||
Patient::firstOrCreate(['id' => '1','number' => 'ST-0001','first_name' => 'Test','last_name' => 'Cash Patient','date_of_birth' => '1998-05-15','gender' => '1','marital_status' => '3','occupation_id' => '2','phone' => '0701234567','national_id' => '234567','phone_owner' => 'other','insurance_status' => '0','category_id' => '1','religion_id' => '7','language' => 'eng','next_of_kin' => 'Dad Doe','next_of_kin_relationship' => '9','lc_one' => 'lc1','hospital_contact' => NULL,'district_id' => '4','county_id' => '65','subcounty_id' => '147','parish_id' => '451','village_id' => '2621','created_by' => '1','updated_by' => '1']);
|
||||
|
||||
Patient::firstOrCreate(['id' => '2','number' => 'ST-0002','first_name' => 'Test','last_name' => 'Pay Later','date_of_birth' => '2018-05-15','gender' => '2','marital_status' => '3','occupation_id' => '2','phone' => '0701234567','national_id' => '44563','phone_owner' => 'other','insurance_status' => '0','category_id' => '2','religion_id' => '7','language' => 'eng','next_of_kin' => 'Dad Doe','next_of_kin_relationship' => '9','lc_one' => 'lc1','hospital_contact' => NULL,'district_id' => '4','county_id' => '65','subcounty_id' => '147','parish_id' => '451','village_id' => '2621','created_by' => '1','updated_by' => '1']);
|
||||
|
||||
Patient::firstOrCreate(['id' => '3','number' => 'ST-0003','first_name' => 'Test','last_name' => 'Insurance Active','date_of_birth' => '2008-05-15','gender' => '1','marital_status' => '3','occupation_id' => '2','phone' => '0701234567','national_id' => '138843','phone_owner' => 'other','insurance_status' => '1','category_id' => '3','religion_id' => '7','language' => 'eng','next_of_kin' => 'Dad Doe','next_of_kin_relationship' => '9','lc_one' => 'lc1','hospital_contact' => NULL,'district_id' => '4','county_id' => '65','subcounty_id' => '147','parish_id' => '451','village_id' => '2621','created_by' => '1','updated_by' => '1']);
|
||||
|
||||
Patient::firstOrCreate(['id' => '4','number' => 'ST-0004','first_name' => 'Test','last_name' => 'Insurance Inactive','date_of_birth' => '2018-05-15','gender' => '2','marital_status' => '3','occupation_id' => '2','phone' => '0701234567','national_id' => '29847','phone_owner' => 'other','insurance_status' => '1','category_id' => '3','religion_id' => '7','language' => 'eng','next_of_kin' => 'Dad Doe','next_of_kin_relationship' => '9','lc_one' => 'lc1','hospital_contact' => NULL,'district_id' => '4','county_id' => '65','subcounty_id' => '147','parish_id' => '451','village_id' => '2621','created_by' => '1','updated_by' => '1']);
|
||||
|
||||
Patient::firstOrCreate(['id' => '5','number' => 'ST-0005','first_name' => 'Test','last_name' => 'Discount Categories','date_of_birth' => '2000-05-15','gender' => '2','marital_status' => '3','occupation_id' => '2','phone' => '0701234567','national_id' => '2645275','phone_owner' => 'other','insurance_status' => '0','category_id' => '3','religion_id' => '7','language' => 'eng','next_of_kin' => 'Dad Doe','next_of_kin_relationship' => '9','lc_one' => 'lc1','hospital_contact' => NULL,'district_id' => '4','county_id' => '65','subcounty_id' => '147','parish_id' => '451','village_id' => '2621','created_by' => '1','updated_by' => '1']);
|
||||
|
||||
// fake 20000 patient records
|
||||
/*$faker = Faker::create();
|
||||
for($i = 5; $i < 20000; $i++) {
|
||||
Patient::create([
|
||||
'number' => 'KIS'.$i,
|
||||
'first_name' => $faker->firstName,
|
||||
'last_name' => $faker->lastName,
|
||||
'date_of_birth' => $faker->date,
|
||||
'gender' => $faker->numberBetween($min = 1, $max = 3),
|
||||
'marital_status' => $faker->numberBetween($min = 1, $max = 3),
|
||||
'occupation_id' => $faker->numberBetween($min = 1, $max = 4),
|
||||
'phone' => '0700123123',
|
||||
'national_id' => $faker->unique()->numberBetween($min = 10000, $max = 3000000),
|
||||
'phone_owner' => 'self',
|
||||
'insurance_status' => $faker->numberBetween($min = 0, $max = 1),
|
||||
'category_id' => $faker->numberBetween($min = 1, $max = 3),
|
||||
'religion_id' => $faker->numberBetween($min = 1, $max = 6),
|
||||
'language' => 'eng',
|
||||
'next_of_kin' => $faker->name,
|
||||
'next_of_kin_relationship' => $faker->numberBetween($min = 1, $max = 5),
|
||||
'lc_one' => 'lc1',
|
||||
'district_id' => $faker->numberBetween($min = 1, $max = 4),
|
||||
'county_id' => $faker->numberBetween($min = 1, $max = 50),
|
||||
'subcounty_id' => $faker->numberBetween($min = 1, $max = 50),
|
||||
'parish_id' => $faker->numberBetween($min = 1, $max = 50),
|
||||
'village_id' => $faker->numberBetween($min = 1, $max = 50)
|
||||
]);
|
||||
}*/
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user