resolved conflicts

This commit is contained in:
2025-03-31 03:46:05 +03:00
6454 changed files with 1520539 additions and 9 deletions
@@ -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');
}
}