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