Configure Orthanc REST API and enable the Python plugin for instance-level routing callbacks

domain: orthanc.uclouvain.be · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install the OrthancPython plugin shared library and reference it in orthanc.json under the Plugins array
  2. Write a Python script that registers an orthanc.RegisterOnStoredInstanceCallback function to inspect incoming instance metadata
  3. Inside the callback inspect DICOM tags returned by orthanc.GetInstanceSimplifiedTags to extract Modality, BodyPartExamined, or StudyDescription
  4. Call orthanc.RestApiPost('/modalities/{target}/store', json.dumps([instanceId])) to forward matching instances to a configured remote DICOM peer
  5. Reload the Orthanc configuration via POST /tools/reset and verify routing by checking /instances and querying the target modality

Known gotchas

Related routes

Configure DICOM TLS using the BCP 195 Secure Transport Connection Profile on an Orthanc server
orthanc.uclouvain.be · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans