Activate Care workflows across check-in and financial clearance.
Deploy Ladill Care / deploy (push) Failing after 1m9s

Enforce service-queue gates, cashier settlements, and clinical stage progression so patient journeys cannot bypass configured payment or authorization rules.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-17 21:13:06 +00:00
co-authored by Cursor
parent 86bfce1e17
commit 3ee59a0956
38 changed files with 1953 additions and 107 deletions
+10
View File
@@ -5,9 +5,15 @@ namespace App\Services\Care;
use App\Models\Organization;
use App\Models\Patient;
use App\Models\Visit;
use App\Services\Care\Workflow\WorkflowEngine;
class VisitService
{
public function __construct(
protected CareFeatures $features,
protected WorkflowEngine $workflows,
) {}
public function checkIn(
Organization $organization,
string $ownerRef,
@@ -27,6 +33,10 @@ class VisitService
AuditLogger::record($ownerRef, 'visit.checked_in', $organization->id, $actorRef, Visit::class, $visit->id);
if ($this->features->enabled($organization, CareFeatures::WORKFLOW_ENGINE)) {
$this->workflows->start($visit);
}
return $visit;
}