Systematically organize medical records, lab reports, bills, and consultation documents into a standardized naming convention with correct dates extracted from document content.
- Output Format: Always use
YYYY-MM-DD(ISO 8601 standard) - Indian Date Format Note: In India, when dates are written with slashes (e.g., 10/11/25 or 10-11-25), they follow DD/MM/YYYY format, NOT MM/DD/YYYY (USA format)
- Example:
10/11/25in India = 10th November 2025 =2025-11-10in ISO format - Example:
5/12/25in India = 5th December 2025 =2025-12-05in ISO format
- Example:
- Always extract dates from PDF/document content (bill date fields, consultation dates, "Prepared On" dates), NOT from filename or file modification date
- When dates appear in document text, convert them correctly considering Indian date conventions
Use the following types based on document content:
| Type | Used For | Suffix Format |
|---|---|---|
| Consultation | Doctor visit notes, OP notes | Consultation_Dr_[DoctorName] |
| Bill | Financial charges/invoices | Bill_[ServiceType] or Bill_[ServiceType]_Dr_[DoctorName] |
| Pharmacy | Medicine/drug purchases | Pharmacy_Dr_[DoctorName] or Pharmacy_[ItemName] |
| Lab_Report | Lab test results | Lab_Report_[TestName] |
- Bill_Consultation - Consultation-only bill
- Bill_Pharmacy - Medicine/pharmacy-only bill
- Bill_LabTest_[TestName] - Lab test charges only
- Bill_LabTest_Consultation - Combined lab test + consultation charges
- Bill_[ProcedureName] - Specific procedure (e.g., Endoscopy, Colonoscopy, Manometry)
- Bill_[Service1]_[Service2] - Multiple services on same bill
YYYY-MM-DD_TYPE_Details.extension
Examples:
2025-12-13_Consultation_Dr_[LastName].jpeg2025-12-10_Pharmacy_Dr_[LastName].jpeg2025-12-10_Bill_LabTest_Consultation.jpeg2025-11-10_Lab_Report_Manometry_Test.pdf2025-11-24_Bill_Endoscopy_Colonoscopy.pdf2025-11-10_Consultation_Endoscopy_Images.pdf
- Open each file to view actual content (do NOT rely on filename)
- Read the document carefully to extract:
- Exact date (look for "Date", "Bill Date", "Prepared On", "Consultation Date" fields)
- Document type (bill, consultation, lab report, pharmacy receipt)
- Doctor name (if applicable)
- Service/test name (if applicable)
- Convert dates using Indian DD/MM/YYYY format if written with slashes
- Verify details before renaming to ensure accuracy
- If duplicate files are detected (same content, different file IDs):
- Rename original file:
YYYY-MM-DD_TYPE_Details.extension - Rename duplicate:
DUPLICATE_YYYY-MM-DD_TYPE_Details.extension - Optionally delete duplicate after marking to free up storage
- Rename original file:
- Never assume date from filename - always check document content
- Doctor names: Include last name if visible (e.g., "Dr_[LastName]")
- Special characters: Replace spaces with underscores, remove special symbols
- Multiple documents same date: Use sequential numbering or differentiate by service type
- Scanned documents: If test name/date unclear from scan, number sequentially (e.g., Scanned_1, Scanned_2)
- ✓ Easy date-based searching and sorting
- ✓ Quick identification of document type
- ✓ Doctor/specialist tracking
- ✓ Service/procedure tracking
- ✓ Duplicate detection and cleanup
- ✓ Chronological medical history
- Browse medical files folder
- For each file: Open → Read content → Extract date/type/details
- Identify and mark duplicates
- Rename using
YYYY-MM-DD_TYPE_Detailsformat - Report duplicates and file count
- Verify all files follow consistent naming conventionThis prompt is now ready to copy and save for future use without any specific personal medical information!