mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
44 lines
1.3 KiB
PHP
Executable File
44 lines
1.3 KiB
PHP
Executable File
<?php
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Streamline\Models\AnaesthesiaEtt;
|
|
|
|
class AnaesthesiaEttsTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeders.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
/* `streamline_db`.`anaesthesia_ett` */
|
|
$anaesthesia_ett = array(
|
|
array('Ett_Id' => '1','Ett_Name' => '2.5'),
|
|
array('Ett_Id' => '2','Ett_Name' => '3.0'),
|
|
array('Ett_Id' => '3','Ett_Name' => '3.5'),
|
|
array('Ett_Id' => '4','Ett_Name' => '4.0'),
|
|
array('Ett_Id' => '5','Ett_Name' => '4.5'),
|
|
array('Ett_Id' => '6','Ett_Name' => '5.0'),
|
|
array('Ett_Id' => '7','Ett_Name' => '5.5'),
|
|
array('Ett_Id' => '8','Ett_Name' => '6.0'),
|
|
array('Ett_Id' => '9','Ett_Name' => '6.5'),
|
|
array('Ett_Id' => '10','Ett_Name' => '7.0'),
|
|
array('Ett_Id' => '11','Ett_Name' => '7.5'),
|
|
array('Ett_Id' => '12','Ett_Name' => '8.0'),
|
|
array('Ett_Id' => '13','Ett_Name' => '8.5'),
|
|
array('Ett_Id' => '14','Ett_Name' => '9.0'),
|
|
array('Ett_Id' => '15','Ett_Name' => '9.5'),
|
|
array('Ett_Id' => '16','Ett_Name' => '10.0')
|
|
);
|
|
|
|
foreach ($anaesthesia_ett as $ett):
|
|
AnaesthesiaEtt::firstOrCreate([
|
|
"id" => $ett['Ett_Id'],
|
|
"name" => $ett['Ett_Name']
|
|
]);
|
|
endforeach;
|
|
}
|
|
}
|