mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
31 lines
797 B
PHP
Executable File
31 lines
797 B
PHP
Executable File
<?php
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Streamline\Models\AnaestheticTechnique;
|
|
|
|
class AnaestheticTechniquesTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeders.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
/* `streamline_db`.`anaesthesic_techniques` */
|
|
$anaesthesic_techniques = array(
|
|
array('Technique_Id' => '1','Technique_Name' => 'Infiltration'),
|
|
array('Technique_Id' => '2','Technique_Name' => 'Nerve block'),
|
|
array('Technique_Id' => '3','Technique_Name' => 'Bier\'s block')
|
|
);
|
|
|
|
foreach ($anaesthesic_techniques as $technique):
|
|
AnaestheticTechnique::firstOrCreate([
|
|
"id" => $technique['Technique_Id'],
|
|
"name" => $technique['Technique_Name']
|
|
]);
|
|
endforeach;
|
|
}
|
|
}
|