mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
Import latest app updates from streamline
An updated set of source files and initialization was provided by streamline to address issues observed during initial testing. These files have been updated in order to generate a new set of app images.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Streamline\Models\SlitLampTestArea;
|
||||
|
||||
class SlitLampTestAreaSeeder extends Seeder {
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run() {
|
||||
$areas = array(
|
||||
array('id' => '1', 'name' => 'Lid', 'slug' => 'slit_ll'),
|
||||
array('id' => '2', 'name' => 'Conjunctiva', 'slug' => 'slit_cs'),
|
||||
array('id' => '3', 'name' => 'Cornea', 'slug' => 'slit_cornea'),
|
||||
array('id' => '4', 'name' => 'AC', 'slug' => 'slit_ac'),
|
||||
array('id' => '5', 'name' => 'Iris', 'slug' => 'slit_iris'),
|
||||
array('id' => '6', 'name' => 'Lens', 'slug' => 'slit_lens'),
|
||||
array('id' => '7', 'name' => 'Vit', 'slug' => 'slit_vit'),
|
||||
array('id' => '8', 'name' => 'Retina', 'slug' => 'slit_retina'),
|
||||
array('id' => '9', 'name' => 'Optic Disc', 'slug' => 'slit_optic_disc')
|
||||
);
|
||||
|
||||
foreach ($areas as $area) {
|
||||
|
||||
// Prevent re-seeding the same data
|
||||
SlitLampTestArea::firstOrCreate([
|
||||
'id' => $area['id'],
|
||||
'name' => $area['name'],
|
||||
'slug' => $area['slug'],
|
||||
'created_by' => 1,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user