mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
updated streamline-setup v2
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
<?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']
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user