<!--
		SIF Implementation Specification (Australia) 1.1 (December 23, 2010) Infrastructure Version: 2.4-16
	-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://www.sifinfo.org/au/infrastructure/2.x" xmlns:sif="http://www.sifinfo.org/au/infrastructure/2.x" elementFormDefault="qualified">
  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="imports/xml/xml.xsd" />
  <xs:complexType name="AssessmentAdministrationType">
    <xs:annotation>
      <xs:documentation>This object represents an assessment event. It includes information related to the time of administration, place of administration, and unusual events related to the administration.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AssessmentFormRefId" minOccurs="0" type="sif:IdRefType">
        <xs:annotation>
          <xs:documentation>The RefId of the assessment form used in the assessment administration.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AdministrationName" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="SpecialConditions" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="SpecialCondition" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>A text description of the special condition.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:simpleContent>
                  <xs:extension base="xs:string">
                    <xs:attribute name="Code" use="required" type="xs:token">
                      <xs:annotation>
                        <xs:documentation>This is the primary key for the list of special conditions.</xs:documentation>
                      </xs:annotation>
                    </xs:attribute>
                    <xs:attribute name="SIF_Action" use="optional">
                      <xs:annotation>
                        <xs:documentation>
        In a Change event, this flag can be used to indicate an element has been deleted from the parent list container.  At a minimum the key for the list must also be present.
      </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:token">
                          <xs:enumeration value="Delete" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:attribute>
                  </xs:extension>
                </xs:simpleContent>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
        <xs:unique name="SpecialConditionsKey1">
          <xs:selector xpath="./sif:SpecialCondition" />
          <xs:field xpath="@Code" />
        </xs:unique>
      </xs:element>
      <xs:element name="AdministrationDateTime" minOccurs="0" type="xs:dateTime">
        <xs:annotation>
          <xs:documentation>Date and time the test is scheduled to be given.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDateTime" minOccurs="0" nillable="true" type="xs:dateTime">
        <xs:annotation>
          <xs:documentation>Date and time testing begins.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FinishDateTime" minOccurs="0" nillable="true" type="xs:dateTime">
        <xs:annotation>
          <xs:documentation>Date and time testing ends.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DueDateTime" minOccurs="0" nillable="true" type="xs:dateTime">
        <xs:annotation>
          <xs:documentation>Date and time test is due.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Address" minOccurs="0" nillable="true" type="sif:AddressType">
        <xs:annotation>
          <xs:documentation>Address of the location where the administration takes place.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StaffPersonalRefId" minOccurs="0" nillable="true" type="sif:IdRefType">
        <xs:annotation>
          <xs:documentation>Optional reference to a staff person associated with the administration.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LEAInfoRefId" minOccurs="0" nillable="true" type="sif:IdRefType">
        <xs:annotation>
          <xs:documentation>Optional reference to a school district associated with the administration.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchoolInfoRefId" minOccurs="0" nillable="true" type="sif:IdRefType">
        <xs:annotation>
          <xs:documentation>Optional reference to a school associated with the administration.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SIF_Metadata" minOccurs="0" nillable="true" type="sif:SIF_MetadataType" />
      <xs:element name="SIF_ExtendedElements" minOccurs="0" nillable="true" type="sif:SIF_ExtendedElementsType">
        <xs:unique name="SIF_ExtendedElementsKey13">
          <xs:selector xpath="./sif:SIF_ExtendedElement" />
          <xs:field xpath="@Name" />
        </xs:unique>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="RefId" use="required" type="sif:RefIdType">
      <xs:annotation>
        <xs:documentation>The GUID that uniquely identifies an instance of the object.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>

  <xs:element name="AssessmentAdministration" type="sif:AssessmentAdministrationType">
    <xs:unique name="AssessmentAdministrationKey1">
      <xs:selector xpath="." />
      <xs:field xpath="@RefId" />
    </xs:unique>
  </xs:element>

</xs:schema>