Circle V2 API Docs
    Preparing search index...

    Variable utilizationServicesRepoConst

    utilizationServicesRepo: DbRepo<
        {
            findDriftForPatient: (
                params: { fallbackTimeZone: string; patientId: PatientId },
            ) => Promise<
                {
                    drift: "missing"
                    | "stale"
                    | "extra";
                    patient_chart_id: PatientChartId;
                }[],
            >;
            getCursor: () => Promise<
                | UtilizationServicesCursor & {
                    advancedAt: DbDate;
                    currentThrough: DbDate
                    | null;
                }
                | null,
            >;
            getFacilityFreshness: (
                facilityId: FacilityId,
            ) => Promise<
                {
                    as_of: DbDate;
                    current_through: DbDate
                    | null;
                    last_synced_at: string | null;
                },
            >;
            listAllPatientIdsForBackfill: (
                params: { afterPatientId: PatientId | null; entityId: EntityId },
            ) => Promise<PatientId[]>;
            syncServicesForPatient: (
                params: { fallbackTimeZone: string; patientId: PatientId },
            ) => Promise<ServicesSyncCounts>;
            syncServicesFromChangedCharts: (
                params: SyncChangedChartsParams,
            ) => Promise<
                ServicesSyncCounts & {
                    cursor: UtilizationServicesCursor;
                    initialized: boolean;
                },
            >;
        },
    > = ...