mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
resolved conflicts
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\ClinicalData\Services\Drugs;
|
||||
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Streamline\Models\Drug;
|
||||
|
||||
class DrugsService
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
public function pluckAvailableDrugs(string $valueColumn): Collection
|
||||
{
|
||||
return DB::table('drugs')->whereNull('deleted_at')
|
||||
->where('available', 1)
|
||||
->pluck($valueColumn, 'id');
|
||||
}
|
||||
|
||||
public function pluckAvailableDrugsModels(): Drug
|
||||
{
|
||||
return Drug::where('available', 1)
|
||||
->pluck('name', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user