Circle V2 API Docs
    Preparing search index...
    getById: QueryProcedure<
        {
            input: { id: string };
            meta: object;
            output: {
                auditTemplate: {
                    created_at: DbDate;
                    created_by: string & { __brand: "UserId" } | null;
                    custom_review_criteria_prompt: string | null;
                    custom_summary_prompt: string | null;
                    description: string | null;
                    id: AuditTemplateId;
                    name: string | null;
                    org_id: number & { __brand: "EntityId" } | null;
                    share_with_org: boolean | null;
                    shared_by: string & { __brand: "UserId" } | null;
                    shared_with_entity_id: number & { __brand: "EntityId" } | null;
                    updated_at: string & { __brand: "DbDate" } | null;
                };
                questions: {
                    created_at: DbDate;
                    created_by: string & { __brand: "UserId" }
                    | null;
                    id: AuditQuestionId;
                    manual: boolean;
                    org_id: number | null;
                    question: string | null;
                    question_order: number | null;
                    question_type: "pass_fail" | "summary";
                    share_with_org: boolean | null;
                    shared_by: string & { __brand: "UserId" } | null;
                    shared_with_entity_id: number & { __brand: "EntityId" } | null;
                    template_id: string & { __brand: "AuditTemplateId" } | null;
                    updated_at: string & { __brand: "DbDate" } | null;
                }[];
                triggers: (
                    {
                        audit_template_id: AuditTemplateId
                        | null;
                        created_at: DbDate;
                        deleted: boolean;
                        enabled: boolean;
                        entity_id: number & { __brand: "EntityId" };
                        filters:
                            | {
                                facilities: {
                                    facility_id: FacilityId;
                                    level_of_care_ids: (...)[];
                                }[];
                                level_of_care_ids: EntityLevelOfCareId[];
                            }
                            | null;
                        id: ChartReviewTriggerId;
                        interval_seconds: number
                        | null;
                        last_run_at: string | null;
                        name: string;
                        schedule:
                            | {
                                schedule: {
                                    day: (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...)
                                    | (...);
                                    hour: number;
                                    minute: 0;
                                }[];
                                timezone: string;
                            }
                            | null;
                        time_after_trigger_seconds: number;
                        trigger_type: "admission"
                        | "discharge"
                        | "utilization_end";
                        updated_at: DbDate;
                    } & {
                        filters: {
                            facilities: {
                                facility_id: FacilityId;
                                level_of_care_ids: EntityLevelOfCareId[];
                            }[];
                            level_of_care_ids: EntityLevelOfCareId[];
                        };
                    }
                )[];
            };
        },
    > = ...