rename_documents_to_standard
Standardize medical document filenames to YYYYMMDD_PatientName_Institution_Category_DescriptionEN format. Preview changes with dry_run or execute to rename files.
Instructions
Rename documents from old naming conventions to the standard format.
Standard format: YYYYMMDD_PatientName_Institution_Category_DescriptionEN.ext
In dry_run mode (default), returns a preview of proposed renames without making any changes. Set dry_run=False to execute the rename.
Args: dry_run: If True (default), only preview changes. Set False to execute. en_descriptions: Optional JSON object mapping doc_id → English description (e.g. '{"15": "BloodResultsPreCycle3", "42": "CTAbdomen"}'). If not provided, keeps existing descriptions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| en_descriptions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |