session
¶
Every interaction between System X and hiperhealth is recorded as an event row. Current state (clinical data, results, pending inquiries) is derived by replaying events. System X owns the file lifecycle (storage, deletion, retention).
Classes:
Inquiry
¶
Bases: BaseModel
Session
¶
System X creates or loads a session, provides clinical data, and uses the runner to assess / execute stages. The parquet file is the single source of truth. attributes: path: type: Path _language: type: str _events: type: list[dict[str, Any]]
Methods:
-
create– -
load– -
provide_answers– -
record_event– -
set_clinical_data– -
to_context– -
update_from_context–
Attributes:
-
clinical_data(dict[str, Any]) – -
events(list[dict[str, Any]]) – -
language(str) – -
pending_inquiries(list[Inquiry]) – -
results(dict[str, Any]) – -
stages_completed(list[str]) –
Source code in src/hiperhealth/pipeline/session.py
create
classmethod
¶
create(path: str | Path, language: str = 'en') -> Session
Source code in src/hiperhealth/pipeline/session.py
load
classmethod
¶
load(path: str | Path) -> Session
Source code in src/hiperhealth/pipeline/session.py
provide_answers
¶
Source code in src/hiperhealth/pipeline/session.py
record_event
¶
record_event(
event_type: str,
stage: str | None = None,
skill_name: str | None = None,
data: dict[str, Any] | None = None,
) -> None
Source code in src/hiperhealth/pipeline/session.py
set_clinical_data
¶
Source code in src/hiperhealth/pipeline/session.py
update_from_context
¶
update_from_context(
stage: str, ctx: PipelineContext
) -> None