mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 03:01:32 +00:00
37 lines
1.3 KiB
PHP
Executable File
37 lines
1.3 KiB
PHP
Executable File
<?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;
|
|
}
|
|
|
|
}
|