mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +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
42 lines
1.3 KiB
PHP
Executable File
42 lines
1.3 KiB
PHP
Executable File
<?php
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Streamline\Models\AnaesthesiaAirway;
|
|
|
|
class AnaesthesiaAirwaysTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeders.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
/* `streamline_db`.`anaesthesia_airway` */
|
|
$anaesthesia_airway = array(
|
|
array('Id' => '1','Name' => 'Nasal prongs'),
|
|
array('Id' => '2','Name' => 'Mask'),
|
|
array('Id' => '3','Name' => 'Bag & mask ventilation'),
|
|
array('Id' => '4','Name' => 'Intubated s/r'),
|
|
array('Id' => '5','Name' => 'Intubated ventilated'),
|
|
array('Id' => '6','Name' => 'Nil'),
|
|
array('Id' => '7','Name' => 'Test airway edittted'),
|
|
array('Id' => '8','Name' => 'Another Test Airway edited'),
|
|
array('Id' => '9','Name' => 'Test Two Airway'),
|
|
array('Id' => '10','Name' => 'Test Three Airway'),
|
|
array('Id' => '12','Name' => 'Test four Airway'),
|
|
array('Id' => '13','Name' => 'Test airway random'),
|
|
array('Id' => '14','Name' => 'Final Airway name'),
|
|
array('Id' => '15','Name' => 'Laryngeal Mask')
|
|
);
|
|
|
|
foreach ($anaesthesia_airway as $airway):
|
|
AnaesthesiaAirway::firstOrCreate([
|
|
"id" => $airway['Id'],
|
|
"name" => $airway['Name']
|
|
]);
|
|
endforeach;
|
|
}
|
|
}
|