File: /mnt/data/ghayatcom/ghayatcom-api/database/seeders/DoctorSymptomTemplateFieldsSeeder.php
<?php
namespace Database\Seeders;
use App\DoctorSymptomTemplateFields;
use Illuminate\Database\Seeder;
class DoctorSymptomTemplateFieldsSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$datas = [
1 =>[
'template_id'=>2,
'type'=>'dropdown',
'field_name'=>'NYHA CHF Grading',
'values'=>'Class I, Class II, Class III, Class IV',
'description'=>'To display the following information to the user: *MET (metabolic equivalent) is defined as the resting VO2 for a 40-year-old 70kg man.1 MET = 3.5mL O2 /min/kg body weight, CHF = Congestive Heart Failure. LV = Left ventricle.',
'created_by' => 1,
],
2 =>[
'template_id'=>5,
'type'=>'text',
'field_name'=>'Infertility,STDs,Contraception,Dribbling',
'values'=>'',
'description'=>'',
'created_by' => 1,
],
3 =>[
'template_id'=>8,
'type'=>'radio',
'field_name'=>'wong-baker pain scale - for musculoskeletal pain',
'values'=>'0,2,4,6,8,10',
'description'=>'',
'created_by' => 1,
],
4 =>[
'template_id'=>11,
'type'=>'text',
'field_name'=>'Last menstrual period, Pregnant,Miscarriages,Pregnancies,Length of periods,Contraception,Libido',
'values'=>'',
'description'=>'',
'created_by' => 1,
],
];
foreach ($datas as $id => $data) {
DoctorSymptomTemplateFields::create($data);
}
}
}