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