OptionaladditionalInstructions?: string | nullOptionalauditQuestionId?: AuditQuestionIdOptionalenableCalendarAwareness?: booleanOptionalenableClassifyRetrievalMode?: booleanOptionalenableMetadataAwareGate?: booleanWhen set, enrich the document listing the LLM picks from with each
chart's circle_metadata (level-of-care / program-stay window) so the
model selects with clinical context in view. ENRICHMENT only — never a
hard narrow: the candidate set is unchanged, so it can't starve
retrieval of the document holding the answer.
OptionalenableTimeFilteringInChartReview?: booleanOptionalexpandedSteps?: stringOptionalpatientCharts?: {Optional pre-fetched patient charts. When provided, skip the per-question DB fetch and filter in memory by the question's time filter. Caller is responsible for passing the full unfiltered set (or a superset covering the widest expected time window).
OptionalquestionType?: "summary" | "pass_fail"OptionalreferenceInstant?: DateThe run's shared reference instant; anchors the time filter.
OptionalretrievalFloor?: DateEarliest day any criterion of a compound question needs. Only ever widens the cutoff.
OptionalreviewCriteriaInstructions?: string | nullTemplate review criteria — appended to the prompt so the LLM selects documents that matter for the rubric.
OptionalsearchHints?: string[] | nullOptional title/type synonyms from question decomposition.
OptionaltimeZone?: string | nullFacility IANA zone for rendering document dates; resolved (with fallback) internally.
OptionaltreatmentEpisodeId?: TreatmentEpisodeIdWhen set, the chart fetch is scoped to this treatment episode — the
candidate set the LLM picks from contains ONLY that episode's charts, so
cross-episode documents can never be considered. Re-applied in memory to a
provided patientCharts set as well.
Render document dates facility-local + weekday (calendar awareness).