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:
@@ -0,0 +1,30 @@
|
||||
<?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']
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user