<!--
		SIF Implementation Specification (New Zealand) 3.1
		(8 December, 2020
)
		
		Infrastructure Version: v3.1
	-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sifassociation.org/datamodel/nz/3.1" targetNamespace="http://www.sifassociation.org/datamodel/nz/3.1" elementFormDefault="qualified" version="3.1 (rc 5)">
  <xs:complexType name="StudentAttendanceTimeListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>This object provides more detail about the attendance spans for a single student during the
				day: it provides more detailed information than the single TimeIn and TimeOut elements in
				StudentDailyAttendance.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentAttendanceTimeListRefId" minOccurs="0" nillable="true" type="RefIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="Student" minOccurs="0" type="StudentObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The student for whom this attendance time list is being reported.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Provider" minOccurs="0" type="ProviderObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The provider who is providing this attendance time list record.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TeachingGroup" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The teaching group that is reporting this student's attenandce time list.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AttendanceTimeList" minOccurs="0" type="AttendanceTimeListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Breakdown of times that the student was recorded as being 
				present or absent from school or class.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:element name="StudentAttendanceTimeList" type="StudentAttendanceTimeListType">
    <xs:unique name="StudentAttendanceTimeListKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentAttendanceTimeListRefId" />
    </xs:unique>
  </xs:element>

  <xs:complexType name="StudentAttendanceTimeListCollectionType">
    <xs:sequence>
      <xs:element name="StudentAttendanceTimeList" type="StudentAttendanceTimeListType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentAttendanceTimeLists" type="StudentAttendanceTimeListCollectionType" />

</xs:schema>