Variable classifyDateIntentConst classifyDateIntent : ( ... args : [ ClassifyDateIntentOptions ] , ) => Promise < { 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 : | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday" ; which : "most_recent" ; } | { deadline ?: "end_of_next_business_day" ; event : "admission" | "discharge" | "session" | "other" | "assessment" ; everyNDays ?: number ; kind : "since_event" ; withinHours ?: number ; } | { kind : "none" } | { kind : "unresolvable" } ; source : "parser" | "llm" ; } , > = ...
Type Declaration ( ... args : [ ClassifyDateIntentOptions ] , ) : Promise < { 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 : | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday" ; which : "most_recent" ; } | { deadline ?: "end_of_next_business_day" ; event : "admission" | "discharge" | "session" | "other" | "assessment" ; everyNDays ?: number ; kind : "since_event" ; withinHours ?: number ; } | { kind : "none" } | { kind : "unresolvable" } ; source : "parser" | "llm" ; } , > Parameters ... args : [ ClassifyDateIntentOptions ] Returns Promise < { 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 : | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday" ; which : "most_recent" ; } | { deadline ?: "end_of_next_business_day" ; event : "admission" | "discharge" | "session" | "other" | "assessment" ; everyNDays ?: number ; kind : "since_event" ; withinHours ?: number ; } | { kind : "none" } | { kind : "unresolvable" } ; source : "parser" | "llm" ; } , > Defined in packages/legacy/src/chart-review/run-v2/lib/calendar/classifyDateIntent.ts:22
Classify a question's relative-date reference into a DateIntent: deterministic parser fast-path, LLM fallback for the tail. Grounding-free — it never touches
referenceInstant, so it can run EARLY (before question expansion) and be shared with the answer stage instead of each stage re-classifying.sourcereports which path hit.Traced because the parser/LLM split is otherwise invisible: the LLM leaves a span, the parser leaves nothing, so the fast-path hit rate could only be inferred from an absence.