← Về thư mục
skills/clinical-decision-support/scripts/_common.py
- InputError · class · L42-L43 — class InputError(ValueError)
- IssueLog · class · L47-L68 — class IssueLog
- ok · method · L55-L56 — def ok(self) -> bool
- as_dict · method · L58-L68 — def as_dict(self) -> dict[str, Any]
- _reject_nonlocal_path · function · L71-L76 — def _reject_nonlocal_path(raw: str) -> None
- local_input_path · function · L79-L94 — def local_input_path(raw: str, suffixes: Iterable[str] | None = None) -> Path
- local_output_path · function · L97-L109 — def local_output_path(raw: str, suffixes: Iterable[str] | None = None) -> Path
- load_json_object · function · L112-L123 — def load_json_object(raw_path: str) -> dict[str, Any]
- ensure_no_person_level_keys · function · L126-L139 — def ensure_no_person_level_keys(value: Any, location: str = "$") -> None
- write_json · function · L142-L145 — def write_json(raw_path: str, payload: dict[str, Any]) -> None
- write_text · function · L148-L150 — def write_text(raw_path: str, text: str, suffixes: Iterable[str]) -> None
- require_nonempty_text · function · L153-L161 — def require_nonempty_text( value: Any, field_name: str, *, max_length: int = MAX_TEXT_LENGTH ) -> str
- require_list · function · L164-L169 — def require_list(value: Any, field_name: str, *, maximum: int) -> list[Any]
- finite_number · function · L172-L178 — def finite_number(value: Any, field_name: str) -> float
- nonnegative_int · function · L181-L184 — def nonnegative_int(value: Any, field_name: str) -> int
- source_ids · function · L187-L202 — def source_ids(document: dict[str, Any]) -> set[str]
- validate_references · function · L205-L219 — def validate_references( references: Any, known_sources: set[str], field_name: str ) -> list[str]
- print_report · function · L222-L223 — def print_report(report: dict[str, Any]) -> None