# RADENVO DICOM Conformance Statement

| | |
|---|---|
| Product | RADENVO (formerly Lumen PACS) (DICOM gateway 1.5.0, web application 1.1) |
| Document date | 2026-11-05 |
| Structure | DICOM PS3.2 (2026) Annex A conformance statement template |
| Scope | DICOM gateway (`gateway/*.mjs`), DICOMweb and WADO-URI services (`src/app/api/dicomweb/**`, `src/app/api/wado`), objects created by the web viewer (`src/lib/dicom/pstate.ts`, `evidence.ts`, `reportExport.ts`), media export and import (`src/lib/media/**`), DICOMweb client (`src/lib/dicomweb/**`, `gateway/dicomweb-client.mjs`) |

Everything below describes what the code on disk does. Where a feature is limited or absent, the statement says so in the relevant section and in [section 9](#9-known-limitations).

---

## 1. Conformance Statement Overview

RADENVO is a cloud PACS/RIS. DICOM networking is provided by the **RADENVO DICOM gateway**, a Node.js service (dcmjs-dimse 0.3.4) that runs on site or in the cloud. One gateway process serves every tenant: each tenant registers one or more **called AE titles**, and every called AE title offers the same set of services, scoped to the tenant that owns it. The gateway stores received objects in the tenant's cloud object store and indexes them in the tenant's database.

The web application offers DICOMweb (QIDO-RS, WADO-RS, STOW-RS) and WADO-URI, acts as a QIDO-RS / WADO-RS / STOW-RS client toward cloud archives, creates Grayscale Softcopy Presentation States, Key Object Selection documents and report exports (Basic Text SR, Encapsulated PDF) from the viewer, and writes and reads IHE PDI-style media packages.

### 1.1 Network services

| SOP Class | UID | SCU | SCP |
|---|---|---|---|
| **Transfer** | | | |
| Storage SOP Classes (185 UIDs, [section 3.3.1.4](#3314-accepted-storage-sop-classes)) | see table | Yes | Yes |
| Storage Commitment Push Model | 1.2.840.10008.1.20.1 | Yes | Yes |
| Storage Commitment Pull Model (retired) | 1.2.840.10008.1.20.2 | No | Yes |
| **Query/Retrieve** | | | |
| Patient Root Q/R Information Model - FIND | 1.2.840.10008.5.1.4.1.2.1.1 | No | Yes |
| Patient Root Q/R Information Model - MOVE | 1.2.840.10008.5.1.4.1.2.1.2 | No | Yes |
| Patient Root Q/R Information Model - GET | 1.2.840.10008.5.1.4.1.2.1.3 | No | Yes |
| Study Root Q/R Information Model - FIND | 1.2.840.10008.5.1.4.1.2.2.1 | Yes | Yes |
| Study Root Q/R Information Model - MOVE | 1.2.840.10008.5.1.4.1.2.2.2 | Yes | Yes |
| Study Root Q/R Information Model - GET | 1.2.840.10008.5.1.4.1.2.2.3 | Yes | Yes |
| Patient/Study Only Q/R Information Model - FIND (retired) | 1.2.840.10008.5.1.4.1.2.3.1 | No | Yes |
| Patient/Study Only Q/R Information Model - MOVE (retired) | 1.2.840.10008.5.1.4.1.2.3.2 | No | Yes |
| Patient/Study Only Q/R Information Model - GET (retired) | 1.2.840.10008.5.1.4.1.2.3.3 | No | Yes |
| Hanging Protocol Information Model - FIND | 1.2.840.10008.5.1.4.38.2 | No | Yes |
| Hanging Protocol Information Model - MOVE | 1.2.840.10008.5.1.4.38.3 | No | Yes |
| Hanging Protocol Information Model - GET | 1.2.840.10008.5.1.4.38.4 | No | Yes |
| **Workflow Management** | | | |
| Modality Worklist Information Model - FIND | 1.2.840.10008.5.1.4.31 | Yes | Yes |
| Modality Performed Procedure Step | 1.2.840.10008.3.1.2.3.3 | Yes | Yes |
| Modality Performed Procedure Step Retrieve (retired) | 1.2.840.10008.3.1.2.3.4 | No | Yes |
| Modality Performed Procedure Step Notification (retired) | 1.2.840.10008.3.1.2.3.5 | No | Yes |
| General Purpose Worklist Information Model - FIND (retired) | 1.2.840.10008.5.1.4.32.1 | No | Yes |
| General Purpose Scheduled / Performed Procedure Step (retired) | 1.2.840.10008.5.1.4.32.2 / .32.3 | No | No (retired from DICOM in 2011, [section 3.3.9](#339-general-purpose-worklist-find-scp-retired-sop-class)) |
| Instance Availability Notification | 1.2.840.10008.5.1.4.33 | Yes | No |
| General Relevant Patient Information Query | 1.2.840.10008.5.1.4.37.1 | Yes | Yes |
| Breast Imaging Relevant Patient Information Query | 1.2.840.10008.5.1.4.37.2 | Yes | Yes |
| Cardiac Relevant Patient Information Query | 1.2.840.10008.5.1.4.37.3 | Yes | Yes |
| **Print Management** | | | |
| Basic Grayscale Print Management Meta | 1.2.840.10008.5.1.1.9 | Yes | No |
| Basic Color Print Management Meta | 1.2.840.10008.5.1.1.18 | Yes | No |
| > Basic Film Session, Basic Film Box, Basic Grayscale / Color Image Box, Printer | 1.2.840.10008.5.1.1.1, .1.2, .1.4, .1.4.1, .1.16 | Yes | No |
| Presentation LUT | 1.2.840.10008.5.1.1.23 | Yes | No |
| Basic Annotation Box | 1.2.840.10008.5.1.1.15 | Yes | No |
| Print Job | 1.2.840.10008.5.1.1.14 | Yes | No |
| Printer Configuration Retrieval | 1.2.840.10008.5.1.1.16.376 | Yes | No |
| **Verification** | | | |
| Verification | 1.2.840.10008.1.1 | Yes | Yes |

Storage, Query/Retrieve, worklist and normalized services are available over plain TCP (default port 11112) and over DICOM TLS (default port 2762) when a server certificate is configured. `DICOM_PLAIN=off` turns the plain listener off (TLS only). Every outbound association can use TLS per destination.

### 1.2 Media services

| Media Storage Application Profile | Write Files (FSC or FSU) | Read Files (FSR) |
|---|---|---|
| STD-GEN-CD, STD-GEN-DVD-RAM, STD-GEN-BD, STD-GEN-USB (General Purpose interchange, Explicit VR Little Endian) | FSC (volume delivered as a ZIP download, see [section 4](#4-media-interchange)) | FSR |
| Media Storage Directory (DICOMDIR) 1.2.840.10008.1.3.10 | Written | Read |

RADENVO does not update existing file-sets (no FSU). Writing a volume to a physical disc is outside RADENVO (hardware; any burning software or disc publisher).

### 1.3 Web services

| Service | Role | Section |
|---|---|---|
| QIDO-RS (studies, series, instances; within a study or across studies) | Origin server and user agent | [5.1](#51-dicomweb-origin-server), [5.3](#53-dicomweb-user-agent) |
| WADO-RS (study, series, instance, metadata, frames, rendered, thumbnail, bulk data) | Origin server and user agent (study retrieve) | [5.1](#51-dicomweb-origin-server), [5.3](#53-dicomweb-user-agent) |
| STOW-RS (POST /studies, /studies/{uid}; application/dicom and application/dicom+json) | Origin server and user agent | [5.1](#51-dicomweb-origin-server), [5.3](#53-dicomweb-user-agent) |
| WADO-URI (application/dicom, image/jpeg, image/png, video/mp4, video/mpeg, application/pdf, text/xml, text/plain, text/html) | Origin server | [5.2](#52-wado-uri-server) |

---

## 2. Introduction

### 2.1 Revision history

| Version | Date | Change |
|---|---|---|
| 1.0 | 2026-11-04 | First published statement (gateway 1.5.0). |
| 1.2 | 2026-11-07 | Gateway 1.6.0: Deflated Explicit VR LE on every service; C-MOVE pending responses; Issuer of Patient ID matching (Q/R, MWL); per-station Receive Study As (facility, issuer, status), result filter (issuer, facility, status), patient-name caret repair, Issuer cleared in C-MOVE requests, original Patient ID / Issuer on send; per-send anonymize; outbound queue transfers in the audit log; Basic Color Print with Presentation LUT, Annotation Box, Printer / Printer Configuration / Print Job N-GET; per-service association limits; configurable association, DIMSE and TCP timeouts. |
| 1.3 | 2026-11-07 | WADO-URI: Explicit VR Little Endian by default, video/mp4 (H.264 Annex B remuxed to MP4), SR as PDF with an organization template; media volumes in Explicit VR LE (STD-GEN-CD/-DVD-RAM/-BD/-USB); Basic Voice Audio playback; dose register from RDSR content; automatic Key Object Selection at report signing. |
| 1.1 | 2026-11-05 | RADENVO Implementation Class UID; Storage Commitment Pull SCP; C-GET, MWL, MPPS and Relevant Patient Information SCU; MPPS Retrieve/Notification SCP; requested-keys-only and per-station result limits; YBR to RGB and burned-in GSPS on send; patient documents as Encapsulated PDF/SC; DIMSE audit; TLS-only mode; DICOMweb client and full WADO-RS/QIDO-RS; report SR export; encryption at rest. |

### 2.2 Audience and remarks

Written for integrators connecting modalities, workstations, archives, RIS and printers to RADENVO. A conformance statement does not guarantee interoperability; test every connection before clinical use. RADENVO accepts and stores a wide range of objects; storing an object does not imply the web viewer displays it ([section 3.3.1.6](#3316-display-of-stored-objects)).

### 2.3 Definitions and abbreviations

AE: Application Entity. SCU/SCP: Service Class User/Provider. TS: Transfer Syntax. PDU: Protocol Data Unit. IOCM: Imaging Object Change Management (IHE RAD). KOS: Key Object Selection Document. GSPS: Grayscale Softcopy Presentation State. HP: Hanging Protocol. GP: General Purpose. MWL: Modality Worklist. MPPS: Modality Performed Procedure Step. IAN: Instance Availability Notification. FSC/FSR/FSU: File-set Creator/Reader/Updater. Tenant: one RADENVO organization; all data and services are scoped to it.

### 2.4 References

DICOM PS3.2, PS3.3, PS3.4, PS3.5, PS3.6, PS3.7, PS3.8, PS3.10, PS3.11, PS3.12, PS3.15, PS3.18 (2026). IHE Radiology Technical Framework (IOCM, PDI).

---

## 3. Networking

### 3.1 Implementation model

#### 3.1.1 Application data flow

```
 Modality / workstation / PACS                 RADENVO DICOM gateway                     RADENVO cloud
 ----------------------------                  -------------------                     -----------
 C-ECHO, C-STORE  ───────────────────────────▶  Storage SCP ─▶ spool ─▶ upload ──────▶ object store + database
 C-FIND, C-MOVE, C-GET ──────────────────────▶  Q/R SCP     ◀───────── query ◀────────  studies / series / instances
 MWL C-FIND ─────────────────────────────────▶  MWL SCP     ◀───────── orders ◀────────  RIS orders
 MPPS N-CREATE/N-SET ────────────────────────▶  MPPS SCP    ─────────▶ procedure steps, dose, contrast
 Storage Commitment N-ACTION ────────────────▶  StgCmt SCP  ─▶ N-EVENT-REPORT (same or new association)
 ◀──── C-STORE, N-ACTION, N-CREATE, N-SET, C-FIND, C-MOVE, C-GET, print N-xxx  ◀── SCU queues (routing, resend,
                                                                                         prefetch, IAN, MPPS send/forward,
                                                                                         IOCM, print, remote Q/R, MWL
                                                                                         import, relevant patient query)
```

- **Storage SCP** accepts objects, applies inbound coercion (prior reconciliation and tag-morph rules), writes each object to a local spool, acknowledges only after the file is durable on disk, then uploads in batches and indexes the batch. When a study stops receiving objects for `STUDY_SETTLE_SECONDS` (default 20 s) the gateway runs routing rules, sends IAN to flagged destinations and requests the AI pre-read.
- **Query/Retrieve, MWL, GP Worklist, Relevant Patient Information and Hanging Protocol SCPs** answer from the tenant database (or, while the cloud is unreachable, Q/R from the gateway's local cache, [section 3.8](#38-local-cache-and-offline-operation)).
- Every association (accepted or rejected) and every C-STORE batch, C-FIND, MWL find, C-MOVE, C-GET, MPPS and storage commitment event, and every outbound queue transfer and manual resend (`dicom.transmit`), is written to the tenant's hash-chained audit log (`gateway_audit`, actions `dicom.*`); `DICOM_AUDIT=off` disables it.
- **SCU activities** are driven by persistent queues in the database (outbound jobs, MPPS forwards, gateway commands, prefetch jobs), so a gateway restart loses no work. Several gateways can share one database; work for a destination can be pinned to one gateway.

#### 3.1.2 Functional definition of AEs

There is one listening AE implementation. Every active AE title registered for a tenant (Admin, DICOM nodes) is a called AE title of this implementation and provides every SCP service in [section 1.1](#11-network-services) for that tenant. For associations it initiates, the gateway uses the tenant's first active registered AE title as Calling AE Title (`LUMEN` if none), except that C-MOVE sub-operations use the called AE title of the C-MOVE request, and Storage Commitment reports on a new association use the AE title the commitment request was sent to.

#### 3.1.3 Sequencing of real-world activities

1. A scheduled order appears on the MWL once the front desk has booked it (status `scheduled` or `arrived`, not waiting for scheduling).
2. The modality may send MPPS N-CREATE (IN PROGRESS), C-STOREs, MPPS N-SET (COMPLETED or DISCONTINUED) and a Storage Commitment request.
3. Storage Commitment is confirmed only for instances recorded in the database, never for instances that are merely spooled.
4. After the study settles: routing, IAN, AI pre-read. Studies that arrived as prefetched outside priors are not routed and not pre-read.

### 3.2 AE specifications: SCP services

#### 3.2.1 SOP classes

The SCP role covers every SOP class in [section 1.1](#11-network-services) marked SCP. Abstract syntaxes not listed are rejected (result 3, abstract syntax not supported).

#### 3.2.2 Association policies

##### 3.2.2.1 General

| Item | Value |
|---|---|
| Application Context Name | 1.2.840.10008.3.1.1.1 |
| Maximum PDU size received | `DICOM_MAX_PDU`, default 131072 bytes, clamped to 4096 - 1048576 |
| Maximum PDU size sent | as proposed by the peer, up to the library limit |
| Implementation Class UID (associations) | 2.25.8419177003322034710685262166528219525 (`DICOM_IMPLEMENTATION_CLASS_UID` overrides) |
| Implementation Version Name (associations) | LUMEN_PACS_1.6 (`DICOM_IMPLEMENTATION_VERSION` overrides) |
| SCP/SCU Role Selection | storage contexts proposed for C-GET are accepted under the storage rules below |
| Asynchronous Operations Window | not negotiated (one operation at a time) |
| Extended negotiation | not supported |
| User identity negotiation | not used; authentication is by AE title and, on TLS, by client certificate |
| TCP connect timeout | `DICOM_TCP_TIMEOUT`, default 60 s (SCP and SCU) |
| Association (ARTIM) timeout | `DICOM_ASSOCIATION_TIMEOUT`, default 60 s: an association not established within it is aborted |
| DIMSE / PDU idle timeout | `DICOM_DIMSE_TIMEOUT`, default 60 s: an association with no PDU for that long is aborted |

##### 3.2.2.2 Number of associations

| Limit | Value |
|---|---|
| Simultaneous inbound associations | unlimited by default; `DICOM_MAX_ASSOCIATIONS` sets a gateway-wide limit (excess associations are rejected: transient, service-provider presentation, local limit exceeded) |
| Simultaneous inbound associations per service | `DICOM_MAX_STORE_ASSOCIATIONS`, `DICOM_MAX_QUERY_ASSOCIATIONS` (C-FIND models), `DICOM_MAX_RETRIEVE_ASSOCIATIONS` (C-MOVE / C-GET), `DICOM_MAX_MWL_ASSOCIATIONS`, `DICOM_MAX_MPPS_ASSOCIATIONS`, `DICOM_MAX_COMMITMENT_ASSOCIATIONS`; default 0 = unlimited. An association counts once for every service it negotiated (Verification alone counts for none); one that would exceed a limit is rejected as above |
| Outbound transmit associations (outbound queue), all destinations | `DICOM_MAX_TRANSMIT_ASSOCIATIONS` (or `OUTBOUND_CONCURRENCY`), default 5 |
| Outbound request associations (C-FIND / C-MOVE / C-GET / MWL / Relevant Patient queries, pre-fetch, Storage Commitment pull) | `DICOM_MAX_REQUEST_ASSOCIATIONS`, default 5; further requests wait for a free slot |
| Outbound print associations | `DICOM_MAX_PRINT_ASSOCIATIONS`, default 5 |
| Outbound associations per destination | `max_associations` per destination (Admin) |

##### 3.2.2.3 Association acceptance policy

| Check | Result when it fails |
|---|---|
| Called AE title is a registered, active AE title of some tenant | Reject: permanent, service user, called AE title not recognized |
| If the called AE has an allowed calling AE list, the calling AE title is on it (case-insensitive). An empty list accepts any calling AE title. | Reject: permanent, service user, calling AE title not recognized |
| Gateway-wide association limit not reached | Reject: transient, service provider (presentation), local limit exceeded |
| Limit of every service negotiated on the association not reached | Reject: transient, service provider (presentation), local limit exceeded |
| Tenant database reachable | Reject: transient, service provider (presentation), temporary congestion |

Each proposed presentation context is judged on its own; several contexts for one abstract syntax may be accepted with different transfer syntaxes. For each context the gateway accepts the first syntax of its own preference list ([section 3.4](#34-transfer-syntaxes)) that the requester offered; if none matches, the context is rejected (result 4, transfer syntaxes not supported).

If the calling AE title matches a registered destination of the same tenant, that destination's **station transfer-syntax policy** applies to storage contexts: lossy and/or lossless compressed syntaxes can be refused, and the station's own preferred syntaxes are tried first.

##### 3.2.2.4 Implementation identifying information

| | Value |
|---|---|
| Implementation Class UID (network) | 2.25.8419177003322034710685262166528219525 |
| Implementation Version Name (network) | LUMEN_PACS_1.6 |
| Implementation Class UID (objects RADENVO creates: GSPS, KOS, DICOMDIR) | 1.2.826.0.1.3680043.10.1484.1, version LUMEN_PACS_1 |
| Implementation Class UID (IOCM rejection notes created by the gateway) | 2.25.302838436196430960384915377541419431812, version LUMEN_PACS |

The gateway sets these values on every association it accepts or initiates (gateway/dicom-classes.mjs); a site may override them with `DICOM_IMPLEMENTATION_CLASS_UID` (must be a valid UID) and `DICOM_IMPLEMENTATION_VERSION` (max 16 characters).

### 3.3 Services provided (SCP)

#### 3.3.1 Storage SCP

##### 3.3.1.1 Behavior

- Conformance level: **Level 2 (Full)**. Objects are stored byte for byte as received, except for coercion listed below. Digital signatures are not verified. Element values are not validated.
- An object is acknowledged only after it is written to the local spool. Upload to the cloud and indexing follow asynchronously; failed uploads are retried, and an object that fails 5 times, or cannot be parsed, is moved to a quarantine folder (`<spool>/failed`) for an administrator.
- **Duplicates**: a SOP Instance UID already stored for the tenant is overwritten with the new copy.
- **IOCM**: a SOP instance that was rejected earlier by an IOCM rejection note is discarded when it is received again (success is still returned).
- **Hanging Protocol** objects are stored outside the patient/study tables and served through the HP Q/R models.
- **Deflated Explicit VR Little Endian** is inflated and **Explicit VR Big Endian** is converted, so those objects are stored as Explicit VR Little Endian. All other syntaxes are stored as received.

##### 3.3.1.2 Coercion of attributes

The C-STORE response status is Success even when attributes were coerced (no B000 warning).

| Source of coercion | Attributes |
|---|---|
| Prior pre-fetch reconciliation (objects arriving from a registered external archive for a prefetch request) | Patient ID set to the local MRN; the original ID kept in Other Patient IDs and, with its issuer, in Other Patient IDs Sequence; Issuer of Patient ID removed; Accession Number prefixed with the archive's prefix (default `EXT`), max 16 characters |
| Station **Receive Study As** Issuer of Patient ID (`receive_issuer`, calling AE registered as a station) | Issuer of Patient ID set to the station's issuer; a different issuer the object carried is kept with the Patient ID in Other Patient IDs Sequence. The MRN is filed under that issuer (patient identifiers) |
| Station **Repair Patient Name** (`repair_patient_name`) | Patient's Name without component carets is rebuilt: `DOE, JOHN A` or `DOE JOHN A` becomes `DOE^JOHN^A` |
| Inbound tag-morph rules (per tenant, per called AE, optionally per calling AE) | any attribute: set, remove, copy, prefix, suffix, regular-expression replace, value map, HMAC pseudonymisation, UID remapping, PS3.15 basic-profile PHI stripping |

Station **Receive Study As** facility and status (database side, on indexing): studies a station sends are filed under its facility (`receive_facility_id`, before the called AE's facility) and get its initial status (`receive_status`) when the batch creates them; with **Always overwrite status** (`receive_status_overwrite`) the status is set on every receipt. An Issuer of Patient ID the object carries is recorded as the MRN's issuer when the patient has none yet.

##### 3.3.1.3 C-STORE status codes

| Status | Meaning | When |
|---|---|---|
| 0000 | Success | object durable in the spool |
| 0110 | Processing failure | spool write failed or coercion rules could not be loaded |

##### 3.3.1.4 Accepted Storage SOP classes

Classes in **bold** are images (pixel data); the others are non-pixel objects. Non-pixel objects are accepted only in Implicit VR LE, Explicit VR LE or Deflated Explicit VR LE ([section 3.4.2](#342-non-pixel-storage-classes)). Every class below is also sent by the Storage SCU. STOW-RS accepts any parseable object regardless of class.

**Radiography, mammography, CT, MR, ultrasound, NM, PET**

| SOP Class | UID |
|---|---|
| **Computed Radiography Image** | 1.2.840.10008.5.1.4.1.1.1 |
| **Digital X-Ray Image - For Presentation / For Processing** | 1.2.840.10008.5.1.4.1.1.1.1 / .1.1.1 |
| **Digital Mammography X-Ray Image - For Presentation / For Processing** | 1.2.840.10008.5.1.4.1.1.1.2 / .1.2.1 |
| **Digital Intra-Oral X-Ray Image - For Presentation / For Processing** | 1.2.840.10008.5.1.4.1.1.1.3 / .1.3.1 |
| **CT Image / Enhanced CT Image / Legacy Converted Enhanced CT Image** | 1.2.840.10008.5.1.4.1.1.2 / .2.1 / .2.2 |
| **Ultrasound Multi-frame Image (retired / current)** | 1.2.840.10008.5.1.4.1.1.3 / .3.1 |
| **MR Image / Enhanced MR Image** | 1.2.840.10008.5.1.4.1.1.4 / .4.1 |
| MR Spectroscopy | 1.2.840.10008.5.1.4.1.1.4.2 |
| **Enhanced MR Color Image / Legacy Converted Enhanced MR Image** | 1.2.840.10008.5.1.4.1.1.4.3 / .4.4 |
| **Nuclear Medicine Image (retired)** | 1.2.840.10008.5.1.4.1.1.5 |
| **Ultrasound Image (retired / current)** | 1.2.840.10008.5.1.4.1.1.6 / .6.1 |
| **Enhanced US Volume** | 1.2.840.10008.5.1.4.1.1.6.2 |
| **Photoacoustic Image** | 1.2.840.10008.5.1.4.1.1.6.3 |
| **Nuclear Medicine Image** | 1.2.840.10008.5.1.4.1.1.20 |
| **Parametric Map** | 1.2.840.10008.5.1.4.1.1.30 |
| **PET Image / Legacy Converted Enhanced PET Image / Enhanced PET Image** | 1.2.840.10008.5.1.4.1.1.128 / .128.1 / .130 |
| Standalone PET Curve (retired) | 1.2.840.10008.5.1.4.1.1.129 |
| **Basic Structured Display** | 1.2.840.10008.5.1.4.1.1.131 |

**Secondary capture, X-ray angiography and fluoroscopy, tomosynthesis, OCT**

| SOP Class | UID |
|---|---|
| **Secondary Capture Image** | 1.2.840.10008.5.1.4.1.1.7 |
| Multi-frame Single Bit Secondary Capture Image (uncompressed only) | 1.2.840.10008.5.1.4.1.1.7.1 |
| **Multi-frame Grayscale Byte / Grayscale Word / True Color Secondary Capture Image** | 1.2.840.10008.5.1.4.1.1.7.2 / .7.3 / .7.4 |
| **X-Ray Angiographic Image / Enhanced XA Image** | 1.2.840.10008.5.1.4.1.1.12.1 / .12.1.1 |
| **X-Ray Radiofluoroscopic Image / Enhanced XRF Image** | 1.2.840.10008.5.1.4.1.1.12.2 / .12.2.1 |
| **X-Ray Angiographic Bi-Plane Image (retired)** | 1.2.840.10008.5.1.4.1.1.12.3 |
| **X-Ray 3D Angiographic / X-Ray 3D Craniofacial Image** | 1.2.840.10008.5.1.4.1.1.13.1.1 / .13.1.2 |
| **Breast Tomosynthesis Image** | 1.2.840.10008.5.1.4.1.1.13.1.3 |
| **Breast Projection X-Ray Image - For Presentation / For Processing** | 1.2.840.10008.5.1.4.1.1.13.1.4 / .13.1.5 |
| **Intravascular OCT Image - For Presentation / For Processing** | 1.2.840.10008.5.1.4.1.1.14.1 / .14.2 |

**Visible light, ophthalmology, microscopy, video**

| SOP Class | UID |
|---|---|
| **VL Image (retired) / VL Multi-frame Image (retired)** | 1.2.840.10008.5.1.4.1.1.77.1 / .77.2 |
| **VL Endoscopic Image / Video Endoscopic Image** | 1.2.840.10008.5.1.4.1.1.77.1.1 / .77.1.1.1 |
| **VL Microscopic Image / Video Microscopic Image** | 1.2.840.10008.5.1.4.1.1.77.1.2 / .77.1.2.1 |
| **VL Slide-Coordinates Microscopic Image** | 1.2.840.10008.5.1.4.1.1.77.1.3 |
| **VL Photographic Image / Video Photographic Image** | 1.2.840.10008.5.1.4.1.1.77.1.4 / .77.1.4.1 |
| **Ophthalmic Photography 8 Bit / 16 Bit Image** | 1.2.840.10008.5.1.4.1.1.77.1.5.1 / .77.1.5.2 |
| **Stereometric Relationship** | 1.2.840.10008.5.1.4.1.1.77.1.5.3 |
| **Ophthalmic Tomography Image** | 1.2.840.10008.5.1.4.1.1.77.1.5.4 |
| **Wide Field Ophthalmic Photography Stereographic Projection / 3D Coordinates Image** | 1.2.840.10008.5.1.4.1.1.77.1.5.5 / .77.1.5.6 |
| **Ophthalmic OCT En Face Image / Ophthalmic OCT B-scan Volume Analysis** | 1.2.840.10008.5.1.4.1.1.77.1.5.7 / .77.1.5.8 |
| **VL Whole Slide Microscopy Image** | 1.2.840.10008.5.1.4.1.1.77.1.6 |
| **Dermoscopic Photography Image** | 1.2.840.10008.5.1.4.1.1.77.1.7 |
| **Confocal Microscopy Image / Confocal Microscopy Tiled Pyramidal Image** | 1.2.840.10008.5.1.4.1.1.77.1.8 / .77.1.9 |
| Ophthalmic measurements: Lensometry, Autorefraction, Keratometry, Subjective Refraction, Visual Acuity, Spectacle Prescription Report, Axial Measurements, Intraocular Lens Calculations | 1.2.840.10008.5.1.4.1.1.78.1 - .78.8 |
| Macular Grid Thickness and Volume Report / Ophthalmic Visual Field Static Perimetry Measurements / Ophthalmic Thickness Map | 1.2.840.10008.5.1.4.1.1.79.1 / .80.1 / .81.1 |

**Presentation states, structured reports, documents**

| SOP Class | UID |
|---|---|
| Grayscale Softcopy Presentation State | 1.2.840.10008.5.1.4.1.1.11.1 |
| Color / Pseudo-Color / Blending Softcopy Presentation State | 1.2.840.10008.5.1.4.1.1.11.2 / .11.3 / .11.4 |
| XA/XRF Grayscale Softcopy Presentation State | 1.2.840.10008.5.1.4.1.1.11.5 |
| Volumetric and other presentation states | 1.2.840.10008.5.1.4.1.1.11.6 - .11.12 |
| Standalone Modality LUT (retired) / Standalone VOI LUT (retired) / Standalone Overlay (retired) | 1.2.840.10008.5.1.4.1.1.10 / .11 / .8 |
| Basic Text SR / Enhanced SR / Comprehensive SR / Comprehensive 3D SR / Extensible SR | 1.2.840.10008.5.1.4.1.1.88.11 / .88.22 / .88.33 / .88.34 / .88.35 |
| Procedure Log | 1.2.840.10008.5.1.4.1.1.88.40 |
| Mammography CAD SR / Chest CAD SR / Colon CAD SR | 1.2.840.10008.5.1.4.1.1.88.50 / .88.65 / .88.69 |
| Key Object Selection Document | 1.2.840.10008.5.1.4.1.1.88.59 |
| X-Ray Radiation Dose SR / Radiopharmaceutical Radiation Dose SR | 1.2.840.10008.5.1.4.1.1.88.67 / .88.68 |
| Implantation Plan SR | 1.2.840.10008.5.1.4.1.1.88.70 |
| Acquisition Context SR, Simplified Adult Echo SR, Patient Radiation Dose SR, Planned / Performed Imaging Agent Administration SR, Enhanced X-Ray Radiation Dose SR | 1.2.840.10008.5.1.4.1.1.88.71 - .88.76 |
| Content Assessment Results / Microscopy Bulk Simple Annotations | 1.2.840.10008.5.1.4.1.1.90.1 / .91.1 |
| Encapsulated PDF / Encapsulated CDA | 1.2.840.10008.5.1.4.1.1.104.1 / .104.2 |
| Encapsulated STL / OBJ / MTL | 1.2.840.10008.5.1.4.1.1.104.3 / .104.4 / .104.5 |
| CT / XA Performed Procedure Protocol | 1.2.840.10008.5.1.4.1.1.200.2 / .200.8 |
| Stored Print (retired) | 1.2.840.10008.5.1.1.27 |
| **Hardcopy Grayscale Image / Hardcopy Color Image (retired)** | 1.2.840.10008.5.1.1.29 / .30 |
| Hanging Protocol | 1.2.840.10008.5.1.4.38.1 |

**Waveforms, raw data, registration, segmentation**

| SOP Class | UID |
|---|---|
| Standalone Curve (retired) | 1.2.840.10008.5.1.4.1.1.9 |
| 12-lead ECG / General ECG / Ambulatory ECG Waveform | 1.2.840.10008.5.1.4.1.1.9.1.1 / .9.1.2 / .9.1.3 |
| Hemodynamic / Cardiac Electrophysiology Waveform | 1.2.840.10008.5.1.4.1.1.9.2.1 / .9.3.1 |
| Basic Voice Audio / General Audio Waveform | 1.2.840.10008.5.1.4.1.1.9.4.1 / .9.4.2 |
| Arterial Pulse / Respiratory Waveform | 1.2.840.10008.5.1.4.1.1.9.5.1 / .9.6.1 |
| Neurophysiology waveforms (EEG, EMG, EOG, sleep EEG), body position, other waveform classes | 1.2.840.10008.5.1.4.1.1.9.7.1 - .9.7.4, .9.8.1, .9.9.1 |
| Raw Data | 1.2.840.10008.5.1.4.1.1.66 |
| Spatial Registration / Spatial Fiducials / Deformable Spatial Registration | 1.2.840.10008.5.1.4.1.1.66.1 / .66.2 / .66.3 |
| Segmentation / Surface Segmentation / Tractography Results / Label Map Segmentation | 1.2.840.10008.5.1.4.1.1.66.4 / .66.5 / .66.6 / .66.7 |
| Real World Value Mapping | 1.2.840.10008.5.1.4.1.1.67 |
| Surface scan objects | 1.2.840.10008.5.1.4.1.1.68.1 / .68.2 / .68.3 |

**Radiation therapy**

| SOP Class | UID |
|---|---|
| **RT Image** | 1.2.840.10008.5.1.4.1.1.481.1 |
| **RT Dose** | 1.2.840.10008.5.1.4.1.1.481.2 |
| RT Structure Set, Beams Treatment Record, Plan, Brachy Treatment Record, Treatment Summary Record, Ion Plan, Ion Beams Treatment Record | 1.2.840.10008.5.1.4.1.1.481.3 - .481.9 |
| Second-generation RT objects | 1.2.840.10008.5.1.4.1.1.481.10 - .481.26 |

**Private and other UIDs in the accept list**

| SOP Class | UID | Note |
|---|---|---|
| **Fujifilm CR (private)** | 1.2.392.200036.9125.1.1.2 | |
| (image class, name not confirmed) | 1.2.840.10008.5.1.4.1.1.1.1.1.1, 1.2.840.10008.5.1.4.1.1.1.1.1.1.1, 1.2.840.10008.5.1.4.1.1.4.5, 1.2.840.10008.5.1.4.1.1.4.6, 1.2.840.10008.5.1.4.1.1.14.3 | present in the gateway's accept list; included here so the list is complete |

Second-generation RT classes from 481.10 upward, including Enhanced RT Image (481.23), are treated as non-pixel classes by the transfer-syntax rule in [section 3.4.2](#342-non-pixel-storage-classes).

##### 3.3.1.5 Storage of video

MPEG-2, MPEG-4 AVC/H.264 and HEVC/H.265 objects are stored as received, never decoded or transcoded. The viewer plays them in the browser where the browser supports the codec: an encapsulated MP4 file is played as stored, an H.264 Annex B elementary stream is first remuxed into MP4 (`src/lib/dicom/mp4.ts`, the coded pictures are copied unchanged), and MPEG-2 is handed to the browser as video/mpeg (most browsers cannot play it).

##### 3.3.1.6 Display of stored objects

The web viewer displays images (including multi-frame and cine), applies received GSPS, shows KOS key images and CAD SR marks, renders SR content as text or as PDF (organization template, [5.2](#52-wado-uri-server)), opens Encapsulated PDF and CDA, plays video, and plays Basic Voice Audio / General Audio Waveform objects (the first multiplex group decoded to PCM: 8-bit mu-law, A-law, signed or unsigned, or 16-bit, played as WAV). It does **not** render ECG or other non-audio waveforms, does not apply DICOM Hanging Protocol objects (it uses its own hanging protocols), and does not apply color, blending or volumetric presentation states. Those objects are still stored, queryable and retrievable.

##### 3.3.1.7 Dose register from Radiation Dose SR

A received X-Ray Radiation Dose SR (1.2.840.10008.5.1.4.1.1.88.67) or Enhanced X-Ray Radiation Dose SR (.88.76) is read into the study's dose register right after a gateway or STOW-RS ingest, and by a scheduled worker that also backfills objects received earlier (each object is read once): TID 10011 CT (largest Mean CTDIvol 113830, CT Dose Length Product Total 113813 or the sum of the acquisitions' DLP 113838, CT Effective Dose Total 113814), TID 10001 / 10004 projection X-ray (Dose Area Product Total 113722 or the sum of the irradiation events' DAP 122130, converted to Gy·cm², Dose (RP) Total 113725, Total Fluoro Time 113730) and TID 10005 mammography (Accumulated Average Glandular Dose 111637). RDSR values replace MPPS values for the same quantity; MPPS (3.3.5) remains the source for anything the RDSR does not carry and when no RDSR arrives.

#### 3.3.2 Verification SCP

C-ECHO returns 0000 on any accepted association.

#### 3.3.3 Query/Retrieve SCP

##### 3.3.3.1 General

- Hierarchical queries only; relational queries are not supported. SERIES level needs one Study Instance UID; IMAGE level needs one Study and one Series Instance UID.
- Results are limited to the tenant that owns the called AE title. Merged patients are not returned at PATIENT level.
- Matching is case-insensitive. `*` and `?` wildcards are supported on the keys marked W. Date keys accept single dates and ranges (`D`, `D1-D2`, `-D2`, `D1-`); time keys accept single times and ranges (`HHMMSS`, `T1-T2`, `-T2`, `T1-`). UID keys accept backslash-separated lists.
- Returned attributes: by default a fixed set per level (listed below). When the calling AE is a registered station with **Return C-FIND Request Attributes Only** (`return_requested_only`), each response carries only the keys the request contained (sequences shaped item by item) plus Query/Retrieve Level. Specific Character Set ISO_IR 192 is added to a response whenever it contains non-ASCII text.
- Results are limited to the calling station's **Maximum records** (`max_query_results`, 1 - 10000) or 1000 when the calling AE is not a registered station or has no limit set.
- **Application-level result filter** per calling station (PS-DCS p104): `filter_issuers`, `filter_facility_ids` and `filter_statuses` restrict C-FIND (all levels), MWL, C-MOVE and C-GET to patients of those issuers, studies of those facilities and studies in those statuses (MWL: issuer and facility). What a station may not see is answered as no match.
- C-FIND cancel is not honored (all matches are prepared before the first response).
- The same handler serves Patient Root, Study Root and Patient/Study Only models.

##### 3.3.3.2 C-FIND keys

Matching: S = single value, W = wildcard, U = UID list (backslash-separated), R = range, C = "contains" (substring), - = returned only.

| Level | Attribute | Tag | Matching | Returned |
|---|---|---|---|---|
| PATIENT | Patient ID | (0010,0020) | S, W | Yes |
| | Issuer of Patient ID | (0010,0021) | S, W | Yes |
| | Patient's Name | (0010,0010) | S, W | Yes |
| | Patient's Birth Date | (0010,0030) | S, R | Yes |
| | Patient's Sex | (0010,0040) | S | Yes |
| | Number of Patient Related Studies | (0020,1200) | - | Yes |
| | Retrieve AE Title | (0008,0054) | - | Yes (called AE) |
| STUDY | Study Instance UID | (0020,000D) | S, U | Yes |
| | Patient ID | (0010,0020) | S, W | Yes |
| | Issuer of Patient ID | (0010,0021) | S, W | when requested or filtered |
| | Patient's Name | (0010,0010) | S, W | Yes |
| | Accession Number | (0008,0050) | S, W | Yes |
| | Study Date | (0008,0020) | S, R | Yes |
| | Modalities in Study | (0008,0061) | W, list (any of) | Yes |
| | Study Time | (0008,0030) | S, R | Yes |
| | Patient's Birth Date | (0010,0030) | S, R | Yes |
| | Patient's Sex | (0010,0040) | S | Yes |
| | Study Description | (0008,1030) | S, W | Yes |
| | Referring Physician's Name | (0008,0090) | S, W | Yes |
| | Number of Study Related Series / Instances | (0020,1206), (0020,1208) | - | Yes |
| | Retrieve AE Title | (0008,0054) | - | Yes |
| SERIES | Study Instance UID | (0020,000D) | S (required) | Yes |
| | Series Instance UID | (0020,000E) | S, W, U | Yes |
| | Modality | (0008,0060) | S, W, list | Yes |
| | Series Number | (0020,0011) | S | Yes |
| | Series Description | (0008,103E) | S, W | Yes |
| | Number of Series Related Instances | (0020,1209) | - | Yes |
| | Retrieve AE Title | (0008,0054) | - | Yes |
| IMAGE | Study Instance UID, Series Instance UID | (0020,000D), (0020,000E) | S (required) | Yes |
| | SOP Instance UID | (0008,0018) | S, W, U | Yes |
| | SOP Class UID | (0008,0016) | S, U (e.g. only RDSR, IHE REM) | Yes |
| | Instance Number | (0020,0013) | S | Yes |
| | Retrieve AE Title | (0008,0054) | - | Yes |

Query/Retrieve Level absent means STUDY. Study ID and other keys not listed are not matched.

Issuer of Patient ID of a patient is the issuer recorded for its MRN (patient identifiers: HL7 PID-3.4, a station's Receive Study As issuer, or the issuer the objects arrived with), else the called AE's default issuer (`dicom_nodes.issuer_of_patient_id`), else empty. A PATIENT-level C-MOVE / C-GET with Patient ID and Issuer of Patient ID retrieves only that issuer's patient.

##### 3.3.3.3 C-FIND status codes

| Status | Meaning |
|---|---|
| FF00 | Pending (one per match) |
| 0000 | Success (final) |
| A900 | Identifier does not match SOP class (FIND requested on an unsupported model) |
| 0110 | Processing failure |

##### 3.3.3.4 C-MOVE

- Levels PATIENT (Patient ID), STUDY, SERIES and IMAGE; UID lists are accepted at every level. For the HP models the identifier is a list of SOP Instance UIDs.
- The Move Destination must be a destination registered by the same tenant (Admin, destinations). Sub-operations are C-STOREs on a new association to that destination, with the tenant's outbound tag-morph rules for that destination applied, the destination's bandwidth cap, its TLS setting and the Storage SCU transfer-syntax behavior of [section 3.5.1](#351-storage-scu).
- While the sub-operations run, a **pending response** (FF00) with Number of Remaining, Completed, Failed and Warning Sub-operations is sent every `DICOM_PENDING_EVERY` sub-operations (default 10); the final response carries the totals (warnings: C-STORE responses with a Bxxx status). C-CANCEL is not honored for C-MOVE.

| Status | Meaning |
|---|---|
| 0000 | All sub-operations completed |
| FF00 | Pending (sub-operation counts) |
| B000 | Completed with failures or warnings (Error Comment carries the first reason, up to 64 characters) |
| A702 | All sub-operations failed |
| A701 | Nothing matched the identifier (used for "no matches") |
| A801 | Move destination unknown |
| C000 | An outbound morph rule for the destination is invalid; nothing is sent (fails closed) |
| 0110 | Processing failure |

##### 3.3.3.5 C-GET

- Same levels and identifiers as C-MOVE. Objects are returned as C-STORE sub-operations on the same association, using a presentation context the requester negotiated for that SOP class. An object stored in a syntax the requester did not accept is decoded to uncompressed (Explicit or Implicit VR Little Endian) first; video cannot be decoded and fails.
- A pending response with counts is sent after every 10 sub-operations. C-CANCEL stops the retrieve (final status FE00).

| Status | Meaning |
|---|---|
| FF00 | Pending |
| 0000 | Success |
| B000 | Completed with failures |
| A702 | All sub-operations failed |
| A701 | Nothing matched |
| A900 | GET on an unsupported model |
| FE00 | Cancelled |
| 0110 | Processing failure |

#### 3.3.4 Modality Worklist SCP

Items are the tenant's orders in status `scheduled` or `arrived` that have a booked time. Each order is one Requested Procedure with one Scheduled Procedure Step.

| Attribute | Tag | Matching | Returned / source |
|---|---|---|---|
| Patient ID | (0010,0020) | S, W | MRN |
| Issuer of Patient ID | (0010,0021) | S, W | issuer of the MRN ([section 3.3.3.2](#3332-c-find-keys)) |
| Patient's Name | (0010,0010) | S, W | registered name (family^given) |
| Accession Number | (0008,0050) | S, W | order accession |
| Scheduled Procedure Step Sequence | (0040,0100) | | |
| > Modality | (0008,0060) | S | order modality |
| > Scheduled Station AE Title | (0040,0001) | S, W (only when the order has a station) | scheduled room's station AE |
| > Scheduled Procedure Step Start Date | (0040,0002) | S, R | booked date |
| > Scheduled Procedure Step Start Time | (0040,0003) | - | booked time (UTC) |
| > Scheduled Procedure Step Description | (0040,0007) | - | procedure description |
| > Scheduled Procedure Step ID | (0040,0009) | - | accession |
| Patient's Birth Date, Patient's Sex | (0010,0030), (0010,0040) | - | Yes |
| Referring Physician's Name | (0008,0090) | - | Yes |
| Study Instance UID | (0020,000D) | - | UID received with the order (HL7 ZDS/IPC) when valid, else `2.25.<order UUID>` |
| Requested Procedure ID | (0040,1001) | - | accession |
| Requested Procedure Description | (0032,1060) | - | procedure description |
| Reason for the Requested Procedure | (0040,1002) | - | indication |

Also matched: Requested Procedure ID (W), Study Instance UID (U), Patient's Birth Date (R), Patient's Sex (S), Referring Physician's Name (W), Scheduled Procedure Step Start Time (R), Scheduled Procedure Step Description (W), Scheduled Procedure Step ID (W). Not returned: Requested Procedure Code Sequence, Scheduled Performing Physician's Name, Admission ID, Other Patient IDs. Times are formatted from UTC timestamps. The calling station's Maximum records (default 1000) and Return C-FIND Request Attributes Only options apply as for Q/R.

#### 3.3.5 Modality Performed Procedure Step SCP

- N-CREATE and N-SET for 1.2.840.10008.3.1.2.3.3. The step is linked to an order by Accession Number (Scheduled Step Attributes Sequence first), by Requested Procedure ID, or by a Study Instance UID of the form `2.25.<order UUID>` handed out by the worklist. Steps without a matching order are recorded as unscheduled.
- Recorded: status (IN PROGRESS, COMPLETED, DISCONTINUED), start and end date/time, performed station AE title, description, discontinuation reason, performed series (UID, description, protocol name, image count; up to 200), dose (CTDIvol, DLP from Comments on Radiation Dose, DAP, fluoroscopy time, entrance dose, number of exposures) and contrast (agent, volume, route).
- A COMPLETED or DISCONTINUED step cannot be changed.
- Successful MPPS messages are queued for every destination flagged **forward MPPS** (see [section 3.5.3](#353-mpps-scu)).
- **MPPS Retrieve (retired, 1.2.840.10008.3.1.2.3.4)**: N-GET of a recorded step (on the MPPS or the MPPS Retrieve SOP class) returns its attributes.
- **MPPS Notification (retired, 1.2.840.10008.3.1.2.3.5)**: N-EVENT-REPORTs from a RIS/PPS manager are acknowledged (0000) and audited; they do not change RADENVO data.

| Status | Meaning |
|---|---|
| 0000 | Success |
| 0111 | Duplicate SOP instance (N-CREATE of an existing step) |
| 0112 | No such object instance (N-SET of an unknown step) |
| 0106 | Invalid attribute value (unknown Performed Procedure Step Status) |
| 0117 | Invalid object instance (SOP Instance UID missing or malformed) |
| 0118 | No such SOP class |
| 0110 | Processing failure (step already final, called AE inactive, database error) |

#### 3.3.6 Storage Commitment Push Model and Pull Model SCP

- N-ACTION (Action Type ID 1) with Transaction UID and Referenced SOP Sequence (1 - 20000 items). Responds at once with 0000 (0123 for another action type, 0115 when the Transaction UID or references are missing or malformed, 0118 for another SOP class).
- The gateway then waits up to `STGCMT_WAIT_SECONDS` (default 60 s) for spooled objects to be indexed, and commits only instances recorded in the database.
- N-EVENT-REPORT: Event Type 1 when all are committed, 2 when some failed. Failed SOP Sequence items carry Failure Reason 0112 (no such object instance). SOP Instance UID is the well-known 1.2.840.10008.1.20.1.1.
- Delivery: on the same association if the requester still holds it open, unless the registered station has **report on a new association** (`commit_report_new_assoc`); otherwise on a new association to the destination registered with the requester's AE title (calling AE title of the report = the AE title the request was sent to). If the requester is not a registered destination, the report cannot be delivered and is recorded as undeliverable.
- **Pull Model (retired, 1.2.840.10008.1.20.2)**: same N-ACTION; instances RADENVO does not hold yet are first retrieved from the requester, study by study (C-MOVE to the called AE title, or C-GET when the station is flagged **use C-GET**), then the report is sent with the Pull Model SOP class and its well-known instance UID. The requester must be a registered station.
- Committed objects are kept indefinitely; there is no automatic deletion.

#### 3.3.7 N-EVENT-REPORT SCP (Storage Commitment results for RADENVO's own requests)

Storage Commitment reports that a remote archive sends back on a new association are accepted and recorded on the matching outbound job (0000; 0112 if the Transaction UID is unknown; 0118 for other SOP classes).

#### 3.3.8 Hanging Protocol SCP

- Storage: Hanging Protocol objects are filed per tenant (name, description, level, creator, creation date/time, modalities).
- FIND keys: SOP Instance UID (W), Hanging Protocol Name (W), Hanging Protocol Level (W), Hanging Protocol Creator (W), Hanging Protocol Definition Sequence > Modality (S). Returned: SOP Class/Instance UID, name, description, level, creator, creation date/time, definition sequence (modalities), Number of Priors Referenced (always 0), Retrieve AE Title.
- MOVE and GET by SOP Instance UID list.

#### 3.3.9 General Purpose Worklist FIND SCP (retired SOP class)

Unreported studies are offered as GP Scheduled Procedure Steps with Scheduled Workitem Code (110005, DCM, "Interpretation"). Matching: GP SPS Status (SCHEDULED, IN PROGRESS), GP SPS Priority (HIGH, MEDIUM), Patient ID (W), Patient's Name (W), Scheduled Procedure Step Start DateTime (range). Returned items include Input Information Sequence (study and series with Retrieve AE Title), Referenced Request Sequence (accession, description) and patient demographics. Up to 500 items. GP-SPS N-ACTION and GP-PPS are not supported, so status cannot be changed over DICOM: the General Purpose Worklist SOP classes (1.2.840.10008.5.1.4.32, .32.1, .32.2, .32.3) were retired from DICOM in 2011 (replaced by Unified Procedure Step), and only the FIND model is kept for older reading workstations.

### 3.4 Transfer syntaxes

#### 3.4.1 Image storage classes (preference order)

When a requester offers several syntaxes in one presentation context, the gateway accepts the first one of this list that was offered. A station policy can move the station's preferred syntaxes to the front and remove lossy and/or lossless compressed syntaxes.

| Order | Transfer Syntax | UID | Stored as |
|---|---|---|---|
| 1 | Explicit VR Little Endian | 1.2.840.10008.1.2.1 | received |
| 2 | Implicit VR Little Endian | 1.2.840.10008.1.2 | received |
| 3 | JPEG Lossless, Non-Hierarchical, First-Order Prediction (Process 14 SV1) | 1.2.840.10008.1.2.4.70 | received |
| 4 | JPEG Lossless, Non-Hierarchical (Process 14) | 1.2.840.10008.1.2.4.57 | received |
| 5 | JPEG-LS Lossless | 1.2.840.10008.1.2.4.80 | received |
| 6 | JPEG 2000 Image Compression (Lossless Only) | 1.2.840.10008.1.2.4.90 | received |
| 7 | JPEG 2000 Part 2 Multi-component (Lossless Only) | 1.2.840.10008.1.2.4.92 | received |
| 8 | High-Throughput JPEG 2000 (Lossless Only) | 1.2.840.10008.1.2.4.201 | received |
| 9 | High-Throughput JPEG 2000 with RPCL Options (Lossless Only) | 1.2.840.10008.1.2.4.202 | received |
| 10 | RLE Lossless | 1.2.840.10008.1.2.5 | received |
| 11 | JPEG-LS Lossy (Near-Lossless) | 1.2.840.10008.1.2.4.81 | received |
| 12 | JPEG 2000 Image Compression | 1.2.840.10008.1.2.4.91 | received |
| 13 | JPEG 2000 Part 2 Multi-component | 1.2.840.10008.1.2.4.93 | received |
| 14 | High-Throughput JPEG 2000 | 1.2.840.10008.1.2.4.203 | received |
| 15 | JPEG Baseline (Process 1) | 1.2.840.10008.1.2.4.50 | received |
| 16 | JPEG Extended (Process 2 & 4) | 1.2.840.10008.1.2.4.51 | received |
| 17 | Retired JPEG processes 3, 5 - 13, 15 - 29 | 1.2.840.10008.1.2.4.52 - .56, .58 - .66 | received |
| 18 | JPIP Referenced / JPIP Referenced Deflate | 1.2.840.10008.1.2.4.94 / .95 | received |
| 19 | MPEG2 Main Profile @ Main Level / @ High Level | 1.2.840.10008.1.2.4.100 / .101 | received |
| 20 | Fragmentable MPEG2 MP@ML / MP@HL | 1.2.840.10008.1.2.4.100.1 / .101.1 | received |
| 21 | MPEG-4 AVC/H.264 High Profile / Level 4.1, BD-compatible, Level 4.2 2D, Level 4.2 3D, Stereo High Profile (and fragmentable variants) | 1.2.840.10008.1.2.4.102 - .106, .102.1 - .106.1 | received |
| 22 | HEVC/H.265 Main Profile / Main 10 Profile, Level 5.1 | 1.2.840.10008.1.2.4.107 / .108 | received |
| 23 | Deflated Explicit VR Little Endian | 1.2.840.10008.1.2.1.99 | inflated to Explicit VR LE |
| 24 | Explicit VR Big Endian (retired) | 1.2.840.10008.1.2.2 | converted to Explicit VR LE |

#### 3.4.2 Non-pixel storage classes

SR, KOS, presentation states, waveforms, encapsulated documents, registration/segmentation, measurements, protocols, non-image RT objects, Multi-frame Single Bit Secondary Capture, Stored Print and Hanging Protocol objects are accepted only in: Explicit VR Little Endian, Implicit VR Little Endian, Deflated Explicit VR Little Endian (in that order).

#### 3.4.3 Verification, Query/Retrieve, worklists and normalized services

Explicit VR Little Endian, Implicit VR Little Endian, Deflated Explicit VR Little Endian (in that order), for Verification, every FIND/MOVE/GET model, Modality and General Purpose Worklist, Relevant Patient Information Query, Hanging Protocol FIND/MOVE/GET, MPPS (incl. Retrieve and Notification) and Storage Commitment (Push and Pull). On a Deflated context the identifier or dataset is inflated on receipt and responses (and C-GET sub-operations on a Deflated storage context) are sent deflated (gateway/deflate.mjs).

### 3.5 SCU activities

#### 3.5.1 Storage SCU

Used by C-MOVE and C-GET sub-operations, auto-routing rules, manual resend, the outbound queue, IOCM forwarding and the Storage Commitment workflow.

- **Photometric interpretation**: destinations with **YBR when sending** off (`send_ybr = false`) receive YBR_FULL / YBR_FULL_422 objects converted to RGB (gateway/render.mjs `ybrToRgbPart10`).
- **Burn presentation state** (`burn_pstate`): after a study's images, the gateway sends a Secondary Capture copy (new UIDs, series number 9900) of every image referenced by a GSPS in the study, with the presentation state's VOI, shutter, displayed area, rotation/flip and graphic/text annotations burned in.
- **Send patient documents** (`send_documents`): the patient's scanned documents go out after the images, PDFs as Encapsulated PDF (1.2.840.10008.5.1.4.1.1.104.1) and images (JPEG/PNG) as Secondary Capture.
- Burned-in copies and documents are sent on their own association after a successful image send; outbound tag-morph rules apply; the counts are stored on the job.

- Each object is offered on a presentation context with its stored transfer syntax, plus Explicit and Implicit VR Little Endian. If the receiver accepts the stored syntax the object is sent as stored. If it accepts only uncompressed, the library converts uncompressed objects on the fly; compressed objects are decoded (JPEG, JPEG-LS, JPEG 2000, HTJ2K, RLE through the dcmjs-codecs WebAssembly decoder) and sent on a second association. Video cannot be decoded and is reported as a failure.
- Destination policy: when a destination does not accept lossy or lossless compressed objects, such objects are decoded before the first attempt.
- Outbound tag-morph rules for the destination are applied to every object; an invalid rule blocks sending.
- **Send original Patient ID and Issuer** (`send_original_ids`, OmegaAI Link p12): objects whose identifiers were replaced on receipt go out with the Patient ID and Issuer of Patient ID they arrived with (from Other Patient IDs Sequence; the local MRN moves to Other Patient IDs). Applies to the outbound queue, resend and C-MOVE.
- **Anonymize per send** (`outbound_enqueue(..., p_anonymize)`, resend payload `anonymize`): after the destination's rules, Patient ID is pseudonymised (`ANON-` + HMAC), Patient's Name set to ANONYMOUS, Accession Number pseudonymised, Study / Series / SOP Instance UIDs remapped and the PS3.15 basic profile applied (the same actions as a de-identifying morph rule).
- Every outbound queue transfer attempt and manual resend is audited as `dicom.transmit` (destination, job, images, bytes, outcome), linked to the study.
- Bandwidth cap (kbit/s) per destination is enforced by sending paced batches, one association per batch.
- The outbound queue sends STAT before routine work, retries with exponential back-off (30 s doubling, up to 1 h) up to the destination's retry limit, records each finished job in the routing log, and, for destinations with heartbeat and "defer when offline" set, waits while the destination is offline.
- C-STORE responses with status 0000 or Bxxx count as sent; other statuses count as failures.

#### 3.5.2 Storage Commitment SCU

For destinations flagged **request commitment** (DIMSE destinations only), after a successful send the gateway sends N-ACTION (Action Type 1) with a new Transaction UID listing the SOP instances it sent. It keeps the association open for `STGCMT_SCU_LINGER_SECONDS` (default 15 s) to receive the N-EVENT-REPORT on the same association, and otherwise accepts it later on a new association ([section 3.3.7](#337-n-event-report-scp-storage-commitment-results-for-lumens-own-requests)). The job records committed, partial, failed, error or timeout (per destination, default 60 minutes).

#### 3.5.3 MPPS SCU

- **Forwarding**: every MPPS N-CREATE and N-SET that RADENVO accepted is forwarded, unchanged, to destinations flagged **forward MPPS** (never back to the sender). The queue is persistent and ordered per destination and step (an N-SET never overtakes its N-CREATE), retries with back-off up to 20 attempts, and cancels later steps when an earlier one fails permanently.
- **When sending** (`send_mpps`, "Support MPPS (when sending)"): for each outbound job to the destination, N-CREATE (IN PROGRESS: Scheduled Step Attributes with Study Instance UID and accession, patient demographics, Performed Station AE Title = calling AE, modality) when the send starts, and N-SET (COMPLETED, or DISCONTINUED on failure, with the Performed Series Sequence of the instances sent) when it ends. The result is stored on the job.
- **From technologist actions** (`mpps_on_exam`): when a technologist starts or completes an exam in RADENVO and no modality reported MPPS for it, N-CREATE IN PROGRESS / N-SET COMPLETED are queued through the persistent MPPS queue.

#### 3.5.4 Instance Availability Notification SCU

When a study settles, the gateway sends N-CREATE for 1.2.840.10008.5.1.4.33 to each destination flagged **send IAN**: Referenced Performed Procedure Step Sequence (MPPS steps recorded for the study), Study Instance UID, and Referenced Series Sequence with every instance (Referenced SOP Class/Instance UID, Instance Availability ONLINE, Retrieve AE Title). It is sent once per settle event and not retried.

#### 3.5.5 Query/Retrieve SCU

- **Prior pre-fetch**: for scheduled exams and newly arrived studies, the gateway sends Study Root C-FIND to registered external archives for the patient's earlier studies, scores relevance (modality family and body region) and retrieves the chosen studies with Study Root C-MOVE to its own AE title.
- **C-MOVE identifier**: Query/Retrieve Level STUDY and Study Instance UID; when the patient's issuer is known (pre-fetch match, archive issuer, or the retrieve command's `patient_id` / `issuer`), Patient ID and Issuer of Patient ID too. For stations and archives flagged **Clear Issuer of Patient ID** (`move_clear_issuer`, PS-DCS p97) the issuer is left out.
- **User-driven query/retrieve** (Admin, Connectivity): Study Root C-FIND with Patient ID, Patient's Name, Patient's Birth Date, Study Instance UID, Study Date, Study Time, Accession Number, Study Description, Modalities in Study, Number of Study Related Instances (up to 500 results shown), and retrieve of one study to the tenant's own AE title.
- **C-GET SCU** (Study Root GET, 1.2.840.10008.5.1.4.1.2.2.3): used instead of C-MOVE for stations and archives flagged **use C-GET** (`remote_aes.use_cget`, `external_archives.use_cget`): prior pre-fetch, manual retrieve and Storage Commitment Pull. The gateway proposes the storage SOP classes with SCP role selection and receives the objects as C-STORE sub-operations on the same association; each takes the normal inbound path (coercion, spool, indexing). Works behind NAT.
- **Modality Worklist SCU** (gateway commands `mwl_query` / `mwl_import`, Admin): C-FIND on 1.2.840.10008.5.1.4.31 with Patient ID, Patient's Name, Accession Number, Modality, Scheduled Station AE Title and Scheduled Procedure Step Start Date as filters, all standard return keys requested. `mwl_import` files the entries as scheduled orders of the tenant (new accession: inserted with source `mwl`; an earlier MWL order still scheduled: schedule updated; anything else left alone), at most 500 entries per call and 30 calls per tenant per minute, audited. Token-mode gateways use `POST /api/gw/v1/mwl-import` (scope `orders`).
- **Relevant Patient Information Query SCU** (gateway command `rpi_query`): C-FIND on the General (template 9007), Breast (9000) or Cardiac (3802) model for one Patient ID; the returned content items are shown as text.

#### 3.5.6 Print SCU (Basic Grayscale and Basic Color Print Management)

For a destination of kind "printer", a user can print a study: up to 9 key images (those referenced by the study's KOS objects, else an even sample of 4) on one film, in grayscale or in colour. One association carries every step; the optional SOP classes are proposed on contexts of their own and skipped when the printer rejects them.

| Step | Request | Attributes sent |
|---|---|---|
| 1 | N-GET Printer (1.2.840.10008.5.1.1.17) | all attributes; Printer Status FAILURE stops the job with the printer's status info |
| 2 | N-GET Printer Configuration Retrieval (1.2.840.10008.5.1.1.17.376) | all attributes (film sizes, media, density are reported with the result) |
| 3 | N-CREATE Presentation LUT (grayscale, when chosen) | Presentation LUT Shape IDENTITY; referenced by the film box only when the printer accepted the context |
| 4 | N-CREATE Basic Film Session | Number of Copies (1 - 5), Print Priority MED, Medium Type BLUE FILM (grayscale) or PAPER (colour), Film Destination MAGAZINE, Film Session Label LUMEN |
| 5 | N-CREATE Basic Film Box | Image Display Format STANDARD\1,1 / 1,2 / 2,2 / 2,3 / 3,3, Film Orientation PORTRAIT, Film Size ID (default 14INX17IN), Magnification Type CUBIC, Referenced Film Session Sequence, Annotation Display Format ID LABEL (with annotation text), Referenced Presentation LUT Sequence (step 3) |
| 6 | N-SET Basic Annotation Box (when annotation text is given and the printer created annotation boxes) | Annotation Position 1, Text String (up to 64 characters) |
| 7 | N-SET Basic Grayscale Image Box / Basic Color Image Box (one per image) | Image Box Position; grayscale: 8-bit MONOCHROME2; colour: 8-bit RGB, Planar Configuration 1 (colour-by-plane), grayscale sources replicated; Pixel Aspect Ratio 1\1, at most 2048 pixels per side, windowed from the image header (else min/max) |
| 8 | N-ACTION Basic Film Box (print) | |
| 9 | N-DELETE Basic Film Session | |
| 10 | N-GET Print Job (for the job named in the N-ACTION response) | Execution Status; FAILURE fails the command |

Not used: Image Overlay Box, VOI LUT Box, Print Queue Management, Stored Print, Pull Print Request, Referenced Image Box and the Referenced Print Management meta classes (all retired in PS3.4), Media Creation Management (RADENVO does not drive media creation devices), printer N-EVENT-REPORTs, print of presentation states, true-size printing. At most `DICOM_MAX_PRINT_ASSOCIATIONS` (default 5) print associations run at once.

#### 3.5.7 Verification SCU

C-ECHO to a destination on demand (Admin) and as a **heartbeat** every `HEARTBEAT_SECONDS` (default 600 s) to destinations with heartbeat on and to active external archives (10 s timeout). Status online/offline is shown in Admin; queued sends resume as soon as an offline destination answers again. DICOMweb destinations are checked with a QIDO-RS request instead.

#### 3.5.8 IOCM

See [section 3.6](#36-imaging-object-change-management-iocm).

#### 3.5.9 Outbound association parameters

| Item | Value |
|---|---|
| Connect timeout | `DICOM_TCP_TIMEOUT`, default 60 s |
| Association timeout | `DICOM_ASSOCIATION_TIMEOUT`, default 60 s |
| DIMSE / PDU timeout | `DICOM_DIMSE_TIMEOUT`, default 60 s; operations that wait longer for a response keep their own bound (C-MOVE / C-GET retrieve 10 min, print 120 s, MPPS and IAN 30 s, C-ECHO 15 s or 10 s for heartbeat) |
| Per destination | `timeout_seconds` on a destination or external archive (Admin, 1 - 3600 s) replaces all three for that AE |
| TLS | per destination ([section 7.1](#71-tls)) |

### 3.6 Imaging Object Change Management (IOCM)

**As Image Manager/Archive**: a Key Object Selection Document received over C-STORE whose Concept Name is one of the rejection titles below (coding scheme DCM) is treated as a rejection note: every referenced instance (Current Requested Procedure Evidence Sequence) is hidden from the viewer, Q/R and DICOMweb, recorded as rejected, and the note is stored. The note is forwarded to destinations flagged **IOCM** (never back to the sender). A rejected instance sent again is discarded.

| Code | Meaning |
|---|---|
| 113001 | Rejected for Quality Reasons |
| 113037 | Rejected for Patient Safety Reasons |
| 113038 | Incorrect Modality Worklist Entry |
| 113039 | Data Retention Policy Expired |

**As Change Requester**: a user can reject instances in RADENVO; the gateway builds a rejection note KOS (TID 2010 with the rejection title, Specific Character Set ISO_IR 192, Modality KO, Series Number 999, Series Description "Rejection note", Manufacturer "RADENVO"), applies it locally and forwards it to IOCM destinations.

### 3.7 Objects created by RADENVO

| Object | SOP Class | Created by | Content |
|---|---|---|---|
| Grayscale Softcopy Presentation State | 1.2.840.10008.5.1.4.1.1.11.1 | Viewer, "Save current view as presentation state" | references to displayed images, modality LUT (rescale), VOI LUT (window), rectangular display shutter, spatial transformation (rotation, flip), displayed area selection, graphic annotations (POINT, POLYLINE, CIRCLE, ELLIPSE, INTERPOLATED) and text annotations on graphic layers, presentation LUT shape |
| Key Object Selection Document | 1.2.840.10008.5.1.4.1.1.88.59 | Viewer key-image flags; automatically when a report is signed (organization setting, default on) | TID 2010, title from CID 7010 (default 113000 "Of Interest"), Key Object Description (113012), observer, references to flagged images. At signing the current list is revised to add the images the AI read flagged (non-normal findings), observer = signing radiologist; nothing is written when the list is already complete. |
| IOCM rejection note (KOS) | 1.2.840.10008.5.1.4.1.1.88.59 | Gateway (Change Requester) | [section 3.6](#36-imaging-object-change-management-iocm) |
| Basic Text SR (report export) | 1.2.840.10008.5.1.4.1.1.88.11 | Viewer, report export (`src/lib/dicom/reportExport.ts`) | RADENVO's radiology report: report text on the first TEXT content item (as RamSoft does), sections, signer and status; references to the study's images |
| Encapsulated PDF (report export) | 1.2.840.10008.5.1.4.1.1.104.1 | Viewer, report export | the report as PDF |
| Secondary Capture (burned-in GSPS copy) | 1.2.840.10008.5.1.4.1.1.7 | Gateway, on send to destinations with **burn presentation state** | the referenced image with the presentation state burned in |
| Encapsulated PDF / Secondary Capture (patient document) | 1.2.840.10008.5.1.4.1.1.104.1 / .7 | Gateway, on send to destinations with **send patient documents** | a scanned patient document |
| DICOMDIR | 1.2.840.10008.1.3.10 | Media export | [section 4](#4-media-interchange) |

Viewer-created objects are written in Explicit VR Little Endian with Specific Character Set ISO_IR 192, stored in the study through the web application's ingest path (not over DIMSE), and can be routed or retrieved like any other object. A revised presentation state, key-object set or report export supersedes RADENVO's previous revision. RADENVO creates only Basic Text SR reports, not Enhanced/Comprehensive SR or measurement templates.

### 3.8 Local cache and offline operation

The on-site gateway keeps a local cache (gateway/cache.mjs; `LUMEN_CACHE=off` disables it): every received, retrieved and pre-fetched object is written through to local disk and read through on C-MOVE, C-GET and forwarding (LRU, `LUMEN_CACHE_MAX_MB` default 10240, `LUMEN_CACHE_MAX_AGE_DAYS` default 30). When the cloud is unreachable (timeout or network error), C-FIND (PATIENT/STUDY/SERIES/IMAGE, Patient and Study Root) is answered from the cache index, C-MOVE and C-GET serve cached objects, configuration (AE titles, destinations, morph rules, archives, routing rules) comes from a local snapshot, and Storage SCP keeps accepting objects into the spool, which drains when the cloud is back. Spool, cache objects, indexes and the configuration snapshot are encrypted at rest ([section 7.4](#74-application-level-confidentiality)). The cache serves DICOM clients only; the web viewer loads from cloud storage.

---

## 4. Media interchange

### 4.1 File-set Creator

- **Content**: studies selected by the user, packaged in the browser or, for large exports (over 300 images), by a server-side **export job** (queued, with progress and cancel; packages kept in a private bucket until they expire, default 24 h). Server jobs split an export into volumes sized for the chosen medium (CD 650 MB, DVD 4.3 GB, BD 23 GB, USB unlimited, each capped by the bucket's file limit), each a complete package with its own DICOMDIR, keeping a series on one volume when it fits. Each package is a ZIP (Zip64 for large sets): `DICOMDIR`, `DICOM/` with 8.3 file IDs, `README.TXT`, `INDEX.HTM`, and an offline HTML viewer (`index.html`) that displays uncompressed images straight from the medium.
- **DICOMDIR**: File-set ID `LUMEN_PACS`; PATIENT, STUDY, SERIES and IMAGE records; Specific Character Set ISO_IR 192 on the records; Implementation Class UID 1.2.826.0.1.3680043.10.1484.1.
- **Application profiles and transfer syntax**: volumes follow STD-GEN-CD (CD), STD-GEN-DVD-RAM (DVD), STD-GEN-BD (BD) or STD-GEN-USB (USB and browser-built packages), named in README.TXT. Every object is written in **Explicit VR Little Endian**: compressed objects (JPEG, JPEG-LS, JPEG 2000, HTJ2K, RLE) and Implicit VR / Big Endian objects are decoded with the dcmjs-codecs WebAssembly transcoder, and volumes are planned with the uncompressed size, so the offline viewer displays every image. MPEG video objects have no uncompressed form and keep their MPEG-2 / MPEG-4 syntax (the STD-GEN-*-MPEG2/MPEG4 video profiles); an object the codecs cannot decode keeps its stored syntax and is listed in the export summary. JPEG / JPEG 2000 media profiles (STD-GEN-*-JPEG, -J2K) are not offered.
- RADENVO does not write to physical media (hardware): the user copies the volume to a USB stick or burns it with any disc software or publisher.
- Unreadable source files are skipped and listed in the export summary.

### 4.2 File-set Reader

Outside CD/DVD/USB import reads the `DICOMDIR` when present (files listed but missing are reported) or scans every file when there is none or it is unreadable. Objects are grouped into outside patients and studies, matched against existing patients for reconciliation, and imported through the web ingest path. Nested DICOMDIRs are ignored.

### 4.3 File-set Updater

Not supported.

---

## 5. Web services

### 5.1 DICOMweb origin server

Base URL: `https://<host>/api/dicomweb/{AE title}`. Every request needs `Authorization: Bearer <token>`, the DICOMweb token of that AE title (Admin, DICOM nodes); the token scopes the request to the AE's tenant. Tokens are compared in constant time. HTTPS only.

| Service | Method and path | Notes |
|---|---|---|
| QIDO-RS studies | GET `/studies` | Matching: PatientID (with IssuerOfPatientID through stored issuer-qualified identifiers), PatientName, AccessionNumber, StudyDescription, ReferringPhysicianName, InstitutionName (`*` and `?` wildcards; `fuzzymatching=true` for person names and descriptions), PatientSex, StudyInstanceUID (list), ModalitiesInStudy (list), StudyDate and PatientBirthDate (date or range), StudyTime (time or range), StudyID. `includefield` (keywords, tags or `all`), `limit` (default 100, max 1000), `offset`. Newest first. |
| QIDO-RS series | GET `/studies/{study}/series`, GET `/series` | Within a study or across studies. Matching: Modality (list), SeriesInstanceUID, SeriesNumber, SeriesDescription, StudyInstanceUID (list). |
| QIDO-RS instances | GET `/studies/{study}/series/{series}/instances`, `/studies/{study}/instances`, `/instances` | Within a series, a study or across studies. Matching: StudyInstanceUID, SeriesInstanceUID, SOPInstanceUID, SOPClassUID (lists), InstanceNumber, Modality. |
| WADO-RS retrieve | GET `/studies/{study}`, `…/series/{series}`, `…/instances/{sop}` | `multipart/related; type="application/dicom"`; the Accept header's `transfer-syntax` is honored (`*` = as stored; otherwise transcoded when possible, objects that cannot be produced are omitted with a Warning header; 406 when none can). |
| WADO-RS metadata | GET `…/metadata` (study, series, instance) | `application/dicom+json`; bulk data (Pixel Data, Encapsulated Document) as BulkDataURI. |
| WADO-RS frames | GET `…/instances/{sop}/frames/{list}` | `multipart/related` with the frames in the stored compressed syntax (`image/jpeg`, `image/jls`, `image/jp2`, `image/jphc`, `image/dicom-rle`) or `application/octet-stream` (Explicit VR LE), per Accept. |
| WADO-RS bulk data | GET `…/instances/{sop}/bulkdata/{tag}` | The referenced bulk data (encapsulated documents with their own media type). |
| WADO-RS rendered | GET `…/rendered` (study, series, instance, frames) | `image/jpeg`, `image/png` (`application/pdf`, `text/xml` for encapsulated documents); `viewport`, `window` (LINEAR, LINEAR_EXACT, SIGMOID), `quality`, `annotation=patient,technique`; GSPS applied when one references the image; SR/KOS rendered as a text image. At most 500 instances per response. |
| WADO-RS thumbnail | GET `…/thumbnail` (study, series, instance, frame) | Rendered, fitted to 128 pixels. |
| STOW-RS | POST `/studies`, POST `/studies/{study}` | `multipart/related; type="application/dicom"`, or `type="application/dicom+json"` with bulk data parts addressed by Content-Location (uncompressed or compressed Pixel Data, one part per frame). Response 200 (all stored), 202 (some failed), 409 (all failed), 415 (wrong content type). Failed SOP Sequence reasons: C000 cannot understand, A900 Study Instance UID does not match the target study, A700 out of resources. Calling AE recorded as `DICOMWEB`. |

QIDO returned attributes. Study: Study Date, Study Time, Accession Number, Modalities in Study, Referring Physician's Name, Study Description, Retrieve URL, Patient's Name, Patient ID, Patient's Birth Date, Patient's Sex, Study Instance UID, Number of Study Related Series and Instances; with `includefield`: Issuer of Patient ID, Other Patient IDs, Study ID, Institution Name. Series: Modality, Series Description, Study and Series Instance UID, Series Number, Number of Series Related Instances. Instances: SOP Class and Instance UID, Instance Number, Rows, Columns, Number of Frames, Retrieve URL.

Not supported: UPS-RS, Capabilities (OPTIONS) resource, `orderby`.

### 5.2 WADO-URI server

`GET https://<host>/api/wado?requestType=WADO&studyUID=…&seriesUID=…&objectUID=…` with `Authorization: Bearer <DICOMweb token of one of the tenant's AE titles>`.

| Parameter | Support |
|---|---|
| requestType | WADO (required) |
| studyUID, seriesUID, objectUID | required, must belong to the token's tenant |
| contentType | `application/dicom`, `image/jpeg` (default), `image/png`; `application/pdf` / `text/xml` for Encapsulated PDF / CDA; `application/pdf`, `text/plain`, `text/html` for SR and KOS; `video/mp4` for MPEG-4 AVC/H.264 and HEVC objects, `video/mpeg` for MPEG-2. A comma-separated preference list is accepted. Other types: 406 |
| transferSyntax | `application/dicom` only. Default: **Explicit VR Little Endian** (compressed, Implicit VR and Big Endian objects are transcoded; the response header `x-transfer-syntax` names the syntax sent); video objects keep their MPEG syntax. On request any syntax the codec library can produce (decode to Explicit VR LE, or encode to JPEG, JPEG-LS, JPEG 2000, RLE; `imageQuality` for lossy); 406 when it cannot |
| anonymize | `yes` with `application/dicom` only: Patient ID replaced by an HMAC pseudonym (`ANON-…`), Patient's Name `ANONYMOUS`, PS3.15 basic-profile PHI stripping |
| frameNumber | 1-based |
| rows, columns | output size |
| windowCenter, windowWidth | both or neither |
| imageQuality | 1 - 100 (JPEG, default 90) |
| region | `x1,y1,x2,y2` as fractions of the image (0 - 1) |
| presentationUID, presentationSeriesUID | both or neither; the GSPS must be in the same study and reference the object; applied with VOI, LUTs, shutter, displayed area, rotation/flip and burned-in annotations (window parameters not allowed with it) |
| annotation | `patient`, `technique` (RADENVO also accepts it for rendered images) |
| charset | `utf-8` (default) or `iso-8859-1` for text renderings |

Non-image objects: SR and KOS render as a text image (JPEG/PNG), as text, or as **PDF** laid out with the organization's SR template (Admin, settings: header, sub-header, logo text, font Helvetica/Times/Courier and size, identification fields and their order, footer, Letter/A4; generated server-side without external libraries, standard PDF fonts); Encapsulated PDF/CDA are returned as the document.

Video objects (`video/mp4`): when the encapsulated stream is already an MP4 (ISO BMFF) file it is returned unchanged. An MPEG-4 AVC/H.264 Annex B elementary stream (PS3.5 8.2.8) is remuxed into a single-track MP4 without transcoding: access units split by the H.264 rules, `avcC` from the SPS/PPS, constant frame duration from Frame Time (0018,1063) or Cine Rate (0018,0040) (30 fps default), composition offsets and an edit list from the slices' picture order count (B-frame reordering), sync samples at IDR pictures. An HEVC Annex B elementary stream is not remuxed (an `hvcC` record needs the full VPS/SPS profile-tier-level parse) and returns 406; retrieve it as `application/dicom`. MPEG-2 has no MP4 form without transcoding: `video/mp4` returns 406, `video/mpeg` returns the stream. No size limit is configured. Rendered responses are cacheable for 5 minutes (private).

### 5.3 DICOMweb user agent

A destination of kind "dicomweb" (URL plus authentication) is used three ways.

**STOW-RS** (auto-routing, resend, outbound queue):

- POST `<dicomweb_url>/studies`, `multipart/related; type="application/dicom"`, batches of up to 50 objects or 40 MB.
- Outbound tag-morph rules apply. No transcoding: objects are sent as stored.
- Response handling: 200/202 success (instances listed in Failed SOP Sequence are failures), 409 failure, any other status fails the batch. Errors 401, 403 and 5xx stop the job for retry by the queue.
- Heartbeat: QIDO-RS `GET <dicomweb_url>/studies?limit=1`.

**QIDO-RS / WADO-RS client** (Admin, DICOMweb archives; `POST /api/dicomweb/client/query` and `/retrieve`, admins only, identifiers in the body, never in the URL):

- Study-level QIDO-RS with PatientID, IssuerOfPatientID, PatientName, PatientBirthDate, PatientSex, AccessionNumber, StudyDate, StudyTime, ModalitiesInStudy, StudyInstanceUID, StudyDescription, StudyID, InstitutionName, ReferringPhysicianName, `includefield`, `fuzzymatching`, `limit`/`offset`.
- Study-level WADO-RS retrieve; retrieved objects are stored in the tenant (reconciled to a local MRN when given) and each retrieval is logged (`dicomweb_retrievals`).

**DICOMweb prior pre-fetch** (gateway/dicomweb-client.mjs): an external archive linked to a DICOMweb destination (`external_archives.dicomweb_remote_id`) is queried with QIDO-RS (Patient ID and date, name + birth date fallback, same relevance rules as DIMSE pre-fetch) and the chosen studies are retrieved series by series with WADO-RS (`transfer-syntax=*`), then looped back through the gateway's Storage SCP so they get the same reconciliation, morphing and IOCM handling as a C-MOVE.

**Authentication** (all three): none, static bearer token, OAuth 2.0 client credentials (token URL, client ID, optional scope), Google service account (OAuth 2.0 JWT-bearer grant with an RS256 assertion, RFC 7523) or AWS SigV4 (AWS HealthImaging: access key, region, optional session token). Access tokens are cached until shortly before expiry and refreshed on 401. Secrets are stored server-side (`remote_ae_secrets`) and are not readable from the browser.

Not supported: Storage Commitment over DICOMweb, UPS-RS.

---

## 6. Support of character sets

**Receiving**: the header parser decodes text by Specific Character Set (0008,0005):

| Value | Decoding |
|---|---|
| (none), ISO_IR 6 | Latin-1 superset of ASCII |
| ISO_IR 100, 101, 109, 110, 144, 127, 126, 138, 148, 203, 166 | ISO 8859-1, -2, -3, -4, -5, -6, -7, -8, -9, -15, TIS-620 (windows-874) |
| ISO_IR 13 | Shift JIS (JIS X 0201) |
| ISO_IR 192 | UTF-8 |
| GB18030, GBK | GB18030, GBK |
| ISO 2022 IR 6, 100, 101, 109, 110, 144, 127, 126, 138, 148, 203, 166, 13, 87, 159, 149, 58 | ISO 2022 code extensions with escape sequences (Latin, Cyrillic, Arabic, Greek, Hebrew, Thai, Japanese JIS X 0201/0208/0212, Korean KS X 1001, Chinese GB 2312) |

Stored objects keep their original bytes. Values indexed in the database are Unicode.

**Sending**: C-FIND, MWL, HP, GP worklist and Relevant Patient Information responses are UTF-8 and carry Specific Character Set ISO_IR 192 whenever a response contains non-ASCII text. Objects created by RADENVO (GSPS, KOS, report SR, burned-in copies, document objects, rejection notes, DICOMDIR records) declare ISO_IR 192. Retrieved objects are sent with their original character set.

---

## 7. Security

### 7.1 TLS

| Item | Inbound (SCP) | Outbound (SCU) |
|---|---|---|
| Port | `DICOM_TLS_PORT`, default 2762 (enabled when `DICOM_TLS_CERT` and `DICOM_TLS_KEY` are set) | destination port |
| Protocol | TLS 1.2 minimum (Node.js default cipher suites; no 3DES, RC4 or NULL ciphers) | TLS 1.2 minimum |
| Server authentication | gateway certificate | destination verified against its own CA bundle (Admin), else `DICOM_TLS_CLIENT_CA`, else the system trust store; verification can be turned off per destination for appliances with self-signed certificates |
| Client authentication | required when `DICOM_TLS_CA` is set (mutual TLS); otherwise not requested | client certificate `DICOM_TLS_CLIENT_CERT`/`KEY` (falls back to the server pair) when configured |
| Profiles | BCP 195 / Non-downgrading TLS secure transport behavior as provided by Node.js; equivalent to the AES TLS Secure Transport Connection Profile when an AES-GCM suite is negotiated | same |

A TLS integrity failure closes the connection (the association is aborted). By default the plain DIMSE listener on `DICOM_PORT` (default 11112) runs alongside the TLS listener and is unencrypted; keep it on a trusted network, or set `DICOM_PLAIN=off` to run TLS only (the gateway refuses to start with `DICOM_PLAIN=off` and no TLS certificate).

### 7.2 Access control

- Inbound: called AE title must be registered and active; optional allowed calling AE list per called AE; optional mutual TLS. All queries and retrieves are confined to the called AE's tenant.
- Outbound: destinations, move destinations and Storage Commitment report targets must be registered by the tenant.
- DICOMweb and WADO-URI: per-AE bearer token, tenant-scoped.
- The gateway authenticates to the cloud with a scoped, revocable, IP-restrictable **gateway token** (one tenant, scopes per function) or, where HL7 is also run, the service-role key. See `docs/GATEWAY-TOKEN.md`.

### 7.3 Audit

Object receipt (`study.ingest`), staff views, exports, configuration changes, security events and DIMSE activity (`dicom.association`, `dicom.association_rejected`, `dicom.store`, `dicom.find`, `dicom.mwl_find`, `dicom.move`, `dicom.get`, `dicom.mpps`, `dicom.mpps_notification`, `dicom.commitment`, `dicom.commitment_status`, `dicom.mwl_import`, `dicom.transmit`; calling/called AE, peer IP, outcome) are written to RADENVO's tamper-evident audit log and can be exported as DICOM PS3.15 Annex A.5 / RFC 3881 audit messages (XML) or RFC 5424 syslog lines (`GET /api/audit/atna`). The gateway does not send audit messages to an Audit Record Repository itself. Outbound queue transfers (routing, forwarding, manual sends, IOCM forwarding) and resends are audited as `dicom.transmit` (and the finished jobs also in the routing log); IOCM events are also in the IOCM log, MPPS forwards on the MPPS record, and Storage Commitment results on the job.

### 7.4 Application-level confidentiality

Outbound tag-morph rules (including PS3.15 basic-profile stripping) per destination; per-send anonymize ([section 3.5.1](#351-storage-scu)); per-station result filters on what a station can query and retrieve ([section 3.3.3.1](#3331-general)); WADO-URI `anonymize=yes`.

Encryption at rest:

- **Gateway**: spool files, cached objects, cache indexes and the configuration snapshot are encrypted with AES-256-GCM per file, **on by default** (key from `LUMEN_CACHE_KEY`, else a random key generated on first start in `LUMEN_CACHE_KEY_FILE`, readable only by the gateway account; per-tenant keys derived with HKDF-SHA256; `LUMEN_CACHE_AUTOKEY=0` opts out). Received objects are sealed in memory before the spool write. Key rotation keeps old keys for reading.
- **Cloud**: the provider's encryption at rest, plus opt-in per-tenant **envelope encryption** of the DICOM bucket (`storage_policies.encrypt_dicom`): AES-256-GCM with versioned per-tenant data keys wrapped by `LUMEN_STORAGE_MASTER_KEY`; objects are sealed when written and opened server-side on read. It cannot be enabled while a gateway using the service-role key serves the tenant. Optional cold tier with transparent restore. See docs/GATEWAY-PLATFORM.md.

---

## 8. Configuration

### 8.1 Gateway environment

| Variable | Default | Purpose |
|---|---|---|
| `DICOM_PORT` | 11112 | plain DIMSE listener |
| `DICOM_PLAIN` | on | `off` disables the plain DIMSE listener (TLS only) |
| `DICOM_IMPLEMENTATION_CLASS_UID`, `DICOM_IMPLEMENTATION_VERSION` | 2.25.8419177003322034710685262166528219525, LUMEN_PACS_1.6 | network implementation identity |
| `DICOM_AUDIT` | on | `off` stops DIMSE audit records |
| `DICOM_TLS_PORT` | 2762 | DICOM TLS listener |
| `DICOM_TLS_CERT`, `DICOM_TLS_KEY` | | server certificate and key (TLS listener starts only when both are set) |
| `DICOM_TLS_CA` | | client CA bundle; when set, client certificates are required |
| `DICOM_TLS_CLIENT_CERT`, `DICOM_TLS_CLIENT_KEY`, `DICOM_TLS_CLIENT_CA` | | outbound client certificate and default trust anchors |
| `DICOM_MAX_PDU` | 131072 | maximum PDU received (4096 - 1048576) |
| `DICOM_MAX_ASSOCIATIONS` | 0 (unlimited) | simultaneous inbound associations |
| `DICOM_MAX_STORE_ASSOCIATIONS`, `_QUERY_`, `_RETRIEVE_`, `_MWL_`, `_MPPS_`, `_COMMITMENT_ASSOCIATIONS` | 0 (unlimited) | simultaneous inbound associations per service |
| `DICOM_MAX_TRANSMIT_ASSOCIATIONS`, `DICOM_MAX_REQUEST_ASSOCIATIONS`, `DICOM_MAX_PRINT_ASSOCIATIONS` | 5 each | simultaneous outbound associations per service (0 = unlimited) |
| `DICOM_TCP_TIMEOUT`, `DICOM_ASSOCIATION_TIMEOUT`, `DICOM_DIMSE_TIMEOUT` | 60 each (seconds) | connect, association establishment and DIMSE / PDU idle timeouts, inbound and outbound |
| `DICOM_PENDING_EVERY` | 10 | C-MOVE / C-GET sub-operations between pending responses |
| `DICOM_SPOOL` | gateway-spool | spool directory |
| `STUDY_SETTLE_SECONDS` | 20 | quiet time before routing, IAN and AI pre-read |
| `STGCMT_WAIT_SECONDS` | 60 | Storage Commitment SCP wait for indexing |
| `STGCMT_SCU_LINGER_SECONDS` | 15 | wait for an N-EVENT-REPORT on the same association |
| `OUTBOUND_CONCURRENCY` | 5 | outbound jobs in parallel (alias of `DICOM_MAX_TRANSMIT_ASSOCIATIONS`) |
| `HEARTBEAT_SECONDS` | 600 | destination C-ECHO interval (0 disables) |
| `GATEWAY_ID` | host name | gateway identity for work pinning |
| `LUMEN_GATEWAY_TOKEN`, `LUMEN_APP_URL` | | scoped gateway credential |
| `MORPH_HASH_SECRET` | | key for HMAC pseudonymisation in morph rules |
| `LUMEN_CACHE`, `LUMEN_CACHE_DIR`, `LUMEN_CACHE_MODE`, `LUMEN_CACHE_MAX_MB`, `LUMEN_CACHE_MAX_AGE_DAYS` | on, gateway-cache, fallback, 10240, 30 | local cache ([section 3.8](#38-local-cache-and-offline-operation)) |
| `LUMEN_CACHE_KEY`, `LUMEN_CACHE_KEY_FILE`, `LUMEN_CACHE_AUTOKEY` | generated key file | spool/cache encryption at rest |
| `LUMEN_UPDATE_URL`, `LUMEN_UPDATE_PUBKEY`, `LUMEN_UPDATE_AUTO` | | signed self-update (docs/GATEWAY-PLATFORM.md) |

### 8.2 Per-tenant configuration (Admin)

- **DICOM nodes** (called AE titles): AE title, active, allowed calling AE titles, facility, default Issuer of Patient ID, DICOMweb token.
- **Destinations** (remote AEs): AE title, host, port, kind (workstation, PACS, VNA, AI, research, modality, RIS, printer, DICOMweb, other), TLS (on/off, CA bundle, verify), accept lossy / accept lossless, preferred syntaxes, max associations, bandwidth cap, retry limit, heartbeat, defer when offline, IOCM, forward MPPS, send IAN, request Storage Commitment and its timeout, pinned gateway, DICOMweb URL and authentication (none, bearer, OAuth2 client credentials, Google service account, AWS SigV4), and the PowerServer station options: use C-GET, return C-FIND request attributes only, maximum records for C-FIND and MWL, YBR when sending, burn presentation state, support MPPS when sending, MPPS from technologist actions, send patient documents, study status to set when storage commitment is received, Storage Commitment report on a new association, Receive Study As facility / Issuer of Patient ID / status (and always overwrite status), result filter by issuer / facility / study status, repair patient name, clear Issuer of Patient ID in C-MOVE requests, send original Patient ID and Issuer, association / DIMSE / TCP timeout. The whole station and archive configuration can be exported and imported as JSON (secrets excluded).
- **External archives** for prior pre-fetch: AE title, host, port, TLS, accession prefix, Issuer of Patient ID, clear the issuer in C-MOVE requests, timeout, relevance policy, use C-GET, or a linked DICOMweb destination.
- **Routing rules** (modality, calling AE, description, priority), **tag-morph rules** (inbound per AE/calling AE, outbound per destination), **hanging protocols**.

---

## 9. Known limitations

1. C-FIND does not match Study ID and ignores C-CANCEL (all matches are prepared before the first response). Without the station's "requested attributes only" option the returned attribute set per level is fixed.
2. C-MOVE ignores C-CANCEL (C-GET honors it).
3. No GP-SPS N-ACTION or GP-PPS (retired from DICOM in 2011), so General Purpose Worklist status cannot be changed over DICOM. The MWL SCP does not return Requested Procedure Code Sequence or Scheduled Performing Physician's Name.
4. Print supports no presentation-state printing, true-size printing or printer N-EVENT-REPORTs; retired print SOP classes (Pull Print, Print Queue, Stored Print, Image Overlay Box, VOI LUT Box) are not used.
5. WADO-URI: no `video/mp4`; without `transferSyntax` the stored syntax is returned rather than Explicit VR Little Endian.
6. STOW-RS client sends objects as stored (no transcoding); no Storage Commitment over DICOMweb; no UPS-RS.
7. Media export copies objects in their stored transfer syntax, so packages with compressed objects are not strictly STD-GEN-CD conformant; RADENVO does not write discs.
8. RADENVO creates Basic Text SR reports only; waveforms and audio are stored but not rendered; DICOM Hanging Protocol objects are stored but not applied by the viewer; the viewer's "ignore presentation states" setting is per user, not per sending station.
9. The plain DIMSE listener runs by default (turn it off with `DICOM_PLAIN=off`); on it, peers are identified by AE title only.
10. The gateway does not send audit messages to an external Audit Record Repository (they are exported from RADENVO's audit log instead).
