mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
35 lines
968 B
PHP
Executable File
35 lines
968 B
PHP
Executable File
<?php
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Streamline\Models\SpontaneousRegularRespirationInMinute;
|
|
|
|
class SpontaneousRegularRespirationInMinuteTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeders.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
/* `streamline_db`.`spontaneous_regular_respiration_in_minutes` */
|
|
$spontaneous_regular_respiration_in_minutes = array(
|
|
array('id' => '1','minutes' => '< 1'),
|
|
array('id' => '2','minutes' => '1'),
|
|
array('id' => '3','minutes' => '2'),
|
|
array('id' => '4','minutes' => '3'),
|
|
array('id' => '5','minutes' => '4'),
|
|
array('id' => '6','minutes' => '5'),
|
|
array('id' => '7','minutes' => '> 5')
|
|
);
|
|
|
|
foreach ($spontaneous_regular_respiration_in_minutes as $minute):
|
|
SpontaneousRegularRespirationInMinute::firstOrCreate([
|
|
"id" => $minute['id'],
|
|
"minutes" => $minute['minutes']
|
|
]);
|
|
endforeach;
|
|
}
|
|
}
|