In-memory equivalent of @repo/db getAllForPatient's nested since cutoff. For updated, matches the DB OR: keep when external_document_updated_at >= cutoff OR authored coalesce >= cutoff.
@repo/db
getAllForPatient
since
updated
external_document_updated_at >= cutoff
>= cutoff
In-memory equivalent of
@repo/dbgetAllForPatient's nestedsincecutoff. Forupdated, matches the DB OR: keep whenexternal_document_updated_at >= cutoffOR authored coalesce>= cutoff.