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

42 lines
1.3 KiB
PHP
Executable File

<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Streamline\Models\AnaesthesiaAirway;
class AnaesthesiaAirwaysTableSeeder extends Seeder
{
/**
* Run the database seeders.
*
* @return void
*/
public function run()
{
/* `streamline_db`.`anaesthesia_airway` */
$anaesthesia_airway = array(
array('Id' => '1','Name' => 'Nasal prongs'),
array('Id' => '2','Name' => 'Mask'),
array('Id' => '3','Name' => 'Bag & mask ventilation'),
array('Id' => '4','Name' => 'Intubated s/r'),
array('Id' => '5','Name' => 'Intubated ventilated'),
array('Id' => '6','Name' => 'Nil'),
array('Id' => '7','Name' => 'Test airway edittted'),
array('Id' => '8','Name' => 'Another Test Airway edited'),
array('Id' => '9','Name' => 'Test Two Airway'),
array('Id' => '10','Name' => 'Test Three Airway'),
array('Id' => '12','Name' => 'Test four Airway'),
array('Id' => '13','Name' => 'Test airway random'),
array('Id' => '14','Name' => 'Final Airway name'),
array('Id' => '15','Name' => 'Laryngeal Mask')
);
foreach ($anaesthesia_airway as $airway):
AnaesthesiaAirway::firstOrCreate([
"id" => $airway['Id'],
"name" => $airway['Name']
]);
endforeach;
}
}