mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 11:41:31 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Streamline\Models\DrugUnit;
|
||||
|
||||
class DrugUnitsTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeders.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$units = [
|
||||
'g','mg', 'microgram', 'mL', 'applications',
|
||||
'Drops', 'Puffs', 'Mega-Units', 'millimoles',
|
||||
'International U', 'Tablets', 'litres/minute',
|
||||
'Vaginal pessary', 'U/L', 'g/dL', 'IU/L',
|
||||
'mg/dL', 'RBC/uL', 'mg/mL', 'WBC/uL', 'K/uL', '%',
|
||||
'fL', 'Pg', 'M/uL', 'millions/mL', 'millions/vol. of semen', 'Millions', 'minutes'];
|
||||
|
||||
foreach ($units as $unit):
|
||||
DrugUnit::firstOrCreate([
|
||||
"name" => $unit
|
||||
]);
|
||||
endforeach;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user