Circle V2 API Docs
    Preparing search index...
    • Enumerate the consecutive N-day compliance buckets from an event date up to (and including) the bucket containing referenceInstant. Each bucket is an inclusive [start, start+N-1] calendar-day range. This is what lets the model answer "was X done in each 30-day period since admission?" by matching documents against a precomputed list instead of doing the interval arithmetic itself. Unlike resolveDateIntent, this needs the event date, so it's called from the resolution stage once the admission/discharge instant is known.

      Parameters

      • eventInstant: Date
      • referenceInstant: Date
      • everyNDays: number
      • timeZone: string = TIMEZONES.AMERICA_NEW_YORK

      Returns ResolvedWindow