← Về thư mục
skills/pydicom/scripts/anonymize_dicom.py
- _load_key · function · L63-L78 — def _load_key(path: Path) -> bytes
- _map_scalar_uid · function · L81-L89 — def _map_scalar_uid( value: Any, *, key: bytes, scope: str, mapping: dict[str, str] ) -> str
- _map_uid_value · function · L92-L100 — def _map_uid_value( value: Any, *, key: bytes, scope: str, mapping: dict[str, str] ) -> Any
- _pseudonym_value · function · L103-L107 — def _pseudonym_value(value: Any, *, keyword: str, key: bytes, scope: str) -> str
- _shift_date_text · function · L110-L120 — def _shift_date_text(value: Any, days: int) -> tuple[str, bool]
- _shift_datetime_text · function · L123-L128 — def _shift_datetime_text(value: Any, days: int) -> tuple[str, bool]
- _date_action · function · L131-L170 — def _date_action( element: Any, *, date_policy: str, date_shift_days: int | None, retain_times: bool, counters: Counter[str], ) -> None
- _looks_instance_uid · function · L173-L176 — def _looks_instance_uid(keyword: str) -> bool
- transform_dataset · function · L179-L343 — def transform_dataset( dataset: Any, *, profile: dict[str, Any], key: bytes, scope: str, date_shift_days: int | None, retain_times: bool, allow_private_retention: bool, allow_date_retention: bool, max_elements: int, ) -> tuple[dict[str, Any], dict[str, str]]
- _rebuild_file_meta · function · L346-L360 — def _rebuild_file_meta(dataset: Any, *, original_transfer_syntax: Any) -> None
- process_file · function · L363-L552 — def process_file(args: argparse.Namespace) -> dict[str, Any]
- writer · function · L474-L480 — def writer(path: Path) -> None
- validator · function · L482-L489 — def validator(path: Path) -> None
- build_parser · function · L555-L671 — def build_parser() -> argparse.ArgumentParser
- main · function · L674-L709 — def main(argv: list[str] | None = None) -> int