Circle V2 API Docs
    Preparing search index...
    • Ground an intent into a concrete facility-local window (the arithmetic half).

      Parameters

      • intent:
            | { kind: "rolling_days"; n: number }
            | {
                cadence?: "per_day";
                kind: "calendar_week";
                subset?: "full" | "mon_fri" | "weekend";
                which: "last" | "current" | "most_recent_completed";
            }
            | {
                kind: "specific_weekday";
                weekday: | "sunday"
                | "monday"
                | "tuesday"
                | "wednesday"
                | "thursday"
                | "friday"
                | "saturday";
                which: "most_recent";
            }
            | {
                event: "session"
                | "admission"
                | "discharge"
                | "assessment"
                | "other";
                everyNDays?: number;
                kind: "since_event";
                withinHours?: number;
            }
            | { kind: "none" }
            | { kind: "unresolvable" }
      • referenceInstant: Date
      • timeZone: string
      • eventInstants: EventInstants | undefined

      Returns ResolvedWindow | null