mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 19:51:30 +00:00
updated streamline-setup v2
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user