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,36 @@
|
||||
<?php
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Streamline\Models\MaternityProgress;
|
||||
|
||||
class MaternityProgressTableSeeder extends Seeder {
|
||||
|
||||
/**
|
||||
* Run the database seeders.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run() {
|
||||
$maternity_progress = array(
|
||||
array('Id' => '1', 'Progress' => 'MWH', 'Color' => 'blue'),
|
||||
array('Id' => '2', 'Progress' => 'Ante-natal (AN)', 'Color' => 'blue'),
|
||||
array('Id' => '3', 'Progress' => 'Latent Phase (LAT)', 'Color' => 'pink'),
|
||||
array('Id' => '4', 'Progress' => 'Active Labour (ACT)', 'Color' => 'red'),
|
||||
array('Id' => '5', 'Progress' => 'SVD', 'Color' => 'green'),
|
||||
array('Id' => '6', 'Progress' => 'Vacuum (VAC)', 'Color' => 'green'),
|
||||
array('Id' => '7', 'Progress' => 'Forceps (FOR)', 'Color' => 'green'),
|
||||
array('Id' => '8', 'Progress' => 'Breech (BR)', 'Color' => 'green'),
|
||||
array('Id' => '9', 'Progress' => 'Delivered CS (CS)', 'Color' => 'green')
|
||||
);
|
||||
|
||||
foreach ($maternity_progress as $progress):
|
||||
MaternityProgress::firstOrCreate([
|
||||
"id" => $progress['Id'],
|
||||
"name" => $progress['Progress'],
|
||||
"color" => $progress['Color']
|
||||
]);
|
||||
endforeach;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user