mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
34 lines
911 B
PHP
Executable File
34 lines
911 B
PHP
Executable File
<?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;
|
|
}
|
|
}
|