Verbatim-ish copy of the v1 chart-review Supabase repos. See ./README.md for the porting policy and what was trimmed for v2 compatibility.
Each repo extends DbRepo and is constructed with a SupabaseClient<Database>, which can be obtained from @repo/db/supabase:
DbRepo
SupabaseClient<Database>
@repo/db/supabase
import { createSupabaseAdminClient } from "@repo/db/supabase"; import { AuditRunsRepo } from "@repo/legacy/chart-review";
const supabase = createSupabaseAdminClient(); const repo = new AuditRunsRepo({ supabase });
Protected
Readonly
Find the most recent completed audit run for a given case + template. Returns null when no completed run exists.
Guarded like the completion claim: a finished run is not a failing slice's to reopen.
Verbatim-ish copy of the v1 chart-review Supabase repos. See ./README.md for the porting policy and what was trimmed for v2 compatibility.
Each repo extends
DbRepoand is constructed with aSupabaseClient<Database>, which can be obtained from@repo/db/supabase:import { createSupabaseAdminClient } from "@repo/db/supabase"; import { AuditRunsRepo } from "@repo/legacy/chart-review";
const supabase = createSupabaseAdminClient(); const repo = new AuditRunsRepo({ supabase });