<!--
		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="ScheduledActivityType">
    <xs:sequence>
      <xs:element name="SchoolInfoRefId" minOccurs="0" type="IdRefType" />
      <xs:element name="TimeTableCellRefId" minOccurs="0" nillable="true" type="IdRefType" />
      <xs:element name="DayId" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="PeriodId" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="TimeTableRefId" minOccurs="0" nillable="true" type="IdRefType" />
      <xs:element name="ActivityDate" minOccurs="0" type="xs:date" />
      <xs:element name="StartTime" minOccurs="0" type="xs:time" />
      <xs:element name="FinishTime" minOccurs="0" type="xs:time" />
      <xs:element name="CellType" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="TimeTableSubjectRefId" minOccurs="0" nillable="true" type="IdRefType" />
      <xs:element name="TeacherList" minOccurs="0" nillable="true" type="ScheduledTeacherListType" />
      <xs:element name="RoomList" minOccurs="0" nillable="true" type="RoomListType" />
      <xs:element name="AddressList" minOccurs="0" nillable="true" type="AddressListType" />
      <xs:element name="Location" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="ActivityType" minOccurs="0" nillable="true" type="AUCodeSetsScheduledActivityTypeType" />
      <xs:element name="ActivityName" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="ActivityComment" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="StudentList" minOccurs="0" nillable="true" type="StudentsType" />
      <xs:element name="TeachingGroupList" minOccurs="0" nillable="true" type="TeachingGroupListType" />
      <xs:element name="YearLevels" minOccurs="0" nillable="true" type="YearLevelsType" />
      <xs:element name="Override" minOccurs="0" nillable="true" type="ScheduledActivityOverrideType" />
      <xs:element name="SIF_Metadata" minOccurs="0" nillable="true" type="SIF_MetadataType" />
      <xs:element name="SIF_ExtendedElements" minOccurs="0" nillable="true" type="SIF_ExtendedElementsType" />
    </xs:sequence>
    <xs:attribute name="RefId" use="required" type="RefIdType" />
  </xs:complexType>

  <xs:element name="ScheduledActivity" type="ScheduledActivityType">
    <xs:unique name="ScheduledActivityKey1">
      <xs:selector xpath="./ScheduledActivity" />
      <xs:field xpath="@RefId" />
    </xs:unique>
  </xs:element>

  <xs:complexType name="ScheduledActivityCollectionType">
    <xs:sequence>
      <xs:element name="ScheduledActivity" type="ScheduledActivityType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ScheduledActivitys" type="ScheduledActivityCollectionType" />

</xs:schema>