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