19 lines
492 B
PHP
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);
|
|
}
|
|
}
|