dicom-web-query

dicom-web-query is a skill for Claude Code, Codex from aizech/clinical-skills. It costs 58 tokens per session (2,571 once invoked), scanned A, original, MIT.

A guide and code examples for using DICOMweb, a REST-based web interface for medical imaging systems. It covers querying, retrieving, and storing DICOM medical-imaging objects.

In plain words
What is it for?
Use it to search imaging studies with QIDO-RS, retrieve objects with WADO-RS or WADO-URI, and store them with STOW-RS.
Why use it?
It removes the need to learn the different DICOMweb request types and URL patterns from scratch. It also shows how to send queries from Python.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to search imaging studies with QIDO-RS, retrieve objects with WADO-RS or WADO-URI, and store them with STOW-RS.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aizech/clinical-skills/dicom-web-query
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aizech/clinical-skills --skill dicom-web-query
Clone the repo
git clone --depth 1 https://github.com/aizech/clinical-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dicom-web-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/aizech/clinical-skills/dicom-web-query/github.svg)](https://agentmods.dev/skills/aizech/clinical-skills/dicom-web-query)
Your own site
<a href="https://agentmods.dev/skills/aizech/clinical-skills/dicom-web-query"><img src="https://agentmods.dev/badge/skills/aizech/clinical-skills/dicom-web-query/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dicom-web-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/aizech/clinical-skills/dicom-web-query"><img src="https://agentmods.dev/badge/skills/aizech/clinical-skills/dicom-web-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,571 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.02571
Opus 5 $0.00029 $0.01286
Sonnet 5 $0.00012 $0.00514
Haiku 4.5 $0.00006 $0.00257

Measured 10d ago against content hash 99fae61f4df3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

dicom-web-query scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

response = requests.get(
.agents/skills/dicom-web-query/SKILL.md · 441 lines

How it starts

The opening of the file, as written. The whole thing — 441 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DICOMweb Query

You are a DICOMweb expert. Your role is to help users interact with DICOMweb-enabled servers for imaging data retrieval.

DICOMweb Overview

RESTful DICOM Services

Service Method Description
QIDO-RS GET Query DICOM images (Query-based ID Retrieve)
WADO-RS GET Retrieve DICOM objects (Web Access to DICOM)
STOW-RS POST Store DICOM objects (Store Over the Web)
WADO-URI GET Retrieve via URI (legacy)

Base URL Structure

https://pacs.example.com/dicomweb

QIDO-RS (Query)

Study Search

import requests

BASE_URL = "https://pacs.example.com/dicomweb"

def qido_studies(filters=None, include_fields=None):
    """
    Query for studies using QIDO-RS.
    
    Args:
        filters: Dict of DICOM tags to filter
        include_fields: Specific tags to return
    """
    params = {}
    
    if filters:
        for key, value in filters.items():
            params[f"includefield={key}"] = value
    
    response = requests.get(
        f"{BASE_URL}/studies",
        params=params
    )
    
    return response.json()

Common Query Parameters

Parameter DICOM Tag Description
00100010 PatientName Patient name
00100020 PatientID Patient ID
00080020 StudyDate Study date (YYYYMMDD)
00080030 StudyTime Study time
00080050 AccessionNumber Accession number
00080060 Modality Imaging modality
00081030 StudyDescription Study description
00200010 StudyInstanceUID Study UID

Query by Patient

def find_studies_by_patient(patient_id):
    """Find all studies for a patient."""
    params = {
        "PatientID": patient_id,
        "includefield": "00080020,00080030,00080060"
    }
    
    response = requests.get(f"{BASE_URL}/studies", params=params)
    return response.json()

Query by Date Range

def find_studies_by_date(start_date, end_date, modality=None):
    """Find studies within date range."""
    params = {
        "StudyDate": f"{start_date}-{end_date}"
    }
    
    if modality:
        params["Modality"] = modality
    
    response = requests.get(f"{BASE_URL}/studies", params=params)
    return response.json()

Read the full file on GitHub · 441 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 441 lines · 58 tokens per session scan A 99fae61f4df3

Subscribe to this mod's changes

dicom-web-query is a skill published in the GitHub repository aizech/clinical-skills (4 stars, last pushed 2mo ago), licensed MIT. It adds 58 tokens to every session and 2,571 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

stripe-apps

Use when building, modifying, or reviewing a Stripe App — or when the user describes something that implies one (e.g. "add a panel to the customer page", "customize my Stripe Dashboard", "react to Stripe events from my app", "connect my service to Stripe without sharing API keys"). Covers the full app development…

stripe/ai · 197 tokens

stripe-projects

Use when the user wants to provision infrastructure or third-party services using Stripe Projects. Triggers: "I need a database", "set up auth", "add caching", "give me a Postgres", "provision Redis", "I need hosting", "add a vector DB", "get me an API key for X", "get credentials for X", "sign up for a service", "set…

stripe/ai · 213 tokens

stripe-docs

Use when the user or agent needs to read, search, or look up Stripe documentation or API reference. Prefer this over curl or WebFetch for any docs.stripe.com content. Use to fetch gated documentation.

stripe/ai · 46 tokens

stripe-best-practices

Guides Stripe integration decisions across API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, tax and registrations (Stripe Tax, automatictax, product tax codes), Treasury financial accounts, integration options (Checkout, Payment…

stripe/ai · 135 tokens

architecture

Greenfield architecture design: map functionality flows, draw components, design APIs, classify dependencies, plan observability. For multi-component, API, schema, auth, or integration-heavy work. For retrofitting existing code, use codebase-hygiene instead.

romiluz13/cc10x · 56 tokens

nornweave-api

Give AI agents their own email inboxes using the NornWeave API. Use when building email agents, sending/receiving emails programmatically, managing inboxes, retrieving threads, searching messages, or integrating with email providers (Mailgun, SES, SendGrid, Resend). NornWeave provides LLM-ready markdown parsing and…

DataCovey/nornweave · 77 tokens