<!--
		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="StudentLearningSupportResponseType">
    <xs:sequence>
      <xs:element name="StudentLearningSupportResponseRefId" minOccurs="0" nillable="true" type="RefIdType" />
      <xs:element name="StudentLearningSupportResponseLocalId" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="Student" minOccurs="0" type="StudentObjectReferenceType" />
      <xs:element name="Provider" minOccurs="0" type="ProviderObjectReferenceType" />
      <xs:element name="LearningSupportNeed" minOccurs="0" type="ObjectReferenceType" />
      <xs:element name="ResponseType" minOccurs="0" type="NZCodeSetsLearningSupportResponseTypeType" />
      <xs:element name="ResponseDetail" minOccurs="0" nillable="true" type="NZCodeSetsLearningSupportResponseDetailType" />
      <xs:element name="ReviewDate" minOccurs="0" type="xs:date" />
      <xs:element name="ResponseGoals" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="ResponseNote" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="NoteList" minOccurs="0" nillable="true" type="NoteListType" />
      <xs:element name="ResponseDesc" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="TierOfResponse" minOccurs="0" nillable="true" type="NZCodeSetsLearningSupportResponseTierType" />
      <xs:choice>
        <xs:element name="ExternalResponse" minOccurs="0" nillable="true" type="SupportNeedExternalResponseType" />
        <xs:element name="InternalResponse" minOccurs="0" nillable="true" type="SupportNeedInternalResponseType" />
      </xs:choice>
      <xs:element name="ReviewList" minOccurs="0" nillable="true" type="SupportNeedResponseReviewListType" />
      <xs:element name="AttachmentList" minOccurs="0" nillable="true" type="DocumentListType" />
      <xs:element name="CompletionDate" minOccurs="0" nillable="true" type="xs:date" />
      <xs:element name="Outcome" minOccurs="0" nillable="true" type="NZCodeSetsLearningSupportResponseOutcomeType" />
      <xs:element name="OutcomeComment" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="ClosureStatus" minOccurs="0" nillable="true" type="NZCodeSetsLearningSupportResponseClosureStatusType" />
      <xs:element name="ClosureStatusDetail" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="CompletionNote" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="RecordAudit" minOccurs="0" type="RecordAuditType" />
    </xs:sequence>
  </xs:complexType>

  <xs:element name="StudentLearningSupportResponse" type="StudentLearningSupportResponseType">
    <xs:unique name="StudentLearningSupportResponseKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentLearningSupportResponseRefId" />
    </xs:unique>
  </xs:element>

  <xs:complexType name="StudentLearningSupportResponseCollectionType">
    <xs:sequence>
      <xs:element name="StudentLearningSupportResponse" type="StudentLearningSupportResponseType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentLearningSupportResponses" type="StudentLearningSupportResponseCollectionType" />

</xs:schema>