<!--
		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:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>Provides information about a student's learning support.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentLearningSupportRefId" minOccurs="0" nillable="true" type="RefIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The universally unique identifier for the data object record that is used across systems.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StudentLearningSupportLocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The Id of the data object record that was provided by the system that the information was originally sourced from.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Student" type="StudentObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Reference to the student the learning support record is for.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Provider" type="ProviderObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Reference to the Provider that created the learning support record for the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LearnerStatus" type="NZCodeSetsLearningSupportLearnerStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The learners learning support status, e.g. are they currently being managed or not.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LearnerArchivedDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the learner's learning support status was changed from Active to Archived.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StudentConsentList" type="StudentConsentListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the consents the student has provided / not provided in regards to learning support, e.g. Cluster Sharing COnsent, Recieve Service Consent.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DyslexiaScreeningTool" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates whether or the student has been assessed using dyslexia screening tools.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OtherScreening" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates whether or not the student has under gone any other type of screening.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OtherScreeningDetail" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text describing any other type of screening the student has undergone. Mandatory if 'OtherScreening' = 'Y'.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AdolescentHealthScreening" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates whether or not the student has undergone an adolescent health screening, e.g. NZ Aotearoa Adolescent Health and development (NZAAHD) assessment, HEEADDSS (Home, Education/employment, Eating, Activities, Drugs and Alcohol, Sexuality, Suicide/depression, Safety).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NonAttendance" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates whether or not the student has not been attending the education provider they are enrolled at.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NewToNewZealand" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates whether or not the student is new to New Zealand.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NumberOfSchoolChanges" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates whether or not the student has changed education providers reasonably frequently.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="B4SchoolCheck" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates whether or not the student has undergone a B4 School Check.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OtherFamilyContext" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates whether or not there is other family context that pertains to the student and their needs.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OtherFamilyContextDetail" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Additional free text detail about any family context that pertains to the student and their needs. Mandatory if OtherStudentContext = 'Y'.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StudentVoiceList" minOccurs="0" nillable="true" type="StudentVoiceListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the student's or their whānau's voice about their learning support in regards to the student 's interests, goals, and voice (comments, opinions).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SupportNeedList" minOccurs="0" nillable="true" type="SupportNeedListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of learning support needs that have been identified for the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LearnerInterests" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text that describes the interests a learner has that pertains to this wellbeing Characteristic.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LearnerWhanauGoal" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text describing any goals the student wants to achieve, or any goals their whānau want them to achieve that pertain to this wellbeing characteristic.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LearnerWhanauVoice" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text capturing the learners and/or their whānaus opinions and point of view in regards to this wellbeing characteristic.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RecordAudit" minOccurs="0" nillable="true" type="RecordAuditType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The audit details for a record, e.g. Created/Last Updated DateTime and Created/Last Updated By.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </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>