mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 19:21:33 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Streamline\Models\IvFluid;
|
||||
|
||||
class IvFluidsTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeders.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
/* `streamline_db`.`iv_fluids` */
|
||||
$iv_fluids = array(
|
||||
array('Iv_Fluid_Id' => '1','Iv_Fluid_Name' => 'N Saline'),
|
||||
array('Iv_Fluid_Id' => '2','Iv_Fluid_Name' => '5% dextrose'),
|
||||
array('Iv_Fluid_Id' => '3','Iv_Fluid_Name' => '10% dextrose'),
|
||||
array('Iv_Fluid_Id' => '4','Iv_Fluid_Name' => 'Ringers Lactate'),
|
||||
array('Iv_Fluid_Id' => '5','Iv_Fluid_Name' => 'RL & 5% Dex'),
|
||||
array('Iv_Fluid_Id' => '6','Iv_Fluid_Name' => 'Other')
|
||||
);
|
||||
|
||||
foreach ($iv_fluids as $iv_fluid):
|
||||
IvFluid::firstOrCreate([
|
||||
"id" => $iv_fluid['Iv_Fluid_Id'],
|
||||
"name" => $iv_fluid['Iv_Fluid_Name']
|
||||
]);
|
||||
endforeach;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user