Include checked-in clinic visits on outpatient nursing boards.
Deploy Ladill Care / deploy (push) Successful in 2m12s

OPD/service units list open department appointments without manual place; nursing actions soft-place the visit onto the unit. Inpatient wards stay placement-only.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-20 17:05:13 +00:00
co-authored by Cursor
parent 5fd402c043
commit f1bb432324
13 changed files with 522 additions and 60 deletions
@@ -148,12 +148,7 @@ class NursingDocumentationService
*/
public function defaultPatientSummaries(CareUnit $unit, string $ownerRef): array
{
$visits = Visit::owned($ownerRef)
->where('care_unit_id', $unit->id)
->whereIn('status', [Visit::STATUS_OPEN, Visit::STATUS_IN_PROGRESS])
->with(['patient', 'bed'])
->orderBy('placed_at')
->get();
$visits = app(CareUnitCensusService::class)->visitsForUnit($unit, $ownerRef);
return $visits->map(fn (Visit $visit) => [
'visit_id' => $visit->id,