<!--
		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="StudentLearningSupportType">
    <xs:sequence>
      <xs:element name="StudentLearningSupportRefId" minOccurs="0" nillable="true" type="RefIdType" />
      <xs:element name="StudentLearningSupportLocalId" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="Student" type="StudentObjectReferenceType" />
      <xs:element name="Provider" type="ProviderObjectReferenceType" />
      <xs:element name="LearnerStatus" type="NZCodeSetsLearningSupportLearnerStatusType" />
      <xs:element name="LearnerArchivedDate" minOccurs="0" nillable="true" type="xs:date" />
      <xs:element name="StudentConsentList" type="StudentConsentListType" />
      <xs:element name="DyslexiaScreeningTool" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType" />
      <xs:element name="OtherScreening" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType" />
      <xs:element name="OtherScreeningDetail" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="AdolescentHealthScreening" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType" />
      <xs:element name="NonAttendance" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType" />
      <xs:element name="NewToNewZealand" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType" />
      <xs:element name="NumberOfSchoolChanges" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType" />
      <xs:element name="B4SchoolCheck" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType" />
      <xs:element name="OtherFamilyContext" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType" />
      <xs:element name="OtherFamilyContextDetail" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="StudentVoiceList" minOccurs="0" nillable="true" type="StudentVoiceListType" />
      <xs:element name="SupportNeedList" minOccurs="0" nillable="true" type="SupportNeedListType" />
      <xs:element name="LearnerInterests" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="LearnerWhanauGoal" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="LearnerWhanauVoice" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="RecordAudit" minOccurs="0" nillable="true" type="RecordAuditType" />
    </xs:sequence>
  </xs:complexType>

  <xs:element name="StudentLearningSupport" type="StudentLearningSupportType">
    <xs:key name="StudentLearningSupportKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentLearningSupportRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StudentLearningSupportCollectionType">
    <xs:sequence>
      <xs:element name="StudentLearningSupport" type="StudentLearningSupportType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentLearningSupports" type="StudentLearningSupportCollectionType" />

</xs:schema>