Skip to content

Store Actions ​

Store actions send DICOM objects to remote PACS systems or storage nodes using the DICOM C-STORE operation.

Basic Syntax ​

xml
<Store name="ActionName">
  <ConnectionParameters>
    <PeerAeTitle>RemoteAE</PeerAeTitle>
    <MyAeTitle>LocalAE</MyAeTitle>
    <Host>hostname</Host>
    <Port>104</Port>
  </ConnectionParameters>
  <Compression type="CompressionType"/>
  <ColorMode mode="ColorType"/>
</Store>

Note: Error handling (onError) is configured on <Perform> nodes in the workflow, not on the action definition. See Actions Overview for details.

Required Attributes ​

name ​

Unique identifier for this action.

Connection Parameters ​

ConnectionParameters ​

Network connection settings for the remote DICOM server. PeerAeTitle, Host, and Port are required; MyAeTitle is optional.

PeerAeTitle (required) ​

The AE Title of the remote DICOM storage server (PACS).

Host (required) ​

The hostname or IP address of the remote DICOM storage server.

Port (required) ​

The TCP port number of the remote DICOM storage server (typically 104 or 11112).

MyAeTitle (optional) ​

The AE Title DICOM Printer 2 presents as the calling AE. Defaults to DICOM_PRINTER when omitted.

Optional Elements ​

Compression ​

Specifies the compression algorithm to apply before sending.

Attribute: typeValid Values: RLE, JPEG_Lossless, JPEG_LossyDefault: None (uncompressed)

xml
<Store name="SendToPACS">
  <Compression type="JPEG_Lossless"/>
  <ConnectionParameters>...</ConnectionParameters>
</Store>

Note: If the <Compression> element is omitted, images are sent uncompressed with the default transfer syntax.

Compression Types:

RLE ​

RLE (Run-Length Encoding) lossless compression.

xml
<Compression type="RLE"/>

Best for:

  • Images with large areas of solid color
  • Binary images
  • Fast compression/decompression required

JPEG_Lossless ​

JPEG lossless compression (1.2.840.10008.1.2.4.70).

xml
<Compression type="JPEG_Lossless"/>

Best for:

  • Medical images requiring no quality loss
  • Smaller file sizes than RLE
  • Widely supported by PACS systems

JPEG_Lossy ​

JPEG lossy compression with configurable quality.

xml
<Compression type="JPEG_Lossy"/>

Best for:

  • Non-diagnostic images
  • Maximum compression ratios
  • Scanned documents or secondary captures where slight quality loss is acceptable

Warning: Lossy compression may not be appropriate for diagnostic images. Verify compliance with local regulations and policies.

ColorMode ​

Specifies the color mode for image conversion.

Attribute: modeValid Values: RGB, Monochrome8, Monochrome12Default: RGB (omitting <ColorMode> sends images as RGB / PhotometricInterpretation RGB)

xml
<ColorMode mode="Monochrome8"/>

Color Modes:

RGB ​

24-bit color RGB images.

xml
<ColorMode mode="RGB"/>

Monochrome8 ​

8-bit grayscale images (256 gray levels).

xml
<ColorMode mode="Monochrome8"/>

Best for:

  • Standard grayscale images
  • PACS systems that expect grayscale secondary-capture images
  • Smaller file sizes

Monochrome12 ​

12-bit grayscale images (4096 gray levels).

xml
<ColorMode mode="Monochrome12"/>

Best for:

  • High dynamic range medical images
  • CT, MR, CR, DR modalities
  • Maximum grayscale precision

Incompatible combination: Compression type="JPEG_Lossy" together with ColorMode mode="Monochrome12" is not allowed and causes the configuration to fail to load. For 12-bit grayscale use RLE or JPEG_Lossless instead.

Storage Classes ​

Store actions automatically select the appropriate SOP Class based on the DICOM object type:

  • Encapsulated PDF Storage - For PDF documents (1.2.840.10008.5.1.4.1.1.104.1)
  • Secondary Capture Image Storage - For image-based print jobs (1.2.840.10008.5.1.4.1.1.7)

Series Organization ​

When a job produces both image and PDF instances, the Store action separates them into distinct DICOM series:

  • Images and PDFs are stored as separate series, each with its own Series Instance UID.
  • Each instance is assigned a unique instance number within its series.
  • The image series keeps whatever Series Number the dataset already has (from an earlier SetTag or a query result); if none is set, it is left blank. The Encapsulated PDF series is assigned the next number after the image series' number — or 1 when the image series has no numeric Series Number.

Association Lifetime ​

For each job, a Store action opens one DICOM association to the configured Storage SCP and sends all compatible generated instances on that association. Multi-page image jobs therefore produce one association request, one C-STORE per page/instance, and one association release. Jobs containing both image and Encapsulated PDF instances use the same association when the SCP accepts the needed presentation contexts.

If any C-STORE fails, the Store action fails and workflow error handling applies. DP2 aborts cleanup when the association state is uncertain; a final release warning by itself does not turn an otherwise successful Store action into a failed action.

Basic Example ​

Send uncompressed images to a PACS:

xml
<Store name="SendToPACS">
  <ConnectionParameters>
    <PeerAeTitle>PACS_SERVER</PeerAeTitle>
    <MyAeTitle>DICOM_PRINTER</MyAeTitle>
    <Host>192.168.1.100</Host>
    <Port>104</Port>
  </ConnectionParameters>
</Store>

Use in workflow with error handling:

xml
<Perform action="SendToPACS" onError="Hold"/>

Compression Examples ​

JPEG Lossless Compression ​

xml
<Store name="SendCompressed">
  <ConnectionParameters>
    <PeerAeTitle>PACS_ARCHIVE</PeerAeTitle>
    <MyAeTitle>PRINTER</MyAeTitle>
    <Host>pacs.example.org</Host>
    <Port>11112</Port>
  </ConnectionParameters>
  <Compression type="JPEG_Lossless"/>
</Store>

RLE Compression with Grayscale Conversion ​

xml
<Store name="SendGrayscaleRLE">
  <ConnectionParameters>
    <PeerAeTitle>PACS_SERVER</PeerAeTitle>
    <MyAeTitle>PRINTER</MyAeTitle>
    <Host>192.168.1.100</Host>
    <Port>104</Port>
  </ConnectionParameters>
  <Compression type="RLE"/>
  <ColorMode mode="Monochrome8"/>
</Store>

Multiple Storage Destinations ​

You can define multiple Store actions to send to different destinations:

xml
<ActionsList>
  <!-- Primary PACS -->
  <Store name="SendToPrimaryPACS">
    <ConnectionParameters>
      <PeerAeTitle>PACS_PRIMARY</PeerAeTitle>
      <MyAeTitle>PRINTER</MyAeTitle>
      <Host>192.168.1.100</Host>
      <Port>104</Port>
    </ConnectionParameters>
    <Compression type="JPEG_Lossless"/>
  </Store>

  <!-- Backup archive -->
  <Store name="SendToBackupArchive">
    <ConnectionParameters>
      <PeerAeTitle>PACS_BACKUP</PeerAeTitle>
      <MyAeTitle>PRINTER</MyAeTitle>
      <Host>192.168.1.200</Host>
      <Port>104</Port>
    </ConnectionParameters>
    <Compression type="RLE"/>
  </Store>

  <!-- Film printer -->
  <Store name="SendToFilm">
    <ConnectionParameters>
      <PeerAeTitle>FILM_PRINTER</PeerAeTitle>
      <MyAeTitle>PRINTER</MyAeTitle>
      <Host>192.168.1.50</Host>
      <Port>104</Port>
    </ConnectionParameters>
    <ColorMode mode="Monochrome12"/>
  </Store>
</ActionsList>

<Workflow>
  <!-- Primary PACS - retry on failure -->
  <Perform action="SendToPrimaryPACS" onError="Hold"/>

  <!-- Backup - ignore failures -->
  <Perform action="SendToBackupArchive" onError="Ignore"/>

  <!-- Film printer - ignore failures -->
  <Perform action="SendToFilm" onError="Ignore"/>
</Workflow>

Conditional Storage ​

Use workflow conditionals to route to different destinations based on data:

xml
<Workflow>
  <Perform action="FindPatient"/>

  <If field="QUERY_FOUND" value="1">
    <Statements>
      <!-- Patient matched - send to primary PACS -->
      <Perform action="SendToPrimaryPACS"/>
    </Statements>
  </If>

  <If field="QUERY_FOUND" value="0">
    <Statements>
      <!-- No patient match - send to holding area -->
      <Perform action="SendToHoldingPACS"/>
    </Statements>
  </If>
</Workflow>

Error Handling ​

Error handling is configured on <Perform> nodes in the workflow, not on the Store action itself.

Retry on Network Failures ​

Action definition:

xml
<Store name="SendWithRetry">
  <ConnectionParameters>
    <PeerAeTitle>PACS_SERVER</PeerAeTitle>
    <MyAeTitle>PRINTER</MyAeTitle>
    <Host>192.168.1.100</Host>
    <Port>104</Port>
  </ConnectionParameters>
</Store>

Workflow with retry:

xml
<Perform action="SendWithRetry" onError="Hold"/>

With onError="Suspend", failed stores are retried after the SuspensionTime interval.

Discard on Permanent Failures ​

Action definition:

xml
<Store name="SendOrDiscard">
  <ConnectionParameters>
    <PeerAeTitle>OPTIONAL_ARCHIVE</PeerAeTitle>
    <MyAeTitle>PRINTER</MyAeTitle>
    <Host>192.168.1.200</Host>
    <Port>104</Port>
  </ConnectionParameters>
</Store>

Workflow with discard:

xml
<Perform action="SendOrDiscard" onError="Discard"/>

Ignore Optional Destinations ​

Action definition:

xml
<Store name="SendOptional">
  <ConnectionParameters>
    <PeerAeTitle>OPTIONAL_PACS</PeerAeTitle>
    <MyAeTitle>PRINTER</MyAeTitle>
    <Host>192.168.1.150</Host>
    <Port>104</Port>
  </ConnectionParameters>
</Store>

Workflow with ignore:

xml
<Perform action="SendOptional" onError="Ignore"/>

Checking Store Success ​

Use workflow conditionals to check if a store operation succeeded:

xml
<Workflow>
  <Perform action="SendToPACS"/>

  <If field="STORE_SUCCEEDED" value="1">
    <Statements>
      <!-- Store succeeded -->
      <Perform action="NotifySuccess"/>
    </Statements>
  </If>

  <If field="STORE_SUCCEEDED" value="0">
    <Statements>
      <!-- Store failed -->
      <Perform action="NotifyFailure"/>
    </Statements>
  </If>
</Workflow>

Complete Example ​

Complete configuration with query, tag setting, and multiple store destinations:

xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE DicomPrinterConfig SYSTEM "config.dtd">
<DicomPrinterConfig>
  <ActionsList>
    <!-- Query for patient data -->
    <Query name="FindPatient" type="Worklist">
      <ConnectionParameters>
        <PeerAeTitle>RIS</PeerAeTitle>
        <MyAeTitle>PRINTER</MyAeTitle>
        <Host>192.168.1.200</Host>
        <Port>104</Port>
      </ConnectionParameters>
      <DcmTag tag="0010,0020">#{PatientID}</DcmTag>
    </Query>

    <!-- Set metadata (one tag per SetTag) -->
    <SetTag name="SetStudyDate" tag="0008,0020">#{Date}</SetTag>
    <SetTag name="SetInstitution" tag="0008,0080">Medical Center</SetTag>

    <!-- Primary PACS with compression -->
    <Store name="SendToPrimaryPACS">
      <ConnectionParameters>
        <PeerAeTitle>PACS_PRIMARY</PeerAeTitle>
        <MyAeTitle>DICOM_PRINTER</MyAeTitle>
        <Host>pacs.example.org</Host>
        <Port>11112</Port>
      </ConnectionParameters>
      <Compression type="JPEG_Lossless"/>
    </Store>

    <!-- Backup without compression -->
    <Store name="SendToBackup">
      <ConnectionParameters>
        <PeerAeTitle>PACS_BACKUP</PeerAeTitle>
        <MyAeTitle>DICOM_PRINTER</MyAeTitle>
        <Host>backup-pacs.example.org</Host>
        <Port>11112</Port>
      </ConnectionParameters>
    </Store>
  </ActionsList>

  <Workflow>
    <!-- Find patient with retry on failure -->
    <Perform action="FindPatient" onError="Hold"/>

    <If field="QUERY_FOUND" value="1">
      <Statements>
        <Perform action="SetStudyDate"/>
        <Perform action="SetInstitution"/>

        <!-- Primary PACS - critical, retry on failure -->
        <Perform action="SendToPrimaryPACS" onError="Hold"/>

        <!-- Backup - optional, ignore failures -->
        <Perform action="SendToBackup" onError="Ignore"/>
      </Statements>
    </If>
  </Workflow>
</DicomPrinterConfig>

Performance Considerations ​

  • Compression reduces network bandwidth but increases CPU usage
  • JPEG Lossless provides good compression with moderate CPU usage
  • RLE is fastest but provides less compression
  • JPEG Lossy provides maximum compression but may not be suitable for diagnostic images