← Về thư mục
skills/clinical-reports/scripts/_common.py
- ValidationError · class · L25-L26 — class ValidationError(ValueError)
- _reject_nonlocal · function · L29-L33 — def _reject_nonlocal(raw: str) -> None
- local_input_path · function · L36-L61 — def local_input_path( raw: str, *, suffixes: Iterable[str], max_bytes: int, ) -> Path
- local_output_path · function · L64-L90 — def local_output_path( raw: str, *, suffixes: Iterable[str], overwrite: bool, ) -> Path
- _object_without_duplicates · function · L93-L99 — def _object_without_duplicates(pairs: list[tuple[str, Any]]) -> dict[str, Any]
- _check_tree · function · L102-L126 — def _check_tree(value: Any, *, depth: int = 0, counter: list[int] | None = None) -> None
- load_json_object · function · L129-L151 — def load_json_object(raw_path: str) -> tuple[Path, dict[str, Any]]
- write_json_report · function · L154-L170 — def write_json_report( report: dict[str, Any], raw_output: str | None, *, overwrite: bool, ) -> None
- require_data_class · function · L173-L179 — def require_data_class(value: Any) -> str
- require_exact_keys · function · L182-L200 — def require_exact_keys( value: Any, expected: Iterable[str], field: str, ) -> dict[str, Any]
- require_identifier · function · L203-L207 — def require_identifier(value: Any, field: str) -> str
- require_string · function · L210-L217 — def require_string(value: Any, field: str, *, max_length: int = 256) -> str
- require_bool · function · L220-L224 — def require_bool(value: Any, field: str) -> bool
- require_nonnegative_int · function · L227-L231 — def require_nonnegative_int(value: Any, field: str) -> int
- parse_iso_date · function · L234-L240 — def parse_iso_date(value: Any, field: str) -> date
- parse_iso_datetime · function · L243-L252 — def parse_iso_datetime(value: Any, field: str) -> datetime
- error_report · function · L255-L263 — def error_report(tool: str, exc: Exception) -> dict[str, Any]