This guide explains how to configure a DICOM workflow where K PACS sends images to Orthanc, and Orthanc automatically forwards those images to a DICOM Router. This setup is typically used in clinics or hospitals to centralize image routing and automate delivery to backend systems.
| Component | Description |
|---|---|
| K PACS | Free DICOM viewer and sender |
| Orthanc | Lightweight DICOM server capable of auto forwarding |
| DICOM Router | Destination system that receives final images |
| Windows PC | For installing K PACS and Orthanc |
| Network Information | IP address, port, and AE Title of the DICOM Router |


If you prefer using Docker, you can run Orthanc using the command below:
docker run -p 8042:8042 -p 4242:4242 jodogne/orthanc
ORTHANClocalhost (or your Orthanc server IP)4242
File Locations:
C:\Program Files\Orthanc Server\Configuration\Orthanc.jsonDicomModalities configuration:
"DicomModalities": {
"DCMROUTER": [ "DCMROUTER", "localhost", 11112 ]
},
Forwarding configuration:
"ForwardDicom": [ "DCMROUTER" ]
Replace localhost and 11112 with the actual IP and port of your DICOM Router.

Save the script below as forward.lua in a directory such as:
D:\RIS_AGENT\scripts\forward.lua
function OnStoredInstance(instanceId, tags, metadata)
SendToModality(instanceId, "DCMROUTER")
end
"LuaScripts": [ "D:\\RIS_AGENT\\scripts\\forward.lua" ]
Note: Use double backslashes for Windows paths.

services.msc.Command Prompt (Run as Administrator):
net stop Orthanc
net start Orthanc
docker restart orthanc
http://localhost:8042.| Issue | Cause | Solution |
|---|---|---|
| Image not forwarded | Incorrect AE Title or network values | Verify AE Title, IP, and port in Orthanc.json |
| Web uploads not forwarded | Lua script missing or not loaded | Add Lua script and restart Orthanc |
| Router rejects image | AE Title mismatch | Confirm router configuration |
| No response from router | Connectivity or DICOM issue | Test using echoscu or storescu |