<?xml version="1.0" encoding="UTF-8"?>
<executable>
  <category>Converters</category>
  <title>Create a DICOM Series</title>
  <description><![CDATA[Create a DICOM Series from a Slicer volume. User can specify values for selected DICOM tags in the UI. Given the number of tags DICOM series have, it is impossible to expose all tags in UI. So only important tags can be set by the user.]]></description>
  <version>0.1.0.$Revision$(alpha)</version>
  <documentation-url>https://slicer.readthedocs.io/en/latest/user_guide/modules/createdicomseries.html</documentation-url>
  <license/>
  <contributor>Bill Lorensen (GE)</contributor>
  <acknowledgements><![CDATA[This command module was derived from Insight/Examples (copyright) Insight Software Consortium]]></acknowledgements>
  <parameters>
    <label>Input</label>
    <description><![CDATA[Input parameters]]></description>
    <image>
      <name>inputVolume</name>
      <label>Input Volume</label>
      <channel>input</channel>
      <index>0</index>
      <description><![CDATA[Input volume to be resampled]]></description>
    </image>
  </parameters>
  <parameters>
    <label>Output</label>
    <description><![CDATA[Output parameters]]></description>
    <directory>
      <label>DICOM Directory</label>
      <name>dicomDirectory</name>
      <longflag>--dicomDirectory</longflag>
      <description><![CDATA[The directory to contain the DICOM series.]]></description>
      <default>./</default>
    </directory>
    <string>
      <label>DICOM filename prefix</label>
      <name>dicomPrefix</name>
      <longflag>--dicomPrefix</longflag>
      <description><![CDATA[The prefix of the DICOM filename.]]></description>
      <default>IMG</default>
    </string>
    <string>
      <label>DICOM file number format</label>
      <name>dicomNumberFormat</name>
      <longflag>--dicomNumberFormat</longflag>
      <description><![CDATA[The printf-style format to be used when creating the per-slice DICOM filename. The leading % sign can be omitted.]]></description>
      <default>%04d</default>
    </string>
    <boolean>
      <label>Reverse Slices</label>
      <name>reverseImages</name>
      <longflag>--reverseImages</longflag>
      <description><![CDATA[Reverse the slices.]]></description>
      <default>false</default>
    </boolean>
    <boolean>
      <label>Use Compression</label>
      <name>useCompression</name>
      <longflag>--useCompression</longflag>
      <description><![CDATA[Compress the output pixel data.]]></description>
      <default>false</default>
    </boolean>
    <string-enumeration>
      <label>Output Type:</label>
      <name>Type</name>
      <description><![CDATA[Type for the new output volume.]]></description>
      <longflag>--type</longflag>
      <flag>--t</flag>
      <default>Short</default>
      <element>UnsignedChar</element>
      <element>Char</element>
      <element>UnsignedChar</element>
      <element>Short</element>
      <element>UnsignedShort</element>
      <element>Int</element>
      <element>UnsignedInt</element>
    </string-enumeration>
  </parameters>
  <parameters advanced="true">
    <label>Patient Parameters</label>
    <description><![CDATA[Parameters that apply to a patient]]></description>
    <string>
      <label>Patient Name</label>
      <name>patientName</name>
      <longflag>--patientName</longflag>
      <description><![CDATA[The name of the patient (0010,0010)]]></description>
      <default>Anonymous</default>
    </string>
    <string>
      <label>Patient ID</label>
      <name>patientID</name>
      <longflag>--patientID</longflag>
      <description><![CDATA[The patient ID (0010,0020). If set to [random] then a random ID will be generated.]]></description>
      <default>[random]</default>
    </string>
    <string>
      <label>Patient Birth Date</label>
      <name>patientBirthDate</name>
      <longflag>--patientBirthDate</longflag>
      <description><![CDATA[Patient birth date (0010,0030) in the format YYYYMMDD.]]></description>
      <default></default>
    </string>
    <string-enumeration>
      <label>Patient Sex</label>
      <name>patientSex</name>
      <longflag>--patientSex</longflag>
      <description><![CDATA[Patient sex (0010,0040). M=male, F=female, O=other, [unknown]=not specified]]></description>
      <default>[unknown]</default>
      <element>[unknown]</element>
      <element>M</element>
      <element>F</element>
      <element>O</element>
    </string-enumeration>
    <string>
      <label>Patient Comments</label>
      <name>patientComments</name>
      <longflag>--patientComments</longflag>
      <description><![CDATA[Patient comments (0010,4000)]]></description>
      <default></default>
    </string>
  </parameters>
  <parameters advanced="true">
    <label>Study Parameters</label>
    <description><![CDATA[Parameters that apply to a study]]></description>
    <string>
      <name>studyID</name>
      <longflag>--studyID</longflag>
      <description><![CDATA[The study ID (0020,0010)]]></description>
      <label>Study ID</label>
      <default>[random]</default>
    </string>
    <string>
      <label>Study Date</label>
      <name>studyDate</name>
      <longflag>--studyDate</longflag>
      <description><![CDATA[The date of the study (0008,0020) in the format YYYYMMDD. If set to "[now]" then the current date is used.]]></description>
      <default>[now]</default>
    </string>
    <string>
      <label>Study Time</label>
      <name>studyTime</name>
      <longflag>--studyTime</longflag>
      <description><![CDATA[The time of the study (0008,0030) in the format HHMMSS. If set to "[now]" then the current time is used.]]></description>
      <default>[now]</default>
    </string>
    <string>
      <label>Study Comments</label>
      <name>studyComments</name>
      <longflag>--studyComments</longflag>
      <description><![CDATA[Study comments (0032,4000)]]></description>
      <default></default>
    </string>
    <string>
      <label>Study Description</label>
      <name>studyDescription</name>
      <longflag>--studyDescription</longflag>
      <description><![CDATA[Study description (0008,1030)]]></description>
      <default></default>
    </string>
    <string-enumeration>
      <label>Modality</label>
      <name>modality</name>
      <longflag>--modality</longflag>
      <description><![CDATA[Modality (0008,0060)]]></description>
      <element>CT</element>
      <element>MR</element>
      <element>NM</element>
      <element>US</element>
      <element>PT</element>
      <element>CR</element>
      <element>SC</element>
      <default>CT</default>
    </string-enumeration>
    <string>
      <label>Manufacturer</label>
      <name>manufacturer</name>
      <longflag>--manufacturer</longflag>
      <description><![CDATA[Manufacturer (0008,0070)]]></description>
      <default>3D Slicer</default>
    </string>
    <string>
      <label>Model</label>
      <name>model</name>
      <longflag>--model</longflag>
      <description><![CDATA[model (0008,1090)]]></description>
      <default></default>
    </string>
  </parameters>
  <parameters advanced="true">
    <label>Series Parameters</label>
    <description><![CDATA[Parameters that apply to a series]]></description>
    <string>
      <name>seriesNumber</name>
      <longflag>--seriesNumber</longflag>
      <description><![CDATA[The series number (0020,0011)]]></description>
      <label>Series Number</label>
      <default>1</default>
    </string>
    <string>
      <label>Series Description</label>
      <name>seriesDescription</name>
      <longflag>--seriesDescription</longflag>
      <description><![CDATA[Series description (0008,103E)]]></description>
      <default></default>
    </string>
    <string>
      <label>Series Date</label>
      <name>seriesDate</name>
      <longflag>--seriesDate</longflag>
      <description><![CDATA[The date of the series (0008,0021) in the format YYYYMMDD. If set to "[now]" then the current date is used.]]></description>
      <default>[now]</default>
    </string>
    <string>
      <label>Series Time</label>
      <name>seriesTime</name>
      <longflag>--seriesTime</longflag>
      <description><![CDATA[The time of the series (0008,0031) in the format HHMMSS. If set to "[now]" then the current time is used.]]></description>
      <default>[now]</default>
    </string>
    <string-enumeration>
      <label>Patient Position:</label>
      <name>patientPosition</name>
      <description><![CDATA[Patient position descriptor relative to the equipment.]]></description>
      <longflag>--patientPosition</longflag>
      <default>HFS</default>
      <element>HFS</element>
      <element>HFP</element>
      <element>HFDR</element>
      <element>HFDL</element>
      <element>FFDR</element>
      <element>FFDL</element>
      <element>FFP</element>
      <element>FFS</element>
      <element>LFP</element>
      <element>LFS</element>
      <element>RFP</element>
      <element>RFS</element>
      <element>AFDR</element>
      <element>AFDL</element>
      <element>PFDR</element>
      <element>PFDL</element>
    </string-enumeration>
  </parameters>
  <parameters advanced="true">
    <label>Image Parameters</label>
    <description><![CDATA[Parameters that apply to the images and data in each image]]></description>
    <string>
      <label>Window center</label>
      <name>windowCenter</name>
      <longflag>--windowCenter</longflag>
      <description><![CDATA[Window center (0028,1050). Specify a linear conversion from stored pixel values (after Rescale Slope and Intercept have been applied) to values to be displayed. Window Center contains the input value that is the center of the window. If either window center or width is undefined then the window is set to the full intensity range of the image.]]></description>
      <default></default>
    </string>
    <string>
      <label>Window width</label>
      <name>windowWidth</name>
      <longflag>--windowWidth</longflag>
      <description><![CDATA[Window width (0028,1051). Specify a linear conversion from stored pixel values (after Rescale Slope and Intercept have been applied) to values to be displayed. Window Width contains the width of the window. If either window center or width is undefined then the window is set to the full intensity range of the image.]]></description>
      <default></default>
    </string>
    <double>
      <label>Rescale intercept</label>
      <name>rescaleIntercept</name>
      <longflag>--rescaleIntercept</longflag>
      <description><![CDATA[Rescale intercept (0028,1052). Converts pixel values on disk to pixel values in memory. (Pixel value in memory) = (Pixel value on disk) * rescaleSlope + rescaleIntercept.  Default is 0.0. Data values are converted on write (the data is scaled and shifted so that the slope and interscept will bring it back to the current intensity range).]]></description>
      <default>0.0000</default>
    </double>
    <double>
      <label>Rescale slope</label>
      <name>rescaleSlope</name>
      <longflag>--rescaleSlope</longflag>
      <description><![CDATA[Rescale slope (0028,1053). Converts pixel values on disk to pixel values in memory. (Pixel value in memory) = (Pixel value on disk) * rescaleSlope + rescaleInterscept.  Default is 1.0. Data values are converted on write (the data is scaled and shifted so that the slope and interscept will bring it back to the current intensity range).]]></description>
      <default>1.0000</default>
    </double>
    <string>
      <label>Rescale Type</label>
      <name>rescaleType</name>
      <longflag>--rescaleType</longflag>
      <description><![CDATA[Specifies the output units of the rescaled image (0008,1054). Leave it blank to set it automatically (Hounsfield unit for CT, unspecified for others).]]></description>
      <default></default>
    </string>
    <string>
      <label>Content Date</label>
      <name>contentDate</name>
      <longflag>--contentDate</longflag>
      <description><![CDATA[The date of the image content (0008,0023) in the format YYYYMMDD. If set to "[now]" then the current date is used.]]></description>
      <default>[now]</default>
    </string>
    <string>
      <label>Content Time</label>
      <name>contentTime</name>
      <longflag>--contentTime</longflag>
      <description><![CDATA[The time of the image content (0008,0033) in the format HHMMSS. If set to "[now]" then the current time is used.]]></description>
      <default>[now]</default>
    </string>
  </parameters>
  <parameters advanced="true">
    <label>Unique Identifiers (UIDs)</label>
    <description><![CDATA[Unique identifiers (UIDs) that allow appending frames to existing studies or series. To generate UIDs automatically, leave all of them blank.]]></description>
    <string>
      <name>studyInstanceUID</name>
      <longflag>--studyInstanceUID</longflag>
      <description><![CDATA[The study instance UID (0020,000d). Leave it blank to generate UIDs automatically.]]></description>
      <label>Study Instance UID</label>
      <default></default>
    </string>
    <string>
      <label>Series Instance UID</label>
      <name>seriesInstanceUID</name>
      <longflag>--seriesInstanceUID</longflag>
      <description><![CDATA[The series instance UID (0020,000e). Leave it blank to generate UIDs automatically.]]></description>
      <default></default>
    </string>
    <string>
      <label>Frame of Reference UID</label>
      <name>frameOfReferenceUID</name>
      <longflag>--frameOfReferenceUID</longflag>
      <description><![CDATA[The frame of reference UID (0020,0052). Leave it blank to generate UIDs automatically.]]></description>
      <default></default>
    </string>
  </parameters>
</executable>
