mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
31 lines
676 B
PHP
Executable File
31 lines
676 B
PHP
Executable File
<?php
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Streamline\Models\AnteNatalClinicLie;
|
|
|
|
class AnteNatalClinicLiesTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeders.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
$anc_lies = array(
|
|
array('Lie_Id' => '1','Lie_Name' => 'Longitudinal'),
|
|
array('Lie_Id' => '2','Lie_Name' => 'Oblique'),
|
|
array('Lie_Id' => '3','Lie_Name' => 'Transverse'),
|
|
array('Lie_Id' => '4','Lie_Name' => 'Not Applicable')
|
|
);
|
|
|
|
foreach ($anc_lies as $lie) {
|
|
AnteNatalClinicLie::firstOrCreate([
|
|
'id' => $lie['Lie_Id'],
|
|
'name' => $lie['Lie_Name']
|
|
]);
|
|
}
|
|
}
|
|
}
|