mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 03:01:32 +00:00
The official image from streamline does not currently work for the arm64 platform. As a temporary measure, the source code and docker build scripts have been lifted from the official images and are used to build locally. Some additional modifications are made to reduce overall image size, these are documented in docker/README.md
51 lines
1.9 KiB
PHP
Executable File
51 lines
1.9 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'),
|
|
);
|
|
|
|
foreach ($categories as $category):
|
|
PermissionCategory::firstOrCreate([
|
|
//"id" => $category['id'],
|
|
"name" => $category['name'],
|
|
"created_by" => 1,
|
|
"updated_by" => 1
|
|
]);
|
|
endforeach;
|
|
}
|
|
}
|