Circle V2 API Docs
    Preparing search index...
    getById: QueryProcedure<
        {
            input: { id: string };
            meta: object;
            output: {
                auditRun: {
                    archived: boolean;
                    audit_template_id: string & { __brand: "AuditTemplateId" } | null;
                    case_id: string & { __brand: "CaseId" } | null;
                    created_at: DbDate;
                    created_by: string & { __brand: "UserId" } | null;
                    entity_id: number & { __brand: "EntityId" } | null;
                    hidden: boolean;
                    id: AuditRunId;
                    patient_first_name: string | null;
                    patient_id: string & { __brand: "PatientId" } | null;
                    patient_last_name: string | null;
                    ran_against_charts_at: string | null;
                    run_context:
                        | {
                            documentWait?: {
                                outcome: | "extracted"
                                | "missing_documents"
                                | "timed_out"
                                | "run_now";
                                parkedAt: string;
                                releasedAt: string;
                                unreadChartIds: PatientChartId[];
                            };
                            scopedCharts: { fileName: string | null; id: PatientChartId }[]
                            | null;
                        }
                        | null;
                    session_id: string & { __brand: "SessionId" }
                    | null;
                    status: string | null;
                    summary: string | null;
                    template_name: string | null;
                    treatment_episode_id: string & { __brand: "TreatmentEpisodeId" } | null;
                    trigger: string | null;
                    triggered_at: string | null;
                };
                documentWait: | {
                    outcome: "extracted"
                    | "missing_documents"
                    | "timed_out"
                    | "run_now";
                    parkedAt: string;
                    releasedAt: string;
                    unreadChartIds: PatientChartId[];
                }
                | null;
                hasPendingResponses: boolean;
                isWaitingForDocuments: boolean;
                lastSync: ResolveAuditRunSyncServiceResult;
                responses: LegacyAuditRunResponseViewModel[];
                scopedCharts: AuditRunScopedChartView[]
                | null;
                score: number | null;
                statusCounts: AuditRunStatusCounts;
                templateQuestionCount: number;
            };
        },
    > = ...