mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 03:01:32 +00:00
resolved conflicts
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\ClinicalData\Services\Drugs;
|
||||
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Streamline\Models\DrugForm;
|
||||
|
||||
class DrugFormsService
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
public function pluckAvailableDrugForms(string $valueColumn): Collection
|
||||
{
|
||||
return DB::table('drug_forms')->whereNull('deleted_at')
|
||||
->pluck($valueColumn, 'id');
|
||||
}
|
||||
|
||||
public function pluckAvailableDrugFormsModels(): DrugForm
|
||||
{
|
||||
return DrugForm::pluck('name', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user