HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1017-azure #17~24.04.1-Ubuntu SMP Mon Dec 1 20:10:50 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
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);
        }
    }
}