<?xml version="1.0" encoding="UTF-8"?>
<staticModel isAbstract="false" isSerializable="true"
    name="COCT_TP145101GB01" packageKind="root"
    representationKind="flat" xmlns="urn:hl7-org:v3/mif"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3/mif C:\PROGRA~1\HL7\System\schemas\mifStaticModelFlat.xsd">
    <packageLocation artifact="TP" domain="CT" id="145101"
        name="COCT_TP145101GB01" realm="GB" root="DEFN" section="HM"
        subSection="CO" version="01"/>
    <header>
        <renderingInformation
            application="NHS R-MIM Designer 2.99.KJ.08"
            renderingTime="2013-03-20T09:48:16" schemaVersion="1"/>
        <legalese copyrightOwner="NHS Connecting for Health"/>
    </header>
    <graphicRepresentation presentation="HL7">
        <graphElement name="Main">
            <position x="0.0" y="0.0"/>
            <size height="3.23334" width="4.17166"/>
        </graphElement>
    </graphicRepresentation>
    <derivationSupplier staticModelDerivationId="1">
        <targetStaticModel artifact="RIM" realm="UV" root="DEFN" version="1"/>
    </derivationSupplier>
    <ownedEntryPoint className="Child" id="COCT_TP145101GB01"
        isAbstract="false" name="ChildSubject">
        <annotations>
            <description>
                <text>
                    <p>A template for the child</p>
                    <p>subject of the record.</p>
                </text>
            </description>
            <otherAnnotation type="html">
                <text/>
            </otherAnnotation>
        </annotations>
        <graphicRepresentation>
            <graphElement containerDiagramName="Main"
                isHeightAutoSize="false" isWidthAutoSize="false"
                nodeOrientation="Down" shapeId="COCT_TP145101GB01">
                <position x="0.99087" y="0.02778"/>
                <size height="0.58611" width="1.2475"/>
                <anchorage connectToShapeId="Sheet.1">
                    <position x="1.61462" y="0.61389"/>
                    <graphEdge>
                        <anchor>
                            <position x="1.61462" y="1.19"/>
                        </anchor>
                    </graphEdge>
                </anchorage>
            </graphElement>
        </graphicRepresentation>
    </ownedEntryPoint>
    <ownedClass>
        <class isAbstract="false" name="Child">
            <derivationSupplier className="Role" staticModelDerivationId="1"/>
            <graphicRepresentation presentation="HL7">
                <graphElement containerDiagramName="Main"
                    isHeightAutoSize="true" isWidthAutoSize="false"
                    shapeId="Sheet.1" shapeTemplate="Role">
                    <position x="0.24765" y="1.19"/>
                    <size height="0.64778" width="2.77762"/>
                </graphElement>
            </graphicRepresentation>
            <annotations>
                <otherAnnotation type="html">
                    <text>
                        <p>
                            <b>This class is the role of a  child.</b>
                        </p>
                        <p>

                            <b>This  child is the subject of the  child protection plan <font color="#ff0000">
                                    <font color="#000000">or looked after child information.</font>
                                </font>
                            </b>
                        </p>
                    </text>
                </otherAnnotation>
            </annotations>
            <attribute conformance="R"
                defaultValue="COCT_TP145101GB01#Child"
                fixedValue="COCT_TP145101GB01#Child" isMandatory="true"
                maximumMultiplicity="1" minimumMultiplicity="1"
                name="templateId" sortKey="0">
                <annotations>
                    <otherAnnotation type="html">
                        <text>
                            <u>
                                <b>Model Attribute Description</b>
                            </u>
                            <br/>
                            <p>The HL7 attribute <b>templateId</b> provides a unique identifier for the template and the class name within that template. This is used to identify how the CDA                         standard has been constrained for NHS use.<br/>
                                <br/>
                                <u>
                                    <b>Implementation in XML Instance</b>
                                </u>
                            </p>  The <b>Identifier External</b> data type flavour is used to carry this information in the XML element <b>templateId</b> as follows:                       <ul>

                                <li>The XML attribute <b>root</b> is fixed to the OID "<font color="#ff0000">
                                    <b>2.16.840.1.113883.2.1.3.2.4.18.2</b>
                                    </font>"                                                        </li>

                                <li>The XML attribute <b>extension</b> is fixed to <font color="#000000">"<b>
                                    <font color="#ff0000">COCT_TP145101GB01#Child</font>
                                    </b>
                                    <font color="#000000">"</font>
                                    </font>
                                </li>
                            </ul>
                            <p>
                                <b>
                                    <u>Schema Constraint </u>
                                </b>
                            </p>
                            <ul>
                                <li>The attribute <b>root</b> is prohibited in the schema and therefore does not appear in the "on the wire" instance.                </li>
                                <li>The attribute <b>extension</b> is prohibited in the schema and therefore does not appear in the "on the wire" instance.                 <br/>
                                </li>
                            </ul>
                        </text>
                    </otherAnnotation>
                </annotations>
                <derivationSupplier attributeName="templateId"
                    className="Role" staticModelDerivationId="1"/>
                <type name="II"/>
            </attribute>
            <attribute conformance="R" fixedValue="CHILD"
                isMandatory="true" isStructural="true"
                maximumMultiplicity="1" minimumMultiplicity="1"
                name="classCode" sortKey="1">
                <annotations>
                    <otherAnnotation type="html">
                        <text>
                            <p>
                                <u>
                                    <b>Model Attribute Description </b>
                                </u>
                                <br/>
                            </p>
                            <p>The HL7 attribute <b>classCode</b> describes this class as a child role.</p>
                            <p>
                                <u>
                                    <b>Implementation in XML Instance </b>
                                </u>
                                <br/>
                            </p>

                            <p> The XML attribute <b>classCode</b>  is fixed to "<font color="#ff0000">
                                    <b>CHILD</b>
                                </font>".</p>
                            <b>
                                <u>Schema Constraint </u>
                            </b>
                            <div contenteditable="false" style="height: 100%; width: 100%">
                                <ul>
                                    <li>The attribute <b>classCode</b> is prohibited in the schema and therefore does not appear in the "on the wire" instance.                </li>
                                </ul>
                            </div>
                        </text>
                    </otherAnnotation>
                </annotations>
                <derivationSupplier attributeName="classCode"
                    className="Role" staticModelDerivationId="1"/>
                <type name="CS"/>
                <supplierDomainSpecification codingStrength="CNE" domainName="CHILD"/>
            </attribute>
            <attribute conformance="R" isMandatory="true"
                maximumMultiplicity="2" minimumMultiplicity="1"
                name="id" sortKey="2">
                <annotations>
                    <otherAnnotation type="html">
                        <text>
                            <p>
                                <u>
                                    <b>Model Attribute Description</b>
                                </u>
                            </p>
                            <p>The HL7 attribute <b>id </b>allows  identification  of child is the subject of a protection plan or looked after child information using a  verified NHS number.                            A local identifier                      may also be included. <br/>
                            </p>
                            <p>
                                <u>
                                    <b>Implementation in XML Instance</b>
                                </u>
                            </p>
                            <p>The NHS number should be populated in the XML element <b>id </b>as below:<br/>
                            </p>
                            <p>For a verified NHS Number:                         </p>
                            <ul>

                                <li>The XML attribute <b>root</b> shall contain the OID "<font color="#ff0000">
                                    <b>2.16.840.1.113883.2.1.4.1</b>
                                    <font color="#000000">"</font>
                                    </font>
                                </li>
                                <li>The XML attribute <b>extension</b> shall contain the 10 digit NHS number.                                                                                                    </li>
                            </ul>
                            <p>Where   the a local identifier is used the then a second occurrence of the XML element <b>id</b> is populated as follows:                                                                                        </p>
                            <ul>

                                <li>The XML attribute <b>root</b> shall contain the OID "<font color="#ff0000">
                                    <b>2.16.840.1.113883.2.1.3.2.4.18.24</b>
                                    </font>"                                                                                                    </li>
                                <li>The XML attribute <b>extension</b> shall contain the local patient identifier                                                                                                    </li>
                                <li>The XML attribute <b>assigningAuthorityName</b> shall contain the assigning organisation in the format of ODSCode:ODSName, for example:                                                                                            </li>
                            </ul>
                            <b>assigningAuthorityName</b>="RA9:SOUTH DEVON HEALTHCARE NHS TRUST"</text>
                    </otherAnnotation>
                </annotations>
                <derivationSupplier attributeName="id" className="Role" staticModelDerivationId="1"/>
                <type name="SET" typeSpecialisation="II.NPfIT.oid.mandatoryAndEnumerated.assignedAuthority.optional">
                    <supplierBindingArgumentDatatype name="II"/>
                </type>
            </attribute>
        </class>
    </ownedClass>
    <ownedClass>
        <class isAbstract="false" name="Person">
            <derivationSupplier className="Person" staticModelDerivationId="1"/>
            <graphicRepresentation presentation="HL7">
                <graphElement containerDiagramName="Main"
                    isHeightAutoSize="true" isWidthAutoSize="false"
                    shapeId="Sheet.11" shapeTemplate="Entity">
                    <position x="0.01" y="2.30889"/>
                    <size height="0.91445" width="3.10499"/>
                </graphElement>
            </graphicRepresentation>
            <annotations>
                <otherAnnotation type="html">
                    <text>
                        <p>
                            <b>A class which carries information about the person who is the  child.</b>
                        </p>
                    </text>
                </otherAnnotation>
            </annotations>
            <attribute conformance="R"
                defaultValue="COCT_TP145101GB01#childPerson"
                fixedValue="COCT_TP145101GB01#childPerson"
                isMandatory="true" maximumMultiplicity="1"
                minimumMultiplicity="1" name="templateId" sortKey="0">
                <annotations>
                    <otherAnnotation type="html">
                        <text>
                            <u>
                                <b>Model Attribute Description</b>
                            </u>
                            <br/>
                            <p>The HL7 attribute <b>templateId</b>  provides a unique identifier for the template and the class name within  that template. This is used to identify how the CDA                          standard has been constrained for NHS use.<br/>
                                <br/>
                                <u>
                                    <b>Implementation in XML Instance</b>
                                </u>
                            </p>  The <b>Identifier External</b> data type flavour is used to carry this information in the XML element <b>templateId</b> as follows:                       <ul>

                                <li>The XML attribute <b>root</b> is fixed to the OID "<font color="#ff0000">
                                    <b>2.16.840.1.113883.2.1.3.2.4.18.2</b>
                                    </font>"                                                        </li>

                                <li>The XML attribute <b>extension</b> is fixed to <font color="#000000">"<b>
                                    <font color="#ff0000">COCT_TP145101GB01#childPerson</font>
                                    </b>
                                    <font color="#000000">"</font>
                                    </font>
                                </li>
                            </ul>
                            <p>
                                <b>
                                    <u>Schema Constraint  </u>
                                </b>
                                <br/>
                            </p>
                            <ul>
                                <li>The attribute <b>root</b> is prohibited in the schema and therefore does not appear in the "on the wire" instance.                </li>
                                <li>The attribute <b>extension</b> is prohibited in the schema and therefore does not appear in the "on the wire" instance.</li>
                            </ul>
                        </text>
                    </otherAnnotation>
                </annotations>
                <derivationSupplier attributeName="templateId"
                    className="Person" staticModelDerivationId="1"/>
                <type name="II"/>
            </attribute>
            <attribute conformance="R" fixedValue="PSN"
                isMandatory="true" isStructural="true"
                maximumMultiplicity="1" minimumMultiplicity="1"
                name="classCode" sortKey="1">
                <annotations>
                    <otherAnnotation type="html">
                        <text>
                            <p>
                                <u>
                                    <b>Model Attribute Description  </b>
                                </u>
                                <br/>
                            </p>
                            <p>The HL7 attribute <b>classCode</b> describes this class as a person.                   </p>
                            <p>
                                <u>
                                    <b>Implementation in XML Instance  </b>
                                </u>
                                <br/>
                            </p>

                            <p>The XML attribute <b>classCode</b> is fixed to "<font color="#ff0000">
                                    <b>PSN</b>
                                </font>".                   </p>
                            <p>
                                <b>
                                    <u>Schema Constraint  </u>
                                </b>
                                <br/>
                            </p>
                            <ul>
                                <li>The attribute <b>classCode</b> is prohibited in the schema and therefore does not appear in the "on the wire" instance.</li>
                            </ul>
                        </text>
                    </otherAnnotation>
                </annotations>
                <derivationSupplier attributeName="classCode"
                    className="Person" staticModelDerivationId="1"/>
                <type name="CS"/>
                <supplierDomainSpecification codingStrength="CNE" domainName="PSN"/>
            </attribute>
            <attribute conformance="R" fixedValue="INSTANCE"
                isMandatory="true" isStructural="true"
                maximumMultiplicity="1" minimumMultiplicity="1"
                name="determinerCode" sortKey="2">
                <annotations>
                    <otherAnnotation type="html">
                        <text>
                            <p>
                                <u>
                                    <b>Model Attribute Description  </b>
                                </u>
                                <br/>
                            </p>
                            <p>The HL7 attribute <b>determinerCode</b> describes this class as an instance of a person.                   </p>
                            <p>
                                <u>
                                    <b>Implementation in XML Instance  </b>
                                </u>
                                <br/>
                            </p>

                            <p>The XML attribute <b>determinerCode</b> is fixed to "<font color="#ff0000">
                                    <b>INSTANCE</b>
                                </font>".                   </p>
                            <p>
                                <b>
                                    <u>Schema Constraint  </u>
                                </b>
                                <br/>
                            </p>
                            <ul>
                                <li>The attribute <b>determinerCode</b> is prohibited in the schema and therefore does not appear in the "on the wire" instance.</li>
                            </ul>
                        </text>
                    </otherAnnotation>
                </annotations>
                <derivationSupplier attributeName="determinerCode"
                    className="Person" staticModelDerivationId="1"/>
                <type name="CS"/>
                <supplierDomainSpecification codingStrength="CNE" domainName="INSTANCE"/>
            </attribute>
            <attribute conformance="R" isMandatory="true"
                maximumMultiplicity="1" minimumMultiplicity="1"
                name="name" sortKey="6">
                <annotations>
                    <otherAnnotation type="html">
                        <text>
                            <p>
                                <u>
                                    <b>Model Attribute Description  </b>
                                </u>
                                <br/>
                            </p>
                            <p>The HL7 attribute <b>name</b> provides a name associated with the  child.<br/>
                            </p>
                            <p>
                                <u>
                                    <b>Implementation in XML Instance  </b>
                                </u>
                                <br/>
                            </p>
                            <p>The <b>PN.NHS.PersonNameType6</b> flavour of the<b> PN</b>  data type must be used for the name of the child. This information is carried in the XML element <b>name </b>as follows:                                       </p>
                            <ul>
                                <li>The XML element <b>given</b> should contain the child's forename<br/>
                                </li>
                                <li>The XML element <b>family</b> should contain the child's surname                                            </li>
                            </ul>
                        </text>
                    </otherAnnotation>
                </annotations>
                <derivationSupplier attributeName="name"
                    className="Person" staticModelDerivationId="1"/>
                <type name="PN" typeSpecialisation="PN.NHS.PersonNameType6"/>
            </attribute>
            <attribute conformance="R" isMandatory="true"
                maximumMultiplicity="1" minimumMultiplicity="1"
                name="birthTime" sortKey="2">
                <annotations>
                    <otherAnnotation type="html">
                        <text>
                            <p>
                                <u>
                                    <b>Model Attribute Description   </b>
                                </u>
                                <br/>
                            </p>
                            <p>The HL7 attribute <b>birthTime</b> specifies child's date of birth.                                       </p>
                            <p>
                                <u>
                                    <b>Implementation in XML Instance </b>
                                </u>
                            </p>
                            <p>The XML attribute <b>value</b> of the XML element <b>birthTime </b>shall be populated a  time stamp in the format yyyymmddhhmm where:                                      </p>
                            <ul>
                                <li>yyyy is the year</li>
                                <li>mm is the month</li>
                                <li>dd is the day</li>
                                <li>hh is the hour</li>
                                <li>mm is the minute</li>
                            </ul>
                            <p>At least the year, month and day must be present. </p>                   The XML attribute <b>value</b> of the XML element <b>birthTime</b> should be populated to the level of detail that is available on the sending system.</text>
                    </otherAnnotation>
                </annotations>
                <derivationSupplier attributeName="birthTime"
                    className="Person" staticModelDerivationId="1"/>
                <type name="TS"/>
            </attribute>
        </class>
    </ownedClass>
    <ownedAssociation>
        <graphicRepresentation>
            <graphElement connectToShapeId="Sheet.11"
                containerDiagramName="Main" shapeId="Sheet.1">
                <position x="3.02527" y="1.83778"/>
                <graphEdge>
                    <anchor connectToShapeId="Sheet.11">
                        <position x="1.5625" y="2.30889"/>
                    </anchor>
                </graphEdge>
            </graphElement>
        </graphicRepresentation>
        <connections>
            <traversableConnection conformance="R" isMandatory="true"
                maximumMultiplicity="1" minimumMultiplicity="1"
                name="childPerson" participantClassName="Person">
                <annotations>
                    <otherAnnotation type="html">
                        <text>A link to the child person.<br/>
                        </text>
                    </otherAnnotation>
                </annotations>
                <derivationSupplier associationEndName="player"
                    className="Child" staticModelDerivationId="1"/>
            </traversableConnection>
            <nonTraversableConnection participantClassName="Child">
                <derivationSupplier associationEndName="playedRole"
                    className="Person" staticModelDerivationId="1"/>
            </nonTraversableConnection>
        </connections>
    </ownedAssociation>
</staticModel>
