Circle V2 API Docs
    Preparing search index...

    Variable facilityLevelsOfCareRepoConst

    facilityLevelsOfCareRepo: DbRepo<
        {
            ensureLOCExists: (
                rows: (
                    {
                        entity_id: number & { __brand: "EntityId" };
                        facility_id: string;
                        name: string;
                        type: "clinical" | "ur";
                    } & {
                        created_at?: DbDate;
                        external_id?: string
                        | null;
                        id?: FacilityLevelOfCareId;
                        integration_id?: string | null;
                        updated_at?: DbDate;
                    }
                )[],
            ) => Promise<
                {
                    created_at: DbDate;
                    entity_id: number & { __brand: "EntityId" };
                    external_id: string | null;
                    facility_id: string;
                    id: FacilityLevelOfCareId;
                    integration_id: string | null;
                    name: string;
                    type: "clinical" | "ur";
                    updated_at: DbDate;
                }[],
            >;
            getAllByEntityId: (
                entityId: EntityId,
            ) => Promise<
                {
                    created_at: DbDate;
                    entity_id: number & { __brand: "EntityId" };
                    external_id: string | null;
                    facility_id: string;
                    id: FacilityLevelOfCareId;
                    integration_id: string | null;
                    name: string;
                    type: "clinical" | "ur";
                    updated_at: DbDate;
                }[],
            >;
            upsert: (
                rows: (
                    {
                        entity_id: number & { __brand: "EntityId" };
                        facility_id: string;
                        name: string;
                        type: "clinical" | "ur";
                    } & {
                        created_at?: DbDate;
                        external_id?: string
                        | null;
                        id?: FacilityLevelOfCareId;
                        integration_id?: string | null;
                        updated_at?: DbDate;
                    }
                )[],
            ) => Promise<
                {
                    created_at: DbDate;
                    entity_id: number & { __brand: "EntityId" };
                    external_id: string | null;
                    facility_id: string;
                    id: FacilityLevelOfCareId;
                    integration_id: string | null;
                    name: string;
                    type: "clinical" | "ur";
                    updated_at: DbDate;
                }[],
            >;
        },
    > = ...