<book xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink" version="5.0">
    <title>CP-1851</title>
    <subtitle>Add length of encapsulated document when not even</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>Assigned</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>2018/09/13</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
                    xl: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
                    xl: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>2018/09/01</para></td>
            </tr>
        </informaltable>
        <informaltable rules="all" frame="box">
            <tr>
                <td rowspan="1" colspan="1" valign="top"><para>Correction Number CP-1851</para></td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top"><para>Log Summary: Add length of encapsulated document when not even</para></td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top">
                    <para>Name of Standard</para>
                    <para>PS3.3, PS3.6</para>
                </td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top"><para>Rationale for Correction:</para>
                    <para>The encapsulated document payload of an encapsulated PDF, CDA or STL is required to be encoded as even length, i.e.,
                    padded if the original document was of odd length. However, there is no means of recovering the actual odd length of
                    the encapsulated document when extracting it and hence obtaining a lossless copy of the original. Indeed, the presence
                    of trailing padding may disrupt the parsing of the extracted document.</para>
                    <para>Add a new Attribute containing the actual length, which may be equal to or one less than the VL.</para>
                </td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top">Correction Wording:</td>
            </tr>
        </informaltable>
    </chapter>
    <chapter>
        <title/>
        
        <informaltable rules="all" frame="box">
            <tr>
                <td>
                    <para><emphasis role="italic">Amend DICOM PS3.3 as follows (changes to existing text are bold and <emphasis role="bold"><emphasis role="underline">underlined</emphasis></emphasis> for additions and <emphasis role="bold"><emphasis role="strikethrough">struckthrough</emphasis></emphasis> for removals):</emphasis></para>
                </td>
            </tr>
        </informaltable>
        
        <section label="C.24.2" status="3" xml:id="sect_C.24.2">
        <title>Encapsulated Document Module</title>
        <table frame="box" label="C.24-2" rules="all" xml:id="table_C.24-2">
          <caption>Encapsulated Document Module Attributes</caption>
          <thead>
            <tr valign="top">
              <th align="center" colspan="1" rowspan="1">
                <para xml:id="para_44998267-ad2b-4859-ae25-ce1cfa0061fa">Attribute Name</para>
              </th>
              <th align="center" colspan="1" rowspan="1">
                <para xml:id="para_4bb25235-6a0d-4080-af36-40d4ca5a41a1">Tag</para>
              </th>
              <th align="center" colspan="1" rowspan="1">
                <para xml:id="para_4dd47b47-e637-416b-9e41-fa6767feb699">Type</para>
              </th>
              <th align="center" colspan="1" rowspan="1">
                <para xml:id="para_9557e1c8-721b-4b45-ba9c-b34abce7c587">Attribute Description</para>
              </th>
            </tr>
          </thead>
          <tbody>
            <tr valign="top">
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_2dc2cebc-df70-4c3f-9a5f-4d00e6fb81fb">...</para>
              </td>
              <td align="center" colspan="1" rowspan="1">
                <para xml:id="para_f03e1215-2273-46fe-a9b9-62aa79a4ecf0"/>
              </td>
              <td align="center" colspan="1" rowspan="1">
                <para xml:id="para_3b046ed5-83ab-4782-8c75-3aafa546d394"/>
              </td>
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_f3474394-d8ac-4a27-ac60-68a5b39bf425">A</para>
              </td>
            </tr>
            <tr valign="top">
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_63cadfa8-b08b-4c14-b96e-c8c6ba628b69">MIME Type of Encapsulated Document</para>
              </td>
              <td align="center" colspan="1" rowspan="1">
                <para xml:id="para_6aab3c86-c6e3-4a16-b4b6-1ddb3264f3d6">(0042,0012)</para>
              </td>
              <td align="center" colspan="1" rowspan="1">
                <para xml:id="para_d110f24e-bbdf-40ca-acfc-360d017648a6">1</para>
              </td>
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_c639555f-bdbc-4df3-b0d1-6f334f9af7ff">The type of the encapsulated document stream described using the MIME Media Type (see RFC 2046).</para>
              </td>
            </tr>
            <tr valign="top">
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_2e64d042-6e37-4cbd-93ee-02481e1bb34f">List of MIME Types</para>
              </td>
              <td align="center" colspan="1" rowspan="1">
                <para xml:id="para_7a510083-7d6a-4ed4-bb80-d2b4e612dffa">(0042,0014)</para>
              </td>
              <td align="center" colspan="1" rowspan="1">
                <para xml:id="para_9412d1f7-808c-447f-81c3-62f7653c3957">1C</para>
              </td>
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_1e12ea97-3853-46f1-971e-70cfbc789ea2">MIME Types of subcomponents of the encapsulated document.</para>
                <para xml:id="para_3f123e19-db44-4ae1-8d7e-fbfe211718dd">Required if the encapsulated document incorporates subcomponents with MIME types different than the primary MIME Type of the encapsulated document.</para>
                <note>
                  <para xml:id="para_f7819aeb-1612-41cd-9a53-8c5a5307b874">An Encapsulated CDA that includes an embedded JPEG image and an embedded PDF would list "image/jpeg\application/pdf".</para>
                </note>
              </td>
            </tr>
            <tr valign="top">
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_505e9358-5c66-4405-aad6-b17ee10a54f2">Encapsulated Document</para>
              </td>
              <td align="center" colspan="1" rowspan="1">
                <para xml:id="para_944f7941-07ec-4adc-ad67-1e52c4daaa4b">(0042,0011)</para>
              </td>
              <td align="center" colspan="1" rowspan="1">
                <para xml:id="para_6211e57c-9c32-4c9d-966c-162f2f433204">1</para>
              </td>
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_bb44ac3d-29fc-4a5c-8284-cc01a3aca129">Encapsulated Document stream, containing a document encoded according to the MIME Type.</para>
              </td>
            </tr>
              <tr valign="top">
                  <td align="left" colspan="1" rowspan="1">
                      <para><emphasis role="bold"><emphasis role="underline">Encapsulated Document Length</emphasis></emphasis></para>
                  </td>
                  <td align="center" colspan="1" rowspan="1">
                      <para><emphasis role="bold"><emphasis role="underline">(0042,eee1)</emphasis></emphasis></para>
                  </td>
                  <td align="center" colspan="1" rowspan="1">
                      <para><emphasis role="bold"><emphasis role="underline">3</emphasis></emphasis></para>
                  </td>
                  <td align="left" colspan="1" rowspan="1">
                      <para><emphasis role="bold"><emphasis role="underline">The length of the Encapsulated Document stream, not including any trailing padding added for encapsulation as a DICOM object.</emphasis></emphasis></para>
                      <para><emphasis role="bold"><emphasis role="underline">If present, shall be equal to the Value Length if even, or one less than the Value Length if odd.</emphasis></emphasis><note>
                                    <para><emphasis role="bold"><emphasis role="underline">In the absence of this Attribute, the value of Encapsulated Document (0042,0011) may have been padded to even length as required for all DICOM Data Element Values, so it would not be possible to extract the original unpadded document if it were of odd length.</emphasis></emphasis></para>
                                </note></para>
                  </td>
              </tr>
          </tbody>
        </table>
      </section>
        
        <informaltable rules="all" frame="box">
            <tr>
                <td>
                    <para><emphasis role="italic">Amend DICOM PS3.6 as follows (changes to existing text are bold and <emphasis role="bold"><emphasis role="underline">underlined</emphasis></emphasis> for additions and <emphasis role="bold"><emphasis role="strikethrough">struckthrough</emphasis></emphasis> for removals):</emphasis></para>
                </td>
            </tr>
        </informaltable>
        
        <section label="6" status="1" xml:id="chapter_6">
            <title>Registry of DICOM Data Elements</title>
            <table frame="box" label="6-1" rules="all" xml:id="table_6-1">
                <caption>Registry of DICOM Data Elements</caption>
                <thead>
                    <tr valign="top">
                        <th align="center" colspan="1" rowspan="1">
                            <para xml:id="para_3e8c52d5-3582-4ec4-a7e6-acd7604caf32">
                                <emphasis role="bold">Tag</emphasis>
                            </para>
                        </th>
                        <th align="center" colspan="1" rowspan="1">
                            <para xml:id="para_ac298c3b-bcdd-462b-9240-c38e738bfb7c">
                                <emphasis role="bold">Name</emphasis>
                            </para>
                        </th>
                        <th align="center" colspan="1" rowspan="1">
                            <para xml:id="para_99f6b0ff-e1b0-484e-83b5-c3003d61704c">
                                <emphasis role="bold">Keyword</emphasis>
                            </para>
                        </th>
                        <th align="center" colspan="1" rowspan="1">
                            <para xml:id="para_42b3621d-8b30-46eb-8992-10bb21310ac7">
                                <emphasis role="bold">VR</emphasis>
                            </para>
                        </th>
                        <th align="center" colspan="1" rowspan="1">
                            <para xml:id="para_551ea829-a949-4bfd-a201-bb102024e64c">
                                <emphasis role="bold">VM</emphasis>
                            </para>
                        </th>
                        <th align="center" colspan="1" rowspan="1">
                            <para xml:id="para_3a18713f-2e81-4664-b9a1-e4e3d41957ab"/>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr valign="top">
                        <td align="center" colspan="1" rowspan="1">
                            <para><emphasis role="bold"><emphasis role="underline">(0042,eee1)</emphasis></emphasis></para>
                        </td>
                        <td align="left" colspan="1" rowspan="1">
                            <para><emphasis role="bold"><emphasis role="underline">Encapsulated Document Length</emphasis></emphasis></para>
                        </td>
                        <td align="left" colspan="1" rowspan="1">
                            <para><emphasis role="bold"><emphasis role="underline">Encapsulated​Document​Length</emphasis></emphasis></para>
                        </td>
                        <td align="center" colspan="1" rowspan="1">
                            <para><emphasis role="bold"><emphasis role="underline">UL</emphasis></emphasis></para>
                        </td>
                        <td align="center" colspan="1" rowspan="1">
                            <para><emphasis role="bold"><emphasis role="underline">1</emphasis></emphasis></para>
                        </td>
                        <td align="center" colspan="1" rowspan="1">
                            <para/>
                        </td>
                    </tr>
                </tbody>
            </table>
        </section>
    </chapter>
</book>