updated streamline-setup v2

This commit is contained in:
2025-01-15 08:53:49 -08:00
committed by alec.turner
parent a2ce9248f0
commit 4b569f81b0
20228 changed files with 2932048 additions and 63204 deletions
@@ -0,0 +1,36 @@
<?php
namespace Modules\ClinicalData\Services\Investigations;
use Illuminate\Support\Facades\DB;
class InvestigationsService
{
public function __construct()
{
}
public function getInvestigationCategoriesBySuper(): array
{
return DB::table('investigation_categories')
->pluck('super_category_id', 'id')->toArray();
}
public function getInvestigationSuperCategories(): array
{
return DB::table('investigation_super_categories')
->pluck('name', 'id')->toArray();
}
public function getInvestigationsByName(): array
{
return DB::table('investigations')
->pluck('name', 'id')->toArray();
}
public function getInvestigationsByCategory(): array
{
return DB::table('investigations')
->pluck('category', 'id')->toArray();
}
}