<!--
		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="StudentAssessmentTaskType">
    <xs:sequence>
      <xs:element name="StudentAssessmentTaskRefId" minOccurs="0" nillable="true" type="RefIdType" />
      <xs:element name="StudentAssessmentTaskLocalId" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="Student" minOccurs="0" type="StudentObjectReferenceType" />
      <xs:element name="AssessmentTask" minOccurs="0" type="ObjectReferenceType" />
      <xs:element name="StudentAssessmentTaskRegistration" minOccurs="0" nillable="true" type="ObjectReferenceType" />
      <xs:element name="ProviderInvolvedList" minOccurs="0" type="ProviderInvolvedListType" />
      <xs:element name="StaffInvolvedList" minOccurs="0" nillable="true" type="StaffInvolvedListType" />
      <xs:element name="DateTimeAssessmentScheduled" minOccurs="0" nillable="true" type="xs:dateTime" />
      <xs:element name="DateTimeAssessed" minOccurs="0" nillable="true" type="xs:dateTime" />
      <xs:element name="Status" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentStatusType" />
      <xs:element name="NCEAStatusDate" minOccurs="0" nillable="true" type="xs:date" />
      <xs:element name="AssessmentAttempt" minOccurs="0" nillable="true" type="xs:int" />
      <xs:element name="SpecialAssessmentConditionList" minOccurs="0" nillable="true" type="SpecialAssessmentConditionListType" />
      <xs:element name="RecordAudit" minOccurs="0" nillable="true" type="RecordAuditType" />
    </xs:sequence>
  </xs:complexType>

  <xs:element name="StudentAssessmentTask" type="StudentAssessmentTaskType">
    <xs:unique name="StudentAssessmentTaskKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentAssessmentTaskRefId" />
    </xs:unique>
  </xs:element>

  <xs:complexType name="StudentAssessmentTaskCollectionType">
    <xs:sequence>
      <xs:element name="StudentAssessmentTask" type="StudentAssessmentTaskType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentAssessmentTasks" type="StudentAssessmentTaskCollectionType" />

</xs:schema>