
The KMS RIS Agent is an automated system that assists hospitals in managing radiology orders and medical images. It works as a digital assistant that:

Every minute, the system checks the hospital IHS for new radiology orders, then sends them to the system automatically.
When images (JPG, PNG, JPEG) are added to the Watch folder:
C:\Medical_Images ├── Watch ← Place new images here ├── Processed ← Successfully processed │ ├── failed_uploads ← Cannot upload │ └── failed_originals ← Cannot process
| Folder | Purpose |
|---|---|
| Watch | Place new medical images here |
| Processed | Images successfully handled |
| failed_uploads | Files that couldn’t upload |
| failed_originals | Files that couldn’t process |

Use only the accession number for the filename:
019966250821014.jpgACC123456789.pngRAD2024001234.jpegThe accession number must match what exists in the hospital system.

FAILED_0199_AUTH_FAILED_CHECK_CREDENTIALS_123.jpg → Check login credentials with IT TechnicianFAILED_ACC123_ACCESSION_NOT_FOUND_IN_SYSTEM_123.jpg → Verify accession numberFAILED_RAD2024_NETWORK_ISSUE_CHECK_CONNECTION_123.jpg → Check internet or check with the IT TechnicianFAILED_img_INVALID_IMAGE_FORMAT_USE_JPG_PNG.jpg → Please convert to the supported image formatFAILED_scan_CORRUPTED_IMAGE_FILE.jpg → Rescan/Redownload the image and retryFAILED_big_IMAGE_TOO_LARGE_REDUCE_SIZE.jpg → Compress image and retryFAILED_wrong_FILENAME_FORMAT_INCORRECT.jpg → Rename using accession number only
Open a browser and go to:
http://localhost:9090/ris-agent/api/ris/health
Check the /logs folder in the installation directory for details.

| Error | Meaning | Solution |
|---|---|---|
| AUTH_FAILED | Invalid credentials | Check with IT |
| ACCESSION_NOT_FOUND | Order not detected | Verify accession number |
| NETWORK_ISSUE | Connection problem | Check network or retry |
| INVALID_IMAGE_FORMAT | Unsupported file | Save as JPG/PNG |
| IMAGE_TOO_LARGE | File too big | Compress image |
| Issue | Check | Solution |
|---|---|---|
| Images not moving | Filename format | Use accession number only |
| Health check fails | Restart | Run start-kms-ris-agent.bat |
| Upload failures | Network | Wait or contact IT |
| System won’t start | Java installation | Install Java 21 |
| Port conflict | Check other apps | Change port or stop app |


Remember: The system is designed to work automatically. If you find yourself fixing issues frequently, report it to IT to optimize the setup.