from __future__ import annotations

from typing import Any


class EpicrisisServiceCaseContextProvider:
    def __init__(self, case_epicrisis_service: Any):
        self.case_epicrisis_service = case_epicrisis_service

    def get_case_context(self, username: str, case_key: str, *, regen: bool = False) -> dict[str, Any]:
        return self.case_epicrisis_service.cache_case_context(username, case_key, regen=regen)

