Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Derive the current response status for a record given today's date.

      Rules (in priority order):

      1. If response_skrivelse_id is set:
        • If gov_response_status === 'PARTIAL' (or open_recommendations > 0) โ†’ PARTIAL
        • Otherwise โ†’ RESPONDED
      2. If deadline has elapsed and no response โ†’ OVERDUE
      3. Otherwise โ†’ PENDING

      Status is derived primarily from the presence of response_skrivelse_id: a record cannot be PENDING/OVERDUE if a skrivelse reference is recorded.

      Parameters

      • record: RirFollowUpRecord

        The RiR follow-up record

      • asOf: string | Date = ...

        Reference date for "today" (ISO 8601 or Date). Defaults to now.

      Returns RirResponseStatus

      Derived status (does NOT mutate the record).