mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
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.
52 lines
2.0 KiB
PHP
Executable File
52 lines
2.0 KiB
PHP
Executable File
<?php
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Streamline\Models\PermissionCategory;
|
|
|
|
class PermissionsCategoryTableSeeder extends Seeder {
|
|
/**
|
|
* Run the database seeders.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run(){
|
|
$categories = array(
|
|
array('id' => '1','name' => 'User'),
|
|
array('id' => '2','name' => 'Insurance'),
|
|
array('id' => '3','name' => 'Insurance Reports'),
|
|
array('id' => '4','name' => 'Patients'),
|
|
array('id' => '5','name' => 'Streamline Reports'),
|
|
array('id' => '6','name' => 'Inventory'),
|
|
array('id' => '7','name' => 'Finance'),
|
|
array('id' => '8','name' => 'Finance Reports'),
|
|
array('id' => '9','name' => 'Administration Customisation'),
|
|
array('id' => '10','name' => 'Labs and Investigations'),
|
|
array('id' => '11','name' => 'Message Board'),
|
|
array('id' => '12','name' => 'Clinical Data'),
|
|
array('id' => '13','name' => 'Pharmacy'),
|
|
array('id' => '14','name' => 'Residences'),
|
|
array('id' => '15','name' => 'Stores'),
|
|
array('id' => '16','name' => 'Roles'),
|
|
array('id' => '17','name' => 'Payments'),
|
|
array('id' => '18','name' => 'Banking'),
|
|
array('id' => '19','name' => 'Invoices'),
|
|
array('id' => '20','name' => 'Streamline Bills'),
|
|
array('id' => '21','name' => 'Memorised Reports'),
|
|
array('id' => '22','name' => 'Journals'),
|
|
array('id' => '23','name' => 'Wards and other units'),
|
|
array('id' => '24','name' => 'Budgets'),
|
|
array('id' => '25','name' => 'Eye Glasses'),
|
|
);
|
|
|
|
foreach ($categories as $category):
|
|
PermissionCategory::firstOrCreate([
|
|
//"id" => $category['id'],
|
|
"name" => $category['name'],
|
|
"created_by" => 1,
|
|
"updated_by" => 1
|
|
]);
|
|
endforeach;
|
|
}
|
|
}
|