<!--
		SIF Implementation Specification (Australia) 3.4.3


		(April 5, 2018)
		
		Infrastructure Version: v3
	-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sifassociation.org/datamodel/au/3.4" targetNamespace="http://www.sifassociation.org/datamodel/au/3.4" elementFormDefault="qualified" version="3.4.3">
  <xs:complexType name="NAPStudentResponseSetType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>High</privacyRating>
      </xs:appinfo>
      <xs:documentation>Capture of student’s responses to a NAP test.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ReportExclusionFlag" type="xs:boolean">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Flag to exclude this student's responses from National Reporting. If absent, student response is assumed to be excluded.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CalibrationSampleFlag" minOccurs="0" nillable="true" type="xs:token">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Flags at student level that the test responses given are to be treated as part of the Calibration Sample.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EquatingSampleFlag" minOccurs="0" nillable="true" type="xs:token">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Flags at student level that the test responses given are to be treated as part of the Equating Sample.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PathTakenForDomain" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Student’s trajectory through adaptive test for the domain. Expressed as a sequence of node identifiers.Not provided if test is not adaptive (e.g. Writing).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ParallelTest" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Student’s trajectory through adaptive test for the domain. Expressed as a sequence of testlet identifiers.Not provided if test is not adaptive (e.g. Writing).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StudentPersonalRefId" minOccurs="0" nillable="true" type="IdRefType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The student associated with the NAP event.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlatformStudentIdentifier" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Platform student identifier, allocated by the National Assessment Platform to the student registration for this school enrollment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NAPTestRefId" minOccurs="0" nillable="true" type="IdRefType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The GUID for the test that the student is sitting. May be linking to prior codeframe download.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NAPTestLocalId" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Local identifier of NAP test.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DomainScore" minOccurs="0" nillable="true" type="DomainScoreType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="TestletList" minOccurs="0" nillable="true" type="NAPStudentResponseTestletListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Conditional on Participation Code.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SIF_Metadata" minOccurs="0" nillable="true" type="SIF_MetadataType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="SIF_ExtendedElements" minOccurs="0" nillable="true" type="SIF_ExtendedElementsType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="RefId" use="required" type="RefIdType">
      <xs:annotation>
        <xs:appinfo>
          <sifChar>M</sifChar>
          <privacyRating />
        </xs:appinfo>
        <xs:documentation>The GUID that uniquely identifies an instance of the object.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>

  <xs:element name="NAPStudentResponseSet" type="NAPStudentResponseSetType">
    <xs:key name="NAPStudentResponseSetKey1">
      <xs:selector xpath="./NAPStudentResponseSet" />
      <xs:field xpath="@RefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="NAPStudentResponseSetCollectionType">
    <xs:sequence>
      <xs:element name="NAPStudentResponseSet" type="NAPStudentResponseSetType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="NAPStudentResponseSets" type="NAPStudentResponseSetCollectionType" />

</xs:schema>