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