<!--
		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="StudentActivityParticipationType">
    <xs:sequence>
      <xs:element name="StudentActivityParticipationRefId" minOccurs="0" nillable="true" type="RefIdType" />
      <xs:element name="StudentActivityParticipationLocalId" 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="ActivityGroup" minOccurs="0" nillable="true" type="NZCodeSetsStudentActivityGroupType" />
      <xs:element name="ActivityType" minOccurs="0" nillable="true" type="NZCodeSetsStudentActivityTypeType" />
      <xs:element name="ActivityName" minOccurs="0" type="xs:normalizedString" />
      <xs:element name="LearningArea" minOccurs="0" nillable="true" type="NZCodeSetsLearningAreaType" />
      <xs:element name="ParticipationComment" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="StartDate" minOccurs="0" type="xs:date" />
      <xs:element name="EndDate" minOccurs="0" nillable="true" type="xs:date" />
      <xs:element name="Role" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="RecognitionList" minOccurs="0" nillable="true" type="RecognitionListType" />
      <xs:element name="RecordAudit" minOccurs="0" nillable="true" type="RecordAuditType" />
    </xs:sequence>
  </xs:complexType>

  <xs:element name="StudentActivityParticipation" type="StudentActivityParticipationType">
    <xs:unique name="StudentActivityParticipationKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentActivityParticipationRefId" />
    </xs:unique>
  </xs:element>

  <xs:complexType name="StudentActivityParticipationCollectionType">
    <xs:sequence>
      <xs:element name="StudentActivityParticipation" type="StudentActivityParticipationType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentActivityParticipations" type="StudentActivityParticipationCollectionType" />

</xs:schema>