updated streamline-setup v2

This commit is contained in:
2025-01-15 08:53:49 -08:00
committed by alec.turner
parent a2ce9248f0
commit 4b569f81b0
20228 changed files with 2932048 additions and 63204 deletions
@@ -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']
]);
}
}
}