<book xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink" version="5.0">
  <title>CP-2137</title>
    <subtitle>PS3.18 Metadata is Dataset only and does not include Group 0002 File Meta Information</subtitle>
  <chapter>
    <title></title>
    <informaltable rules="all" frame="box">
    <tr>
      <td rowspan="1" colspan="1" valign="top"><para>Status</para></td>
        <td rowspan="1" colspan="1" valign="top"><para>Letter Ballot</para></td>
    </tr>
    <tr>
      <td rowspan="1" colspan="1" valign="top"><para>Date of Last Update</para></td>
      <td rowspan="1" colspan="1" valign="top"><para>2021/09/05</para></td>
    </tr>
    <tr>
      <td rowspan="1" colspan="1" valign="top"><para>Person Assigned</para></td>
      <td rowspan="1" colspan="1" valign="top"><para>David Clunie</para><para><link
        xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="mailto:dclunie@dclunie.com"/></para></td>
    </tr>
    <tr>
      <td rowspan="1" colspan="1" valign="top"><para>Submitter Name</para></td>
        <td rowspan="1" colspan="1" valign="top"><para>David Clunie</para><para><link
            xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="mailto:dclunie@dclunie.com"/></para></td>
    </tr>
    <tr>
      <td rowspan="1" colspan="1" valign="top"><para>Submission Date</para></td>
      <td rowspan="1" colspan="1" valign="top"><para>2021/03/24</para></td>
    </tr>
  </informaltable>
    <informaltable rules="all" frame="box">
    <tr>
      <td rowspan="1" colspan="1" valign="top"><para>Correction Number CP-2137</para></td>
    </tr>
    <tr>
        <td rowspan="1" colspan="1" valign="top"><para>Log Summary: PS3.18 Metadata is Dataset only and does not include Group 0002 File Meta Information</para></td>
    </tr>
    <tr>
      <td rowspan="1" colspan="1" valign="top">
        <para>Name of Standard</para>
        <para>PS3.18</para>
      </td>
    </tr>
    <tr>
      <td rowspan="1" colspan="1" valign="top">
        <para>Rationale for Correction:</para>
          <para>PS3.18 defines "Metadata", such as retrievable by the Retrieve Metadata transactions, as being the "A DICOM Dataset ..."</para>
          <para>PS3.10 defines the File Meta Information (Group 0002 Data Elements) as ".. includes identifying information on the encapsulated Data Set".</para>
          <para>PS3.5 defines the "Data Set" as "Exchanged information consisting of a structured set of Attribute values directly or indirectly related to Information Objects".</para>
          <para>Ergo, the response payload of a Retrieve Metadata transaction should not include the File Meta Information Group 0002 Data Elements,
              but this is not obvious from the text of PS3.18 alone.</para>
          <para>Add clarification.</para>
                    <para>Also clarify that some Attributes in the Metadata may be dependent on the Representation (Transfer Syntax, Media Type) and consequently not match a retrieval of the object.</para>
                    <para>Further clarify that the File Meta Information is also not included in a Store Transaction.</para>
      </td>
    </tr>
    <tr>
      <td rowspan="1" colspan="1" valign="top">Correction Wording:</td>
    </tr>
  </informaltable>
  </chapter>
  <chapter>
    <title></title>
    <section>
      <title></title>
      <informaltable rules="all" frame="box">
        <tr><td><para><emphasis role="italic">Amend DICOM PS3.18 as follows:</emphasis></para></td></tr>
      </informaltable>
      
      
      
        <section label="3" status="1" xml:id="chapter_3">
            <title>Definitions</title>
             <glossary>
                
        
        <glossdiv label="3.9" status="2" xml:id="sect_3.9">
            <title>Web Services Definitions:</title>
            

        <glossentry xml:id="glossentry_Metadata" xreflabel="Metadata">
            <glossterm>Metadata</glossterm>
            <glossdef>
                <para xml:id="para_f8b9c2aa-32f8-4d28-a287-3bca9879b172">A DICOM Dataset where zero or more elements (typically containing large data, such as Pixel Data) have been replaced with Bulkdata URIs.</para>
                <note><para><emphasis role="bold"><emphasis role="underline">Metadata does not include the Group 0002 File Meta Information Data Elements, which describe but are not part of a Dataset, per <olink targetdoc="PS3.10" targetptr="sect_7.1" xrefstyle="template:Section %n in PS3.10"/>.</emphasis></emphasis></para></note>
            </glossdef>
        </glossentry>
        
        </glossdiv>
                
                
                <glossdiv label="3.10" status="2" xml:id="sect_3.10">
                    <para>This Part of the Standard makes use of the following terms defined in <olink targetdoc="PS3.10" targetptr="PS3.10" xrefstyle="select: labelnumber"/>:</para>
                    <emphasis role="underline"> </emphasis>
                        <title><emphasis role="underline">DICOM Media Storage and File Format Definitions:</emphasis></title>
                        <emphasis role="underline"> </emphasis>
                <glossentry xml:id="glossentry_DICOMFile" xreflabel="DICOM File">
                        <glossterm><emphasis role="bold"><emphasis role="underline">DICOM File</emphasis></emphasis></glossterm>
                        <glossdef>
                            <para><olink targetdoc="PS3.10" targetptr="glossentry_DICOMFile"/>.</para>
                        </glossdef>
                    </glossentry>
                <glossentry xml:id="glossentry_DICOMFileFormat" xreflabel="DICOM File Format">
                        <glossterm><emphasis role="bold"><emphasis role="underline">DICOM File Format</emphasis></emphasis></glossterm>
                        <glossdef>
                            <para><olink targetdoc="PS3.10" targetptr="glossentry_DICOMFileFormat"/>.</para>
                        </glossdef>
                    </glossentry>
                 <glossentry xml:id="glossentry_DICOMFileService" xreflabel="DICOM File Service">
                        <glossterm><emphasis role="bold"><emphasis role="underline">DICOM File Service</emphasis></emphasis></glossterm>
                        <glossdef>
                            <para><olink targetdoc="PS3.10" targetptr="glossentry_DICOMFileService"/>.</para>
                        </glossdef>
                    </glossentry>
                    <glossentry xml:id="glossentry_File" xreflabel="File">
                            <glossterm><emphasis role="bold"><emphasis role="underline">File</emphasis></emphasis></glossterm>
                            <glossdef>
                                <para><olink targetdoc="PS3.10" targetptr="glossentry_File"/>.</para>
                            </glossdef>
                        </glossentry>
                    
                </glossdiv>
                 
            </glossary>
            
        </section>
        
        <section label="8.7.3.2" status="4" xml:id="sect_8.7.3.2">
            <title>DICOM Metadata Media Types</title>
            <para xml:id="para_6fce163e-8967-4093-b2de-f125a620009d">
                <xref linkend="table_8.7.3-3" xrefstyle="select: label"/> specifies the media types that may be used to encode representations of Metadata for the URI and RESTful services. Only the RESTful Services support Metadata representations.</para>
            <table frame="box" label="8.7.3-3" rules="all" xml:id="table_8.7.3-3">
                <caption>Media Types for Metadata</caption>
                <thead>
                    <tr valign="top">
                        <th align="center" colspan="1" rowspan="1">
                            <para xml:id="para_e5587e93-71f3-41d1-b030-97d1c4448e4d">Media Type</para>
                        </th>
                        <th align="center" colspan="1" rowspan="1">
                            <para xml:id="para_5f9adadb-31ee-4776-b8dc-ca19f883684e">Descriptions</para>
                        </th>
                        <th align="center" colspan="1" rowspan="1">
                            <para xml:id="para_7591214b-cd44-4630-a8e4-30fc5b4a8070">URI</para>
                        </th>
                        <th align="center" colspan="1" rowspan="1">
                            <para xml:id="para_0366076b-9a97-4a79-bd0c-66519d822c46">RESTful</para>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr valign="top">
                        <td align="left" colspan="1" rowspan="1">
                            <para xml:id="para_a41c041b-7187-4726-b7d7-cd5775b2663e">application/dicom+xml</para>
                        </td>
                        <td align="left" colspan="1" rowspan="1">
                            <para xml:id="para_768021de-f4a1-46a6-af7d-4f262404d285">Encodes Instances as XML Infosets defined in the Native DICOM Model defined in <olink targetdoc="PS3.19" targetptr="PS3.19" xrefstyle="select: labelnumber"/>.</para>
                        </td>
                        <td align="center" colspan="1" rowspan="1">
                            <para xml:id="para_e99c338b-7298-42b4-90ef-383029662621">not applicable</para>
                        </td>
                        <td align="center" colspan="1" rowspan="1">
                            <para xml:id="para_17f2d885-8e7c-42b8-98de-a73ecea0360e">required</para>
                        </td>
                    </tr>
                    <tr valign="top">
                        <td align="left" colspan="1" rowspan="1">
                            <para xml:id="para_1c1beda3-5369-4042-8c56-0aad7543d4be">application/dicom+json</para>
                        </td>
                        <td align="left" colspan="1" rowspan="1">
                            <para xml:id="para_a66d41eb-5fc9-4817-a376-61dd4ecfaffa">Encodes Instances in the JSON format defined in <xref linkend="chapter_F" xrefstyle="template:Annex %n"/>.</para>
                        </td>
                        <td align="center" colspan="1" rowspan="1">
                            <para xml:id="para_eb4114f1-c11f-43f7-82aa-52f012f3a93c">not applicable</para>
                        </td>
                        <td align="center" colspan="1" rowspan="1">
                            <para xml:id="para_6f0901db-a9e5-4d60-9c6d-52cfa2f37b6d">required</para>
                        </td>
                    </tr>
                </tbody>
            </table>
        </section>
        
        <section label="10.4" status="2" xml:id="sect_10.4">
            <title>Retrieve Transaction</title>
            <para>...</para>
        <section label="10.4.1.1.2" status="5" xml:id="sect_10.4.1.1.2">
            <title>Metadata Resources</title>
            <para xml:id="para_e785b630-0fea-4d2b-abd3-b2e58a6587a8">
                <xref linkend="table_10.4.1-2" xrefstyle="select: label"/> defines the resources used to retrieve the metadata contained in Instances.</para>
            <table frame="box" label="10.4.1-2" rules="all" xml:id="table_10.4.1-2">
                <caption>Retrieve Transaction Metadata Resources</caption>
                <thead>
                    <tr valign="top">
                        <th align="center" colspan="1" rowspan="1">
                            <para xml:id="para_b75ef72b-3762-4c91-a667-0406c3924832">Resource</para>
                        </th>
                        <th align="center" colspan="1" rowspan="1">
                            <para xml:id="para_30a99ab2-b8ad-48dd-a06d-c687bc09e9b4">URI Template</para>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr valign="top">
                        <td align="left" colspan="1" rowspan="1">
                            <para xml:id="para_9639c83c-b6b8-4b59-87c5-60a740892c1b">Study Metadata</para>
                        </td>
                        <td align="left" colspan="1" rowspan="1">
                            <programlisting>/studies/{study}/metadata</programlisting>
                        </td>
                    </tr>
                    <tr valign="top">
                        <td align="left" colspan="1" rowspan="1">
                            <para xml:id="para_ad8fdd00-bc74-47b2-91bc-31bbb4efba89">Series Metadata</para>
                        </td>
                        <td align="left" colspan="1" rowspan="1">
                            <programlisting>/studies/{study}/series/{series}/metadata</programlisting>
                        </td>
                    </tr>
                    <tr valign="top">
                        <td align="left" colspan="1" rowspan="1">
                            <para xml:id="para_0930b493-fcc8-44f1-9c42-eb4ff046643f">Instance Metadata</para>
                        </td>
                        <td align="left" colspan="1" rowspan="1">
                            <programlisting>/studies/{study}/series/{series}/instances/{instance}/metadata</programlisting>
                        </td>
                    </tr>
                </tbody>
            </table>
            <para xml:id="para_02e4f734-ced6-46a2-95bb-dbf733ef79be">The Metadata Resources are used to retrieve the DICOM instances without retrieving Bulkdata. The Metadata returned for a study, series, or instance resource includes all Attributes in the resource.
                For Data Elements having a Value Representation (VR) of DS, FL, FD, IS, LT, OB, OD, OF, OL, OV, OW, SL, SS, ST, SV, UC, UL, UN, US, UT and UV, the origin server is permitted to replace the Value Field of the Data Element with a Bulkdata URI. The user agent can use the Bulkdata URI to retrieve the Bulkdata.</para>
            
            <note>
                <orderedlist>
                    <listitem>
                        <para><emphasis role="bold"><emphasis role="underline">The Metadata describes the corresponding Resource, not any Representation of it that might be separately retrieved, hence includes only the DICOM Dataset (without Bulkdata), and in particular does not include any Group 0002 File Meta Information Data Elements.</emphasis></emphasis></para>
                    </listitem>
                    <listitem>
                        <para><emphasis role="bold"><emphasis role="underline">Some Attributes of the DICOM Dataset may depend on the Representation, not the Resource,
                            especially those that describe the Pixel Data, so may differ from those encoded in a particular retrieved Representation.
                            E.g., Photometric Interpretation (0028,0004) may differ depending on the Transfer Syntax.</emphasis></emphasis></para>
                    </listitem>
                    <listitem>
                        <para><emphasis role="bold"><emphasis role="underline">
                            Information related to Transfer Syntax UID (0002,0010) in the File Meta Information,
                            which might be expected to be of interest for retrieval of the Representation of the Resource in a particular Media Type,
                            may be available using the Available Transfer Syntax UID (0008,3002) in a Search Transaction.
                        </emphasis></emphasis></para>
                    </listitem>
                </orderedlist>
            </note>
            
            
        </section>
        </section>
            
            <section label="10.5" status="2" xml:id="sect_10.5">
            <title>Store Transaction</title>
            <para xml:id="para_40161cb1-97f6-4696-99d6-6b8eb6aaf1df">...</para>
            <para xml:id="para_cc3e872c-c6a1-48e7-8c44-c2762c21c5ae">The Store transaction supports only DICOM resources. The resource can be supplied as a single Instance, or as separate Metadata and Bulkdata.</para>
            <section label="10.5.1" status="3" xml:id="sect_10.5.1">
                <title>Request</title>
                <section label="10.5.1.1" status="4" xml:id="sect_10.5.1.1">
                    <title>Target Resources</title>
                    <section label="10.5.1.1.1" status="5" xml:id="sect_10.5.1.1.1">
                        <title>DICOM Resources</title>
                        <para xml:id="para_e226d61d-f9c9-4bd1-9760-789edb872eb4">
<xref linkend="table_10.5.1-1" xrefstyle="select: label"/> defines the resources used to store Instances.</para>
                        <table frame="box" label="10.5.1-1" rules="all" xml:id="table_10.5.1-1">
                            <caption>Store Transaction DICOM Resources</caption>
                            <thead>
                                <tr valign="top">
                                    <th align="center" colspan="1" rowspan="1">
                                        <para xml:id="para_8a8e5ed3-e90c-461d-bc7e-d189338aa3d3">Resource</para>
                                    </th>
                                    <th align="center" colspan="1" rowspan="1">
                                        <para xml:id="para_a67a0f60-e2db-4c74-9fdd-8f5a0dc5b700">URI Template</para>
                                    </th>
                                    <th align="center" colspan="1" rowspan="1">
                                        <para xml:id="para_c8a2186d-6ba6-4a81-9fd6-f5a542c03c2f">Description</para>
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr valign="top">
                                    <td align="left" colspan="1" rowspan="1">
                                        <para xml:id="para_f3d3dc73-d19f-48ee-a4eb-72d2b2f91633">Studies</para>
                                    </td>
                                    <td align="left" colspan="1" rowspan="1">
                                        <programlisting>/studies</programlisting>
                                    </td>
                                    <td align="left" colspan="1" rowspan="1">
                                        <para xml:id="para_c290c0dc-d139-4ca2-8908-89755f7dfb83">Stores a set of representations that may have different Study Instance UIDs.</para>
                                    </td>
                                </tr>
                                <tr valign="top">
                                    <td align="left" colspan="1" rowspan="1">
                                        <para xml:id="para_3c7fc4fb-51a1-4e89-bb15-bddfdad40c89">Study</para>
                                    </td>
                                    <td align="left" colspan="1" rowspan="1">
                                        <programlisting>/studies/{study}</programlisting>
                                    </td>
                                    <td align="left" colspan="1" rowspan="1">
                                        <para xml:id="para_781efc69-d3a4-4c38-ac82-90bb457ac719">Stores a set of representations that belong to the same Study, i.e., each representation shall have the same Study Instance UID.</para>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </section>
                </section>
                <section label="10.5.1.4" status="4" xml:id="sect_10.5.1.4">
                    <title>Request Payload</title>
                    <para xml:id="para_7e1f9a5a-c6e0-4d59-9ed7-abd28bb4935d">The request payload shall be present and shall contain one or more representations specified by the Content-Type header field.</para>
                    <para xml:id="para_70504e03-eda1-4718-93c0-6433bc81d44e">The payload may contain Instances from more than one Study if the Study Instance UID is not specified in the Target URI.</para>
                    <para xml:id="para_88a7d875-f1a6-4269-b54d-56cfad25fbb9">The request payload shall consist of either:</para>
                    <itemizedlist>
                        <listitem>
                            <para xml:id="para_48fb847e-f6df-441b-bc78-318c2097a8db">
<olink targetdoc="PS3.10" targetptr="PS3.10" xrefstyle="select: labelnumber"/> SOP Instances, or</para>
                        </listitem>
                        <listitem>
                            <para xml:id="para_69d1f715-e3e8-4a6b-b226-f741043b62f6">Metadata accompanied by Bulkdata.</para>
                            <note><para><emphasis role="bold"><emphasis role="underline">The Metadata includes only the DICOM Dataset (without Bulkdata), and in particular does not include any Group 0002 File Meta Information Data Elements. The origin server will create appropriate File Meta Information depending on the media type of the supplied compressed pixel data, if it happens to internally store the Dataset in a PS3.10 File.</emphasis></emphasis></para></note>
                        </listitem>
                    </itemizedlist>
                    <para xml:id="para_cc0edd5e-d3be-4de2-8e31-9fce38318d82">
<olink targetdoc="PS3.10" targetptr="PS3.10" xrefstyle="select: labelnumber"/> binary instances shall be encoded with one message part per DICOM Instance.</para>
                    <para xml:id="para_83722061-3e3a-49ab-afc8-a2dcdcd9f68f">Metadata and Bulkdata requests will be encoded in the following manner (see <xref linkend="figure_8.6-1" xrefstyle="select: label title"/>):</para>
                    <itemizedlist>
                        <listitem>
                            <para xml:id="para_561ebb02-36c9-4e95-98be-e5b6bdac2650">All XML request messages shall be encoded as described in the Native DICOM Model defined in <olink targetdoc="PS3.19" targetptr="PS3.19" xrefstyle="select: labelnumber"/> with one message part per XML object; the Attributes of the Image Pixel Description Macro may be omitted for the media types specified in <xref linkend="table_10.5.2-1" xrefstyle="select: label"/>.</para>
                        </listitem>
                        <listitem>
                            <para xml:id="para_089b5bb9-2751-44af-93da-195062bb927a">All JSON request messages shall be encoded as an array of DICOM JSON Model Objects defined in <xref linkend="chapter_F" xrefstyle="template:Annex %n"/> in a single message part; the Attributes of the Image Pixel Description Macro may be omitted for the media types specified in <xref linkend="table_10.5.2-1" xrefstyle="select: label"/>.</para>
                        </listitem>
                        <listitem>
                            <para xml:id="para_6f507e25-a6d0-4d51-a292-21b3595e0731">Bulkdata (with the exception of Encapsulated Document (0042,0011) element) and uncompressed pixel data shall be encoded in a Little-Endian format using the application/octet-stream media type with one message part per Bulkdata item.</para>
                        </listitem>
                        <listitem>
                            <para xml:id="para_d88e3987-d817-4fcb-a483-229b666d399f">Compressed pixel data shall be encoded in one of two ways:</para>
                            <itemizedlist>
                                <listitem>
                                    <para xml:id="para_bb4d1bea-ad4c-4522-821d-6cf750701f1f">single-frame pixel data encoded using a single-frame media type (one message part);</para>
                                </listitem>
                                <listitem>
                                    <para xml:id="para_8761a8a9-562f-4186-9493-8d2734606045">multi-frame or video pixel data encoded using a multi-frame media type (multiple frames in one message part).</para>
                                </listitem>
                            </itemizedlist>
                        </listitem>
                    </itemizedlist>
                    <para xml:id="para_c187124f-4469-441d-953b-e3773579020c">Uncompressed Bulkdata shall be encoded as application/octet-stream.</para>
                    <para xml:id="para_78761e12-3a46-42c1-aa87-8e84ab9b0f65">An Encapsulated Document (0042,0011) Bulkdata element shall be encoded using the media-type from the MIME Type of the Encapsulated Document (0042,0012) Attribute with one message part per document.</para>
                </section>
            </section>
            <section label="10.5.2" status="3" xml:id="sect_10.5.2">
                <title>Behavior</title>
                <para xml:id="para_140f6f2f-8f50-4f52-b451-e98edfb97ae8">The origin server stores Instances from the representations contained in the request payload.</para>
                <para xml:id="para_cb26d312-87a6-45d1-8995-dcd72d640535">The stored Instance(s) shall fully conform to the IOD and encoding requirements of <olink targetdoc="PS3.3" targetptr="PS3.3" xrefstyle="select: labelnumber"/> and <olink targetdoc="PS3.5" targetptr="PS3.5" xrefstyle="select: labelnumber"/>, respectively.</para>
                <para xml:id="para_3ef77ded-908f-44c8-82bb-e13cbdfa1405">This Transaction stores one or more new Instances, and adds them to new or existing Series and Studies.</para>
                <para xml:id="para_2077d80f-6cce-4964-98a9-a6ce48c3e8a7">While creating resources from the representations, the origin server may coerce or replace the values of data elements. For example, Patient Name, Patient ID, and Accession Number might be coerced when importing media from an external institution, reconciling the Instances against a master patient index, or reconciling them against an imaging procedure order. The origin server may also fix incorrect values, such as Patient Name or Patient ID; for example, because an incorrect work list item was chosen, or an operator input error has occurred.</para>
                <para xml:id="para_890eaf2a-cbec-4816-8a6b-0371c1395843">If any Attribute is coerced or corrected, the Original Attribute Sequence (0400,0561) shall be included in the DICOM Object that is stored and may be included in the Store Instances Response Module (see <xref linkend="chapter_I" xrefstyle="template:Annex %n"/>) in the response.</para>
                <note>
                    <para xml:id="para_ded2e695-3abe-4257-b9b0-39bb5cf70ac4">For more information on populating the Original Attribute Sequence see <olink targetdoc="PS3.3" targetptr="sect_C.12.1" xrefstyle="template:Section %n “%t” in PS3.3"/>.</para>
                </note>
                <para xml:id="para_5b38a067-cdaf-4fbb-9f8b-ef41ea448f02">The origin server shall encapsulate or convert any compressed pixel data received as Bulkdata into an appropriate DICOM Transfer Syntax, as defined in <xref linkend="table_10.5.2-1" xrefstyle="select: label"/>.</para>
                <para xml:id="para_d7540d0a-ec71-4204-821d-2b89e2486151">If the request message contains compressed Bulkdata with a Content Type that is one of the media types specified in <xref linkend="table_10.5.2-1" xrefstyle="select: label"/>, the request may omit the Image Pixel Description Macro Attributes and the origin server will derive them from the compressed octet stream. Some media types do not directly correspond to a DICOM Transfer Syntax and the origin server will transform the received bit stream into an uncompressed or lossless (reversibly) compressed Transfer Syntax.</para>
                <note>
                    <orderedlist>
                        <listitem>
                            <para xml:id="para_23361d67-fc91-44b4-9077-31a4cb9176c8">This allows a user agent to use consumer media types to encode the pixel data even though it may not have:</para>
                            <itemizedlist>
                                <listitem>
                                    <para xml:id="para_1941e1e8-c991-4db5-9caf-9ee05d482d11">the pixel data in a form that directly corresponds to a lossless (reversible) DICOM Transfer Syntax, or</para>
                                </listitem>
                                <listitem>
                                    <para xml:id="para_070b9b09-c585-4016-8505-51efebec98eb">an API to access the information required to populate the Image Pixel Description Macro.</para>
                                </listitem>
                            </itemizedlist>
                        </listitem>
                        <listitem>
                            <para xml:id="para_16f0095c-c106-40cf-a66c-a2aea98bd2b3">If the supplied compressed bit stream is in a lossless (reversible) format, the intent is to allow full fidelity retrieval of the decompressed pixels, not the format in which it happened to be submitted.</para>
                        </listitem>
                    </orderedlist>
                </note>
                <para xml:id="para_3c2abff3-2856-4c81-adfb-8cb15889c8fb">The origin server shall encapsulate or convert any compressed pixel data received as bulk data into an appropriate DICOM Transfer Syntax, as defined in <xref linkend="table_10.5.2-1" xrefstyle="select: label"/>.</para>
                <para xml:id="para_6f896b24-54bf-4b0b-b997-f652372e0691">If the supplied compressed octet stream is in a lossy (irreversible) format, there will be a corresponding DICOM Transfer Syntax, and the origin server is not expected to recompress it causing further loss. <xref linkend="table_10.5.2-1" xrefstyle="select: label"/> contains a list of media types containing compressed pixel data from which an origin server shall be able to derive the Image Pixel Data Description Macro Attribute values.</para>
                <para xml:id="para_65c1a225-3581-4fa8-b58f-6650dd2ee9c1">Requirements are specified in <xref linkend="table_10.5.2-1" xrefstyle="select: label"/> as follows:</para>
                <variablelist>
                    <varlistentry>
                        <term>Transform</term>
                        <listitem>
                            <para xml:id="para_98596bb4-fa05-4c32-9c03-f981bdc3107a">No DICOM Transfer Syntax exists; shall be transformed by the origin server into an uncompressed or lossless compressed Transfer Syntax (the choice of which is at the discretion of the origin server).</para>
                        </listitem>
                    </varlistentry>
                    <varlistentry>
                        <term>Unchanged</term>
                        <listitem>
                            <para xml:id="para_1f9393dc-7eeb-4c7e-b1e7-ccb1c84be68f">Shall be encapsulated in the corresponding DICOM Transfer Syntax without further lossy compression.</para>
                        </listitem>
                    </varlistentry>
                </variablelist>
                <table frame="box" label="10.5.2-1" rules="all" xml:id="table_10.5.2-1">
                    <caption>Media Type Transformation to Transfer Syntaxes</caption>
                    <thead>
                        <tr valign="top">
                            <th align="center" colspan="1" rowspan="1">
                                <para xml:id="para_0e89110b-a523-4c31-86e5-2a5945f26cfc">Media Type</para>
                            </th>
                            <th align="center" colspan="1" rowspan="1">
                                <para xml:id="para_02dbd49f-eec3-4276-8757-6d85b21aa907">Requirement</para>
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr valign="top">
                            <td align="left" colspan="1" rowspan="1">
                                <para xml:id="para_6c95f72c-b404-4dda-97d0-7f103fdce9e3">image/gif</para>
                            </td>
                            <td align="center" colspan="1" rowspan="1">
                                <para xml:id="para_22b9ad6b-aea4-487c-bb74-f83f38cf8eb4">Transform</para>
                            </td>
                        </tr>
                        <tr valign="top">
                            <td align="left" colspan="1" rowspan="1">
                                <para xml:id="para_f6774f58-8aaf-4ff3-a034-e28dda09ac6e">Image/jp2</para>
                            </td>
                            <td align="center" colspan="1" rowspan="1">
                                <para xml:id="para_1d04a006-92c5-437b-853f-1c3e07c86f1d">Unchanged</para>
                            </td>
                        </tr>
                        <tr valign="top">
                            <td align="left" colspan="1" rowspan="1">
                                <para xml:id="para_95e748c8-356f-4d66-b838-f54eae66d168">image/jpeg</para>
                            </td>
                            <td align="center" colspan="1" rowspan="1">
                                <para xml:id="para_f2c64be1-a401-4b73-ac9d-779afeeadcd5">Unchanged</para>
                            </td>
                        </tr>
                        <tr valign="top">
                            <td align="left" colspan="1" rowspan="1">
                                <para xml:id="para_68ed375e-2fdd-400f-bcbc-f2ae69648d5a">image/jpx</para>
                            </td>
                            <td align="center" colspan="1" rowspan="1">
                                <para xml:id="para_c17701a9-ee61-4643-981f-2edea70495c2">Unchanged</para>
                            </td>
                        </tr>
                        <tr valign="top">
                            <td align="left" colspan="1" rowspan="1">
                                <para xml:id="para_cb4ff984-905d-4f8d-a9ad-8a429259a6b4">image/png</para>
                            </td>
                            <td align="center" colspan="1" rowspan="1">
                                <para xml:id="para_8e0dee5b-e7ca-4273-a3be-ebdbb98c0938">Transform</para>
                            </td>
                        </tr>
                        <tr valign="top">
                            <td align="left" colspan="1" rowspan="1">
                                <para xml:id="para_41960348-71ec-40c3-be39-0886e64b8ee7">video/mp4</para>
                            </td>
                            <td align="center" colspan="1" rowspan="1">
                                <para xml:id="para_cf9086e5-452f-4de4-9de6-af326bfbc4dd">Unchanged</para>
                            </td>
                        </tr>
                        <tr valign="top">
                            <td align="left" colspan="1" rowspan="1">
                                <para xml:id="para_f2fba45f-4bea-4066-b1d5-145c50683194">video/mpeg2</para>
                            </td>
                            <td align="center" colspan="1" rowspan="1">
                                <para xml:id="para_b14a5daf-f77d-4041-a88a-f7db09cbdb52">Unchanged</para>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <note>
                    <orderedlist>
                        <listitem>
                            <para xml:id="para_bffb3b63-bbd4-45cb-89dc-a10e7896aafe">In the case of pixel data supplied as image/gif or image/png, the origin server may transform the color representation from indexed color to true color (RGB) as necessary to conform to any Photometric Interpretation constraints specified by the IOD (i.e., if PALETTE COLOR is not permitted) ; such a transformation is considered lossless.</para>
                        </listitem>
                        <listitem>
                            <para xml:id="para_3ef4fa6b-1da0-410b-8ca4-290ce378b07c">If the number of bits per channel of an image/png file is not supported by the IOD, a lossless transformation cannot be performed.</para>
                        </listitem>
                        <listitem>
                            <para xml:id="para_4ff1f2cc-d2fe-4a90-a7aa-62ef36f682f8">An animated image/gif will be converted into a multi-frame image by transforming the frame deltas into fully decoded frames; image/png does not support animation, and Multiple-image Network Graphics (MNG) is not included in <xref linkend="table_10.5.2-1" xrefstyle="select: label"/>.</para>
                        </listitem>
                        <listitem>
                            <para xml:id="para_b8c5cccd-8b9e-4090-8825-b0b3cc036e80">Any transparency information present in an image/gif or image/png file will be discarded, since DICOM does not support the concept of transparency.
                                The actual pixel value used to replace transparent pixels (e.g., black or white) is at the discretion of the implementation, but if the value used does not appear elsewhere in the image, it may be useful to record it in Pixel Padding Value (0028,0120).</para>
                        </listitem>
                        <listitem>
                            <para xml:id="para_6262c534-bb2f-4f40-bbe0-0bca75adec62">If an alpha channel is supplied in an image/png file, the alpha channel will be discarded (i.e., considered to consist of all opaque values, consistent with the policy of discarding any transparency information).</para>
                        </listitem>
                        <listitem>
                            <para xml:id="para_3f86616f-f714-44af-a009-abf08e9080ca">In the case of pixel data that contains a single channel in the absence of metadata describing the interpretation of the pixel values, the Photometric Interpretation may be assumed by the origin server to be MONOCHROME2 (zero is interpreted as black).</para>
                        </listitem>
                    </orderedlist>
                </note>
            </section>
        </section>
            
    </section>
  </chapter>
</book>
