mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
136 lines
11 KiB
PHP
Executable File
136 lines
11 KiB
PHP
Executable File
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Streamline\Models\InvestigationSpecialisedVariable;
|
|
|
|
class SpecializedInvestigationVariablesSeeder extends Seeder {
|
|
/**
|
|
* Run the database seeders.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run() {
|
|
$variables = [
|
|
['name'=>'Appearance', 'investigation_id'=>'192', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Microscopy', 'investigation_id'=>'192', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Appearance', 'investigation_id'=>'221', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Rivalta\'s Test', 'investigation_id'=>'221', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Specific Gravity', 'investigation_id'=>'221', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'pH', 'investigation_id'=>'221', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'LDH', 'investigation_id'=>'221', 'units'=>'14', 'normal_ranges'=>'>=200 - <=200'],
|
|
['name'=>'Protein', 'investigation_id'=>'221', 'units'=>'15', 'normal_ranges'=>'0.3 - 3.0'],
|
|
['name'=>'Albumin', 'investigation_id'=>'221', 'units'=>'15', 'normal_ranges'=>'0.2 - 1.1'],
|
|
['name'=>'Amylase', 'investigation_id'=>'221', 'units'=>'16', 'normal_ranges'=>'0 - 48'],
|
|
['name'=>'Cell Count', 'investigation_id'=>'221', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Gram', 'investigation_id'=>'221', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'ZN Stain', 'investigation_id'=>'221', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Appearance', 'investigation_id'=>'185', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Microscopy', 'investigation_id'=>'185', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Blood', 'investigation_id'=>'186', 'units'=>'18', 'normal_ranges'=>''],
|
|
['name'=>'Bilirubin', 'investigation_id'=>'186', 'units'=>'17', 'normal_ranges'=>''],
|
|
['name'=>'Urobilinogen', 'investigation_id'=>'186', 'units'=>'17', 'normal_ranges'=>'0.1 - 1'],
|
|
['name'=>'Ketones', 'investigation_id'=>'186', 'units'=>'17', 'normal_ranges'=>''],
|
|
['name'=>'Protein', 'investigation_id'=>'186', 'units'=>'17', 'normal_ranges'=>'0 - 20'],
|
|
['name'=>'Nitrite', 'investigation_id'=>'186', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Glucose', 'investigation_id'=>'186', 'units'=>'19', 'normal_ranges'=>'0 - 30'],
|
|
['name'=>'pH', 'investigation_id'=>'186', 'units'=>'', 'normal_ranges'=>'5 - 8'],
|
|
['name'=>'Special Gravity', 'investigation_id'=>'186', 'units'=>'', 'normal_ranges'=>'1.003 - 1.029'],
|
|
['name'=>'Leucocytes', 'investigation_id'=>'186', 'units'=>'20', 'normal_ranges'=>''],
|
|
['name'=>'WBC', 'investigation_id'=>'132', 'units'=>'21', 'normal_ranges'=>'4.0 - 10.90'],
|
|
['name'=>'NEU', 'investigation_id'=>'132', 'units'=>'21', 'normal_ranges'=>'2.0 - 7.8'],
|
|
['name'=>'NUET%', 'investigation_id'=>'132', 'units'=>'22', 'normal_ranges'=>''],
|
|
['name'=>'LYM', 'investigation_id'=>'132', 'units'=>'21', 'normal_ranges'=>'0.6 - 4.10'],
|
|
['name'=>'LYM%', 'investigation_id'=>'132', 'units'=>'22', 'normal_ranges'=>''],
|
|
['name'=>'MONO', 'investigation_id'=>'132', 'units'=>'21', 'normal_ranges'=>'0 - 1.8'],
|
|
['name'=>'MONO%', 'investigation_id'=>'132', 'units'=>'22', 'normal_ranges'=>''],
|
|
['name'=>'EOS', 'investigation_id'=>'132', 'units'=>'21', 'normal_ranges'=>'0 - 0.5'],
|
|
['name'=>'EOS%', 'investigation_id'=>'132', 'units'=>'22', 'normal_ranges'=>''],
|
|
['name'=>'BASO', 'investigation_id'=>'132', 'units'=>'21', 'normal_ranges'=>'0 - 0.3'],
|
|
['name'=>'BASO%', 'investigation_id'=>'132', 'units'=>'22', 'normal_ranges'=>''],
|
|
['name'=>'RBC', 'investigation_id'=>'132', 'units'=>'25', 'normal_ranges'=>'4.2 - 6.30'],
|
|
['name'=>'HGB', 'investigation_id'=>'132', 'units'=>'15', 'normal_ranges'=>'12.0 - 18.0'],
|
|
['name'=>'HCT', 'investigation_id'=>'132', 'units'=>'22', 'normal_ranges'=>'37 - 51'],
|
|
['name'=>'MCV', 'investigation_id'=>'132', 'units'=>'23', 'normal_ranges'=>'70 - 97'],
|
|
['name'=>'MCH', 'investigation_id'=>'132', 'units'=>'24', 'normal_ranges'=>'26 - 32'],
|
|
['name'=>'MCHC', 'investigation_id'=>'132', 'units'=>'15', 'normal_ranges'=>'31 - 36'],
|
|
['name'=>'RDW', 'investigation_id'=>'132', 'units'=>'22', 'normal_ranges'=>'10 - 20'],
|
|
['name'=>'PLT', 'investigation_id'=>'132', 'units'=>'21', 'normal_ranges'=>'140 - 440'],
|
|
['name'=>'MPV', 'investigation_id'=>'132', 'units'=>'23', 'normal_ranges'=>'3.8 - 12'],
|
|
['name'=>'Culture', 'investigation_id'=>'203', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Sensitive To', 'investigation_id'=>'203', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Intermediate To', 'investigation_id'=>'203', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Resistant To', 'investigation_id'=>'203', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Culture', 'investigation_id'=>'204', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Sensitive To', 'investigation_id'=>'204', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Intermediate To', 'investigation_id'=>'204', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Resistant To', 'investigation_id'=>'204', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Culture', 'investigation_id'=>'205', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Sensitive To', 'investigation_id'=>'205', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Intermediate To', 'investigation_id'=>'205', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Resistant To', 'investigation_id'=>'205', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Culture', 'investigation_id'=>'206', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Sensitive To', 'investigation_id'=>'206', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Intermediate To', 'investigation_id'=>'206', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Resistant To', 'investigation_id'=>'206', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Culture', 'investigation_id'=>'207', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Sensitive To', 'investigation_id'=>'207', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Intermediate To', 'investigation_id'=>'207', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Resistant To', 'investigation_id'=>'207', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Culture', 'investigation_id'=>'208', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Sensitive To', 'investigation_id'=>'208', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Intermediate To', 'investigation_id'=>'208', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Resistant To', 'investigation_id'=>'208', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Culture', 'investigation_id'=>'209', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Sensitive To', 'investigation_id'=>'209', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Intermediate To', 'investigation_id'=>'209', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Resistant To', 'investigation_id'=>'209', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Specimen', 'investigation_id'=>'225', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Volume', 'investigation_id'=>'225', 'units'=>'4', 'normal_ranges'=>'2 - 5'],
|
|
['name'=>'Semen Appearance', 'investigation_id'=>'225', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Viscosity', 'investigation_id'=>'225', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Semen pH', 'investigation_id'=>'225', 'units'=>'', 'normal_ranges'=>'7.2 - 8.0'],
|
|
['name'=>'Motility 1st hr', 'investigation_id'=>'225', 'units'=>'22', 'normal_ranges'=>''],
|
|
['name'=>'Fast & Progressive', 'investigation_id'=>'225', 'units'=>'22', 'normal_ranges'=>'32 - 100'],
|
|
['name'=>'Slow & Progressive', 'investigation_id'=>'225', 'units'=>'22', 'normal_ranges'=>''],
|
|
['name'=>'Non Progressive', 'investigation_id'=>'225', 'units'=>'22', 'normal_ranges'=>''],
|
|
['name'=>'Non Motile', 'investigation_id'=>'225', 'units'=>'22', 'normal_ranges'=>''],
|
|
['name'=>'Motility 2nd hr', 'investigation_id'=>'225', 'units'=>'22', 'normal_ranges'=>''],
|
|
['name'=>'Fast & Progressive', 'investigation_id'=>'225', 'units'=>'22', 'normal_ranges'=>''],
|
|
['name'=>'Slow & Progressive', 'investigation_id'=>'225', 'units'=>'22', 'normal_ranges'=>''],
|
|
['name'=>'Non Progressive', 'investigation_id'=>'225', 'units'=>'22', 'normal_ranges'=>''],
|
|
['name'=>'Non Motile', 'investigation_id'=>'225', 'units'=>'22', 'normal_ranges'=>''],
|
|
['name'=>'Sperm Concentration', 'investigation_id'=>'225', 'units'=>'26', 'normal_ranges'=>'15 - 213'],
|
|
['name'=>'Total sperm concentration', 'investigation_id'=>'225', 'units'=>'27', 'normal_ranges'=>'21 - 807'],
|
|
['name'=>'Normal sperm morphology', 'investigation_id'=>'225', 'units'=>'22', 'normal_ranges'=>'40 - 100'],
|
|
['name'=>'Total no. normal spermatozoa/ejaculate', 'investigation_id'=>'225', 'units'=>'28', 'normal_ranges'=>'20 - 807'],
|
|
['name'=>'% Head abnormality', 'investigation_id'=>'225', 'units'=>'22', 'normal_ranges'=>''],
|
|
['name'=>'Sperm head abnormality description', 'investigation_id'=>'225', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'% sperm middle piece abnormality', 'investigation_id'=>'225', 'units'=>'22', 'normal_ranges'=>''],
|
|
['name'=>'Sperm middle piece abnormality description', 'investigation_id'=>'225', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'% principal piece abnormality', 'investigation_id'=>'225', 'units'=>'22', 'normal_ranges'=>''],
|
|
['name'=>'Sperm principal piece abn description', 'investigation_id'=>'225', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Sperm Gram Reaction', 'investigation_id'=>'225', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Sperm round cell concentration', 'investigation_id'=>'225', 'units'=>'', 'normal_ranges'=>'0.1 - 1.0'],
|
|
['name'=>'Sperm total round cell/ejaculate', 'investigation_id'=>'225', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'sperm aggutination', 'investigation_id'=>'225', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Days of sexual abstinence', 'investigation_id'=>'225', 'units'=>'', 'normal_ranges'=>'2.0 - 5.0'],
|
|
['name'=>'Method of semen collection', 'investigation_id'=>'225', 'units'=>'', 'normal_ranges'=>''],
|
|
['name'=>'Liquification', 'investigation_id'=>'225', 'units'=>'29', 'normal_ranges'=>'15 - 16'],
|
|
['name'=>'Viability', 'investigation_id'=>'225', 'units'=>'22', 'normal_ranges'=>'60 - 100'],
|
|
];
|
|
|
|
foreach ($variables as $variable) {
|
|
InvestigationSpecialisedVariable::firstOrCreate([
|
|
"name" => $variable['name'],
|
|
"investigation_id" => $variable['investigation_id'],
|
|
"units" => $variable['units'],
|
|
"normal_ranges" => $variable['normal_ranges'],
|
|
"created_by" => 1,
|
|
"updated_by" => 1
|
|
]);
|
|
}
|
|
}
|
|
}
|