Files
onboard/app/Domain/ReportDuty/Actions/SaveObservablePatientsAction.php
2026-07-31 17:19:03 +09:00

19 lines
492 B
PHP

<?php
namespace App\Domain\ReportDuty\Actions;
use App\Domain\ReportDuty\Contracts\ReportDutyObservablePatientsInterface;
use App\Domain\ReportDuty\Models\ReportDuty;
class SaveObservablePatientsAction
{
public function __construct(
protected ReportDutyObservablePatientsInterface $observablePatients
) {}
public function execute(ReportDuty $report, array $observables): void
{
$this->observablePatients->upsertObservations($report, $observables);
}
}