mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
35 lines
1.1 KiB
PHP
Executable File
35 lines
1.1 KiB
PHP
Executable File
<?php
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Streamline\Models\AnteNatalClinicPresentation;
|
|
|
|
class AnteNatalClinicPresentationTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeders.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
$anc_presentation = array(
|
|
array('Presentation_Id' => '1','Presentation_Name' => 'Cephalic'),
|
|
array('Presentation_Id' => '2','Presentation_Name' => 'Breech - frank'),
|
|
array('Presentation_Id' => '3','Presentation_Name' => 'Breech - knee'),
|
|
array('Presentation_Id' => '4','Presentation_Name' => 'Breech - footling'),
|
|
array('Presentation_Id' => '5','Presentation_Name' => 'Transverse'),
|
|
array('Presentation_Id' => '6','Presentation_Name' => 'Compund'),
|
|
array('Presentation_Id' => '7','Presentation_Name' => 'Not Applicable'),
|
|
array('Presentation_Id' => '8','Presentation_Name' => 'Not Applicable')
|
|
);
|
|
|
|
foreach ($anc_presentation as $presentation) {
|
|
AnteNatalClinicPresentation::firstOrCreate([
|
|
'id' => $presentation['Presentation_Id'],
|
|
'name' => $presentation['Presentation_Name']
|
|
]);
|
|
}
|
|
}
|
|
}
|