<book xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink" version="5.0">
    <title>CP-1541</title>
    <subtitle>Template Content Sequence not required when template created through refactoring</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>Final Text</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>2016/05/25</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>QIICR</para></td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top"><para>Submission Date</para></td>
                <td rowspan="1" colspan="1" valign="top"><para>2015/09/21</para></td>
            </tr>
        </informaltable>
        <informaltable rules="all" frame="box">
            <tr>
                <td rowspan="1" colspan="1" valign="top"><para>Correction Number CP-1541</para></td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top"><para>Log Summary: Template Content Sequence not required when template created through refactoring</para></td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top">
                    <para>Name of Standard</para>
                    <para>PS3.3 2016b</para>
                </td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top">
                    <para>Rationale for Correction:</para>
                    <para>It is desirable to identify in encoded SR instances what subordinate (non-root) templates were used in the creation of content. CP 452 clarified the requirements for the identification to be encoded "if a template was used to define the content of this Item" and "the template consists of a single CONTAINER with nested content", etc.</para>
                    <para>However, if the standard is refactored to extract content of an existing template into new subordinate templates (perhaps to reuse in new templates for other applications), then
                        arguably an existing object (or a new object created by an existing implementation) would fail to satisfy the requirement since the "new" template ID
                        (not known at the time of encoding or implementation) would now be expected to be identified.</para>
                    <para>It is not the intent of the template identification requirement to discourage refactoring and reuse.</para>
                    <para>Accordingly, emphasize that "template was used" is intended to be interpreted literally, i.e., "a template defined and known to the implementation at the time of encoding was used".</para>
                    <para>This is an unusual case in which refactoring does change the content of encoded information, in that the template identification may be present or absent.</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.3 as follows:</emphasis></para></td></tr>
            </informaltable>
        </section>
        
        <section label="C.18.8" status="3" xml:id="sect_C.18.8">
            <title>Container Macro</title>
            <para xml:id="para_bda80fb8-a952-48af-a660-8aabd0679d7e"> ...</para>
            <table frame="box" label="C.18.8-1" rules="all" xml:id="table_C.18.8-1">
                <caption>Container Macro Attributes</caption>
                <thead>
                    <tr valign="top">
                        <th align="center" colspan="1" rowspan="1">
                            <para xml:id="para_ac4be56b-cf80-4fc0-8839-519e82be7f80">Attribute Name</para>
                        </th>
                        <th align="center" colspan="1" rowspan="1">
                            <para xml:id="para_7dd8767b-e62d-4473-9cf7-3c179d29bda2">Tag</para>
                        </th>
                        <th align="center" colspan="1" rowspan="1">
                            <para xml:id="para_311c8bde-1402-48a2-95d7-222070968f3b">Type</para>
                        </th>
                        <th align="center" colspan="1" rowspan="1">
                            <para xml:id="para_e37faaf5-c251-4624-bb80-5b0b5ca06d47">Attribute Description</para>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr valign="top">
                        <td align="left" colspan="1" rowspan="1">
                            <para>...</para>
                        </td>
                        <td align="center" colspan="1" rowspan="1">
                            <para>...</para>
                        </td>
                        <td align="center" colspan="1" rowspan="1">
                            <para>...</para>
                        </td>
                        <td align="left" colspan="1" rowspan="1">
                            <para>...</para>
                        </td>
                    </tr>
                    <tr valign="top">
                        <td align="left" colspan="1" rowspan="1">
                            <para xml:id="para_38976401-1515-4d98-a5f5-de2e49eb20b3">Content Template Sequence</para>
                        </td>
                        <td align="center" colspan="1" rowspan="1">
                            <para xml:id="para_cd0d544a-70d7-4476-9a65-a766f5ada2eb">(0040,A504)</para>
                        </td>
                        <td align="center" colspan="1" rowspan="1">
                            <para xml:id="para_56f8726e-6b39-4a7f-b536-c7c8c0b62d56">1C</para>
                        </td>
                        <td align="left" colspan="1" rowspan="1">
                            <para xml:id="para_5af72848-a397-40b7-8c55-0daac8d0cc5f">Template that describes the content of this Content Item and its subsidiary Content Items.</para>
                            <para xml:id="para_7c5b6328-cbb0-4804-af91-714e7bf4e2d5">Only a single Item shall be included in this Sequence.</para>
                            <para xml:id="para_e0c4eb61-827e-47d5-9762-1e8b6e30dfa4">Required if a template <emphasis role="bold"><emphasis role="underline">defined and known to the implementation at the time of encoding </emphasis></emphasis>was used to define the content of this Item, and the template consists of a single CONTAINER with nested content, and it is the outermost invocation of a set of nested templates that start with the same CONTAINER (see <xref linkend="sect_C.18.8.1.2" xrefstyle="select: label"/>).</para>
                        </td>
                    </tr>
                    <tr valign="top">
                        <td align="left" colspan="1" rowspan="1">
                            <para xml:id="para_5dc3ad35-313d-4331-954b-fb158b941233">&gt;Mapping Resource</para>
                        </td>
                        <td align="center" colspan="1" rowspan="1">
                            <para xml:id="para_1f6894cb-4ac5-4971-9393-137c9e3fdf99">(0008,0105)</para>
                        </td>
                        <td align="center" colspan="1" rowspan="1">
                            <para xml:id="para_b05469b4-1564-4be2-9181-a904e0ac3593">1</para>
                        </td>
                        <td align="left" colspan="1" rowspan="1">
                            <para xml:id="para_f86d5072-e60c-4678-ba72-fa6fb52f18d5">Mapping Resource that defines the template. See Section 8.4<!--<xref linkend="sect_8.4" xrefstyle="select: label"/>-->.</para>
                            <variablelist spacing="compact">
                                <title>Defined Terms:</title>
                                <varlistentry>
                                    <term>DCMR</term>
                                    <listitem>
                                        <para xml:id="para_0320cfea-c385-4a44-9227-90c1917c3b72">DICOM Content Mapping Resource</para>
                                    </listitem>
                                </varlistentry>
                            </variablelist>
                        </td>
                    </tr>
                    <tr valign="top">
                        <td align="left" colspan="1" rowspan="1">
                            <para xml:id="para_385f5d2c-6552-49d6-a743-50f87096f76f">&gt;Mapping Resource UID</para>
                        </td>
                        <td align="center" colspan="1" rowspan="1">
                            <para xml:id="para_5eab4fde-ffcb-4ed3-9213-27f78704c8b6">(0008,0118)</para>
                        </td>
                        <td align="center" colspan="1" rowspan="1">
                            <para xml:id="para_4cfd8f77-7127-46d6-bc94-0d281647b605">3</para>
                        </td>
                        <td align="left" colspan="1" rowspan="1">
                            <para xml:id="para_6a103fb3-410f-443b-84a0-172343bd8531">Uniquely identifies the Mapping Resource that defines the template.</para>
                            <note>
                                <para xml:id="para_3ffe96c5-7cb8-4765-b26d-0cdb12354845">The unique identifier for the DICOM Content Mapping Resource "DCMR" is defined in PS3.6<!--<olink targetdoc="PS3.6" targetptr="PS3.6" xrefstyle="select: labelnumber"/>-->.</para>
                            </note>
                        </td>
                    </tr>
                    <tr valign="top">
                        <td align="left" colspan="1" rowspan="1">
                            <para xml:id="para_a67c7b2a-7e1c-4898-8578-cf9791c60834">&gt;Template Identifier</para>
                        </td>
                        <td align="center" colspan="1" rowspan="1">
                            <para xml:id="para_a02367f5-6a16-420d-9f37-c060dfa93769">(0040,DB00)</para>
                        </td>
                        <td align="center" colspan="1" rowspan="1">
                            <para xml:id="para_afaa1919-de54-46bc-831d-453e57c4c11d">1</para>
                        </td>
                        <td align="left" colspan="1" rowspan="1">
                            <para xml:id="para_795b891a-cc22-4684-9ebf-48cef8e7dda0">Template identifier.</para>
                        </td>
                    </tr>
                </tbody>
            </table>
            <section label="C.18.8.1" status="4" xml:id="sect_C.18.8.1">
                <title>Container Macro Attribute Descriptions</title>
                <para>...</para>
                <section label="C.18.8.1.2" status="5" xml:id="sect_C.18.8.1.2">
                    <title>Content Template Sequence</title>
                    <para xml:id="para_08c06a01-3720-45d4-b61d-25a9f2cc9fcf">A Template for SR Documents defines a set of constraints on the relationships and content (Value Types, Codes, etc.) of Content Items. Specific Templates for SR Documents are defined either by the DICOM Standard (see PS3.16<!--<olink targetdoc="PS3.16" targetptr="PS3.16" xrefstyle="select: labelnumber"/>-->) or by users of the Standard for particular purposes. Usage of Templates for SR Documents may improve comparability of essential data, facilitate data-entry and revisions, enable automatic processing and simplify presentation of information to the user.</para>
                    <note>
                        <para><emphasis role="bold"><emphasis role="underline"> New subordinate templates may be factored out of existing Templates during revisions to the Standard or revisions to private Template definitions. It is permissible for instances created by implementations made prior to such refactoring to omit identification of a Template of which they had no future knowledge. Receivers should be wary of depending on the presence of identification information for subordinate templates.</emphasis></emphasis></para>
                    </note>
                    <para xml:id="para_74f5f9b9-f6d2-4065-8de6-0ab8f4304ee8">An SR Document consists of a Root CONTAINER Content Item with nested content, and as such may be defined by a Template specifying a single CONTAINER with nested content. Sub-trees of an SR Document may similarly be defined by a Template specifying a single CONTAINER with nested content. If created using such a Template, the Root and/or sub-tree shall identify the Template in the CONTAINER Content Item. When a Template invokes (includes) another Template, the outermost invoking Template is the one identified as the defining Template for the CONTAINER in the Content Template Sequence (0040,A504).</para>
                    <para xml:id="para_f89de6fb-d3a9-4023-9446-1184c3bae36b">The Content Template Sequence (0040,A504) identifies the Template that was used in the creation of the associated Content Item and its subsidiary Content Items. A Template is identified by a Mapping Resource (0008,0105) (the entity that manages or registers the Template), and an identifier of the Template. DICOM Standard Templates are identified in Template Identifier (0040,DB00) using the CS value representation.</para>
                    <para xml:id="para_c84095c8-680c-48f1-8add-fb84f5b3c715">The DICOM Template Identifier (0040,DB00) is a string of digits, without leading zeroes, and does not include the string "TID".</para>
                </section>
            </section>
        </section>
        
    </chapter>
</book>
