Files
streamline-emr/docker/_streamline-src/database/seeders/AnaesthesiaInductionsTableSeeder.php
T

33 lines
961 B
PHP
Executable File

<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Streamline\Models\AnaesthesiaInduction;
class AnaesthesiaInductionsTableSeeder extends Seeder
{
/**
* Run the database seeders.
*
* @return void
*/
public function run()
{
/* `streamline_db`.`anaesthesia_induction` */
$anaesthesia_inductions = array(
array('Induction_Id' => '1','Induction_Name' => 'Thiopentone'),
array('Induction_Id' => '2','Induction_Name' => 'Ketamine'),
array('Induction_Id' => '3','Induction_Name' => 'Halothane'),
array('Induction_Id' => '4','Induction_Name' => 'Propofol'),
array('Induction_Id' => '5','Induction_Name' => 'Other')
);
foreach ($anaesthesia_inductions as $anaesthesia_induction):
AnaesthesiaInduction::firstOrCreate([
"id" => $anaesthesia_induction['Induction_Id'],
"name" => $anaesthesia_induction['Induction_Name']
]);
endforeach;
}
}