How innovative-io/io-dicom works
io-dicom is a Go DICOM library and command-line client/server, supporting DICOM object parsing and writing, network associations, DIMSE services, pixel codecs and transcoding, plus DICOMweb. A typical network workflow starts at the CLI or an integrating application, runs through SCU/SCP services, exchanges PDUs and DIMSE commands, and reads or writes DICOM objects; pixel operations dispatch through codecs. The README also documents WADO-RS/STOW-RS/QIDO-RS client and server support. Some subsystem links are documented rather than source-verified because their implementations were not sampled.
Main entry points: dispatch.go Codec Dispatch · dicom_object.go DICOM Objects · pdu_service.go PDU Service · scp_handlers.go SCP Handlers
Components 20
Applications
- CLI
cmd/io-dicom/main.go
DICOM Protocol
- SCU Services
services/scu.go - SCP Handlers
services/scp_handlers.go - PDU Service
network/pdu_service.go - DIMSE Commands
dimse
Objects and Metadata
- DICOM Objects
media/dicom_object.go - Metadata Index
media/dicom_index.go - DICOM Dictionaries
dictionary - Conformance Validation
conformance/validator.go
Pixel Processing
- Transfer Transcoder
transcoder/transcoder.go - Codec Dispatch
codecs/dispatch.go - JPEG Codecs
codecs/jpeg/codec.go - JPEG2000 Codecs
codecs/jpeg2000/codec.go - JPEG-LS Codecs
codecs/jpegls/codec.go - JPEG XL Codecs
codecs/jpegxl/codec.go - RLE Codec
codecs/rle/rle.go
DICOMweb
- WADO Client
wado/client.go - WADO Server
wado/server.go
Other components
- DICOM Peer
- DICOMweb Store
Connections 21
- CLI → SCU Services: starts client
cmd/io-dicom/main.go - CLI → SCP Handlers: starts server
cmd/io-dicom/main.go - SCU Services → PDU Service: uses associations
- SCP Handlers → PDU Service: handles PDUs
services/scp_handlers.go - SCP Handlers → DIMSE Commands: dispatches commands
services/scp_handlers.go - PDU Service → DICOM Objects: parses datasets
network/pdu_service.go - PDU Service → DICOM Peer: exchanges PDUs
- DICOM Objects → DICOM Dictionaries: uses tag metadata
media/dicom_object.go - DICOM Objects → Codec Dispatch: decodes pixels
media/dicom_object.go - Transfer Transcoder → DICOM Objects: rewrites pixel data
transcoder/transcoder.go - Transfer Transcoder → Codec Dispatch: selects codecs
transcoder/transcoder.go - Codec Dispatch → JPEG Codecs: dispatches JPEG
codecs/dispatch.go - Codec Dispatch → JPEG2000 Codecs: dispatches JPEG2000
codecs/dispatch.go - Codec Dispatch → JPEG-LS Codecs: dispatches JPEG-LS
codecs/dispatch.go - Codec Dispatch → JPEG XL Codecs: dispatches JPEG XL
codecs/dispatch.go - Codec Dispatch → RLE Codec: dispatches RLE
codecs/dispatch.go - WADO Client → DICOM Peer: requests DICOMweb
- DICOM Peer → WADO Server: sends HTTP requests
- WADO Server → DICOMweb Store: retrieves and stores
wado/server.go - WADO Server → DICOM Objects: parses DICOM parts
wado/server.go - Metadata Index → DICOM Objects: indexes DICOM files