Circle V2 API Docs
    Preparing search index...

    Variable auditRunsRepoConst

    auditRunsRepo: DbRepo<
        {
            countForPatient: (
                params: ListAuditRunsForPatientParams,
            ) => Promise<number>;
            getById: (
                id: AuditRunId,
            ) => Promise<
                {
                    archived: boolean;
                    audit_template_id: string & { __brand: "AuditTemplateId" }
                    | null;
                    case_id: number | null;
                    created_at: DbDate;
                    created_by: string & { __brand: "UserId" } | null;
                    hidden: boolean;
                    id: AuditRunId;
                    status: string | null;
                    summary: string | null;
                    template_name: string | null;
                    trigger: string | null;
                    triggered_at: string | null;
                },
            >;
            getPatientId: (
                auditRunId: AuditRunId,
            ) => Promise<{ patient_id: number | null }>;
            listForPatient: (
                params: ListAuditRunsForPatientParams,
            ) => Promise<
                {
                    audit_template_id: string & { __brand: "AuditTemplateId" }
                    | null;
                    created_at: DbDate;
                    id: AuditRunId;
                    template_name: string | null;
                }[],
            >;
            listIdsByCaseId: (caseId: number) => Promise<AuditRunId[]>;
            listRecentResponsesByPatientId: (
                params: { createdAfter: string; patientId: PatientId },
            ) => Promise<
                {
                    audit_template_id: string & { __brand: "AuditTemplateId" }
                    | null;
                    created_at: DbDate;
                    id: AuditRunId;
                    template_name: string | null;
                }[],
            >;
            listResponseMetadataByRunIds: (
                runIds: AuditRunId[],
            ) => Promise<
                {
                    audit_run_id: string & { __brand: "AuditRunId" }
                    | null;
                    question_type: "pass_fail" | "summary";
                    status: string | null;
                }[],
            >;
            listResponsesByRunId: (
                runId: AuditRunId,
            ) => Promise<
                {
                    audit_question_id: string & { __brand: "AuditQuestionId" }
                    | null;
                    audit_run_id: string & { __brand: "AuditRunId" } | null;
                    context_sources: unknown[] | null;
                    created_at: DbDate;
                    icd_code: unknown[] | null;
                    id: AuditResponseId;
                    question: string | null;
                    question_order: number | null;
                    question_type: "pass_fail" | "summary" | null;
                    question_ui: string | null;
                    reason: string[] | null;
                    recommendation: string | null;
                    response: string | null;
                    sources: unknown[] | null;
                    status: string | null;
                    user_action_status: string | null;
                }[],
            >;
        },
    > = ...