mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
36 lines
1.0 KiB
PHP
Executable File
36 lines
1.0 KiB
PHP
Executable File
<?php
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Streamline\Models\AnaestheticAgent;
|
|
|
|
class AnaestheticAgentsTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeders.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
/* `streamline_db`.`anaesthesic_agents` */
|
|
$anaesthesic_agents = array(
|
|
array('Agent_Id' => '8','Agent_Name' => '0.5% bupivicaine'),
|
|
array('Agent_Id' => '1','Agent_Name' => '0.5% lignocaine'),
|
|
array('Agent_Id' => '3','Agent_Name' => '0.5% lignocaine with adrenaline'),
|
|
array('Agent_Id' => '2','Agent_Name' => '1% lignocaine'),
|
|
array('Agent_Id' => '4','Agent_Name' => '1% lignocaine with adrenaline'),
|
|
array('Agent_Id' => '7','Agent_Name' => '2% lignocaine'),
|
|
array('Agent_Id' => '5','Agent_Name' => 'Bupivicaine'),
|
|
array('Agent_Id' => '6','Agent_Name' => 'Other')
|
|
);
|
|
|
|
foreach ($anaesthesic_agents as $agent):
|
|
AnaestheticAgent::firstOrCreate([
|
|
"id" => $agent['Agent_Id'],
|
|
"name" => $agent['Agent_Name']
|
|
]);
|
|
endforeach;
|
|
}
|
|
}
|