=== Patient Date Format Update API Test ===
1. Testing Preview Mode for DOB field:
Preview Response: HTTP 404:
404 Not Found
Not Found
The requested URL was not found on this server.
Apache/2.4.41 (Ubuntu) Server at localhost Port 80
2. Testing Preview Mode for created_at field:
Preview Response: HTTP 404:
404 Not Found
Not Found
The requested URL was not found on this server.
Apache/2.4.41 (Ubuntu) Server at localhost Port 80
=== API Usage Instructions ===
Endpoint: POST /api/update-patient-date-formats
Parameters:
- field: 'dob' or 'created_at' (required)
- limit: number (1-1000, default: 100)
- test_mode: true/false (default: false)
Example Request Bodies:
1. Preview changes: {"field": "dob", "limit": 10, "test_mode": true}
2. Update DOB: {"field": "dob", "limit": 50, "test_mode": false}
3. Update created_at: {"field": "created_at", "limit": 100, "test_mode": false}
IMPORTANT NOTES:
- Always run in test_mode=true first to preview changes
- Use small limits for initial testing
- Only dates in YYYY-MM-DD format will be converted
- Backup your database before running updates