mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
31 lines
809 B
PHP
Executable File
31 lines
809 B
PHP
Executable File
<?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;
|
|
}
|
|
}
|