<!--
		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="NAPEventStudentLinkType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>High</privacyRating>
      </xs:appinfo>
      <xs:documentation>This object represents a student’s attempt to undergo NAP assessment in a particular test.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <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="SchoolInfoRefId" minOccurs="0" nillable="true" type="IdRefType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Optional reference to a school associated with the NAP Event.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchoolACARAId" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The ACARA School Id for the school that the student sitting the test is enrolled in, as assigned in the Australian School List.</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="SchoolSector" type="AUCodeSetsSchoolSectorCodeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>(Government, or Non-Government).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="System" minOccurs="0" nillable="true" type="AUCodeSetsSchoolSystemType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>System if a systemic school.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchoolGeolocation" minOccurs="0" nillable="true" type="AUCodeSetsSchoolLocationType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>School Location</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReportingSchoolName" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Name of school where reports will be sent to, in case of walk-ups</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NAPJurisdiction" minOccurs="0" nillable="true" type="AUCodeSetsNAPJurisdictionType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>School Location</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ParticipationCode" type="AUCodeSetsNAPParticipationCodeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="ParticipationText" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Text added to reports indicating the participation status of the student for the NAP test. Determined by the Participation Code.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Device" minOccurs="0" nillable="true" type="xs:token">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Device used to do the test.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Date" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Date test administered. Not provided unless the student was actually administered the test.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartTime" minOccurs="0" nillable="true" type="xs:time">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Time student commenced test. Not provided unless the student was actually administered the test.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LapsedTimeTest" minOccurs="0" nillable="true" type="xs:duration">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Time taken for student to complete test. Not provided unless the student was actually administered the test.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExemptionReason" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Reason given for student to be exempted from the NAP test.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PersonalDetailsChanged" minOccurs="0" nillable="true" type="xs:boolean">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Flag that the personal details of the student have changed since registration.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PSIOtherIdMatch" minOccurs="0" nillable="true" type="xs:boolean">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Flag indicating possible Platform Student Identifier error.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PossibleDuplicate" minOccurs="0" nillable="true" type="xs:boolean">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Flag indicating a possible duplicate record for a student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DOBRange" minOccurs="0" nillable="true" type="xs:boolean">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Flag indicating whether a student’s date of birth is in expected range.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TestDisruptionList" minOccurs="0" nillable="true" type="TestDisruptionListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="Adjustment" minOccurs="0" nillable="true" type="AdjustmentContainerType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <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>Low</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="NAPEventStudentLink" type="NAPEventStudentLinkType">
    <xs:key name="NAPEventStudentLinkKey1">
      <xs:selector xpath="./NAPEventStudentLink" />
      <xs:field xpath="@RefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="NAPEventStudentLinkCollectionType">
    <xs:sequence>
      <xs:element name="NAPEventStudentLink" type="NAPEventStudentLinkType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="NAPEventStudentLinks" type="NAPEventStudentLinkCollectionType" />

</xs:schema>