<?php

namespace Modules\ClinicCore\Events;

use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Modules\ClinicCore\Entities\ClcOrder;

/**
 * SIFA P3-T6 — fired after a unified clinical order has been placed and routed.
 * Future modules (e.g. a dedicated scheduling / charge-capture module) can
 * listen for this to react to newly placed orders without ClinicCore needing to
 * know about them. Carries the fully-loaded order (with items).
 */
class ClcOrderPlaced
{
    use Dispatchable, SerializesModels;

    public ClcOrder $order;

    public function __construct(ClcOrder $order)
    {
        $this->order = $order;
    }
}
