<!--
		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="StudentAssessmentTaskResultType">
    <xs:sequence>
      <xs:element name="StudentAssessmentTaskResultRefId" minOccurs="0" nillable="true" type="RefIdType" />
      <xs:element name="StudentAssessmentTaskResultLocalId" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="NZQAEntryId" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="AssessmentTask" minOccurs="0" nillable="true" type="ObjectReferenceType" />
      <xs:element name="StudentAssessmentTask" minOccurs="0" nillable="true" type="ObjectReferenceType" />
      <xs:element name="Student" minOccurs="0" type="StudentObjectReferenceType" />
      <xs:element name="AssessmentType" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentTypeType" />
      <xs:element name="AssessmentMethodology" minOccurs="0" type="NZCodeSetsAssessmentMethodologyType" />
      <xs:element name="ProviderInvolvedList" minOccurs="0" type="ProviderInvolvedListType" />
      <xs:element name="StaffInvolvedList" minOccurs="0" nillable="true" type="StaffInvolvedListType" />
      <xs:element name="ProviderCourse" minOccurs="0" nillable="true" type="ObjectReferenceType" />
      <xs:element name="LearningStandardList" minOccurs="0" nillable="true" type="LearningStandardListType" />
      <xs:element name="SubjectAreaList" minOccurs="0" nillable="true" type="SubjectAreaListType" />
      <xs:element name="AssessedAtYearLevel" minOccurs="0" nillable="true">
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:minInclusive value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
            <xs:maxInclusive value="13" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Curriculum" minOccurs="0" nillable="true" type="NZCodeSetsCurriculumType" />
      <xs:element name="AssessmentToolUsed" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentToolType" />
      <xs:element name="AssessmentToolTest" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentToolTestType" />
      <xs:element name="Timeframe" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentTimeframeType" />
      <xs:element name="AssessmentAttempt" minOccurs="0" nillable="true" type="xs:int" />
      <xs:element name="EvaluationType" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentEvaluationTypeType" />
      <xs:element name="StandardType" minOccurs="0" nillable="true" type="NZCodeSetsLearningStandardTypeType" />
      <xs:element name="DateMarked" minOccurs="0" nillable="true" type="xs:date" />
      <xs:element name="DateTimeAssessed" minOccurs="0" nillable="true" type="xs:dateTime" />
      <xs:element name="DateStudentNotified" minOccurs="0" nillable="true" type="xs:date" />
      <xs:element name="NZQAConfirmation" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType" />
      <xs:element name="Published" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType" />
      <xs:element name="PublishedDate" minOccurs="0" nillable="true" type="xs:date" />
      <xs:element name="Iteration" minOccurs="0" nillable="true" type="xs:int" />
      <xs:element name="CreditsAchieved" minOccurs="0" nillable="true" type="xs:decimal" />
      <xs:element name="ResultScoreList" minOccurs="0" type="AssessmentResultScoreListType" />
      <xs:element name="Weight" minOccurs="0" nillable="true" type="xs:decimal" />
      <xs:element name="EffortComment" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="OtherComment" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="DocumentList" minOccurs="0" nillable="true" type="DocumentListType" />
      <xs:element name="RecordAudit" minOccurs="0" nillable="true" type="RecordAuditType" />
    </xs:sequence>
  </xs:complexType>

  <xs:element name="StudentAssessmentTaskResult" type="StudentAssessmentTaskResultType">
    <xs:unique name="StudentAssessmentTaskResultKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentAssessmentTaskResultRefId" />
    </xs:unique>
  </xs:element>

  <xs:complexType name="StudentAssessmentTaskResultCollectionType">
    <xs:sequence>
      <xs:element name="StudentAssessmentTaskResult" type="StudentAssessmentTaskResultType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentAssessmentTaskResults" type="StudentAssessmentTaskResultCollectionType" />

</xs:schema>