<!--
		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)"
>
  <!--SIFNZ-->


  <!--Provider-->

  <xs:complexType name="ProviderType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>A recognised provider of education services in the New Zealand
			education system.  Providers may operate in the Early Childhood, Compulsory Schooling or Tertiary sectors.
    	</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="EduOrganisationType">
        <xs:sequence>
          <xs:element name="ProviderRefId" type="MoEOrgIdType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>1 to 5 digit Ministry Organisation Id for the Provider, without leading zeros</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Authority" minOccurs="0" nillable="true" type="NZCodeSetsProviderAuthorityType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>A code denoting the authority by which the Provider is authorised to
		  provide education services.
		  </xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="SchoolService" minOccurs="0" nillable="true" type="SchoolServiceType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>Only present if the Provider is a provider of school education services.
		  Contains properties that are school-specific. </xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="ECEService" minOccurs="0" nillable="true" type="ECEServiceType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>Only present if the Provider is a provider of early childhood education services.
		  Contains properties that are ECE specific.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="TertiaryService" minOccurs="0" nillable="true" type="TertiaryServiceType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>Only present if the Provider is a provider of tertiary education services.
		  Contains properties that are Tertiary Education specific.</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:extension>
    </xs:complexContent>
  </xs:complexType>

  <xs:element name="Provider" type="ProviderType">
    <xs:key name="ProviderKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./ProviderRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="ProviderCollectionType">
    <xs:sequence>
      <xs:element name="Provider" type="ProviderType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Providers" type="ProviderCollectionType" />


  <!--ProviderRelationship-->

  <xs:complexType name="ProviderRelationshipType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>Records a recognised relationship between two education Providers. The two providers
         are referred	 to as the Source Provider and the Related Provider.
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ProviderRelationshipRefId" 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="ProviderRelationshipLocalId" 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="Status" type="NZCodeSetsOrganisationRelationshipStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Records if this OrganisationRelationship is Active or Inactive</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RelationshipType" type="NZCodeSetsOrganisationRelationshipTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The SIF GUID for the source provider in the relationship.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SourceOrganisation" type="OrganisationObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the source provider in the relationship.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SourceOrganisationRole" minOccurs="0" nillable="true" type="NZCodeSetsSourceOrganisationRoleType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The role the source organisation is playing in this relationship.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SourceOrganisationAgreementDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the source Provider in the relationship registered their agreement to the relationship.
      nil value if the source Provider is yet to register their agreement ot the relationship.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RelatedOrganisation" type="OrganisationObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the related provider in the relationship.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RelatedOrganisationRole" minOccurs="0" nillable="true" type="NZCodeSetsRelatedOrganisationRoleType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The role the related organisation is playing in this relationship.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RelatedOrganisationAgreementDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the related Provider in the relationship registered their agreement to the relationship.
      nil value if the related Provider is yet to register their agreement ot the relationship.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EffectiveDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date from which the provider relationship is active.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExpirationDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date after which the provider relationship is no longer active.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="YearLevelList" minOccurs="0" nillable="true" type="YearLevelListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of YearLevels, denoting the year levels of the
		  learners being hosted or sent from the client or contributing provider</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubjectAreaList" minOccurs="0" nillable="true" type="SubjectAreaListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of Subject or Learning Areas, denoting the curriculum subjects or learning areas that 
      the learners being sent by the Source Provider are taught at the Related Provider.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Description" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text description providing more detail about the provider relationship.</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="ProviderRelationship" type="ProviderRelationshipType">
    <xs:key name="ProviderRelationshipKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./ProviderRelationshipRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="ProviderRelationshipCollectionType">
    <xs:sequence>
      <xs:element name="ProviderRelationship" type="ProviderRelationshipType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ProviderRelationships" type="ProviderRelationshipCollectionType" />


  <!--Organisation-->

  <xs:complexType name="OrganisationType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>
			A generic organisation that operates within the education sector; but doesn’t provide education 
			services. e.g. Communities of Learning | Kāhui Ako, Ministry local offices, 
			Industry training organisations, etc. 
		</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="EduOrganisationType">
        <xs:sequence>
          <xs:element name="OrganisationRefId" type="MoEOrgIdType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>1 to 5 digit Ministry Organisation Id for the Organisation, without leading zeros</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:extension>
    </xs:complexContent>
  </xs:complexType>

  <xs:element name="Organisation" type="OrganisationType">
    <xs:key name="OrganisationKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./OrganisationRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="OrganisationCollectionType">
    <xs:sequence>
      <xs:element name="Organisation" type="OrganisationType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Organisations" type="OrganisationCollectionType" />


  <!--AcademicDepartment-->

  <xs:complexType name="AcademicDepartmentType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>
        Information about an academic department within a provider, e.g. Maths Department.  
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AcademicDepartmentRefId" 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="AcademicDepartmentLocalId" 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="Name" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name of the academic department.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Description" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text description providing more detail about the academic department.</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>The ID (GUID) of the provider for this acadmic department resides in.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StaffList" minOccurs="0" nillable="true" type="StaffListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the staff members that belong to the academic department.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CourseList" minOccurs="0" nillable="true" type="CourseListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the courses the academic department manages.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubjectAreaList" minOccurs="0" nillable="true" type="SubjectAreaListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the subject areas the academic department manages.</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="AcademicDepartment" type="AcademicDepartmentType">
    <xs:key name="AcademicDepartmentKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./AcademicDepartmentRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="AcademicDepartmentCollectionType">
    <xs:sequence>
      <xs:element name="AcademicDepartment" type="AcademicDepartmentType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AcademicDepartments" type="AcademicDepartmentCollectionType" />


  <!--StaffPersonal-->

  <xs:complexType name="StaffPersonalType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>High</privacyRating>
      </xs:appinfo>
      <xs:documentation>All the personal contact and demographic information relating to a staff member,
				who might be a teacher or other employee of a Provider.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StaffPersonalRefId" 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="StaffPersonalLocalId" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Medium</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="ESLPairwiseId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>The GUID used by Education Sector Logon (ESL) to identify the Staff Member</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchoolSMSUserId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>The identifier used by the school's SMS to identify the Staff Member</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EnableLogin" 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 staff member's ability to login is enabled. Yes, 
        means the staff member can log in. No means they cannot.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PersonInfo" type="PersonInfoType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Personal Information </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="StaffPersonal" type="StaffPersonalType">
    <xs:key name="StaffPersonalKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StaffPersonalRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StaffPersonalCollectionType">
    <xs:sequence>
      <xs:element name="StaffPersonal" type="StaffPersonalType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StaffPersonals" type="StaffPersonalCollectionType" />


  <!--StaffAssignment-->

  <xs:complexType name="StaffAssignmentType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>Records assignment of a Staff member to a particular role at a Provider or
        other EducationOrganisation. A staff member can have multiple concurrent roles
        at Schools (via Provider data object) and Kāhui Ako (via the EducationOrganisation data object);
        each role would be a separate StaffAssignment record.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StaffAssignmentRefId" 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="StaffAssignmentLocalId" 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="StaffAssignmentStatus" type="NZCodeSetsStaffAssignmentStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>States whether or not this is an inactive or active assignment for a staff member.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StaffMember" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the staff member, as represented in the StaffPersonal object. </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssignedLocation" type="ProviderObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A generic object reference to either Provider or Organisation
        that the staff member is assigned to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EmployingOrAccommodatingProvider" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates whether or not this is the staff member's employing/accommodating provider. Only applies to staff members assigned to schools.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Description" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Short description of the staff member's assignment to the provider.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StaffRole" type="NZCodeSetsStaffRoleType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The single role the StaffMember has in relation to all students at the assigned location.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>This is the date from which the staff assignment is valid (inclusive).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>This is the date through which the staff assignment is valid (inclusive). This
          can be NULL when the staff member's assignment to a particular role is open-ended.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CasualReliefTeacher" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Is this teacher a casual relief teacher CRT?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EmploymentStatus" minOccurs="0" nillable="true" type="NZCodeSetsStaffStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Status of staff member within this school.  Where a Staff member is employed by an organisation that
       covers more than one school, employment status may be different at each school.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StaffSubjectList" minOccurs="0" nillable="true" type="StaffSubjectListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The set of SubjectArea/LearningAreas the that the staff member is responsible for. 
       e.g.  "Head of Dept (Maths)"  includes students learning any flavour of Mathematics.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="YearLevels" minOccurs="0" nillable="true" type="YearLevelListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The set of student Year Levels that the staff member is responsible for.
        e.g.  "Junior Student Dean" could have responsibility for all students in
         year levels 9 &amp; 10.</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="StaffAssignment" type="StaffAssignmentType">
    <xs:key name="StaffAssignmentKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StaffAssignmentRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StaffAssignmentCollectionType">
    <xs:sequence>
      <xs:element name="StaffAssignment" type="StaffAssignmentType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StaffAssignments" type="StaffAssignmentCollectionType" />


  <!--StaffTeachingGroupAssignment-->

  <xs:complexType name="StaffTeachingGroupAssignmentType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Records assignment of a Staff member to a particular role with a particular 
        TeachingGroup at a Provider</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StaffTeachingGroupAssignmentRefId" 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="StaffTeachingGroupAssignmentLocalId" 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="Status" type="NZCodeSetsStaffTeachingGroupAssignmentStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>States whether or not this is an inactive or active assignment for a staff member.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StaffMember" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the staff member, as represented in the StaffPersonal object. </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>A generic object reference to the Provider making the assignment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TeachingGroup" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A generic object reference to the TeachingGroup that the staff member is assigned to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Role" type="NZCodeSetsStaffTeachingGroupRoleType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code denoting the role the staff member plays within the TeachingGroup, eg. ClassroomTeacher, SubjectTeacher, 
        ClassroomAide, etc.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>This is the date from which the staff assignment is valid (inclusive).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>This is the date through which the staff assignment is valid (inclusive). This
          can be NULL when the staff member's assignment to a particular role is open-ended.</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="StaffTeachingGroupAssignment" type="StaffTeachingGroupAssignmentType">
    <xs:key name="StaffTeachingGroupAssignmentKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StaffTeachingGroupAssignmentRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StaffTeachingGroupAssignmentCollectionType">
    <xs:sequence>
      <xs:element name="StaffTeachingGroupAssignment" type="StaffTeachingGroupAssignmentType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StaffTeachingGroupAssignments" type="StaffTeachingGroupAssignmentCollectionType" />


  <!--StudentPersonal-->

  <xs:complexType name="StudentPersonalType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Extreme</privacyRating>
      </xs:appinfo>
      <xs:documentation>Contains all the personal information related to the student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentPersonalRefId" minOccurs="0" nillable="true" type="RefIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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="StudentPersonalLocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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. This identifier may be set for each student independently for each provider. Each identifier is only available to be retrieved or maintained by the provider that created it.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NationalStudentNumber" type="xs:positiveInteger">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>The unique identifier allocated to every student in New Zealand, also known as the NSN.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NZQAStudentId" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>NZQA's unique identifier for a student who has been registered for assessments
			 to be conducted against the NZQA framework to achieve unit/achievement standards
			 and national qualifications.
			</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FirstNZSchoolingDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date a student first ever started schooling in New
			Zealand. This field is used to establish most students’
			Funding Year Level.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EarlyChildhoodEducation" minOccurs="0" nillable="true" type="EarlyChildhoodEducationType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The type of early childhood education the student received before enrolling in their first school.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PersonInfo" type="PersonInfoType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Personal Information </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="BiographicChangeReason" minOccurs="0" nillable="true" type="NZCodeSetsBiographicChangeReasonType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The reason that the persons biographic data was changed.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CustodyNote" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Notes about a students care and custody status.</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="StudentPersonal" type="StudentPersonalType">
    <xs:key name="StudentPersonalKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentPersonalRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StudentPersonalCollectionType">
    <xs:sequence>
      <xs:element name="StudentPersonal" type="StudentPersonalType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentPersonals" type="StudentPersonalCollectionType" />


  <!--StudentContactPersonal-->

  <xs:complexType name="StudentContactPersonalType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>High</privacyRating>
      </xs:appinfo>
      <xs:documentation>
			Information about a Student's whānau member.
		</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentContactPersonalRefId" 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="StudentContactPersonalLocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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="HasBOTVote" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>Records that this Whānau member holds the Whānau's Board of Trustees vote.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PersonInfo" type="PersonInfoType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Personal Information collected about the StudentContact, when that contact is a member
			of the Student's whānau.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HealthcareServiceInfo" minOccurs="0" nillable="true" type="HealthcareServiceInfoType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Information about the StudentContact, when that contact is a healthcare service.
			Details about the actual healthcare pratitioner are kept in the PersonInfo fields.</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="StudentContactPersonal" type="StudentContactPersonalType">
    <xs:key name="StudentContactPersonalKey1">
      <xs:selector xpath="." />
      <xs:field xpath="@StudentContactPersonalRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StudentContactPersonalCollectionType">
    <xs:sequence>
      <xs:element name="StudentContactPersonal" type="StudentContactPersonalType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentContactPersonals" type="StudentContactPersonalCollectionType" />


  <!--StudentContactRelationship-->

  <xs:complexType name="StudentContactRelationshipType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>High</privacyRating>
      </xs:appinfo>
      <xs:documentation>A relationship between a person who is part of a Student's whānau and that Student.
				Relationship properties include the relationship type and roles played by the student contact
				in respect of the student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentContactRelationshipRefId" minOccurs="0" nillable="true" type="RefIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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="StudentContactRelationshipLocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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="Status" type="NZCodeSetsStudentContactRelationshipStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>States whether or not this is an inactive or active Student Contact Relationship.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the relationship between the student and contact was recorded.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the relationship between the student and contact was removed.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Student" type="StudentObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the Student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StudentContact" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the student contact.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Provider" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the Provider associated with the relationship.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Relationship" type="RelationshipType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>Defines the relationship of the contact to the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LanguageUsed" minOccurs="0" nillable="true" type="NZCodeSetsLanguageType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The language the student and their contact use to communicate.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HouseholdList" minOccurs="0" nillable="true" type="HouseholdListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of one or more household identifiers indicating the
			households associated with this relationship.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ContactFlags" minOccurs="0" nillable="true" type="ContactFlagsType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Contains characteristics of the contact person's role with the Student. 
			At least one of the flags must be populated with a 'Yes' value.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ContactSequence" minOccurs="0" nillable="true" type="xs:unsignedInt">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Number indicating the order in which the student contact should be contacted.</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="StudentContactRelationship" type="StudentContactRelationshipType">
    <xs:key name="StudentContactRelationshipKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentContactRelationshipRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StudentContactRelationshipCollectionType">
    <xs:sequence>
      <xs:element name="StudentContactRelationship" type="StudentContactRelationshipType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentContactRelationships" type="StudentContactRelationshipCollectionType" />


  <!--Document-->

  <xs:complexType name="DocumentType">
    <xs:annotation>
      <xs:appinfo>
        <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:sequence>
      <xs:element name="DocumentRefId" minOccurs="0" nillable="true" type="RefIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The ID (GUID) assigned to uniquely identify this Document.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocumentLocalId" 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="Provider" type="ProviderObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the Provider that first uploaded this document.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Location" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Location of Documentation.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocumentTitle" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Document's full title.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocumentDescription" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>What the document is and how it is related to the Student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AddedDateTime" minOccurs="0" nillable="true" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the document was added at the source system.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReviewDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Document Review Date.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="URL" minOccurs="0" nillable="true" type="xs:anyURI">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>URL if known.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NoteText" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>If the type of document is 'Note' then this is populated with the free text that makes up the note.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RelatedToList" minOccurs="0" nillable="true" type="RelatedToListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of objects that this document relates to, e.g. a Wellbeing Response or Characteristic, Physical Restraint. </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocumentClassification" minOccurs="0" nillable="true" type="NZCodeSetsDocumentClassificationType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The classification of the document to give an indication of the audience who should have access.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocumentType" type="NZCodeSetsDocumentTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The type of document, e.g. Personalised Plan, Wellbeing Event or Response supporting documentation.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PersonDocumentRoleList" minOccurs="0" nillable="true" type="PersonDocumentRoleListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The list of people associated to a document and their role in relation to it, e.g. author, owner, reviewer, subject of.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocumentDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date of the document, e.g. the date the document was produced.</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="Document" type="DocumentType">
    <xs:key name="DocumentKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./DocumentRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="DocumentCollectionType">
    <xs:sequence>
      <xs:element name="Document" type="DocumentType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Documents" type="DocumentCollectionType" />


  <!--StudentConsent-->

  <xs:complexType name="StudentConsentType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Extreme</privacyRating>
      </xs:appinfo>
      <xs:documentation>A record of Student's consent or non-consent to some action taking place.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentConsentRefId" minOccurs="0" nillable="true" type="RefIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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="StudentConsentLocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the student granting or revoking this student consent.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Organisation" type="ProviderObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the organisation being granted this student consent.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StaffMember" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the staff member that is recording this consent.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ConsentTo" type="NZCodeSetsStudentConsentToType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>What the student is consenting or not consenting to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ConsentGiven" type="NZCodeSetsYesNoNotRequiredType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Indicates whether or not censent was given, or specifically not given</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ConsentGivenBy" minOccurs="0" nillable="true" type="NZCodeSetsConsentGivenByType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The role of the person who gave consent on behalf of the student, e.g. Whānau, Learner.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ConsentDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date the consent or no consent was given.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ConsentRevokedDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date the consent ended, if it was given.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RelatedObject" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to a data object that relates to this consent.  e.g. the student enrolment record this consent was captured as part of.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AdditionalInformation" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation> Additional free text information provided about the consent.</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="StudentConsent" type="StudentConsentType">
    <xs:key name="StudentConsentKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentConsentRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StudentConsentCollectionType">
    <xs:sequence>
      <xs:element name="StudentConsent" type="StudentConsentType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentConsents" type="StudentConsentCollectionType" />


  <!--TeachingGroup-->

  <xs:complexType name="TeachingGroupType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Medium</privacyRating>
      </xs:appinfo>
      <xs:documentation>Identifies a particular class or other group of students.  Such groups 
        can have multiple staff assigned in a variety of roles, may be assigned students from multiple year levels
        and may be taught multiple courses.
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TeachingGroupRefId" 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="TeachingGroupLocalId" 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="ShortName" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Short free format label that describes the group.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LongName" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Longer description if required.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GroupType" minOccurs="0" nillable="true" type="NZCodeSetsTeachingGroupTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Provides the means of identifying the type of group such as roll class or subject class 
        for instance and treat them accordingly.</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>RefId  of the Provider who defines the TeachingGroup. Either RefId or LocalId must be provided.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TeachingProvider" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>RefId of the Provider who actually teaches the TeachingGroup. Only present when the teaching provider is not the defining provider.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ScheduleTerm" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>The term that the teaching groups run for, e.g. Term 1, Full Year etc.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StudentList" minOccurs="0" nillable="true" type="StudentListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>List of Students in this Teaching Group</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TeacherList" minOccurs="0" nillable="true" type="StaffListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>A List of staff associated with the group –  may or may not include the teacher timetabled in the schedule.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CourseList" minOccurs="0" nillable="true" type="CourseListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>List of generic references denoting the Courses the TeachingGroup is being taught.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubjectAreaList" minOccurs="0" nillable="true" type="SubjectAreaListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>List of codes denoting the Learning or Subject Areas of the Course the TeachingGroup is being taught.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="YearLevelList" minOccurs="0" nillable="true" type="YearLevelListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>For Subject Class teaching groups: the list of codes denoting the Year Levels
        of the Course the TeachingGroup is being taught.</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="TeachingGroup" type="TeachingGroupType">
    <xs:key name="TeachingGroupKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./TeachingGroupRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="TeachingGroupCollectionType">
    <xs:sequence>
      <xs:element name="TeachingGroup" type="TeachingGroupType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="TeachingGroups" type="TeachingGroupCollectionType" />


  <!--ProviderCourse-->

  <xs:complexType name="ProviderCourseType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>A Provider defined Course that Students enrol in, and may be assessed for, and achieve passes in.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ProviderCourseRefId" 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="ProviderCourseLocalId" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</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="Provider" type="ProviderObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the Provider (school) that defines and offers the Course.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Curriculum" type="NZCodeSetsCurriculumType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Which of New Zealand's three Curricula is covered by the Course.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubjectAreaList" minOccurs="0" nillable="true" type="SubjectAreaListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Subject matter areas covered by the Course.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="YearLevelList" minOccurs="0" nillable="true" type="YearLevelListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Year Levels covered by the Course.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Title" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Title of the Course.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Description" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Textual description of the Course.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Duration" minOccurs="0" nillable="true" type="xs:unsignedInt">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The number of weeks the course is taught for.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Credits" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The number of credits awarded upon Course completion.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LanguageOfInstructionList" minOccurs="0" nillable="true" type="LanguageOfInstructionListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The language of instruction for the Course.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NZQAShortCOurseInd" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicator to advise NZQA that course does not have sufficient credits for endorsement.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LearningStandardList" minOccurs="0" nillable="true" type="LearningStandardListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of references to LearningStandard data objects that students are assessed against as part of the Course</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CredentialList" minOccurs="0" nillable="true" type="CredentialListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of ObjectReferences to the Credentials that may be gained by students completing the course.</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="ProviderCourse" type="ProviderCourseType">
    <xs:key name="ProviderCourseKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./ProviderCourseRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="ProviderCourseCollectionType">
    <xs:sequence>
      <xs:element name="ProviderCourse" type="ProviderCourseType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ProviderCourses" type="ProviderCourseCollectionType" />


  <!--LearningStandard-->

  <xs:complexType name="LearningStandardType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>A curriculum standard or the like published by a national body, professional association or 
      other interested party. The LearningStandard describes a set of learning that students are 
      expected to undertake.
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="LearningStandardRefId" minOccurs="0" nillable="true" type="LocalIdType">
        <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="LearningStandardLocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code assigned by the LearningStandard publisher to identify the LearningStandard.  This may
       not uniquely identify the LearningStandard, where there may be multiple editions or versions
       of a particular LearningStandard. 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="Title" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name of the LearningStandard. eg: "Demonstrate understanding of chemical reactivity"</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Number" minOccurs="0" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A unique number that is used to identify the learning standard. One use of this is for NZQA standard numbers which 
        cannot be used as a unique identifier (in LocalId) on their own as they are versioned so are part of a composite key
       with VersionNo.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="VersionNo" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The version number of the LearningStandard.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Publisher" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the EducationOrganisation that published the LearningStandard</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StandardType" minOccurs="0" nillable="true" type="NZCodeSetsLearningStandardTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code denoting the type of LearningStandard.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LearningStandardFamily" minOccurs="0" nillable="true" type="NZCodeSetsLearningStandardFamilyType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The family the learning standard is part of.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Description" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Description of the standards document.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubjectAreaList" type="SubjectAreaListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Which standard MoE Learning / Subject Areas is this LearningStandard part of?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Status" minOccurs="0" nillable="true" type="NZCodeSetsLearningStandardStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A code denoting the current status of the LearningStandard, as set by the Publisher.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PublicationDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the publishing organization published the standard.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SupercededDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the publishing organization superceded (or will supercede) 
      the LearningStandard. May be future dated.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DiscontinuedDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the publishing organization discontinued (or will discontinue) 
        the LearningStandard.  May be future dated.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Credits" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The number of course (or other qualification) credits that will be 
        achieved by passing this LearningStandard.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Level" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Where the publisher is NZQA, Which NCEA Level applies to the LearningStandard?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessmentType" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code denoting how the LearningStandard is assessed.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RelatedLearningStandardList" minOccurs="0" nillable="true" type="RelatedLearningStandardsListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of related LearningStandard references</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CredentialList" minOccurs="0" nillable="true" type="CredentialListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of Credentials that the learning standard contributes to attaining.</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="LearningStandard" type="LearningStandardType">
    <xs:key name="LearningStandardKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./LearningStandardRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="LearningStandardCollectionType">
    <xs:sequence>
      <xs:element name="LearningStandard" type="LearningStandardType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="LearningStandards" type="LearningStandardCollectionType" />


  <!--Credential-->

  <xs:complexType name="CredentialType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>A qualification or other award published by a national body, professional association or 
      other interested party. The Credential recognises a set of learning that students have undertaken
      and successfully completed.
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="CredentialRefId" 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="CredentialLocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code assigned by the Credential administrator to identify the CreLocalIddential.  This may not uniquely identify the Credential, where there may be multiple editions or versions of a particular Credential. 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="Title" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name of the Credential. eg: "NCEA Level 1"</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="VersionNo" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The version number of the Credential.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Administrator" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the Provider or Organisation that administers the Credential</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Description" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Description of the credential</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubjectAreaList" minOccurs="0" nillable="true" type="SubjectAreaListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Which standard MoE Learning / Subject Areas is this Credential part of?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Status" minOccurs="0" nillable="true" type="NZCodeSetsCredentialStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A code denoting the current status of the Credential, as set by the Administrator.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PublicationDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>This is the date that the administering organization published the Credential.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SupercededDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the administering organization superceded (or will supercede) 
      the Credential. May be future dated.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DiscontinuedDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the administering organization discontinued (or will discontinue) 
        the Credential.  May be future dated.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Credits" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The number of course (or other qualification) credits that will be 
        achieved by attaining this Credential.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Level" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The level of the credential if applicable, eg. 1,2 or 3 for NCEA levels</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RelatedLearningStandardList" minOccurs="0" nillable="true" type="RelatedLearningStandardsListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of related LearningStandard references</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="Credential" type="CredentialType">
    <xs:key name="CredentialKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./CredentialRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="CredentialCollectionType">
    <xs:sequence>
      <xs:element name="Credential" type="CredentialType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Credentials" type="CredentialCollectionType" />


  <!--StudentProviderEnrolment-->

  <xs:complexType name="StudentProviderEnrolmentType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>High</privacyRating>
      </xs:appinfo>
      <xs:documentation>A student's association with an education provider for the purpose of receiving
				educational servics.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentProviderEnrolmentRefId" 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="StudentProviderEnrolmentLocalId" 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>Generic object reference to the Student enrolling at the Provider</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>Generic object reference to the education Provider, eg school.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StudentId" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>A unique identifier assigned to a Student for a period of enrolment by a provider.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EntryDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date from when this enrolment is ACTIVE. The date
			of the student’s first attendance at the provider. If
			future dated, then the intended first attendance date of
			the enrolment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExitDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date of a student’s last attendance at the provider.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Status" minOccurs="0" nillable="true" type="NZCodeSetsProviderEnrolmentStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The status of the enrolment WiP</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Exit" minOccurs="0" nillable="true" type="ProviderExitType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Details of the reasons, and interventions leading up to the student's enrolment being terminated.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ECEEducationHistoryList" minOccurs="0" nillable="true" type="ECEEducationHistoryListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The list of the types of early childhood education the parent told a primary
			 school that the student received and the hours per week and/or day the student attended.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EarlyChildhoodEnrolment" minOccurs="0" nillable="true" type="StudentECEEnrolmentType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Properties of an enrolment in an early childhood service (WiP).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchoolEnrolmentList" minOccurs="0" nillable="true" type="StudentSchoolEnrolmentListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Properties of an enrolment in a school</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TertiaryEducationEnrolment" minOccurs="0" nillable="true" type="StudentTertiaryEnrolmentType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Properties of an enrolment in a Tertiary Education service (WiP).</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="StudentProviderEnrolment" type="StudentProviderEnrolmentType">
    <xs:key name="StudentProviderEnrolmentKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentProviderEnrolmentRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StudentProviderEnrolmentCollectionType">
    <xs:sequence>
      <xs:element name="StudentProviderEnrolment" type="StudentProviderEnrolmentType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentProviderEnrolments" type="StudentProviderEnrolmentCollectionType" />


  <!--StudentTeachingGroupEnrolment-->

  <xs:complexType name="StudentTeachingGroupEnrolmentType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>High</privacyRating>
      </xs:appinfo>
      <xs:documentation>Records a student's arrival to and departure from a TeachingGroup.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentTeachingGroupEnrolmentRefId" 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="StudentTeachingGroupEnrolmentLocalId" 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="Status" type="NZCodeSetsStudentTeachingGroupEnrolmentStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>States whether or not this is an inactive or active TeachingGroup enrolment.</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>Generic object reference to the Student enrolling in the TeachingGroup</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>Generic object reference to the education Provider, eg school, that has the TeachingGroup</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TeachingGroup" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the TeachingGroup the student is enroling in.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the Student's enrolment in the teaching group starts.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date of a student’s enrolment in the teaching group ends.</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="StudentTeachingGroupEnrolment" type="StudentTeachingGroupEnrolmentType">
    <xs:key name="StudentTeachingGroupEnrolmentKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentTeachingGroupEnrolmentRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StudentTeachingGroupEnrolmentCollectionType">
    <xs:sequence>
      <xs:element name="StudentTeachingGroupEnrolment" type="StudentTeachingGroupEnrolmentType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentTeachingGroupEnrolments" type="StudentTeachingGroupEnrolmentCollectionType" />


  <!--Schedule-->

  <xs:complexType name="ScheduleType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>A rotation of ScheduleAcademicDays that a Provider has in place to manage their timetable.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ScheduleRefId" minOccurs="0" nillable="true" type="RefIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation> The ID (GUID) assigned to uniquely identify this Schedule.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ScheduleLocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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="ScheduleName" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name of the schedule.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>The start date of the schedule.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>The end date of the schedule.</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>The provider the schedule is for.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AcademicDayList" type="AcademicDayListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the academic days within this schedule.</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="Schedule" type="ScheduleType">
    <xs:key name="ScheduleKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./ScheduleRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="ScheduleCollectionType">
    <xs:sequence>
      <xs:element name="Schedule" type="ScheduleType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Schedules" type="ScheduleCollectionType" />


  <!--ScheduleAcademicDay-->

  <xs:complexType name="ScheduleAcademicDayType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>
			An academic day that makes up all or part of a schedule for a
			provider. An academic day represents a structured day that
			reoccurs consistently e.g. Day A has five periods that occurs
			Mon-Wed and Day B has four periods and occurs Thurs-Fri.
		</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ScheduleAcademicDayRefId" 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="ScheduleAcademicDayLocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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="AcademicDayName" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name of the Academic Day.</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>The provider the academic day belongs to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Schedule" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The provider schedule the academic day belongs to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="BellSchedule" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The bell schedule the academic day is following.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PeriodList" type="PeriodListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of periods that make up this academic day, e.g. Period 1, Period 2 etc.</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="ScheduleAcademicDay" type="ScheduleAcademicDayType">
    <xs:key name="ScheduleAcademicDayKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./ScheduleAcademicDayRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="ScheduleAcademicDayCollectionType">
    <xs:sequence>
      <xs:element name="ScheduleAcademicDay" type="ScheduleAcademicDayType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ScheduleAcademicDays" type="ScheduleAcademicDayCollectionType" />


  <!--SchedulePeriod-->

  <xs:complexType name="SchedulePeriodType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>
			Defines the periods that take place within one or more academic days.  Periods
			are assigned to particular days in the Schedule in SchduleAcademicDay.PeriodList
		</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SchedulePeriodRefId" 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="SchedulePeriodLocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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="PeriodName" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name of the schedule period.</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>The provider the schedule period belongs to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Schedule" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The provider schedule the schedule period belongs to.</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="SchedulePeriod" type="SchedulePeriodType">
    <xs:key name="SchedulePeriodKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./SchedulePeriodRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="SchedulePeriodCollectionType">
    <xs:sequence>
      <xs:element name="SchedulePeriod" type="SchedulePeriodType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SchedulePeriods" type="SchedulePeriodCollectionType" />


  <!--BellSchedule-->

  <xs:complexType name="BellScheduleType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>
			Defines bell schedules, each of which is a collection of periods
			within an academic day with start and end times associated. These bell
			schedules are assigned to calendar dates
			on which the school is in session using ScheduleDate in order to
			specify the school schedule on those dates. These bell schedules
			should generally only be used to define standard day
			types. Exception days (unless they repeat multiple times and
			follow a common template) are defined using ScheduleEvent and
			ScheduleCustomDayEvent.
		</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="BellScheduleRefId" 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="BellScheduleLocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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="BellScheduleName" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name of the Bell Schedule.</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>The provider the bell schedule belongs to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Schedule" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The provider schedule the bell schedule belongs to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchedulePeriodList" type="SchedulePeriodTimeListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of periods that make up this academic day, e.g. Period 1, Period 2 etc.</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="BellSchedule" type="BellScheduleType">
    <xs:key name="BellScheduleKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./BellScheduleRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="BellScheduleCollectionType">
    <xs:sequence>
      <xs:element name="BellSchedule" type="BellScheduleType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="BellSchedules" type="BellScheduleCollectionType" />


  <!--ScheduleTerm-->

  <xs:complexType name="ScheduleTermType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>Provides information about school terms, tertiary terms etc.,
			either at a national, or provider level, within a school
			year. If the term is being supplied at a national level, no
			provider information will be linked.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ScheduleTermRefId" 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="ScheduleTermLocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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="TermName" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name of the schedule term.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Provider" minOccurs="0" nillable="true" type="ProviderObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The provider the schedule term applies to, ommitted if it applies to all providers.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchoolYear" type="xs:gYear">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The school year the Term is part of.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The start date of the term</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The end date of the term</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="ScheduleTerm" type="ScheduleTermType">
    <xs:key name="ScheduleTermKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./ScheduleTermRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="ScheduleTermCollectionType">
    <xs:sequence>
      <xs:element name="ScheduleTerm" type="ScheduleTermType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ScheduleTerms" type="ScheduleTermCollectionType" />


  <!--ScheduleHoliday-->

  <xs:complexType name="ScheduleHolidayType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>Provides information about a holiday that may or may not impact upon the schedule of a provider.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ScheduleHolidayRefId" 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="ScheduleHolidayLocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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="Provider" minOccurs="0" nillable="true" type="ProviderObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The provider the ScheduleHoliday relates to. Not populated if it is a National
			 Holiday that applies to all providers.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HolidayDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date of the holiday</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HolidayName" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name of the holiday.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HolidayLongName" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The long description of the holiday, if there is one.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AlwaysDisplayFlag" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Display the holiday name even if an academic ScheduleDate record is defined for this date for a school.</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="ScheduleHoliday" type="ScheduleHolidayType">
    <xs:key name="ScheduleHolidayKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./ScheduleHolidayRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="ScheduleHolidayCollectionType">
    <xs:sequence>
      <xs:element name="ScheduleHoliday" type="ScheduleHolidayType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ScheduleHolidays" type="ScheduleHolidayCollectionType" />


  <!--ScheduleDate-->

  <xs:complexType name="ScheduleDateType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>
			Provides information about the schedule that is being followed on a
			specific calendar date at a particular Provider, e.g. Academic Day A from the Term 1
			Schedule using the Periods and their start and end times defined
			in Bell Schedule Day A.
		</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ScheduleDateRefId" 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="ScheduleDateLocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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="CalendarDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The actual date the school is in session.</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>The provider, e.g. school, tertiary institution etc, that this schedule date record belongs to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Term" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The Term in session on this calendar date.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Schedule" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The schedule within the provider to which this ScheduleDate applies.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AcademicDay" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The academic day from the schedule that is taking place on this calendar date.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="BellSchedule" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The bell schedule that the provider used on this calendar date.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TeachingGroupEventList" minOccurs="0" nillable="true" type="TeachingGroupEventListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>List of generic object references to the set of TeachingGroupEvents that take place on this calendar date.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchedulePeriodList" minOccurs="0" nillable="true" type="SchedulePeriodTimeListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the periods that took place on this scheduled date and their start and end times.</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="ScheduleDate" type="ScheduleDateType">
    <xs:key name="ScheduleDateKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./ScheduleDateRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="ScheduleDateCollectionType">
    <xs:sequence>
      <xs:element name="ScheduleDate" type="ScheduleDateType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ScheduleDates" type="ScheduleDateCollectionType" />


  <!--TeachingGroupEvent-->

  <xs:complexType name="TeachingGroupEventType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>Defines a single SchedulePeriod in a Schedule where the TeachingGroup meets.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TeachingGroupEventRefId" 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="TeachingGroupEventLocalId" 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="Provider" type="ProviderObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the Provider defining the TeachingGroup.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TeachingGroup" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the TeachingGroup that is meeting.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Schedule" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the Provider Schedule defining when the TeachingGroup meets.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchedulePeriod" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the SchedulePeriod that the TeachingGroup meets.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AcademicDay" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the ScheduleAcademicDay that the TeachingGroup meets.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RoomId" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>The Id of the room the teaching group is meeting in.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RoomName" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name of the room the teaching group is meeting in.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TakeAttendanceFlag" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates whether or not attendance should be taken for this teaching group event.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TeacherList" minOccurs="0" nillable="true" type="StaffListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>List of the teacher(s) teaching the class during this timetable event.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CourseList" minOccurs="0" nillable="true" type="CourseListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>The list of Courses that is being taught to the teaching group at this event.</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="TeachingGroupEvent" type="TeachingGroupEventType">
    <xs:key name="TeachingGroupEventKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./TeachingGroupEventRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="TeachingGroupEventCollectionType">
    <xs:sequence>
      <xs:element name="TeachingGroupEvent" type="TeachingGroupEventType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="TeachingGroupEvents" type="TeachingGroupEventCollectionType" />


  <!--ScheduleEvent-->

  <xs:complexType name="ScheduleEventType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>Defines events that may or may not impact the schedule. These
			events may simply be for display, or may affect the schools
			academic schedule.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ScheduleEventRefId" 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="ScheduleEventLocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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="Provider" type="ProviderObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The provider at which this event will occur</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EventDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The start date of the event.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EventEndDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The end date of the event.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Duration" minOccurs="0" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The duration of the event. If only the "EventDate" field is
			populated, the duration is in days and if omitted defaults to 1
			day; if the "EventDate" and "EventTime" fields are both
			populated, the duration is in seconds and if omitted defaults to
			3600 seconds (1 hour).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EventTime" minOccurs="0" nillable="true" type="xs:time">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The start time for the event, if required.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EventName" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name of the event.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Location" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name of location where the event will occur.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ScheduleEffect" type="NZCodeSetsScheduleEffectType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code denoting the effect of this ScheduleEvent on the school schedule.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ScheduleList" minOccurs="0" nillable="true" type="ScheduleListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>List of the schedules within the provider which the event
			will affect. If this event is to affect the school's academic
			schedule this field is required, otherwise it is optional.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ScheduleDayList" minOccurs="0" nillable="true" type="ScheduleDayListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of one or more academic days to be applied to the
			school calendar for the duration of this event. </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RemoveScheduleDayList" minOccurs="0" nillable="true" type="ScheduleDayListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of one or more academic days to be removed from the
			school calendar for the duration of this event. Generally only
			operates with a Schedule Effect of "add" or "custom".</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="BellScheduleList" minOccurs="0" nillable="true" type="BellScheduleListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of one or more bell schedules to be applied to the school calendar for the duration of this event.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RemoveBellScheduleList" minOccurs="0" nillable="true" type="BellScheduleListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of one or more bell schedules to be removed from the
			school calendar for the duration of this event. Generally only
			operates with a Schedule Effect of "add" or "custom".</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ScheduleTermList" minOccurs="0" nillable="true" type="ScheduleTermListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of one or more terms to be affected by this
			event. WARNING: Terms should only be specified for events that
			affect the scheduling of terms. Setting Terms on other event can
			have a disruptive effect on the school schedule.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CustomPeriodList" minOccurs="0" nillable="true" type="ScheduleCustomDayPeriodListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of generic object references to a set of
			SchedulePeriods, along with their custom start and end times,
			which are part of a 'CUSTOM' ScheduleEvent.</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="ScheduleEvent" type="ScheduleEventType">
    <xs:key name="ScheduleEventKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./ScheduleEventRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="ScheduleEventCollectionType">
    <xs:sequence>
      <xs:element name="ScheduleEvent" type="ScheduleEventType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ScheduleEvents" type="ScheduleEventCollectionType" />


  <!--StudentAttendanceSummary-->

  <xs:complexType name="StudentAttendanceSummaryType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>Provides a summary of a student's daily attendance and membership information for a given provider during the time period between the StartDate and EndDate, inclusive. There will be multiple instances of this object for a student in a school over the course of a school year. This summary may be generated by aggregating more granular attendance records, in which case all fields will be read-only; and RefId element may not be applicable.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentAttendanceSummaryRefId" 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="StudentAttendanceSummaryLocalId" 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>The ID (GUID) of the student for whom this attendance information is being reported.</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>The SIF ID of the Provider who is recording this attendance information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchoolCalendarYear" type="xs:gYear">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>School year for which the information is applicable.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Starting date of this attendance reporting period.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Ending date of this attendance reporting period.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDay" minOccurs="0" nillable="true" type="xs:unsignedInt">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Number of the school day represented in StartDate.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDay" minOccurs="0" nillable="true" type="xs:unsignedInt">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Number of the school day represented in EndDate.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FTE" minOccurs="0" nillable="true">
        <xs:simpleType>
          <xs:restriction base="xs:decimal">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>Full time equivalent numeric value of the student's course load during this attendance period, expressed in decimal form, where 1.00 represents a full time enrollment.</xs:documentation>
            </xs:annotation>
            <xs:minInclusive value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
            <xs:maxInclusive value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
            <xs:fractionDigits value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="AttendancePercentageHalfDays" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The percentage of half days the student was present when school was in session between the StartDate and EndDate, inclusive. Number of Sessions Present / Total Number of possible sessions = Percentage, e.g. 294/319 = 92.2%.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AttendanceUnjustifiedHalfDays" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The percentage of half days the student had unjustified absences when school was in session between the StartDate and EndDate, inclusive.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HalfDaysYearPresent" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The number of half days the student was present when school was in session between the StartDate and EndDate, inclusive.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HalfDaysYearAbsent" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The number of half days the student was absent when school was in session between the StartDate and EndDate, inclusive.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HalfDaysYearJustified" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The number of half days the student was absent that were justified when school was in session between the StartDate and EndDate, inclusive.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HalfDaysYearTotal" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The total number of half days.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HalfDaysYearIntermittantUnjustified" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The number of days the student was absent from school for an unjustifiable reason when school was in session between the StartDate and EndDate, inclusive, and weren't absence for the complete half-day.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HalfDaysYearPercentagePresent" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The percentage of half days the student was present when school was in session between the StartDate and EndDate, inclusive.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HalfDaysYearUnjustified" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The number of days the student was absent from school for an unjustifiable reason when school was in session between the StartDate and EndDate, inclusive.</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="StudentAttendanceSummary" type="StudentAttendanceSummaryType">
    <xs:key name="StudentAttendanceSummaryKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentAttendanceSummaryRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StudentAttendanceSummaryCollectionType">
    <xs:sequence>
      <xs:element name="StudentAttendanceSummary" type="StudentAttendanceSummaryType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentAttendanceSummarys" type="StudentAttendanceSummaryCollectionType" />


  <!--StudentAttendanceTimeList-->

  <xs:complexType name="StudentAttendanceTimeListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>This object provides more detail about the attendance spans for a single student during the
				day: it provides more detailed information than the single TimeIn and TimeOut elements in
				StudentDailyAttendance.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentAttendanceTimeListRefId" minOccurs="0" nillable="true" type="RefIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <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>The student for whom this attendance time list is being reported.</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>The provider who is providing this attendance time list record.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TeachingGroup" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The teaching group that is reporting this student's attenandce time list.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AttendanceTimeList" type="AttendanceTimeListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Breakdown of times that the student was recorded as being 
				present or absent from school or class.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:element name="StudentAttendanceTimeList" type="StudentAttendanceTimeListType">
    <xs:key name="StudentAttendanceTimeListKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentAttendanceTimeListRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StudentAttendanceTimeListCollectionType">
    <xs:sequence>
      <xs:element name="StudentAttendanceTimeList" type="StudentAttendanceTimeListType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentAttendanceTimeLists" type="StudentAttendanceTimeListCollectionType" />


  <!--WellbeingAlert-->

  <xs:complexType name="WellbeingAlertType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>High</privacyRating>
      </xs:appinfo>
      <xs:documentation>Alert indicating to teachers and systems that this student has a 'concern' that needs
        to be known for 'duty of care', which could be Medical, Legal or other.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WellbeingAlertRefId" 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="WellbeingAlertLocalId" 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>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the student to whom this WellbeingAlert belongs.</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>Generic object reference to the school for which this WellbeingAlert is being reported.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StaffMember" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the staff member that is a key contact for this wellbeing alert.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PublishedDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The calendar date on which this wellbeing alert was published.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the wellbeing alert period commenced.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the wellbeing alert is due to finish.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AlertCategory" minOccurs="0" nillable="true" type="NZCodeSetsWellbeingAlertCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Category of WellbeingAlert.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AlertDescription" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Description of this particular wellbeing alert.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AcknowledgementList" minOccurs="0" nillable="true" type="AcknowledgementListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>Key Contact to get information about this wellbeing alert from.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="KeyContactList" minOccurs="0" nillable="true" type="KeyContactListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of key contacts for the alert.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WellbeingResponseList" minOccurs="0" nillable="true" type="WellbeingResponseListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the Wellbeing Responses that contributed to the creation of this Wellbeing Alert.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WellbeingAppealList" minOccurs="0" nillable="true" type="WellbeingAppealListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the Wellbeing Appeal outcomes that contributed to the creation of this Wellbeing Alert.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WellbeingCharacteristicList" minOccurs="0" nillable="true" type="WellbeingCharacteristicListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the Wellbeing Characteristics that contributed to the creation of this Wellbeing Alert.</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="WellbeingAlert" type="WellbeingAlertType">
    <xs:key name="WellbeingAlertKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./WellbeingAlertRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="WellbeingAlertCollectionType">
    <xs:sequence>
      <xs:element name="WellbeingAlert" type="WellbeingAlertType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="WellbeingAlerts" type="WellbeingAlertCollectionType" />


  <!--WellbeingCharacteristic-->

  <xs:complexType name="WellbeingCharacteristicType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>High</privacyRating>
      </xs:appinfo>
      <xs:documentation>Core Wellbeing Characteristic that is integral to the Student. This may be a Medical
					condition, special needs or a characteristic such as a known disability or any other 
					characteristic or condition that is student specific and impacts their learning.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WellbeingCharacteristicRefId" 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="WellbeingCharacteristicLocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</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>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the student to whom this WellbeingCharacteristic belongs.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RecordingProvider" type="ProviderObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the provider which recorded this Wellbeing Characteristic.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Starting Date for this Characteristic to be noted.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>End date for this Characteristic to be noted, if there is one.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReviewDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Date at which this information should be reviewed.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CharacteristicNotes" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Text relating to the particular WellbeingCharacteristic.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NoteList" minOccurs="0" nillable="true" type="NoteListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of notes that have been written about the wellbeing characteristic.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Classification" type="NZCodeSetsWellbeingCharacteristicClassType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Top most category of WellbeingCharacteristic.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Category" type="NZCodeSetsWellbeingCharacteristicCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Category of WellbeingCharacteristic.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubCategory" minOccurs="0" nillable="true" type="NZCodeSetsWellbeingCharacteristicSubCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Sub category of the WellbeingCharacteristic.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubSubCategory" minOccurs="0" nillable="true" type="NZCodeSetsWellbeingCharacteristicSubSubCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>An additional layer to provide more detail around a wellbeing characteristic sub category. For examples for the learner’s 
      support need sub category, e.g. if the support need of ‘Vision’ is selected for the user, the sub needs ‘Low Vision’ and ‘Blind’ 
      are available to further define the type of vision issue the learner has. Not all support needs have sub needs.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubCategoryDetail" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Additional detail about a sub category.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CharacteristicPriority" minOccurs="0" nillable="true" type="NZCodeSetsWellbeingCharacteristicPriorityType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The priority of the characteristic in relation to other characteristics within the same classification.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CaseLead" minOccurs="0" nillable="true" type="NZCodeSetsLearningSupportCaseLeadType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The Agency taking the lead on the learning support need case, e.g. MOE, Police, Corrections etc.)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CaseLeadOtherDesc" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text describing the Case Lead Agency when a Case Lead of 'Other' is selected.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CaseLeadContactPerson" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name of the contact person for the Case Lead Agency.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DailyManagement" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="EmergencyManagement" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="EmergencyResponsePlan" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="Trigger" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="ConfidentialFlag" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Flag indicating if the characteristic is confidential or not.  If ‘Y’ should not be shared with any other system/school.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Alert" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Create an Alert for this Characteristic?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MedicationList" minOccurs="0" nillable="true" type="MedicationListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="DocumentList" minOccurs="0" nillable="true" type="DocumentListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Describes the Location of any associated documents kept in relation to this Characteristic.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WellbeingEventList" minOccurs="0" nillable="true" type="WellbeingEventListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of any Wellbeing Events that have arisen as a result of this Characteristic.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WellbeingAlertList" minOccurs="0" nillable="true" type="WellbeingAlertListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of any Wellbeing Alerts that have arison as a result of this Chracteristic.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SpecialAssessmentConditionList" minOccurs="0" nillable="true" type="SpecialAssessmentConditionListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the special assessment conditions that a student is entitled to have when sitting an assessment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Status" minOccurs="0" nillable="true" type="NZCodeSetsWellbeingCharacteristicStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The staus of the Wellbeing Characteristic.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MedicalCharacteristicDesc" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text providing additional information about a medical need of a student. Especially when a medical need of 'Other' is selected.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OfficialDiagnosis" 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 an official diagnosis that pertains to this Wellbeing Characteristic.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OfficialDiagnosisList" minOccurs="0" nillable="true" type="OfficialDiagnosisListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of official diagnoses that pertains to this wellbeing characteristic. At least one diagnosis is required if OfficialDiagnosis = '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 wellbeing characteristic in regards to the student 's interests, goals, and voice (comments, opinions).</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: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:sequence>
  </xs:complexType>

  <xs:element name="WellbeingCharacteristic" type="WellbeingCharacteristicType">
    <xs:key name="WellbeingCharacteristicKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./WellbeingCharacteristicRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="WellbeingCharacteristicCollectionType">
    <xs:sequence>
      <xs:element name="WellbeingCharacteristic" type="WellbeingCharacteristicType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="WellbeingCharacteristics" type="WellbeingCharacteristicCollectionType" />


  <!--WellbeingEvent-->

  <xs:complexType name="WellbeingEventType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>High</privacyRating>
      </xs:appinfo>
      <xs:documentation>Record of an event happening that impacts on a school's duty of care to its students.
					The event records both 'positive' and 'negative' behaviours and is not just the recording
					of a discipline incident or an accident.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WellbeingEventRefId" 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="WellbeingEventLocalId" 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>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Object reference to the student to whom this WellbeingEvent belongs.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReportingProvider" type="ProviderObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Object reference to the provider for which this WellbeingEvent is being reported.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PhysicalRestraint" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Object reference tothe StudentPhysicalRestraint if it was administered to the student as part of this WellbeingEvent.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EventNotes" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Text relating to the particular WellbeingEvent.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PossibleMotivationList" minOccurs="0" nillable="true" type="PossibleMotivationListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the possible motivations that triggered the event.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EventCategoryClass" minOccurs="0" nillable="true" type="NZCodeSetsWellbeingEventCategoryClassType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Category of WellbeingEvent.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EventCategoryList" minOccurs="0" nillable="true" type="WellbeingEventCategoryListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>List of Categories of WellbeingEvent.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReportingStaffMember" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Object refernece to the staff member who logged the Wellbeing Event record.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EventLocationList" minOccurs="0" nillable="true" type="EventLocationListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the locations where the incident took place.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EventLocationDescription" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>Details of Event Location.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EventCreationTimeStamp" minOccurs="0" nillable="true" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Date and time of the WellbeingEvent record creation.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EventDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The calendar date on which this WellbeingEvent occured.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EventTime" minOccurs="0" nillable="true" type="xs:time">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The time when WellbeingEvent occured.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EventDescription" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>A description of the WellbeingEvent.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EventTimePeriod" minOccurs="0" nillable="true" type="NZCodeSetsWellbeingEventTimePeriodType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Time period of when the event occurred.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ConfidentialFlag" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Flag indicating if the incident is confidential or not.  If ‘Y’ should not be shared with any other system/school.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PersonInvolvementList" minOccurs="0" nillable="true" type="PersonInvolvementListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>List of People involved in the Wellbeing event.  Mandatory if more people than the student to which this event occurs is involved.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Status" minOccurs="0" nillable="true" type="NZCodeSetsWellbeingStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Current Status.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="BehaviourIdentifiedList" minOccurs="0" nillable="true" type="BehaviourIdentifiedListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the problem behaviours identified for the student as a result of the Wellbeing Event. There are both minor and major behaviours.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RestraintType" minOccurs="0" nillable="true" type="NZCodeSetsWellbeingEventRestraintTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The StudentPhysicalRestraint if it was administered to the student as part of this WellbeingEvent.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ActionTakenList" minOccurs="0" nillable="true" type="ActionTakenListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the actions taken as a result of this WellbeingEvent.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocumentList" minOccurs="0" nillable="true" type="DocumentListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Describes the Location of any associated documents kept in relation to this Response.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RelatedWellbeingEventList" minOccurs="0" nillable="true" type="RelatedWellbeingEventListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>A Wellbeing Event gets created for every student involved in an event. This list links together all related Wellbeing Events.</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="WellbeingEvent" type="WellbeingEventType">
    <xs:key name="WellbeingEventKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./WellbeingEventRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="WellbeingEventCollectionType">
    <xs:sequence>
      <xs:element name="WellbeingEvent" type="WellbeingEventType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="WellbeingEvents" type="WellbeingEventCollectionType" />


  <!--WellbeingResponse-->

  <xs:complexType name="WellbeingResponseType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>High</privacyRating>
      </xs:appinfo>
      <xs:documentation>A record of the outcome and follow ups generated by a WellbeingEvent</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WellbeingResponseRefId" 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="WellbeingResponseLocalId" 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>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Object reference to the student to whom this WellbeingResponse belongs.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Provider" type="ProviderObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Object reference to the provider for which this WellbeingResponse is being reported.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PublishedDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The calendar date on which this WellbeingResponse was published.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the WellbeingResponse period commenced.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the WellbeingResponse is due to finish.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ResponseStatus" minOccurs="0" nillable="true" type="NZCodeSetsWellbeingStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The current status of the response to the wellbeing event.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ResponseCategory" minOccurs="0" nillable="true" type="NZCodeSetsWellbeingResponseCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Category of WellbeingResponse.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ResponseNotes" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Text relating to the particular WellbeingResponse.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PersonInvolvementList" minOccurs="0" nillable="true" type="PersonInvolvementListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>List of People involved in the Wellbeing Event/Response. Mandatory if more people than the student to which this event/response occurs is involved.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Suspension" minOccurs="0" nillable="true" type="SuspensionContainerType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Container for details of a Suspension or Expulsion.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Detention" minOccurs="0" nillable="true" type="DetentionContainerType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Container for details of a Detention.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlanRequiredList" minOccurs="0" nillable="true" type="PlanRequiredListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>List of plans that are required to be generated as part of the WellbeingResponse</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Award" minOccurs="0" nillable="true" type="AwardContainerType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Container for details of an Award.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OtherResponse" minOccurs="0" nillable="true" type="OtherWellbeingResponseContainerType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Container for details of another type of Response.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocumentList" minOccurs="0" nillable="true" type="DocumentListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Describes the Location of any associated documents kept in relation to this Response.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WellbeingAlert" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The ID (GUID) of the Wellbeing Alert that was generated in response to this WellbeingResponse.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WellbeingEvent" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The ID (GUID) of the WellbeingEvent this WellbeingResponse is for.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WellbeingAppealList" minOccurs="0" nillable="true" type="WellbeingAppealListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of any appeals that have been made in relation to this Wellbeing Response.</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="WellbeingResponse" type="WellbeingResponseType">
    <xs:key name="WellbeingResponseKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./WellbeingResponseRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="WellbeingResponseCollectionType">
    <xs:sequence>
      <xs:element name="WellbeingResponse" type="WellbeingResponseType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="WellbeingResponses" type="WellbeingResponseCollectionType" />


  <!--WellbeingAppeal-->

  <xs:complexType name="WellbeingAppealType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>High</privacyRating>
      </xs:appinfo>
      <xs:documentation>Records detail of any "appeal" or "request" made by involved parties in regard to a negative/punitive Wellbeing Response that was the result of a student Wellbeing Event.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WellbeingAppealRefId" minOccurs="0" nillable="true" type="RefIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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="WellbeingAppealLocalId" 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>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the student to whom this WellbeingAppeal belongs.</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>Generic object reference to the school for which this WellbeingAppeal is being reported.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WellbeingResponse" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the WellbeingResponse for which this WellbeingAppeal is in response to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WellbeingAlert" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the WellbeingAlert this WellbeingAppeal's outcome has triggered.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AppealStatus" minOccurs="0" nillable="true" type="NZCodeSetsWellbeingAppealStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The status of WellbeingAppeal.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RegisteredDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The calendar date on which this WellbeingAppeal was registered.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AppealNotes" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Text relating to the particular WellbeingAppeal.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AppealOutcome" minOccurs="0" nillable="true" type="NZCodeSetsWellbeingAppealOutcomeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The outcome of the appeal.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AppealDeterminationBy" minOccurs="0" nillable="true" type="NZCodeSetsAppealDeterminationByType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The type of individual or group that determined the appeal outcome.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocumentList" minOccurs="0" nillable="true" type="DocumentListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Describes the Location of any associated documents kept in relation to this Appeal.</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="WellbeingAppeal" type="WellbeingAppealType">
    <xs:key name="WellbeingAppealKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./WellbeingAppealRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="WellbeingAppealCollectionType">
    <xs:sequence>
      <xs:element name="WellbeingAppeal" type="WellbeingAppealType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="WellbeingAppeals" type="WellbeingAppealCollectionType" />


  <!--StudentActivityParticipation-->

  <xs:complexType name="StudentActivityParticipationType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>
      This object provides information on a co-curricular or extra-curricular activity in which a student participates during a given school year.
    </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentActivityParticipationRefId" 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="StudentActivityParticipationLocalId" 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>Generic object reference to the student participating in the activity. </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>Generic object reference to the Provider running the activity the student is participating in, e.g. schools.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ActivityGroup" minOccurs="0" nillable="true" type="NZCodeSetsStudentActivityGroupType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Standard codes denoting the group of the activity the student is participating in, e.g. sport, art, cultural, music.
      </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ActivityType" minOccurs="0" nillable="true" type="NZCodeSetsStudentActivityTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Standard codes denoting the type of activity the student is participating in, e.g. rugby, drama, Kapa Haka, Violin.
      </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ActivityName" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name of the activity the student participated in.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LearningArea" minOccurs="0" nillable="true" type="NZCodeSetsLearningAreaType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The learning area the student activity the student is participating in relates to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ParticipationComment" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Comment related to the student's participation in the activity. </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>This is the date from which the activity participation is valid (inclusive). </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>This is the date through which the activity participation is
      valid (inclusive). If element is supported by the
      publisher/responder, should contain a date if the student
      withdraws from the activity before the end of the school
      year. </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Role" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Specific role the student plays in the activity (e.g., band leader, student body president). </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RecognitionList" minOccurs="0" nillable="true" type="RecognitionListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>List of awards and other types of recognition given to the student for this activity. </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="StudentActivityParticipation" type="StudentActivityParticipationType">
    <xs:key name="StudentActivityParticipationKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentActivityParticipationRefId" />
    </xs:key>
  </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" />


  <!--StudentPhysicalRestraint-->

  <xs:complexType name="StudentPhysicalRestraintType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>
        Provides information about an incident where staff members or other parties used physical restraint on a child. 
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentPhysicalRestraintRefId" 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="StudentPhysicalRestraintLocalId" 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="Provider" type="ProviderObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the provider under whose supervision the student was, at the time the physical restraint incient occured.</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>Generic object refernece to the student to whom the physical restraint was applied.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PrincipalOrDelegate" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the StaffPersonal object of the Principal or their delegate who oversaw the recording of the physical restraint incident.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WellbeingEvent" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the Wellbeing Event created for the student the physical reatrint was used on.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ConsideredNecessaryReason" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text description on why the physical restraint of the student was considered necessary.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FirstTimeStudentRestrained" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates whether or not this was the first time the student was restrained.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IncidentDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the physical restraint was used on the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LocationDescription" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text description of the location the physical restraint of the student occurred in.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OtherComment" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Any other comments on the physical restraint incident.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReportedDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the use of physical restraint on the student was report.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RestraintEndedTime" minOccurs="0" nillable="true" type="xs:time">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The time the physical restraint stopped being used.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RestraintStartedTime" minOccurs="0" nillable="true" type="xs:time">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The time the physical restraint started being used.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RestraintReason" minOccurs="0" nillable="true" type="NZCodeSetsRestraintReasonType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The reason the physical restraint was applied to the child.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocumentList" minOccurs="0" nillable="true" type="DocumentListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Describes the Location of any associated documents kept in relation to this physical restraint incident.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RestraintWitnessList" minOccurs="0" nillable="true" type="RestraintWitnessListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the people that witnessed the physical constraint.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RestraintAdministeredByList" minOccurs="0" nillable="true" type="RestraintAdministeredByListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the people who administered the physical restraint to the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="BehaviourDirectedAtList" minOccurs="0" nillable="true" type="BehaviourDirectedAtListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The list of the people and/or property that the student, who was restrained, was directing their behaviour at.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StaffReflectionList" minOccurs="0" nillable="true" type="StaffReflectionListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the reflections made by the staff members who applied the physical restraint.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RestraintDebriefingList" minOccurs="0" nillable="true" type="RestraintDebriefingListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the debriefings that took place after the physical restraint incident occurred.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RestraintQuestionList" minOccurs="0" nillable="true" type="RestraintQuestionListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of questions and their answers about the physical restraint incident.</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="StudentPhysicalRestraint" type="StudentPhysicalRestraintType">
    <xs:key name="StudentPhysicalRestraintKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentPhysicalRestraintRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StudentPhysicalRestraintCollectionType">
    <xs:sequence>
      <xs:element name="StudentPhysicalRestraint" type="StudentPhysicalRestraintType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentPhysicalRestraints" type="StudentPhysicalRestraintCollectionType" />


  <!--StudentVoice-->

  <xs:complexType name="StudentVoiceType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Medium</privacyRating>
      </xs:appinfo>
      <xs:documentation>A record of a student's interests as well as their social, academic and 
		academic goals.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentVoiceRefId" minOccurs="0" nillable="true" type="RefIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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="StudentVoiceLocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</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>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to The GUID for the student's StudentPersonal record.</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>Generic object reference to the school that collected this StudentVoice entry.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="VoiceType" minOccurs="0" nillable="true" type="NZCodeSetsStudentVoiceTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code set denoting the type of student voice being heard, e.g. their interests, goals, voice (comments, opinions).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StudentVoiceNote" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>Extra notes about the student, and their voice</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StudentInterestList" minOccurs="0" nillable="true" type="StudentInterestListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the diffent interests the student has expressed.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SocialGoalList" minOccurs="0" nillable="true" type="SocialGoalListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the diffent social goals the student has expressed.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AcademicGoalList" minOccurs="0" nillable="true" type="AcademicGoalListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the diffent academic goals the student has expressed.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CareerGoalList" minOccurs="0" nillable="true" type="CareerGoalListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the diffent career goals the student has expressed.</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="StudentVoice" type="StudentVoiceType">
    <xs:key name="StudentVoiceKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentVoiceRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StudentVoiceCollectionType">
    <xs:sequence>
      <xs:element name="StudentVoice" type="StudentVoiceType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentVoices" type="StudentVoiceCollectionType" />


  <!--StudentLearningSupport-->

  <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" />


  <!--StudentLearningSupportResponse-->

  <xs:complexType name="StudentLearningSupportResponseType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>Provides information about a response provided for a students learning support need.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentLearningSupportResponseRefId" 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="StudentLearningSupportResponseLocalId" 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>The student that the learning support need response its 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>The provider that created this learning support need reponse.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LearningSupportNeed" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The learning support need the reponse is for.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ResponseType" type="NZCodeSetsLearningSupportResponseTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The type of response provided to the student to support the need.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ResponseDetail" minOccurs="0" nillable="true" type="NZCodeSetsLearningSupportResponseDetailType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code set denoting the additional detail about the response type provided to the student to support the need.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReviewDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the response is due to be reviewed.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ResponseGoals" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The goals of the response in relation to the student's learning support need.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ResponseNote" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text notes about the response.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NoteList" minOccurs="0" nillable="true" type="NoteListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of notes that have been written about the learning support response.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ResponseDesc" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text description about the response type and detail. Mandatory when a response detail of 'Other' is selected.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TierOfResponse" minOccurs="0" nillable="true" type="NZCodeSetsLearningSupportResponseTierType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The tier of response for the learning support need response.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:choice>
        <xs:element name="ExternalResponse" minOccurs="0" nillable="true" type="SupportNeedExternalResponseType">
          <xs:annotation>
            <xs:appinfo>
              <sifChar>C</sifChar>
              <privacyRating>Low</privacyRating>
            </xs:appinfo>
            <xs:documentation>Additional information for an external response.</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="InternalResponse" minOccurs="0" nillable="true" type="SupportNeedInternalResponseType">
          <xs:annotation>
            <xs:appinfo>
              <sifChar>C</sifChar>
              <privacyRating>Low</privacyRating>
            </xs:appinfo>
            <xs:documentation>Additional information for an internal response.</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
      <xs:element name="ReviewList" minOccurs="0" nillable="true" type="SupportNeedResponseReviewListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the reviews made about the response.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AttachmentList" minOccurs="0" nillable="true" type="DocumentListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of attachments associated to the learning support need response.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CompletionDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the response was completed.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Outcome" minOccurs="0" nillable="true" type="NZCodeSetsLearningSupportResponseOutcomeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The outcome of the response.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OutcomeComment" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text comment about the outcome of the response made for the students learning support need.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ClosureStatus" minOccurs="0" nillable="true" type="NZCodeSetsLearningSupportResponseClosureStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The status of the learning support need response when it is closed.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ClosureStatusDetail" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Additional detail about the responses closure status.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CompletionNote" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text notes about the completion of the response to the students learning support need.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RecordAudit" type="RecordAuditType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</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="StudentLearningSupportResponse" type="StudentLearningSupportResponseType">
    <xs:key name="StudentLearningSupportResponseKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentLearningSupportResponseRefId" />
    </xs:key>
  </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" />


  <!--AssessmentTask-->

  <xs:complexType name="AssessmentTaskType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>
        This object provides information about a particular assignment, allows applications to
        synchronize each other's assignment tables, gathers the definition for a StudentAssessmentTask object, etc.  
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AssessmentTaskRefId" 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="AssessmentTaskLocalId" 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="AssessmentName" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name of the assessment task.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProviderInvolvedList" type="ProviderInvolvedListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the providers involved and their role, e.g. assessing provider, assessment provider, 
        assessment location provider, registering provider.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TeachingGroup" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the TeachingGroup object in which this assignment has been set.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProviderCourse" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the ProviderCourse all of whose students will be
        participating in the assessment task.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StudentList" minOccurs="0" nillable="true" type="StudentListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The GUIDs for students that are the intended participants for this Assessement Task.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StaffInvolvedList" minOccurs="0" nillable="true" type="StaffInvolvedListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the staff involved and their role in relation to the assessment task, e.g. the moderator, the marker.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Description" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The text-based description of the assignment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PointsPossible" minOccurs="0" nillable="true" type="xs:unsignedInt">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The points possible on the assignment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DueDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Date the assignment is due.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Weight" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The weight of the assignment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MaxAttemptsAllowed" minOccurs="0" nillable="true" type="xs:integer">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>How many attempts the student is allowed on the assignment (applicable particularly to online activities).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DetailedDescriptionURL" minOccurs="0" nillable="true" type="xs:anyURI">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The location of the document that describes the assignment. If Type is PDF, this element will contain the Base64 encoding of the entire document. Preferred against DetailedDescriptionBinary for online assessment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessmentType" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Type of assessment (e.g. diagnostic vs paedagogical - Summative or Formative).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessmentMethodology" type="NZCodeSetsAssessmentMethodologyType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code denoting the nature of the assessment process;  Primary assessment against NZ Curriculum or Te Marautanga
      o Aotearoa; Secondary assessment against NCEA, Cambridge, International Baccalaureate, or similar.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EvaluationType" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentEvaluationTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The type of assessment evaluation, e.g. formative or summative.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Curriculum" minOccurs="0" nillable="true" type="NZCodeSetsCurriculumType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The curriculum the assessment is for.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessmentToolUsed" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentToolType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The assessment tool the assessment is used as part of. Both the original free text value sent by the 
      SMS vendors and the value it is mapped to in this code set are held.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessmentToolTest" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentToolTestType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The tests available within an assessment tool that is being used by this assessment task.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessmentPurpose" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Purpose for the assessment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubAssessmentTaskList" minOccurs="0" nillable="true" type="AssessmentTaskListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>AssessmentTasks which this assessment task is composed of.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PrerequisiteList" minOccurs="0" nillable="true" type="PrerequisiteListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>References to objects (Course, LearningStandard, AssessmentTask etc.) being prerequisite conditions
         to be met for assessment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubjectAreaList" minOccurs="0" nillable="true" type="SubjectAreaListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the subject areas being assessed.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessedAtYearLevel" minOccurs="0" nillable="true">
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>The year level the Assessment Task pertains to. May only contain the values 1 through to 13 inclusive.</xs:documentation>
            </xs:annotation>
            <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="LearningStandardList" minOccurs="0" nillable="true" type="LearningStandardListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of references to LearningStandards that will be assessed as part of this AssessmentTask.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StandardType" minOccurs="0" nillable="true" type="NZCodeSetsLearningStandardTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The type of standard the result is for. Applies to secondary level assessments, e.g.
       unit and achievement standards, scholarships and International Baccalaureate.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SpecialAssessmentConditionExclusionList" minOccurs="0" nillable="true" type="SpecialAssessmentConditionListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of SACs that are excluded for this particular assessment task.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Timeframe" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentTimeframeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The timeframe of the assessment, e.g. Mid-Year, End of Year.</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="AssessmentTask" type="AssessmentTaskType">
    <xs:key name="AssessmentTaskKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./AssessmentTaskRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="AssessmentTaskCollectionType">
    <xs:sequence>
      <xs:element name="AssessmentTask" type="AssessmentTaskType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="AssessmentTasks" type="AssessmentTaskCollectionType" />


  <!--StudentAssessmentTaskResult-->

  <xs:complexType name="StudentAssessmentTaskResultType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>High</privacyRating>
      </xs:appinfo>
      <xs:documentation>Records the result achieved by a single student at a particular assessment task.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentAssessmentTaskResultRefId" 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="StudentAssessmentTaskResultLocalId" 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="NZQAEntryId" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The student's NZQA entry Id provided upon confirmation of the student's registration
        to be assessed against a unit or achievement standard. Identifies what entry the result
        is for to NZQA.
      </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessmentTask" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Reference to the AssessmentTask the student was assessed against and the result is for.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StudentAssessmentTask" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Reference to the StudentAssessmentTask data object that the assessment result belongs to.</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>Generic object reference to the student held in the StudentPersonal
         data object whose assessment task result this is.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessmentType" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The type of assessment the result is for.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessmentMethodology" type="NZCodeSetsAssessmentMethodologyType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code denoting the nature of the assessment process;  Primary assessment against NZ Curriculum or Te Marautanga
      o Aotearoa; Secondary assessment against NCEA, Cambridge, International Baccalaureate, or similar.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProviderInvolvedList" type="ProviderInvolvedListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="StaffInvolvedList" minOccurs="0" nillable="true" type="StaffInvolvedListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the staff involved and their role in relation to the assessment task, e.g. the moderator, the marker.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProviderCourse" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Reference to the ProviderCourse that this assessment task belongs to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LearningStandardList" minOccurs="0" nillable="true" type="LearningStandardListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of references to the LearningStandards the assessment task result is related to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubjectAreaList" minOccurs="0" nillable="true" type="SubjectAreaListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the subject areas that the assessment pertains to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessedAtYearLevel" minOccurs="0" nillable="true">
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>Year Level of the Assessment Task the student is being assessed against. May only contain the values 1 through to 13 inclusive.</xs:documentation>
            </xs:annotation>
            <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:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code denoting the Year Level of the Assessment Task the result is for.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessmentToolUsed" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentToolType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The type of assessment tool used for the assessment task. Both the original free text value sent by the SMS vendors
       and the value it is mapped to in this code set are held.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessmentToolTest" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentToolTestType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The tests available within an assessment tool that is being used by this assessment task.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Timeframe" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentTimeframeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The timeframe of the assessment, e.g. Mid-Year, End of Year.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessmentAttempt" minOccurs="0" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The attempt number the student is making to pass this assessment, e.g. is it their first, second attempt.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EvaluationType" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentEvaluationTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The type of assessment evaluation, e.g. formative or summative.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StandardType" minOccurs="0" nillable="true" type="NZCodeSetsLearningStandardTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The type of standard the result is for. Applies to secondary level assessments, e.g. unit and achievement standards, scholarships and International Baccalaureate.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DateMarked" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Date the assessment task was marked.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DateTimeAssessed" minOccurs="0" nillable="true" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date and time the student was assessed against the assessment task.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DateStudentNotified" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the student was notified of their final mark for the assessment task.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NZQAConfirmation" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Confirmation from NZQA that they have received the result record for the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Published" 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 result has been published.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PublishedDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the assessment task result was first published in a report.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Iteration" minOccurs="0" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The iteration of this result for the assessment,
          e.g. some tasks require multiple assessments before being achieved.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CreditsAchieved" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The number of credits the student achieved.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ResultScoreList" type="AssessmentResultScoreListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the assessment result scores that the student received for this assessment task.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Weight" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Weight placed upon this result</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EffortComment" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text comment about the effort the student made for the assessment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OtherComment" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text comments providing additional information for the students assessment result.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocumentList" minOccurs="0" nillable="true" type="DocumentListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>List which describes the meta-data for, and the Location of any associated documents.</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="StudentAssessmentTaskResult" type="StudentAssessmentTaskResultType">
    <xs:key name="StudentAssessmentTaskResultKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentAssessmentTaskResultRefId" />
    </xs:key>
  </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" />


  <!--StudentAssessmentTaskRegistration-->

  <xs:complexType name="StudentAssessmentTaskRegistrationType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>The student's registration for an assessment task they are intending to participate in. </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentAssessmentTaskRegistrationRefId" 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="StudentAssessmentTaskRegistrationLocalId" 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="AssessmentRegistrationStatus" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentRegistrationStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The status of the student's registration for an assessment task, e.g. applied, 
      approved, withdrawn.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProviderInvolvedList" type="ProviderInvolvedListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the providers involved and their role, e.g. assessment provider, registering provider.</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>Generic object reference to the student held in the StudentPersonal data object
         whose intention to participate in an assessment task is being registered.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StaffMember" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the StaffPersonal data object representing the teacher who 
        registered the student's intention to participate in the assessment task.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessmentTask" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the AssessmentTask data object that the registration is for.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NZQA" minOccurs="0" nillable="true" type="NZQAAssessmentRegistrationType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Extra details to support NZQA assessment registration process</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SpecialAssessmentConditionList" minOccurs="0" nillable="true" type="SpecialAssessmentConditionListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of references identifying any Special Assessment Conditions that the student
         is entitled to for the assessment task they are registering for.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProviderCourse" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the ProviderCourse that the assessment task is being set as part of.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LearningStandard" minOccurs="0" nillable="true" type="LearningStandardObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the LearningStandard the student is registering for.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubjectArea" minOccurs="0" nillable="true" type="NZCodeSetsSubjectAreaType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code denoting the Learning or Subject Area the assessment task registration is for.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="YearLevel" minOccurs="0" nillable="true">
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>The Year Level of the assessment task the registration is for. May only contain the values 1 through to 13 inclusive.</xs:documentation>
            </xs:annotation>
            <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="DateRegistered" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the student's intent to participate in the assessment task was registered.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessmentYear" type="xs:gYear">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The assessment year the student's intent to participate in the assessment task was registered for.</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="StudentAssessmentTaskRegistration" type="StudentAssessmentTaskRegistrationType">
    <xs:key name="StudentAssessmentTaskRegistrationKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentAssessmentTaskRegistrationRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StudentAssessmentTaskRegistrationCollectionType">
    <xs:sequence>
      <xs:element name="StudentAssessmentTaskRegistration" type="StudentAssessmentTaskRegistrationType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentAssessmentTaskRegistrations" type="StudentAssessmentTaskRegistrationCollectionType" />


  <!--StudentAssessmentTask-->

  <xs:complexType name="StudentAssessmentTaskType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>Record of a student's attempt at a particular assessment task.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentAssessmentTaskRefId" 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="StudentAssessmentTaskLocalId" 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>Generic object reference to the student held in the StudentPersonal 
        data object who is being assessed against the assessment task.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessmentTask" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the AssessmentTask data object that the student assessment is for.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StudentAssessmentTaskRegistration" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the registration made on behalf of the student by the school to sit this assessment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProviderInvolvedList" type="ProviderInvolvedListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the providers involved and their role, e.g.
         assessing provider, assessment provider, assessment location provider.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StaffInvolvedList" minOccurs="0" nillable="true" type="StaffInvolvedListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of the staff involved and their role in relation to the assessment task, 
        e.g. the staff members that supervise the undertaking of the assessment task by the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DateTimeAssessmentScheduled" minOccurs="0" nillable="true" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date and time the student is scheduled to be assessed against the assessment task.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DateTimeAssessed" minOccurs="0" nillable="true" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date and time the student was assessed against the assessment task.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Status" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code denoting the current status of the student assessment task</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NCEAStatusDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Date the current NCEA status was set.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessmentAttempt" minOccurs="0" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The attempt number the student is making to pass this assessment, e.g. is it their first, second attempt.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SpecialAssessmentConditionList" minOccurs="0" nillable="true" type="SpecialAssessmentConditionListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The list of the special assessment conditions that the student is
          entitled to have when sitting this assessment task.</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="StudentAssessmentTask" type="StudentAssessmentTaskType">
    <xs:key name="StudentAssessmentTaskKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentAssessmentTaskRefId" />
    </xs:key>
  </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" />


  <!--StudentAttainment-->

  <xs:complexType name="StudentAttainmentType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>Records a student gaining an Attainment e.g. NCEA Qualification, Learning Standard etc.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentAttainmentRefId" 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="StudentAttainmentLocalId" 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="GrantingProvider" type="ProviderObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the Provider/Organisation who is granting the attainment to the student, e.g. NZQA, TEC.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Attainment" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A generic object reference to the type of attainment the student has achieved
          e.g. ProviderCourse, LeanringStandard etc.</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>Generic object reference to the student held in the StudentPersonal data
        object who the attainment is for.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AuthorisingStaffMember" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the StaffPersonal data object representing the
          staff member who authorised the attainment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DateAttained" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the student achieved the attainment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="YearAttained" minOccurs="0" nillable="true" type="xs:gYear">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The year the student achieved the attainment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="JustificationList" minOccurs="0" nillable="true" type="JustificationListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of references identifying the assessment task results that
          justify the student achieving this attainment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubjectAreaList" minOccurs="0" nillable="true" type="SubjectAreaListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code denoting the Learning or Subject Area the assessment task is for.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndorsementLevel" minOccurs="0" nillable="true" type="NZCodeSetsNCEAEndorsementLevelType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The NCEA endorsement level that was attained by the student.</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="StudentAttainment" type="StudentAttainmentType">
    <xs:key name="StudentAttainmentKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentAttainmentRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StudentAttainmentCollectionType">
    <xs:sequence>
      <xs:element name="StudentAttainment" type="StudentAttainmentType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentAttainments" type="StudentAttainmentCollectionType" />


  <!--StudentCurriculumProgressReport-->

  <xs:complexType name="StudentCurriculumProgressReportType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>A single curriculum progress and achievement report provided for a student.  Used in technology centres 
        allowing the host provider to report on student progress to their base school.
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentCurriculumProgressReportRefId" 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="StudentCurriculumProgressReportLocalId" 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>Generic object reference to the student whose progress is being reported.</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>Generic object reference to the Provider (school) who is making this curriculum progress report.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TeachingGroup" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the TeachingGroup the student is enrolled in for which 
        the progress report is being made.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AuthorList" minOccurs="0" nillable="true" type="ProgressReportAuthorListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of StaffMembers who are the authors of the curriculum progress report</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RepositoryReceivedDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the repository received the students technology centre progress and achievement report.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TimeFrame" minOccurs="0" nillable="true" type="NZCodeSetsCurriculumProgressReportTimeframeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The timeframe of the provided information e.g. Routine Update, Mid-Year, End of Year etc.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TechnologyClassList" minOccurs="0" nillable="true" type="TechnologyClassListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of records of the Student's progress in particular classes from the 
      Technology curriculum. e.g. Hard Materials, Food Technology, Digital Design etc.</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="StudentCurriculumProgressReport" type="StudentCurriculumProgressReportType">
    <xs:key name="StudentCurriculumProgressReportKey1">
      <xs:selector xpath="." />
      <xs:field xpath="./StudentCurriculumProgressReportRefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="StudentCurriculumProgressReportCollectionType">
    <xs:sequence>
      <xs:element name="StudentCurriculumProgressReport" type="StudentCurriculumProgressReportType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StudentCurriculumProgressReports" type="StudentCurriculumProgressReportCollectionType" />

  <xs:simpleType name="NZCodeSetsYesOrNoCategoryType">
    <xs:annotation>
      <xs:documentation><p>A reusable code set for yes, and no.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="N">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">No</Label>
            <Label xml:lang="mi">Kāo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Y">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Yes</Label>
            <Label xml:lang="mi">Āe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsYesNoNotRequiredType">
    <xs:annotation>
      <xs:documentation><p>A reusable code set for yes, no, and not required values.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="N">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">No</Label>
            <Label xml:lang="mi">Kāo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="R">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Not required</Label>
            <Label xml:lang="mi">Kāre i hiahiatia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Y">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Yes</Label>
            <Label xml:lang="mi">Āe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsReferrableDataObjectsType">
    <xs:annotation>
      <xs:documentation><p>An enumeration of valid SIF DataObject names, to be included in Object References</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="Organisation">
        <xs:annotation>
          <xs:documentation>
				  A generic organisation that operates within the education sector; but doesn’t provide education services.
				</xs:documentation>
          <xs:appinfo>
            <Label>Organisation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Provider">
        <xs:annotation>
          <xs:documentation>A recognised provider of education services such as ECE Service, School or TEI</xs:documentation>
          <xs:appinfo>
            <Label>Provider</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AcademicDepartment">
        <xs:annotation>
          <xs:documentation />
          <xs:appinfo>
            <Label>AcademicDepartment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ProviderRelationship">
        <xs:annotation>
          <xs:documentation>A recognised relationship between two providers of education service.</xs:documentation>
          <xs:appinfo>
            <Label>ProviderRelationship</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ProviderCourse">
        <xs:annotation>
          <xs:documentation>A Provider defined course that Students enrol in, and may be assessed for,
					and achieve passes in.
				</xs:documentation>
          <xs:appinfo>
            <Label>ProviderCourse</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LearningStandard">
        <xs:annotation>
          <xs:documentation>A curriculum standard or the like published by a national body, 
					 professional association or other interested party. The LearningStandard describes a set of
					 learning that students are expected to undertake.
				</xs:documentation>
          <xs:appinfo>
            <Label>LearningStandard</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Credential">
        <xs:annotation>
          <xs:documentation>A qualification or other award granted by a national body,  professional association or
					other interested party.  The Credential describes an award that is made to the learner at the 
					successful completion of a particular learning programme. eg: NCEA Level 1;  University Entrance;
					NCEA Level 2 Chemistry;
				</xs:documentation>
          <xs:appinfo>
            <Label>Credential</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StaffPersonal">
        <xs:annotation>
          <xs:documentation>All the personal, contact and demographic information relating to a staff member,
					who might be a teacher or other employee of a Provider.
				</xs:documentation>
          <xs:appinfo>
            <Label>StaffPersonal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StaffAssignment">
        <xs:annotation>
          <xs:documentation>Records assignment of a Staff member to a particular Role at a Provider or other
					EducationOrganisation.
				</xs:documentation>
          <xs:appinfo>
            <Label>StaffAssignment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StaffTeachingGroupAssignment">
        <xs:annotation>
          <xs:documentation />
          <xs:appinfo>
            <Label>StaffTeachingGroupAssignment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentPersonal">
        <xs:annotation>
          <xs:documentation>Contains all the personal information related to the student.</xs:documentation>
          <xs:appinfo>
            <Label>StudentPersonal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentContactPersonal">
        <xs:annotation>
          <xs:documentation>Contains all the personal information about a person who is a part of a Student's whānau.</xs:documentation>
          <xs:appinfo>
            <Label>StudentContactPersonal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentContactRelationship">
        <xs:annotation>
          <xs:documentation>A relationship between a person who is a part of a Student's whānau and that Student</xs:documentation>
          <xs:appinfo>
            <Label>StudentContactRelationship</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentProviderEnrolment">
        <xs:annotation>
          <xs:documentation>A student’s association with an education provider for the purpose of receiving
					educational services.</xs:documentation>
          <xs:appinfo>
            <Label>StudentProviderEnrolment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentTeachingGroupEnrolment">
        <xs:annotation>
          <xs:documentation />
          <xs:appinfo>
            <Label>StudentTeachingGroupEnrolment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TeachingGroup">
        <xs:annotation>
          <xs:documentation>Identifies a particular class or other group of students.</xs:documentation>
          <xs:appinfo>
            <Label>TeachingGroup</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentAttendanceTimeList">
        <xs:annotation>
          <xs:documentation>Records detail about the attendance spans for a single student at a single provider
					during a single day.</xs:documentation>
          <xs:appinfo>
            <Label>StudentAttendanceTimeList</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentAttendanceSummary">
        <xs:annotation>
          <xs:documentation>Provides a summary of a student's daily attendance and membership information for a given
					provider during the time period between the StartDate and EndDate, inclusive.</xs:documentation>
          <xs:appinfo>
            <Label>StudentAttendanceSummary</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AssessmentTask">
        <xs:annotation>
          <xs:documentation>Provides information about a particular assignment or other assessment task, to be
					undertaken by one or more Students at some time.  Defines the task separately from
					each student's attempting the task.</xs:documentation>
          <xs:appinfo>
            <Label>AssessmentTask</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentAssessmentTaskRegistration">
        <xs:annotation>
          <xs:documentation>The student's registration for an assessment task they are intending to participate in.</xs:documentation>
          <xs:appinfo>
            <Label>StudentAssessmentTaskRegistration</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentAssessmentTask">
        <xs:annotation>
          <xs:documentation>Record of a student's attempt at a particular assessment task.</xs:documentation>
          <xs:appinfo>
            <Label>StudentAssessmentTask</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentAssessmentTaskResult">
        <xs:annotation>
          <xs:documentation>Records the result achieved by a single student at a particular assessment task.</xs:documentation>
          <xs:appinfo>
            <Label>StudentAssessmentTaskResult</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentAttainment">
        <xs:annotation>
          <xs:documentation>Records a student gaining an Attainment e.g. NCEA Qualification, Learning Standard etc.</xs:documentation>
          <xs:appinfo>
            <Label>StudentAttainment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WellbeingAlert">
        <xs:annotation>
          <xs:documentation>Alert indicating to teachers and systems that this student has a 'concern' that needs
					to be known for 'duty of care', which could be Medical, Legal or other.
				</xs:documentation>
          <xs:appinfo>
            <Label>WellbeingAlert</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WellbeingCharacteristic">
        <xs:annotation>
          <xs:documentation>Core Wellbeing Characteristic that is integral to the Student. This may be a Medical
					condition, special needs or a characteristic such as a known disability or any other 
					characteristic or condition that is student specific and impacts their learning.</xs:documentation>
          <xs:appinfo>
            <Label>WellbeingCharacteristic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WellbeingEvent">
        <xs:annotation>
          <xs:documentation>Record of an event happening that impacts on a school's duty of care to its students.
					The event records both positive and negative behaviours and is not just the recording
					of a discipline incident or an accident.</xs:documentation>
          <xs:appinfo>
            <Label>WellbeingEvent</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WellbeingResponse">
        <xs:annotation>
          <xs:documentation>A record of the outcome and follow ups generated by a WellbeingEvent.</xs:documentation>
          <xs:appinfo>
            <Label>WellbeingResponse</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WellbeingAppeal">
        <xs:annotation>
          <xs:documentation>Records detail of any appeal or request made by involved parties in regard to
					a negative/punitive Wellbeing Response that was the result of a student Wellbeing Event.</xs:documentation>
          <xs:appinfo>
            <Label>WellbeingAppeal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Document">
        <xs:annotation>
          <xs:documentation />
          <xs:appinfo>
            <Label>Document</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentVoice">
        <xs:annotation>
          <xs:documentation>Information about a student's interests and academic, career and social goals.</xs:documentation>
          <xs:appinfo>
            <Label>StudentVoice</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentActivityParticipation">
        <xs:annotation>
          <xs:documentation>Provides information on a co-curricular or extra-curricular activity in which
					a student participates during a given school year.</xs:documentation>
          <xs:appinfo>
            <Label>StudentActivityParticipation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentLearningSupport">
        <xs:annotation>
          <xs:documentation>Contains information pertaining to a student's learning support.</xs:documentation>
          <xs:appinfo>
            <Label>StudentLearningSupport</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentLearningSupportResponse">
        <xs:annotation>
          <xs:documentation>Contains information pertaining to a response to a student's learning support need(s).</xs:documentation>
          <xs:appinfo>
            <Label>StudentLearningSupportResponse</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentCurriculumProgressReport">
        <xs:annotation>
          <xs:documentation>
					A curriculum progress and achievement reports provided for a
					student.  Used in technology centres the host provider, to
					report on student progress to their base school.
				</xs:documentation>
          <xs:appinfo>
            <Label>StudentCurriculumProgressReport</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentPhysicalRestraint">
        <xs:annotation>
          <xs:documentation />
          <xs:appinfo>
            <Label>StudentPhysicalRestraint</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="StudentConsent">
        <xs:annotation>
          <xs:documentation />
          <xs:appinfo>
            <Label>StudentConsent</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Schedule">
        <xs:annotation>
          <xs:documentation />
          <xs:appinfo>
            <Label>Schedule</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BellSchedule">
        <xs:annotation>
          <xs:documentation />
          <xs:appinfo>
            <Label>BellSchedule</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ScheduleDate">
        <xs:annotation>
          <xs:documentation />
          <xs:appinfo>
            <Label>ScheduleDate</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SchedulePeriod">
        <xs:annotation>
          <xs:documentation />
          <xs:appinfo>
            <Label>SchedulePeriod</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ScheduleEvent">
        <xs:annotation>
          <xs:documentation />
          <xs:appinfo>
            <Label>ScheduleEvent</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ScheduleHoliday">
        <xs:annotation>
          <xs:documentation />
          <xs:appinfo>
            <Label>ScheduleHoliday</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ScheduleAcademicDay">
        <xs:annotation>
          <xs:documentation />
          <xs:appinfo>
            <Label>ScheduleAcademicDay</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ScheduleTerm">
        <xs:annotation>
          <xs:documentation />
          <xs:appinfo>
            <Label>ScheduleTerm</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TeachingGroupEvent">
        <xs:annotation>
          <xs:documentation />
          <xs:appinfo>
            <Label>TeachingGroupEvent</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsConsentGivenByType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the role of the person who gave consent on behalf of the student, e.g. Whānau, Student.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="NOT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Not provided</Label>
            <Label xml:lang="mi"> Kāre he whakaaetanga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STU">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Student</Label>
            <Label xml:lang="mi">Ākonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WHA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Whānau</Label>
            <Label xml:lang="mi">Whānau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsStudentConsentToType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting what the student is consenting or not consenting to.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="PHT">
        <xs:annotation>
          <xs:documentation>To use and share photographs of the student</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Share Photos</Label>
            <Label xml:lang="mi" />
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ART">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Share Art</Label>
            <Label xml:lang="mi" />
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WRI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Share Writing</Label>
            <Label xml:lang="mi" />
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MED">
        <xs:annotation>
          <xs:documentation>Seek medical treatment in an emergency when the caregiver cannot be contacted</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Medical Treatment</Label>
            <Label xml:lang="mi" />
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ADM">
        <xs:annotation>
          <xs:documentation>Administer Panadol</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Panadol</Label>
            <Label xml:lang="mi" />
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Learning Support Cluster Sharing</Label>
            <Label xml:lang="mi">Ratonga Tautoko Akoranga Tuari ā-Kahui</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Learning Support Receive Service</Label>
            <Label xml:lang="mi">Ratonga Tautoko Akoranga Kua Whiwhia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PAR">
        <xs:annotation>
          <xs:documentation>This value is for learning support.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Parental Consent To Share With Next ECE Or School</Label>
            <Label xml:lang="mi">Whakaaetanga Tuari ki te Kura Kōhungahunga, ki te Kura rānei</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TRI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Authority to release student's NZQA results to a tertiary institution</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsDeletedReasonType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the reason a record was deleted.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="LEA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Learner created in error</Label>
            <Label xml:lang="mi">I hē te tapiri a te Akonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RES">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Response created in error</Label>
            <Label xml:lang="mi">I hē te tāpiri i te whakautu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SUP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Support need created in error</Label>
            <Label xml:lang="mi">I hē te tāpiri i tēnei tautokotanga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsRelationshipToStudentType">
    <xs:annotation>
      <xs:documentation><p>A standardised method of describing the personal relationship between two persons.
			 Such a relationship arises from two persons belonging to the same family or closer 
			 community or as a consequence of sharing living arrangements.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="FAT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Father</Label>
            <Label xml:lang="mi">Pāpā</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UNC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Uncle</Label>
            <Label xml:lang="mi">Matua Kēkē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LEG">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Legal Guardian</Label>
            <Label xml:lang="mi">Kaitiaki ā-ture</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HOS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Host Parent</Label>
            <Label xml:lang="mi">Whānau Tiaki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BRO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Brother</Label>
            <Label xml:lang="mi">Tungāne</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FRI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Family Friend</Label>
            <Label xml:lang="mi">Hoa o te whānau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SIS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sister</Label>
            <Label xml:lang="mi">Tuahine</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:documentation>Please Specify</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Other</Label>
            <Label xml:lang="mi">He mea kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MOT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mother</Label>
            <Label xml:lang="mi">Māmā</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GRM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Grandmother</Label>
            <Label xml:lang="mi">Kuia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AUN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Aunt</Label>
            <Label xml:lang="mi">Whaea</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STF">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Stepfather</Label>
            <Label xml:lang="mi">Pāpā Whakaangi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NOT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Not Provided</Label>
            <Label xml:lang="mi">Kāre i whakaratoa</Label>
            <endDate>2020-05-20</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GRF">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Grandfather</Label>
            <Label xml:lang="mi">Koroua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Stepmother</Label>
            <Label xml:lang="mi">Whaea Whakaangi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WHA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Whāngai Parent</Label>
            <Label xml:lang="mi">Matua Whāngai</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CAS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Case Worker</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EXT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Extended Family</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FOF">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Foster Father</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FOM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Foster Mother</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FOS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Foster Parent</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GDF">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Godfather</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GDM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Godmother</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GDP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Godparent</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HOF">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Host Father</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HOM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Host Mother</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">International Liasion</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PAI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Paid Child Help</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PAP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Parent's Partner</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PAR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Parent</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GRP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Grandparent</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SIB">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sibling</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Step-parent</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TRU">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Truancy Officer</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsStudentContactRelationshipStatusType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the status of the student contact's relationship.</p><p>Set to Active when: StartDate =&gt; today's date and EndDate is NULL 
				or EndDate &gt; than today's date.</p><p>Set to Inactive when: StartDate &lt; today's date or EndDate =&lt; today's date.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Active</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Inactive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsNameUsageTypeType">
    <xs:annotation>
      <xs:documentation><p>A standardised method of describing the usage of a name by a person.
				 Where a person has more than one current name, the usage type indicates
				 which name may be used according to the purpose.</p><p>Code values are based on SIF Australia 3.4.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="PRF">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The name by which an individual prefers to be known and addressed.</p>
            <p xmlns="http://sifassociation.org/SpecGen">Only usage type applicable for student name usage (other types
					 are not supported by NSI).</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Preferred Name</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FON">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Included for future usage in NZ, especially for tertiary students.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Foreign Official Name</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRV">
        <xs:annotation>
          <xs:appinfo>
            <Label>Previous name</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AKA">
        <xs:annotation>
          <xs:documentation>AKA or Alias</xs:documentation>
          <xs:appinfo>
            <Label>Also Known As</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BTH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Name at Birth</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LGL">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Legal Name or Official Name as defined by the organisation which collects it 
						(legal name is not defined in this standard)</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Legal Name</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsEmailTypeType">
    <xs:annotation>
      <xs:documentation><p>A standardised method of describing an electronic mail address used as contact method
				 by a party. Where a party has more than one email address, this may provide context
				 for deciding which email address to use.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="PRIM">
        <xs:annotation>
          <xs:documentation>Applicable to organisations, eg schools</xs:documentation>
          <xs:appinfo>
            <Label>Primary</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WORK">
        <xs:annotation>
          <xs:documentation>Only used for persons</xs:documentation>
          <xs:appinfo>
            <Label>Work</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PERS">
        <xs:annotation>
          <xs:documentation>Only used for persons</xs:documentation>
          <xs:appinfo>
            <Label>Personal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ALT1">
        <xs:annotation>
          <xs:appinfo>
            <Label>Alternate 1</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ALT2">
        <xs:annotation>
          <xs:appinfo>
            <Label>Alternate 2</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ALT3">
        <xs:annotation>
          <xs:appinfo>
            <Label>Alternate 3</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ALT4">
        <xs:annotation>
          <xs:appinfo>
            <Label>Alternate 4</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsTelephoneNumberTypeType">
    <xs:annotation>
      <xs:documentation><p>A standardised method of describing a telecommunications device used as contact
				method by a party. Where a party has more than one phone number, this may provide
				context for deciding which number to use.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="MAI">
        <xs:annotation>
          <xs:appinfo>
            <Label>Main Telephone Number</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FAX">
        <xs:annotation>
          <xs:appinfo>
            <Label>Facsimile Number</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HTE">
        <xs:annotation>
          <xs:documentation>Person usage only</xs:documentation>
          <xs:appinfo>
            <Label>Home Telephone Number</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HMO">
        <xs:annotation>
          <xs:documentation>Person usage only</xs:documentation>
          <xs:appinfo>
            <Label>Home Mobile</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MOB">
        <xs:annotation>
          <xs:appinfo>
            <Label>Mobile</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WMO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Work Mobile</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WTE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Work Telephone Number</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsGenderType">
    <xs:annotation>
      <xs:documentation><p>A Person may identify as having a Gender (or Gender Identity). Biological sex and sexual
				orientation are related but different concepts.
			Sourced from <a href="http://aria.stats.govt.nz/aria/#ClassificationView:uri=http://stats.govt.nz/cms/ClassificationVersion/LfWjOFK1NqtZCv5i">Statistics NZ Standard for Gender Identity</a></p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Male</Label>
            <Label xml:lang="mi">Tāne</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Female</Label>
            <Label xml:lang="mi">Wahine</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>But not further defined</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Gender Diverse</Label>
            <Label xml:lang="mi">Ira tāngata kōwhiri kore</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="31">
        <xs:annotation>
          <xs:documentation>Can be rolled up to 3:Gender Diverse</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Transgender Male to Female</Label>
            <Label xml:lang="mi">Whakawahine</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="32">
        <xs:annotation>
          <xs:documentation>Can be rolled up to 3:Gender Diverse</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Transgender Female to Male</Label>
            <Label xml:lang="mi">Tangata ira tāne</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="9">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Not Willing to Disclose</Label>
            <Label xml:lang="mi">Kāre e taea te Whakaatu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsCitizenshipStatusType">
    <xs:annotation>
      <xs:documentation><p>The citizenship or residency status of a person,
			principally recorded in order to determine eligibility for
			education services hence limited to indicating New
			Zealand, Australian or Other residency.</p><p>Based on SIF Australia AUCodeSetsAustralianCitizenshipStatusType</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="AUCI">
        <xs:annotation>
          <xs:appinfo>
            <Label>Australian citizen</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZCI">
        <xs:annotation>
          <xs:appinfo>
            <Label>NZ citizen</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTOV">
        <xs:annotation>
          <xs:documentation>Indicates a residency other than NZ or Australia</xs:documentation>
          <xs:appinfo>
            <Label>Other overseas</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZRE">
        <xs:annotation>
          <xs:documentation>Includes Australian residents classified as NZ resident once arrived in NZ</xs:documentation>
          <xs:appinfo>
            <Label>NZ resident</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NOPR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Not provided</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsVerificationSourceType">
    <xs:annotation>
      <xs:documentation><p>Records the source of the identity or eligibility verification, that has been made.
				Mostly it is merely a record of the kind of document that has been presented; but 
				occasionally it is down to Principal or Ministry discretion / approval.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="NZBIR">
        <xs:annotation>
          <xs:documentation>Applies if the child was born before 1 Jan 2006</xs:documentation>
          <xs:appinfo>
            <Label>NZ Birth Certificate</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZBCO">
        <xs:annotation>
          <xs:documentation>Applies if the child was born on or after 1 Jan 2006</xs:documentation>
          <xs:appinfo>
            <Label>NZ Birth Certificate (with confirmation of NZ Citizen by birth)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZPAS">
        <xs:annotation>
          <xs:documentation>Including COK, TKL or NIU. (Current or Expired)</xs:documentation>
          <xs:appinfo>
            <Label>NZ Passport</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZCIT">
        <xs:annotation>
          <xs:appinfo>
            <Label>NZ Citizenship Certificate</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BIRCE">
        <xs:annotation>
          <xs:documentation>If the child was born before 1 Jan 2006</xs:documentation>
          <xs:appinfo>
            <Label>Birth Certificate (COK, TKL, NIU)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BCCON">
        <xs:annotation>
          <xs:documentation>Applies if the child was born on or after 1 Jan 2006.</xs:documentation>
          <xs:appinfo>
            <Label>Birth Certificate (COK, TKL, NIU) (with confirmation of NZ Citizen by birth)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CENAT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Certification of Naturalisation (COK, TKL, NIU)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CAREG">
        <xs:annotation>
          <xs:appinfo>
            <Label>Certification of Registration (COK, TKL, NIU)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LETCO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Letter of Confirmation (COK, TKL, NIU)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTHPA">
        <xs:annotation>
          <xs:documentation>Or other evidence of NZ residency</xs:documentation>
          <xs:appinfo>
            <Label>Other Passport with NZ residence class Visa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AUSPA">
        <xs:annotation>
          <xs:documentation>(Current or Expired)</xs:documentation>
          <xs:appinfo>
            <Label>Australian Passport</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="VISDO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Visa Domestic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="VISST">
        <xs:annotation>
          <xs:appinfo>
            <Label>Visa with conditions of study</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRINC">
        <xs:annotation>
          <xs:appinfo>
            <Label>Principal Discretion</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MOEAP">
        <xs:annotation>
          <xs:appinfo>
            <Label>MoE Approval</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLanguageUsageType">
    <xs:annotation>
      <xs:documentation><p>A standardised method of describing the usage of a language by a person, 
				potentially indicating capability and preference for the language.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="FL">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">First Language</Label>
            <Label xml:lang="mi">Reo Tuatahi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SL">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Secondary Language</Label>
            <Label xml:lang="mi">Reo Tuarua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Spoken At Home</Label>
            <Label xml:lang="mi">Reo Kāinga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLanguageType">
    <xs:annotation>
      <xs:documentation><p>Language refers to recognised human communication systems, typically oral and/or written.
				Sourced from <a href="http://aria.stats.govt.nz/aria/#ClassificationView:uri=http://stats.govt.nz/cms/ClassificationVersion/CARS3211">Statistics NZ - Language Standard Classification 1999 v2.0.0</a></p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="NZS01">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Germanic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS011">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">West Germanic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS01100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">West Germanic not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS01110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Afrikaans</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS01111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Dutch</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS01112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">English</Label>
            <Label xml:lang="mi">Pākehā</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS01113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">German</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS01114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Friesian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS01115">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Yiddish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS01116">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Scots</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS01199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">West Germanic not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS012">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">North Germanic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS01200">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">North Germanic not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS01210">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Danish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS01211">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Norwegian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS01212">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Swedish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS01213">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Icelandic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS01299">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">North Germanic not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS02">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Romance</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS021">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Romance</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS02100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Romance not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS02110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">French</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS02111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Catalan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS02112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Portuguese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS02113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Spanish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS02114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Italian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS02115">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Romanian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS02199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Romance not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS03">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Greek</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS031">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Greek</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS03110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Greek</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Balto-Slavic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS041">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Baltic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Baltic not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Latvian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Lithuanian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Baltic not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS042">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Slavic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04200">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Slavic not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04210">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Belorussian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04211">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Russian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04212">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ukrainian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04213">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bulgarian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04214">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Macedonian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04215">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Serbo-Croatian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04216">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Slovene</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04217">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Czech</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04218">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Polish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04219">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Slovak</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04299">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Slavic not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS05">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Albanian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS051">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Albanian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS05110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Albanian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS06">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Armenian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS061">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Armenian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS06110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Armenian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Indo-Aryan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS071">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Indo-Aryan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Indo-Aryan not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hindi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Urdu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Fiji Hindi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bengali</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Oriya</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07115">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Nepalese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07116">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Panjabi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07117">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sindhi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07118">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kashmiri</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07119">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sinhala</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07120">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Gujarati</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07121">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Konkani</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07122">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Marathi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07123">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Romani</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Indo-Aryan not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS08">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Celtic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS081">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Celtic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS08100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Celtic not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS08110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Welsh</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS08111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Scottish Gaelic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS08112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Irish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS08113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Breton</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS08199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Celtic not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS09">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Iranian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS091">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Iranian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS09100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Iranian not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS09110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Persian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS09111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kurdish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS09112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pashto</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS09199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Iranian not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS10">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Turko-Altaic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS101">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Turko-Altaic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS10100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Turko-Altaic not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS10110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Turkish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS10111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Azeri</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS10199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Turko-Altaic not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS11">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Uralic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Uralic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS11100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Uralic not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS11110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Estonian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS11111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Finnish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS11112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hungarian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS11199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Uralic not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS12">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Dravidian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS121">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Dravidian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS12100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Dravidian not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS12110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kannada</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS12111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Malayalam</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS12112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tamil</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS12113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Telugu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS12199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Dravidian not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS13">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sino-Tibeto-Burman</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS131">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sinitic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS13100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sinitic not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS13110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cantonese (Yue)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS13111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hakka</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS13112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Min</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS13113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mandarin (Northern Chinese)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS13114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Wu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS13115">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tieu-Chow</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS13199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sinitic not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS132">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tibeto-Lolo-Burman</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS13200">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tibeto-Lolo-Burman not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS13210">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Burmese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS13211">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tibetan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS13299">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tibeto-Lolo-Burman not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS14">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Austroasiatic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS141">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mon-Khmer</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS14100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mon-Khmer not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS14110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Khmer</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS14199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mon-Khmer not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS142">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Viet-Muong</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS14200">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Viet-Muong not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS14210">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Vietnamese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS14299">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Viet-Muong not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS15">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tai-Kadai</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS151">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tai-Kadai</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS15100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tai-Kadai not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS15110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Lao</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS15111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Thai</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS15112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Shan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS15199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tai-Kadai not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Central-Eastern Malayo-Polynesian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS161">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Central Pacific</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Central Pacific not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Māori</Label>
            <Label xml:lang="mi">Te Reo Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Samoan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tongan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cook Islands Maori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Niuean</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16115">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tokelauan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16116">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tuvaluan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16117">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tahitian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16118">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pukapukan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16119">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Fijian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16120">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Rotuman</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Central Pacific not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS162">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Solomon Islands Languages (Non-Central-Pacific)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16210">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Solomon Islands Languages (Non-Central-Pacific)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS163">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Micronesian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16300">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Micronesian not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16310">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kiribati</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16311">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Nauruan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16399">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Micronesian not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS164">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Vanuatu Languages</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS16410">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Vanuatu Languages</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS17">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Western Malayo-Polynesian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS171">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Western Malayo-Polynesian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS17100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Western Malayo-Polynesian not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS17110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bisayan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS17111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cebuano</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS17112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ilokano</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS17113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bahasa Indonesia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS17114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Malaysian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS17115">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tagalog</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS17116">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Javanese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS17199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Western Malayo-Polynesian not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS18">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Afro-Asiatic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS181">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cushitic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS18100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cushitic not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS18110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Somali</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS18199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cushitic not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS182">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Semitic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS18200">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Semitic not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS18210">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Assyrian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS18211">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Arabic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS18212">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Maltese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS18213">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Amharic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS18214">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tigrinya</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS18215">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hebrew</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS18299">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Semitic not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS183">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Chadic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS18300">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Chadic not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS18310">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hausa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS18399">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Chadic not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS19">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Niger-Congo (Congo-Kordafanian)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS191">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bantu languages</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS19100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bantu not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS19110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Swahili</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS19111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Yoruba</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS19112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Zulu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS19199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bantu, not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS192">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Niger-Congo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS19200">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Niger-Congo not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS19210">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Fulani</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS19299">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Niger-Congo not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pidgins and Creoles</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS201">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pidgins and Creoles</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pidgins and Creoles not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Creole</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">French Creole</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pidgin English</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Neo Melanesian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mauritian Creole</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20115">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tok Pisin</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20116">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hindi Bat</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20117">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Solomon Islands Pidgin</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20118">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bislama</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pidgins and Creoles not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Language Isolates</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS211">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Japanese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Japanese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS212">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Korean</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21210">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Korean</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS213">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Basque</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21310">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Basque</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS219">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Language Isolates not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21999">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Language Isolates not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS22">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Miscellaneous Language Groupings</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS221">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Papuan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS22110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Papuan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS222">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Nilo-Saharan languages</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS22210">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Nilo-Saharan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS223">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Miaow-Yao</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS22310">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Miaow-Yao</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS224">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Caucasian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS22400">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Caucasian not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS22410">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Georgian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS22499">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Caucasian not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS225">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Australian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS22510">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Australian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS226">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Amerind</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS22610">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Amerind</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS229">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Miscellaneous Languages</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS22910">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Miscellaneous Languages</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS23">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Artificial Languages</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS231">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Artificial Languages</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS23100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Artificial Languages not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS23110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Esperanto</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS23199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Artificial Languages not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS24">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sign Language</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS241">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sign Language</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS24100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sign Language not further defined</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS24110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">New Zealand Sign Language</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS24111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Signed English</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS24112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">American Sign Language</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS24113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Australian Sign Language</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS24114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">British Sign Language</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS24199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sign Language not elsewhere classified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS44">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Don't Know</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS55">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Refused to Answer</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS66">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">None (eg too young to talk)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS77">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Response Unidentifiable</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS88">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Response Outside Scope</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS99">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Not Stated</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsEthnicityType">
    <xs:annotation>
      <xs:documentation><p>Ethnicity is the ethnic group or groups that people
			identify with or feel they belong to. Ethnicity is a
			measure of cultural affiliation, as opposed to race,
			ancestry, nationality or citizenship. Ethnicity is self
			perceived and people can belong to more than one ethnic
			group.</p><p>The permissible values consists of any value from
			the <a href="http://aria.stats.govt.nz/aria/#ClassificationView:uri=http://stats.govt.nz/cms/ClassificationVersion/l36xYpbxsRh7IW1p">Statistics NZ - Ethnicity New Zealand Standard
			Classification 2005 v2.0.0</a>  Depending on usage, ethnicity
			may be defined at levels 1 to 4.
			</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">European</Label>
            <Label xml:lang="mi">Ūropi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">European nfd</Label>
            <Label xml:lang="mi">Ūropi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">European nfd</Label>
            <Label xml:lang="mi">Ūropi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10000">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">European nfd</Label>
            <Label xml:lang="mi">Ūropi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="11">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">New Zealand European</Label>
            <Label xml:lang="mi">Pākehā</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">New Zealand European</Label>
            <Label xml:lang="mi">Pākehā</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="11111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">New Zealand European</Label>
            <Label xml:lang="mi">Pākehā</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other European</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="121">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">British and Irish</Label>
            <Label xml:lang="mi">Ingarangi me Airana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">British nfd</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Celtic nfd</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Channel Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cornish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">English</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12115">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Gaelic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12116">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Irish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12117">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Manx</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12118">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Orkney Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12119">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Scottish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12120">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Shetland Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12121">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Welsh</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">British nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="122">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Dutch</Label>
            <Label xml:lang="mi">Tati</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12211">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Dutch</Label>
            <Label xml:lang="mi">Tati</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="123">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Greek</Label>
            <Label xml:lang="mi">Kirihi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12311">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Greek</Label>
            <Label xml:lang="mi">Kirihi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="124">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Polish</Label>
            <Label xml:lang="mi">Pōrihi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12411">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Polish</Label>
            <Label xml:lang="mi">Pōrihi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="125">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">South Slav</Label>
            <Label xml:lang="mi">South Slav</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12500">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">South Slav nfd</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12511">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Croatian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12512">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Dalmatian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12513">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Macedonian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12514">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Serbian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12515">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Slovenian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12516">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bosnian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12599">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">South Slav nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="126">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Italian</Label>
            <Label xml:lang="mi">Itāria</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12611">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Italian</Label>
            <Label xml:lang="mi">Itāria</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="127">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">German</Label>
            <Label xml:lang="mi">Tiamana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12711">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">German</Label>
            <Label xml:lang="mi">Tiamana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="128">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Australian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12811">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Australian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="129">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other European</Label>
            <Label xml:lang="mi">Tauiwi Kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12911">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Albanian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12912">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Armenian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12913">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Austrian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12914">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Belgian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12915">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bulgarian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12916">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Belorussian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12917">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Corsican</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12918">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cypriot nfd</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12919">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Czech</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12920">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Danish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12921">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Estonian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12922">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Finnish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12923">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Flemish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12924">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">French</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12925">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Greenlander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12926">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hungarian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12927">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Icelandic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12928">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Latvian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12929">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Lithuanian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12930">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Maltese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12931">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Norwegian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12932">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Portuguese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12933">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Romanian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12934">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Gypsy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12935">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Russian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12936">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sardinian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12937">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Slavic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12938">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Slovak</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12939">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Spanish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12940">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Swedish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12941">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Swiss</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12942">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ukrainian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12943">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">American</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12944">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Burgher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12945">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Canadian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12946">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Falkland Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12947">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">New Caledonian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12948">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">South African nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12949">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Afrikaner</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12950">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Zimbabwean</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12999">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">European nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="21">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Māori</Label>
            <Label xml:lang="mi">Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="211">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Māori</Label>
            <Label xml:lang="mi">Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="21111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Māori</Label>
            <Label xml:lang="mi">Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pacific Peoples</Label>
            <Label xml:lang="mi">Ngā Iwi Pasifika</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pacific Peoples nfd</Label>
            <Label xml:lang="mi">Ngā Iwi Pasifika</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="300">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pacific Peoples nfd</Label>
            <Label xml:lang="mi">Ngā Iwi Pasifika</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30000">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pacific Peoples nfd</Label>
            <Label xml:lang="mi">Ngā Iwi Pasifika</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="31">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Samoan</Label>
            <Label xml:lang="mi">Hamoa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="311">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Samoan</Label>
            <Label xml:lang="mi">Hamoa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="31111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Samoan</Label>
            <Label xml:lang="mi">Hamoa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="32">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cook Islands Maori</Label>
            <Label xml:lang="mi">Kuki Airani</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="321">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cook Islands Maori</Label>
            <Label xml:lang="mi">Kuki Airani</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="32100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cook Islands Maori nfd</Label>
            <Label xml:lang="mi">Kuki Airani</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="32111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Aitutaki Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="32112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Atiu Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="32113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mangaia Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="32114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Manihiki Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="32115">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mauke Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="32116">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mitiaro Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="32117">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Palmerston Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="32118">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Penrhyn Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="32119">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pukapuka Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="32120">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Rakahanga Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="32121">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Rarotongan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="33">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tongan</Label>
            <Label xml:lang="mi">Tonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="331">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tongan</Label>
            <Label xml:lang="mi">Tonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="33111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tongan</Label>
            <Label xml:lang="mi">Tonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="34">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Niuean</Label>
            <Label xml:lang="mi">Niue</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="341">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Niuean</Label>
            <Label xml:lang="mi">Niue</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="34111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Niuean</Label>
            <Label xml:lang="mi">Niue</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="35">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tokelauan</Label>
            <Label xml:lang="mi">Tokerau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="351">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tokelauan</Label>
            <Label xml:lang="mi">Tokerau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="35111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tokelauan</Label>
            <Label xml:lang="mi">Tokerau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="36">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Fijian</Label>
            <Label xml:lang="mi">Whītiana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="361">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Fijian</Label>
            <Label xml:lang="mi">Whītiana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="36111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Fijian</Label>
            <Label xml:lang="mi">Whītiana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Pacific Peoples</Label>
            <Label xml:lang="mi">Hunga Pasifika Kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="371">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Pacific Peoples</Label>
            <Label xml:lang="mi">Hunga Pasifika Kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Admiralty Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Australian Aboriginal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Austral Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Palau Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37115">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bismark Archipelagoan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37116">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bougainvillean</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37117">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Caroline Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37118">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Easter Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37119">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Gambier Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37120">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Guadalcanalian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37121">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Chamorro</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37122">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hawaiian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37123">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kanak</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37124">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kiribati</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37125">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Malatian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37126">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Manus Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37127">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Marianas Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37128">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Marquesas Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37129">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Marshall Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37130">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Nauruan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37131">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">New Britain Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37132">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">New Georgian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37133">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">New Irelander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37134">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Banaban</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37135">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Papua New Guinean</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37136">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Phoenix Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37137">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pitcairn Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37138">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Rotuman</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37139">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Santa Cruz Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37140">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tahitian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37141">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Solomon Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37142">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Torres Strait Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37143">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tuamotu Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37144">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tuvaluan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37145">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ni Vanuatu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37146">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Wake Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37147">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Wallis Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37148">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Yap Islander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="37199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pacific Peoples nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Asian</Label>
            <Label xml:lang="mi">Āhia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="40">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Asian nfd</Label>
            <Label xml:lang="mi">Āhia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="400">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Asian nfd</Label>
            <Label xml:lang="mi">Āhia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="40000">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Asian nfd</Label>
            <Label xml:lang="mi">Āhia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="41">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">South East Asian</Label>
            <Label xml:lang="mi">Hunga Āhia ki te Tonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="410">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">South East Asian nfd</Label>
            <Label xml:lang="mi">Hunga Āhia ki te Tonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="41000">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">South East Asian nfd</Label>
            <Label xml:lang="mi">Hunga Āhia ki te Tonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="411">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Filipino</Label>
            <Label xml:lang="mi">Piripīni</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="41111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Filipino</Label>
            <Label xml:lang="mi">Piripīni</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="412">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cambodian</Label>
            <Label xml:lang="mi">Kamapōtia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="41211">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cambodian</Label>
            <Label xml:lang="mi">Kamapōtia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="413">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Vietnamese</Label>
            <Label xml:lang="mi">Whitināmu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="41311">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Vietnamese</Label>
            <Label xml:lang="mi">Whitināmu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="414">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Southeast Asian</Label>
            <Label xml:lang="mi">Hunga Āhia ki te Tonga Kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="41411">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Burmese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="41412">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Indonesian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="41413">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Laotian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="41414">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Malay</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="41415">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Thai</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="41499">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Southeast Asian nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="42">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Chinese</Label>
            <Label xml:lang="mi">Hainamana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="421">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Chinese</Label>
            <Label xml:lang="mi">Hainamana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="42100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Chinese nfd</Label>
            <Label xml:lang="mi">Hainamana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="42111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hong Kong Chinese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="42112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cambodian Chinese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="42113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Malaysian Chinese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="42114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Singaporean Chinese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="42115">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Vietnamese Chinese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="42116">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Taiwanese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="42199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Chinese nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="43">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Indian</Label>
            <Label xml:lang="mi">Iniana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="431">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Indian</Label>
            <Label xml:lang="mi">Iniana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="43100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Indian nfd</Label>
            <Label xml:lang="mi">Iniana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="43111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bengali</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="43112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Fijian Indian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="43113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Gujarati</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="43114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Indian Tamil</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="43115">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Punjabi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="43116">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sikh</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="43117">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Anglo Indian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="43199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Indian nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="44">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Asian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="441">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sri Lankan</Label>
            <Label xml:lang="mi">Hiri Rānaka</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="44100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sri Lankan nfd</Label>
            <Label xml:lang="mi">Hiri Rānaka</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="44111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sinhalese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="44112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sri Lankan Tamil</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="44199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sri Lankan nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="442">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Japanese</Label>
            <Label xml:lang="mi">Hapanihi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="44211">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Japanese</Label>
            <Label xml:lang="mi">Hapanihi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="443">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Korean</Label>
            <Label xml:lang="mi">Kōrea</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="44311">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Korean</Label>
            <Label xml:lang="mi">Kōrea</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="444">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Asian</Label>
            <Label xml:lang="mi">Iwi Āhia Kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="44411">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Afghani</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="44412">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bangladeshi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="44413">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Nepalese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="44414">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pakistani</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="44415">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tibetan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="44416">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Eurasian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="44499">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Asian nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Middle Eastern/Latin American/African</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Middle Eastern</Label>
            <Label xml:lang="mi">Middle Eastern</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="511">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Middle Eastern</Label>
            <Label xml:lang="mi">Middle Eastern</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Middle Eastern nfd</Label>
            <Label xml:lang="mi">Middle Eastern</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Algerian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Arab</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Assyrian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Egyptian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51115">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Iranian/Persian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51116">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Iraqi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51117">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Israeli/Jewish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51118">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Jordanian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51119">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kurd</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51120">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Lebanese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51121">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Libyan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51122">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Moroccan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51123">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Omani</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51124">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Palestinian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51125">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Syrian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51126">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tunisian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51127">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Turkish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51128">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Yemeni</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="51199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Middle Eastern nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Latin American</Label>
            <Label xml:lang="mi">Rātini Amerikana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="521">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Latin American</Label>
            <Label xml:lang="mi">Rātini Amerikana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Latin American nfd</Label>
            <Label xml:lang="mi">Rātini Amerikana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Argentinian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bolivian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Brazilian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Chilean</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52115">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Colombian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52116">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Costa Rican</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52117">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Latin American Creole</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52118">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ecuadorian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52119">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Guatemalan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52120">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Guyanese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52121">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Honduran</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52122">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Malvinian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52123">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mexican</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52124">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Nicaraguan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52125">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Panamanian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52126">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Paraguayan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52127">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Peruvian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52128">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Puerto Rican</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52129">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Uruguayan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52130">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Venezuelan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Latin American nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="53">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">African</Label>
            <Label xml:lang="mi">Awherika</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="531">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">African</Label>
            <Label xml:lang="mi">Awherika</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="53100">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">African nfd</Label>
            <Label xml:lang="mi">Awherika</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="53112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">United States Creole</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="53113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Jamaican</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="53114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kenyan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="53115">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Nigerian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="53116">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">African American</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="53117">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ugangan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="53118">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">West Indian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="53119">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Somali</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="53120">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Eritrean</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="53121">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ethiopian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="53122">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ghanaian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="53199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">African nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="6">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Ethnicity</Label>
            <Label xml:lang="mi">Iwi kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="61">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Ethnicity</Label>
            <Label xml:lang="mi">Iwi kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="611">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Ethnicity</Label>
            <Label xml:lang="mi">Iwi kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="61111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Central American Indian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="61112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Inuit</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="61113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">North American Indian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="61114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">South American Indian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="61115">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mauritian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="61116">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Seychellois</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="61117">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">South African Coloured</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="61118">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">New Zealander</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="61199">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Ethnicity nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="9">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Residual Categories</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="94">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Don't Know</Label>
            <Label xml:lang="mi">Kāre i mōhiotia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="944">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Don't Know</Label>
            <Label xml:lang="mi">Kāre i mōhiotia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="94444">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Don't Know</Label>
            <Label xml:lang="mi">Kāre i mōhiotia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="95">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Refused to Answer</Label>
            <Label xml:lang="mi">Kāre i whakautu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="955">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Refused to Answer</Label>
            <Label xml:lang="mi">Kāre i whakautu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="95555">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Refused to Answer</Label>
            <Label xml:lang="mi">Kāre i whakautu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="96">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Repeated Value</Label>
            <Label xml:lang="mi">Uara Tārua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="966">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Repeated Value</Label>
            <Label xml:lang="mi">Uara Tārua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="96666">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Repeated Value</Label>
            <Label xml:lang="mi">Uara Tārua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="97">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Response Unidentifiable</Label>
            <Label xml:lang="mi">Urupare tē mōhiotia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="977">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Response Unidentifiable</Label>
            <Label xml:lang="mi">Urupare tē mōhiotia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="97777">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Response Unidentifiable</Label>
            <Label xml:lang="mi">Urupare tē mōhiotia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="98">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Response Outside Scope</Label>
            <Label xml:lang="mi">Urupare i waho atu i te aronga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="988">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Response Outside Scope</Label>
            <Label xml:lang="mi">Urupare i waho atu i te aronga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="98888">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Response Outside Scope</Label>
            <Label xml:lang="mi">Urupare i waho atu i te aronga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="99">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Not Stated</Label>
            <Label xml:lang="mi">Kāre i tohua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="999">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Not Stated</Label>
            <Label xml:lang="mi">Kāre i tohua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="99999">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Not Stated</Label>
            <Label xml:lang="mi">Kāre i tohua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsIwiType">
    <xs:annotation>
      <xs:documentation><p>An iwi, or Māori tribe, is one of the largest kinship
			groupings and is generally made up of several hapū that
			are all descended from a common ancestor. Hapū are
			clusters of whānau where the whānau is usually an extended
			family grouping consisting of children, parents, often
			grandparents, and other closely related kin.</p><p>Sourced from <a href="http://aria.stats.govt.nz/aria/#ClassificationView:uri=http://stats.govt.nz/cms/ClassificationVersion/QjykuWT5BTJrGdVs">Statistics NZ - Iwi and Iwi related groups statistical standard v1.0.0.0</a></p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="NZS01">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Tai Tokerau/Tāmaki-makaurau (Northland/Auckland) Region Iwi</Label>
            <Label xml:lang="mi">Te Tai Tokerau/Tāmaki-makaurau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0101">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Aupōuri</Label>
            <Label xml:lang="mi">Te Aupōuri</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0102">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Kahu</Label>
            <Label xml:lang="mi">Ngāti Kahu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0103">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Kurī</Label>
            <Label xml:lang="mi">Ngāti Kurī</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0104">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāpuhi</Label>
            <Label xml:lang="mi">Ngāpuhi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0105">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāpuhi ki Whaingaroa-Ngāti Kahu ki Whaingaroa</Label>
            <Label xml:lang="mi">Ngāpuhi ki Whaingaroa-Ngāti Kahu ki Whaingaroa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0106">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Rarawa</Label>
            <Label xml:lang="mi">Te Rarawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0107">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāi Takoto</Label>
            <Label xml:lang="mi">Ngāi Takoto</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0108">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Wai</Label>
            <Label xml:lang="mi">Ngāti Wai</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0109">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Whātua (not Ōrākei or Kaipara)</Label>
            <Label xml:lang="mi">Ngāti Whātua (i tua atu i Ōrākei, i Kaipara hoki)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Kawerau ā Maki</Label>
            <Label xml:lang="mi">Te Kawerau ā Maki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Uri-o-Hau</Label>
            <Label xml:lang="mi">Te Uri-o-Hau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Roroa</Label>
            <Label xml:lang="mi">Te Roroa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Whātua o Kaipara</Label>
            <Label xml:lang="mi">Ngāti Whātua o Kaipara</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0114">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Whātua o Ōrākei</Label>
            <Label xml:lang="mi">Ngāti Whātua o Ōrākei</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0115">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāi Tai ki Tāmaki</Label>
            <Label xml:lang="mi">Ngāi Tai ki Tāmaki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0116">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Hine (Te Tai Tokerau)</Label>
            <Label xml:lang="mi">Ngāti Hine (Te Tai Tokerau)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0117">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Paatu</Label>
            <Label xml:lang="mi">Te Paatu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0118">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Manuhiri</Label>
            <Label xml:lang="mi">Ngāti Manuhiri</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0119">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Rēhua</Label>
            <Label xml:lang="mi">Ngāti Rēhua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS02">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hauraki (Coromandel) Region Iwi</Label>
            <Label xml:lang="mi">Hauraki Rohenga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0201">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Hako</Label>
            <Label xml:lang="mi">Ngāti Hako</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0202">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Hei</Label>
            <Label xml:lang="mi">Ngāti Hei</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0203">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Maru (Hauraki)</Label>
            <Label xml:lang="mi">Ngāti Maru (Hauraki)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0204">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Paoa</Label>
            <Label xml:lang="mi">Ngāti Paoa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0205">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Patukirikiri</Label>
            <Label xml:lang="mi">Patukirikiri</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0206">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Porou ki Harataunga ki Mataora</Label>
            <Label xml:lang="mi">Ngāti Porou ki Harataunga ki Mataora</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0207">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Pūkenga ki Waiau</Label>
            <Label xml:lang="mi">Ngāti Pūkenga ki Waiau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0208">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Rāhiri Tumutumu</Label>
            <Label xml:lang="mi">Ngāti Rāhiri Tumutumu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0210">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Tamaterā</Label>
            <Label xml:lang="mi">Ngāti Tamaterā</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0211">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Tara Tokanui</Label>
            <Label xml:lang="mi">Ngāti Tara Tokanui</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0212">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Whanaunga</Label>
            <Label xml:lang="mi">Ngāti Whanaunga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS03">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Waikato/Te Rohe Pōtae (Waikato/King Country) Region Iwi</Label>
            <Label xml:lang="mi">Waikato/Te Rohe Pōtae</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0301">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Haua (Waikato)</Label>
            <Label xml:lang="mi">Ngāti Haua (Waikato)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0302">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Maniapoto</Label>
            <Label xml:lang="mi">Ngāti Maniapoto</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0303">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Raukawa (Waikato)</Label>
            <Label xml:lang="mi">Raukawa (Waikato)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0304">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Waikato</Label>
            <Label xml:lang="mi">Waikato</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0305">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Te Ata</Label>
            <Label xml:lang="mi">Ngāti Te Ata</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0306">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Hīkairo</Label>
            <Label xml:lang="mi">Ngāti Hīkairo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0307">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Rereahu</Label>
            <Label xml:lang="mi">Rereahu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0308">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Tiipa</Label>
            <Label xml:lang="mi">Ngāti Tiipa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0309">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Korokī Kahukura</Label>
            <Label xml:lang="mi">Ngāti Korokī Kahukura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0310">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Tamaoho</Label>
            <Label xml:lang="mi">Ngāti Tamaoho</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0311">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Ākitai-Waiohua</Label>
            <Label xml:lang="mi">Te Ākitai-Waiohua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS04">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Arawa/Taupō (Rotorua/Taupō) Region Iwi</Label>
            <Label xml:lang="mi">Te Arawa/Taupō</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0401">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Pikiao (Te Arawa)</Label>
            <Label xml:lang="mi">Ngāti Pikiao (Te Arawa)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0402">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Rangiteaorere (Te Arawa)</Label>
            <Label xml:lang="mi">Ngāti Rangiteaorere (Te Arawa)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0403">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Rangitihi (Te Arawa)</Label>
            <Label xml:lang="mi">Ngāti Rangitihi (Te Arawa)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0404">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Rangiwewehi (Te Arawa)</Label>
            <Label xml:lang="mi">Ngāti Rangiwewehi (Te Arawa)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0405">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tapuika (Te Arawa)</Label>
            <Label xml:lang="mi">Tapuika (Te Arawa)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0406">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Tarāwhai (Te Arawa)</Label>
            <Label xml:lang="mi">Ngāti Tarāwhai (Te Arawa)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0407">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tūhourangi (Te Arawa)</Label>
            <Label xml:lang="mi">Tūhourangi (Te Arawa)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0408">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Uenuku-Kōpako (Te Arawa)</Label>
            <Label xml:lang="mi">Uenuku-Kōpako (Te Arawa)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0409">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Waitaha (Te Arawa)</Label>
            <Label xml:lang="mi">Waitaha (Te Arawa)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0410">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Whakaue (Te Arawa)</Label>
            <Label xml:lang="mi">Ngāti Whakaue (Te Arawa)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0411">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Tūwharetoa (ki Taupō)</Label>
            <Label xml:lang="mi">Ngāti Tūwharetoa (ki Taupō)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0412">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Tahu-Ngāti Whaoa (Te Arawa)</Label>
            <Label xml:lang="mi">Ngāti Tahu-Ngāti Whaoa (Te Arawa)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0413">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Mākino</Label>
            <Label xml:lang="mi">Ngāti Mākino</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0414">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Kearoa / Ngāti Tuarā</Label>
            <Label xml:lang="mi">Ngāti Kearoa / Ngāti Tuarā</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0415">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Rongomai (Te Arawa)</Label>
            <Label xml:lang="mi">Ngāti Rongomai (Te Arawa)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS05">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tauranga Moana/Mātaatua (Bay of Plenty) Region Iwi</Label>
            <Label xml:lang="mi">Tauranga Moana/Mātaatua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0501">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Pūkenga</Label>
            <Label xml:lang="mi">Ngāti Pūkenga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0502">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāi Te Rangi </Label>
            <Label xml:lang="mi">Ngāi Te Rangi </Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0503">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Ranginui</Label>
            <Label xml:lang="mi">Ngāti Ranginui</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0504">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Awa</Label>
            <Label xml:lang="mi">Ngāti Awa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0505">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Manawa</Label>
            <Label xml:lang="mi">Ngāti Manawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0506">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāi Tai (Tauranga Moana/Mātaatua)</Label>
            <Label xml:lang="mi">Ngāi Tai (Tauranga Moana/Mātaatua)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0507">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tūhoe</Label>
            <Label xml:lang="mi">Tūhoe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0508">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Whakatōhea</Label>
            <Label xml:lang="mi">Whakatōhea</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0509">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Whānau-ā-Apanui</Label>
            <Label xml:lang="mi">Te Whānau-ā-Apanui</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0510">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Whare</Label>
            <Label xml:lang="mi">Ngāti Whare</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0511">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngā Pōtiki ā Tamapahore</Label>
            <Label xml:lang="mi">Ngā Pōtiki ā Tamapahore</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0512">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Upokorehe</Label>
            <Label xml:lang="mi">Te Upokorehe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0513">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Tūwharetoa ki Kawerau </Label>
            <Label xml:lang="mi">Ngāti Tūwharetoa ki Kawerau </Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS06">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Tai Rāwhiti (East Coast) Region Iwi</Label>
            <Label xml:lang="mi">Te Tai Rāwhiti Rohenga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0601">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Porou</Label>
            <Label xml:lang="mi">Ngāti Porou</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0602">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Aitanga-a-Māhaki</Label>
            <Label xml:lang="mi">Te Aitanga-a-Māhaki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0603">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Rongowhakaata</Label>
            <Label xml:lang="mi">Rongowhakaata</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0604">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāi Tāmanuhiri</Label>
            <Label xml:lang="mi">Ngāi Tāmanuhiri</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0605">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Aitanga ā Hauiti</Label>
            <Label xml:lang="mi">Te Aitanga ā Hauiti</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS07">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Matau-a-Māui/Wairarapa (Hawke's Bay/Wairarapa) Region Iwi</Label>
            <Label xml:lang="mi">Te Matau-a-Māui/Wairarapa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0701">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Rongomaiwahine (Te Māhia)</Label>
            <Label xml:lang="mi">Rongomaiwahine (Te Māhia)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0702">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Kahungunu ki Te Wairoa</Label>
            <Label xml:lang="mi">Ngāti Kahungunu ki Te Wairoa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0703">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Kahungunu ki Heretaunga</Label>
            <Label xml:lang="mi">Ngāti Kahungunu ki Heretaunga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0704">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Kahungunu ki Wairarapa</Label>
            <Label xml:lang="mi">Ngāti Kahungunu ki Wairarapa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0706">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Rangitāne (Te Matau-a-Māui/Hawke's Bay/Wairarapa)</Label>
            <Label xml:lang="mi">Rangitāne (Te Matau-a-Māui/Wairarapa)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0707">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Kahungunu ki Te Whanganui-a-Orotu</Label>
            <Label xml:lang="mi">Ngāti Kahungunu ki Te Whanganui-a-Orotu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0708">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Kahungunu ki Tamatea</Label>
            <Label xml:lang="mi">Ngāti Kahungunu ki Tamatea</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0709">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Kahungunu ki Tamakinui a Rua</Label>
            <Label xml:lang="mi">Ngāti Kahungunu ki Tamakinui a Rua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0710">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Pāhauwera</Label>
            <Label xml:lang="mi">Ngāti Pāhauwera</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0711">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Rākaipaaka</Label>
            <Label xml:lang="mi">Ngāti Rākaipaaka</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0712">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Hineuru</Label>
            <Label xml:lang="mi">Ngāti Hineuru</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0713">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Maungaharuru Tangitū</Label>
            <Label xml:lang="mi">Maungaharuru Tangitū</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0714">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Rangitāne o Tamaki nui ā Rua</Label>
            <Label xml:lang="mi">Rangitāne o Tamaki nui ā Rua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0715">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Ruapani ki Waikaremoana</Label>
            <Label xml:lang="mi">Ngāti Ruapani ki Waikaremoana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0716">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Hika o Pāpāuma</Label>
            <Label xml:lang="mi">Te Hika o Pāpāuma</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS08">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Taranaki Region Iwi</Label>
            <Label xml:lang="mi">Taranaki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0801">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Atiawa (Taranaki)</Label>
            <Label xml:lang="mi">Te Atiawa (Taranaki)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0802">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Maru (Taranaki)</Label>
            <Label xml:lang="mi">Ngāti Maru (Taranaki)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0803">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Mutunga (Taranaki)</Label>
            <Label xml:lang="mi">Ngāti Mutunga (Taranaki)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0804">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngā Rauru</Label>
            <Label xml:lang="mi">Ngā Rauru</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0805">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngā Ruahine</Label>
            <Label xml:lang="mi">Ngā Ruahine</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0806">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Ruanui</Label>
            <Label xml:lang="mi">Ngāti Ruanui</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0807">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Tama (Taranaki)</Label>
            <Label xml:lang="mi">Ngāti Tama (Taranaki)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0808">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Taranaki</Label>
            <Label xml:lang="mi">Taranaki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0809">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tangāhoe</Label>
            <Label xml:lang="mi">Tangāhoe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0810">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pakakohi</Label>
            <Label xml:lang="mi">Pakakohi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS09">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Whanganui/Rangitīkei (Wanganui/Rangitīkei) Region Iwi</Label>
            <Label xml:lang="mi">Whanganui/Rangitīkei</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0901">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Apa (Rangitīkei)</Label>
            <Label xml:lang="mi">Ngāti Apa (Rangitīkei)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0902">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Ati Haunui-a-Pāpārangi</Label>
            <Label xml:lang="mi">Te Ati Haunui-a-Pāpārangi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0903">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Haua (Taumarunui)</Label>
            <Label xml:lang="mi">Ngāti Haua (Taumarunui)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0904">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Hauiti (Rangitīkei)</Label>
            <Label xml:lang="mi">Ngāti Hauiti (Rangitīkei)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0905">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Whitikaupeka (Rangitīkei)</Label>
            <Label xml:lang="mi">Ngāti Whitikaupeka (Rangitīkei)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0906">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāi Te Ohuake (Rangitīkei)</Label>
            <Label xml:lang="mi">Ngāi Te Ohuake (Rangitīkei)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0907">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Tamakōpiri (Rangitīkei)</Label>
            <Label xml:lang="mi">Ngāti Tamakōpiri (Rangitīkei)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0908">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Rangi (Ruapehu, Whanganui)</Label>
            <Label xml:lang="mi">Ngāti Rangi (Ruapehu, Whanganui)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0909">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Uenuku (Ruapehu, Waimarino)</Label>
            <Label xml:lang="mi">Uenuku (Ruapehu, Waimarino)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0910">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tamahaki (Ruapehu, Waimarino)</Label>
            <Label xml:lang="mi">Tamahaki (Ruapehu, Waimarino)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS0911">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tamakana (Ruapehu, Waimarino)</Label>
            <Label xml:lang="mi">Tamakana (Ruapehu, Waimarino)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS10">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Manawatū/Horowhenua/Te Whanganui-a-Tara (Manawatū/Horowhenua/Wellington) Region Iwi</Label>
            <Label xml:lang="mi">Manawatū/Horowhenua/Te Whanganui-a-Tara</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1001">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Atiawa (Te Whanganui-a-Tara/Wellington)</Label>
            <Label xml:lang="mi">Te Atiawa (Te Whanganui-a-Tara)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1002">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Muaūpoko</Label>
            <Label xml:lang="mi">Muaūpoko</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1003">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Rangitāne (Manawatū)</Label>
            <Label xml:lang="mi">Rangitāne (Manawatū)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1004">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Raukawa (Horowhenua/Manawatū)</Label>
            <Label xml:lang="mi">Ngāti Raukawa (Horowhenua/Manawatū)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1005">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Toarangatira (Te Whanganui-a-Tara/Wellington)</Label>
            <Label xml:lang="mi">Ngāti Toarangatira (Te Whanganui-a-Tara)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1006">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Atiawa ki Whakarongotai</Label>
            <Label xml:lang="mi">Te Atiawa ki Whakarongotai</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1007">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Tama ki Te Upoko o Te Ika (Te Whanganui-a-Tara/Wellington)</Label>
            <Label xml:lang="mi">Ngāti Tama ki Te Ūpoko o Te Ika (Te Whanganui-a-Tara)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1008">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Kauwhata</Label>
            <Label xml:lang="mi">Ngāti Kauwhata</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1009">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Tukorehe</Label>
            <Label xml:lang="mi">Ngāti Tukorehe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS11">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Waipounamu/Wharekauri (South Island/Chatham Islands) Region Iwi</Label>
            <Label xml:lang="mi">Te Waipounamu/Wharekauri</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1101">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Atiawa (Te Waipounamu/South Island)</Label>
            <Label xml:lang="mi">Te Atiawa (Te Waipounamu)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1102">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Koata</Label>
            <Label xml:lang="mi">Ngāti Koata</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1103">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Kuia</Label>
            <Label xml:lang="mi">Ngāti Kuia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1104">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kāti Māmoe</Label>
            <Label xml:lang="mi">Kāti Māmoe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1105">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Moriori</Label>
            <Label xml:lang="mi">Moriori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1106">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Mutunga (Wharekauri/Chatham Islands)</Label>
            <Label xml:lang="mi">Ngāti Mutunga (Wharekauri)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1107">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Rangitāne (Te Waipounamu/South Island)</Label>
            <Label xml:lang="mi">Rangitāne (Te Waipounamu)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1108">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Rārua</Label>
            <Label xml:lang="mi">Ngāti Rārua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1109">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāi Tahu / Kāi Tahu</Label>
            <Label xml:lang="mi">Ngāi Tahu / Kāi Tahu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Tama (Te Waipounamu/South Island)</Label>
            <Label xml:lang="mi">Ngāti Tama (Te Waipounamu)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Toarangatira (Te Waipounamu/South Island)</Label>
            <Label xml:lang="mi">Ngāti Toarangatira (Te Waipounamu)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Waitaha (Te Waipounamu/South Island)</Label>
            <Label xml:lang="mi">Waitaha (Te Waipounamu)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Apa ki Te Rā Tō</Label>
            <Label xml:lang="mi">Ngāti Apa ki Te Rā Tō</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Confederations and Waka, iwi not named</Label>
            <Label xml:lang="mi">Ngā Whakaminenga me nga Waka, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2001">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tainui, iwi not named</Label>
            <Label xml:lang="mi">Tainui, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2002">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Arawa, iwi not named</Label>
            <Label xml:lang="mi">Te Arawa, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2003">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tākitimu, iwi not named</Label>
            <Label xml:lang="mi">Tākitimu, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2004">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Aotea, iwi not named</Label>
            <Label xml:lang="mi">Aotea, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2005">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mātaatua, iwi not named</Label>
            <Label xml:lang="mi">Mātaatua, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2006">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mahuru, iwi not named</Label>
            <Label xml:lang="mi">Mahuru, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2007">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Māmari, iwi not named</Label>
            <Label xml:lang="mi">Māmari, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2008">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngātokimatawhaorua, iwi not named</Label>
            <Label xml:lang="mi">Ngātokimatawhaorua, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2009">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Nukutere, iwi not named</Label>
            <Label xml:lang="mi">Nukutere, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2010">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tokomaru, iwi not named</Label>
            <Label xml:lang="mi">Tokomaru, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2011">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kurahaupō, iwi not named</Label>
            <Label xml:lang="mi">Kurahaupō, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2012">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Muriwhenua, iwi not named</Label>
            <Label xml:lang="mi">Muriwhenua, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2013">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hauraki / Pare Hauraki, iwi not named</Label>
            <Label xml:lang="mi">Hauraki / Pare Hauraki, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2014">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tūranganui a Kiwa, iwi not named</Label>
            <Label xml:lang="mi">Tūranganui a Kiwa, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2015">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Tauihu o Te Waka a Māui, iwi not named</Label>
            <Label xml:lang="mi">Te Tauihu o Te Waka a Māui, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2016">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tauranga Moana, iwi not named</Label>
            <Label xml:lang="mi">Tauranga Moana, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2017">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Horouta, iwi not named</Label>
            <Label xml:lang="mi">Horouta, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2018">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mōkai Pātea, iwi not named </Label>
            <Label xml:lang="mi">Mōkai Pātea, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Iwi named, region not known</Label>
            <Label xml:lang="mi">Ko te iwi noa iho</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2101">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Atiawa, region not known</Label>
            <Label xml:lang="mi">Te Atiawa, kāre i mōhiotia te rohe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2102">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Haua, region not known</Label>
            <Label xml:lang="mi">Ngāti Hauā, kāre i mōhiotia te rohe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2103">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Maru, region not known</Label>
            <Label xml:lang="mi">Ngāti Maru, kāre i mōhiotia te rohe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2104">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Mutunga, region not known</Label>
            <Label xml:lang="mi">Ngāti Mutunga, kāre i mōhiotia te rohe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2105">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Rangitāne, region not known</Label>
            <Label xml:lang="mi">Rangitāne, kāre i mōhiotia te rohe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2106">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Raukawa, region not known</Label>
            <Label xml:lang="mi">Ngāti Raukawa, kāre i mōhiotia te rohe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2107">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Tama, region not known</Label>
            <Label xml:lang="mi">Ngāti Tama, kāre i mōhiotia te rohe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2108">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Toa, region not known</Label>
            <Label xml:lang="mi">Ngāti Toa, kāre i mōhiotia te rohe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2109">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Waitaha, region not known</Label>
            <Label xml:lang="mi">Waitaha, kāre i mōhiotia te rohe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2110">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Apa, region not known</Label>
            <Label xml:lang="mi">Ngāti Apa, kāre i mōhiotia te rohe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2111">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāi Tai, region not known</Label>
            <Label xml:lang="mi">Ngāi Tai, kāre i mōhiotia te rohe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2112">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Kahungunu, region not known</Label>
            <Label xml:lang="mi">Ngāti Kahungunu, kāre i mōhiotia te rohe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2113">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ngāti Tūwharetoa, region not known</Label>
            <Label xml:lang="mi">Ngāti Tūwharetoa, kāre i mōhiotia te rohe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS22">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hapū affiliated to more than one iwi</Label>
            <Label xml:lang="mi">Hapū he pānga ki iwi kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2201">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hapū affiliated to more than one iwi</Label>
            <Label xml:lang="mi">Hapū he pānga ki iwi kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS23">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Region known, Iwi not named</Label>
            <Label xml:lang="mi">Mōhiotia te rohe, kāre te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2301">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Tai Tokerau/Tāmaki-makaurau Region, Iwi not named</Label>
            <Label xml:lang="mi">Te Tai Tokerau/Tāmaki-makaurau, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2302">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hauraki Region, Iwi not named</Label>
            <Label xml:lang="mi">Hauraki, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2303">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Waikato/Te Rohe Pōtae Region, Iwi not named</Label>
            <Label xml:lang="mi">Waikato/Te Rohe Pōtae, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2304">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Arawa/Taupō Region, Iwi not named</Label>
            <Label xml:lang="mi">Te Arawa/Taupō, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2305">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tauranga Moana/Mātaatua Region, Iwi not named</Label>
            <Label xml:lang="mi">Tauranga Moana/Mātaatua, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2306">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Tai Rāwhiti Region, Iwi not named</Label>
            <Label xml:lang="mi">Te Tai Rāwhiti, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2307">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Matau-a-Māui/Wairarapa Region, Iwi not named</Label>
            <Label xml:lang="mi">Te Matau-a-Māui/Wairarapa, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2308">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Taranaki Region, Iwi not named</Label>
            <Label xml:lang="mi">Taranaki, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2309">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Whanganui/Rangitīkei Region, Iwi not named</Label>
            <Label xml:lang="mi">Whanganui/Rangitīkei, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2310">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Manawatū/Horowhenua/Te Whanganui-a-Tara Region, Iwi not named</Label>
            <Label xml:lang="mi">Manawatū/Horowhenua/Te Whanganui-a-Tara, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2311">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Waipounamu/Wharekauri Region, Iwi not named</Label>
            <Label xml:lang="mi">Te Waipounamu/Wharekauri, kāre i kīia te iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS44">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Don't Know</Label>
            <Label xml:lang="mi">Kāre i te mōhio</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS4444">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Don't Know</Label>
            <Label xml:lang="mi">Kāre i te mōhio</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS55">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Refused To Answer</Label>
            <Label xml:lang="mi">Kāre i whakautu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS5555">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Refused To Answer</Label>
            <Label xml:lang="mi">Kāre i whakautu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS77">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Response Unidentifiable</Label>
            <Label xml:lang="mi">Kāre i arohia te whakautu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS7777">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Response Unidentifiable</Label>
            <Label xml:lang="mi">Kāre i arohia te whakautu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS88">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Response Outside Scope</Label>
            <Label xml:lang="mi">Kāre te whakautu e hāngai</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS8888">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Response Outside Scope</Label>
            <Label xml:lang="mi">Kāre te whakautu e hāngai</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS99">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Not Stated</Label>
            <Label xml:lang="mi">Kāre i kīia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS9999">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Not Stated</Label>
            <Label xml:lang="mi">Kāre i kīia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsReligionType">
    <xs:annotation>
      <xs:documentation><p>Religious affiliation is the self-identified association of a person with a religion,
			 denomination or sub-denominational religious group.</p><p>Sourced from <a href="http://aria.stats.govt.nz/aria/#ClassificationView:uri=http://stats.govt.nz/cms/ClassificationVersion/CARS2902">Statistics NZ - Religious Affiliation 1999 v1.0.0.0</a></p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="NZS0">
        <xs:annotation>
          <xs:appinfo>
            <Label>No Religion</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS1">
        <xs:annotation>
          <xs:appinfo>
            <Label>Buddhist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS101">
        <xs:annotation>
          <xs:appinfo>
            <Label>Buddhist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS10101">
        <xs:annotation>
          <xs:appinfo>
            <Label>Zen Buddhist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS10199">
        <xs:annotation>
          <xs:appinfo>
            <Label>Buddhist nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS2">
        <xs:annotation>
          <xs:appinfo>
            <Label>Christian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS201">
        <xs:annotation>
          <xs:appinfo>
            <Label>Adventist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20101">
        <xs:annotation>
          <xs:appinfo>
            <Label>Christadelphian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20102">
        <xs:annotation>
          <xs:appinfo>
            <Label>Seventh Day Adventist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20103">
        <xs:annotation>
          <xs:appinfo>
            <Label>Worldwide Church of God</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20199">
        <xs:annotation>
          <xs:appinfo>
            <Label>Adventist nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS202">
        <xs:annotation>
          <xs:appinfo>
            <Label>Anglican</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS203">
        <xs:annotation>
          <xs:appinfo>
            <Label>Asian Christian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20301">
        <xs:annotation>
          <xs:appinfo>
            <Label>Chinese Christian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20302">
        <xs:annotation>
          <xs:appinfo>
            <Label>Korean Christian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS204">
        <xs:annotation>
          <xs:appinfo>
            <Label>Baptist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20401">
        <xs:annotation>
          <xs:appinfo>
            <Label>Bible Baptist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20402">
        <xs:annotation>
          <xs:appinfo>
            <Label>Independent Baptist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20403">
        <xs:annotation>
          <xs:appinfo>
            <Label>Reformed Baptist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20499">
        <xs:annotation>
          <xs:appinfo>
            <Label>Baptist nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS205">
        <xs:annotation>
          <xs:appinfo>
            <Label>Brethren</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20501">
        <xs:annotation>
          <xs:appinfo>
            <Label>Exclusive Brethren</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20502">
        <xs:annotation>
          <xs:appinfo>
            <Label>Open Brethren</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20503">
        <xs:annotation>
          <xs:appinfo>
            <Label>Plymouth Brethren</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20599">
        <xs:annotation>
          <xs:appinfo>
            <Label>Brethren nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS206">
        <xs:annotation>
          <xs:appinfo>
            <Label>Catholic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20601">
        <xs:annotation>
          <xs:appinfo>
            <Label>Roman Catholic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20699">
        <xs:annotation>
          <xs:appinfo>
            <Label>Catholic nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS207">
        <xs:annotation>
          <xs:appinfo>
            <Label>Church of Christ and Associated Churches of Christ</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20701">
        <xs:annotation>
          <xs:appinfo>
            <Label>Associated Churches of Christ</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20799">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other Church of Christ and Churches of Christ nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS208">
        <xs:annotation>
          <xs:appinfo>
            <Label>Evangelical, Born Again and Fundamentalist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20801">
        <xs:annotation>
          <xs:appinfo>
            <Label>Evangelical</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20802">
        <xs:annotation>
          <xs:appinfo>
            <Label>Born Again</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20803">
        <xs:annotation>
          <xs:appinfo>
            <Label>Fundamentalist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20804">
        <xs:annotation>
          <xs:appinfo>
            <Label>Independent Evangelical Churches</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS209">
        <xs:annotation>
          <xs:appinfo>
            <Label>Jehovah's Witnesses</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS20901">
        <xs:annotation>
          <xs:appinfo>
            <Label>Jehovah's Witnesses</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS210">
        <xs:annotation>
          <xs:appinfo>
            <Label>Latter-day Saints</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS211">
        <xs:annotation>
          <xs:appinfo>
            <Label>Lutheran</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS212">
        <xs:annotation>
          <xs:appinfo>
            <Label>Methodist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21201">
        <xs:annotation>
          <xs:appinfo>
            <Label>Tongan Methodist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21299">
        <xs:annotation>
          <xs:appinfo>
            <Label>Methodist nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS213">
        <xs:annotation>
          <xs:appinfo>
            <Label>Orthodox</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21301">
        <xs:annotation>
          <xs:appinfo>
            <Label>Assyrian Orthodox</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21302">
        <xs:annotation>
          <xs:appinfo>
            <Label>Coptic Orthodox</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21303">
        <xs:annotation>
          <xs:appinfo>
            <Label>Greek Orthodox</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21304">
        <xs:annotation>
          <xs:appinfo>
            <Label>Russian Orthodox</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21305">
        <xs:annotation>
          <xs:appinfo>
            <Label>Serbian Orthodox</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21399">
        <xs:annotation>
          <xs:appinfo>
            <Label>Orthodox nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS214">
        <xs:annotation>
          <xs:appinfo>
            <Label>Pentecostal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21401">
        <xs:annotation>
          <xs:appinfo>
            <Label>Apostolic Church of New Zealand</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21402">
        <xs:annotation>
          <xs:appinfo>
            <Label>Assemblies of God</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21403">
        <xs:annotation>
          <xs:appinfo>
            <Label>Christian Fellowship</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21404">
        <xs:annotation>
          <xs:appinfo>
            <Label>Christian Outreach</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21405">
        <xs:annotation>
          <xs:appinfo>
            <Label>Christian Revival Crusade</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21406">
        <xs:annotation>
          <xs:appinfo>
            <Label>Elim</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21407">
        <xs:annotation>
          <xs:appinfo>
            <Label>Full Gospel</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21408">
        <xs:annotation>
          <xs:appinfo>
            <Label>Independent Pentecostal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21409">
        <xs:annotation>
          <xs:appinfo>
            <Label>New Life Centres</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21410">
        <xs:annotation>
          <xs:appinfo>
            <Label>Revival Centres</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21411">
        <xs:annotation>
          <xs:appinfo>
            <Label>United Pentecostal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21412">
        <xs:annotation>
          <xs:appinfo>
            <Label>Vineyard Christian Fellowship</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21499">
        <xs:annotation>
          <xs:appinfo>
            <Label>Pentecostal nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS215">
        <xs:annotation>
          <xs:appinfo>
            <Label>Presbyterian, Congregational and Reformed</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21501">
        <xs:annotation>
          <xs:appinfo>
            <Label>Presbyterian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21502">
        <xs:annotation>
          <xs:appinfo>
            <Label>Congregational</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21503">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cook Island Congregational</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21504">
        <xs:annotation>
          <xs:appinfo>
            <Label>Samoan Congregational</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21505">
        <xs:annotation>
          <xs:appinfo>
            <Label>Reformed</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS216">
        <xs:annotation>
          <xs:appinfo>
            <Label>Protestant</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS217">
        <xs:annotation>
          <xs:appinfo>
            <Label>Salvation Army</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS218">
        <xs:annotation>
          <xs:appinfo>
            <Label>Uniting/Union Church and Ecumenical</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21801">
        <xs:annotation>
          <xs:appinfo>
            <Label>Uniting/Union Church</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS21802">
        <xs:annotation>
          <xs:appinfo>
            <Label>Ecumenical</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS299">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other Christian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS29901">
        <xs:annotation>
          <xs:appinfo>
            <Label>Christian and Missionary Alliance</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS29902">
        <xs:annotation>
          <xs:appinfo>
            <Label>Christian Science</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS29903">
        <xs:annotation>
          <xs:appinfo>
            <Label>Church of God</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS29904">
        <xs:annotation>
          <xs:appinfo>
            <Label>Commonwealth Covenant Church</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS29905">
        <xs:annotation>
          <xs:appinfo>
            <Label>Liberal Catholic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS29906">
        <xs:annotation>
          <xs:appinfo>
            <Label>Metropolitan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS29907">
        <xs:annotation>
          <xs:appinfo>
            <Label>Nazarene</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS29908">
        <xs:annotation>
          <xs:appinfo>
            <Label>Religious Society of Friends (Quaker)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS29909">
        <xs:annotation>
          <xs:appinfo>
            <Label>Unitarian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS3">
        <xs:annotation>
          <xs:appinfo>
            <Label>Hindu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS30101">
        <xs:annotation>
          <xs:appinfo>
            <Label>Hare Krishna</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS30102">
        <xs:annotation>
          <xs:appinfo>
            <Label>Yoga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS4">
        <xs:annotation>
          <xs:appinfo>
            <Label>Islam/Muslim</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS40101">
        <xs:annotation>
          <xs:appinfo>
            <Label>Sufi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS5">
        <xs:annotation>
          <xs:appinfo>
            <Label>Judaism/Jewish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS6">
        <xs:annotation>
          <xs:appinfo>
            <Label>Māori Christian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS601">
        <xs:annotation>
          <xs:appinfo>
            <Label>Ratana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS602">
        <xs:annotation>
          <xs:appinfo>
            <Label>Ringatū</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS609">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other Māori Christian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS7">
        <xs:annotation>
          <xs:appinfo>
            <Label>Spiritualism and New Age Religions</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS701">
        <xs:annotation>
          <xs:appinfo>
            <Label>Church of Scientology</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS702">
        <xs:annotation>
          <xs:appinfo>
            <Label>Nature and Earth Based Religions</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS70201">
        <xs:annotation>
          <xs:appinfo>
            <Label>Animist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS70202">
        <xs:annotation>
          <xs:appinfo>
            <Label>Druid</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS70203">
        <xs:annotation>
          <xs:appinfo>
            <Label>Pantheist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS70204">
        <xs:annotation>
          <xs:appinfo>
            <Label>Wiccan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS703">
        <xs:annotation>
          <xs:appinfo>
            <Label>Satanism</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS704">
        <xs:annotation>
          <xs:appinfo>
            <Label>Spiritualist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS709">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other New Age Religions</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS70901">
        <xs:annotation>
          <xs:appinfo>
            <Label>Rastafarianism</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS8">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other Religions</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS801">
        <xs:annotation>
          <xs:appinfo>
            <Label>Baha'i</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS802">
        <xs:annotation>
          <xs:appinfo>
            <Label>Chinese Religions</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS80201">
        <xs:annotation>
          <xs:appinfo>
            <Label>Confucianism</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS80202">
        <xs:annotation>
          <xs:appinfo>
            <Label>Taoism</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS803">
        <xs:annotation>
          <xs:appinfo>
            <Label>Jainism</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS804">
        <xs:annotation>
          <xs:appinfo>
            <Label>Japanese Religion</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS80401">
        <xs:annotation>
          <xs:appinfo>
            <Label>Mahikari</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS80402">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shinto</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS80403">
        <xs:annotation>
          <xs:appinfo>
            <Label>Tenrikyo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS805">
        <xs:annotation>
          <xs:appinfo>
            <Label>Māori Religion</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS80501">
        <xs:annotation>
          <xs:appinfo>
            <Label>Hauhau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS806">
        <xs:annotation>
          <xs:appinfo>
            <Label>Sikh</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS807">
        <xs:annotation>
          <xs:appinfo>
            <Label>Theism</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS808">
        <xs:annotation>
          <xs:appinfo>
            <Label>Zoroastrian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS809">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other Religions</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS80901">
        <xs:annotation>
          <xs:appinfo>
            <Label>Unification Church (Moonist)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS80999">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other Religions nec</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS944">
        <xs:annotation>
          <xs:appinfo>
            <Label>Don't Know</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS955">
        <xs:annotation>
          <xs:appinfo>
            <Label>Object to answering</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS977">
        <xs:annotation>
          <xs:appinfo>
            <Label>Religion Unidentifiable</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS988">
        <xs:annotation>
          <xs:appinfo>
            <Label>Response Outside Scope</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS999">
        <xs:annotation>
          <xs:appinfo>
            <Label>Not Stated</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsHealthcareServiceTypeType">
    <xs:annotation>
      <xs:documentation><p>Code denoting the type of healthcare service provided by a StudentContact.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="DOC">
        <xs:annotation>
          <xs:appinfo>
            <Label>Doctor</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DEN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Dentist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="THE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Therapist</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLanguageProficiencyTypeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting a type of language proficiency, e.g. speaking, writing reading.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="SP">
        <xs:annotation>
          <xs:appinfo>
            <Label>Speaking</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Reading</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Writing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLanguageProficiencyLevelType">
    <xs:annotation>
      <xs:documentation><p>The language proficiency level.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="NO">
        <xs:annotation>
          <xs:appinfo>
            <Label>None</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Beginner</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Intermediate</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AD">
        <xs:annotation>
          <xs:appinfo>
            <Label>Advanced</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsDocumentTypeType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the type of Document.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="IBP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Individualised Behavioural Plan</Label>
            <Label xml:lang="mi">Mahere Whanonga mā te Ākonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IEP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Individualised Education Plan</Label>
            <Label xml:lang="mi">Mahere Mātauranga mā te Ākonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MED">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Medical</Label>
            <Label xml:lang="mi">Toha rongoā</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ATT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attendance</Label>
            <Label xml:lang="mi">Te Tae ki te Kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BEH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Behavioural</Label>
            <Label xml:lang="mi">Whanonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ACA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Academic</Label>
            <Label xml:lang="mi">Mātauranga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LEG">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Legal</Label>
            <Label xml:lang="mi">Ture</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other</Label>
            <Label xml:lang="mi">Mea kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PHO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Photo</Label>
            <Label xml:lang="mi">Whakaahua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MEA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Media (e.g. video)</Label>
            <Label xml:lang="mi">Pāpāho (h.t. whitiata)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DOC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Document</Label>
            <Label xml:lang="mi">Tuhinga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NOT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Note</Label>
            <Label xml:lang="mi">Pito kōrero</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Learning Support Need - Supporting Document</Label>
            <Label xml:lang="mi">Me whai tautoko akoranga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PPH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Person Photo</Label>
            <Label xml:lang="mi">Whakaahua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NRA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Learning Support Need Response Attachment</Label>
            <Label xml:lang="mi">Matea Ako - Tāpiringa Urupare</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NRC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Learning Support Need Response Closure Attachment</Label>
            <Label xml:lang="mi">Matea Ako Urupare Whakakapi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NRR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Learning Support Need Response Review Attachment</Label>
            <Label xml:lang="mi">Matea Ako Urupare Arotake</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ODA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Official Diagnosis Attachment</Label>
            <Label xml:lang="mi">Whakataunga Matua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsDocumentClassificationType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the classification of the Document.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="IC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">In-Confidence</Label>
            <Label xml:lang="mi">Noho muna</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sensitive</Label>
            <Label xml:lang="mi">Āritarita</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Unclassified</Label>
            <Label xml:lang="mi">Kāre anō kia kōmakatia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsDocumentRoleType">
    <xs:annotation>
      <xs:documentation><p>A code set denoting the role a person performs in relation to a document and 
				their role in relation to it, e.g. author, owner, reviewer, subject of.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="OW">
        <xs:annotation>
          <xs:appinfo>
            <Label>Owner</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AU">
        <xs:annotation>
          <xs:appinfo>
            <Label>Author</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Reviewer</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SU">
        <xs:annotation>
          <xs:appinfo>
            <Label>Subject Of</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AD">
        <xs:annotation>
          <xs:appinfo>
            <Label>Added By</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsSchoolManagementSystemType">
    <xs:annotation>
      <xs:documentation><p>A code list denoting the School Management Systems (SMS) that are in use by Providers.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="ASS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Assembly</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ETA">
        <xs:annotation>
          <xs:appinfo>
            <Label>eTAP</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INT">
        <xs:annotation>
          <xs:appinfo>
            <Label>INTEGRATOR</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="KAM">
        <xs:annotation>
          <xs:appinfo>
            <Label>KAMAR</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LIN">
        <xs:annotation>
          <xs:appinfo>
            <Label>LINC-ED</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MUS">
        <xs:annotation>
          <xs:appinfo>
            <Label>MUSAC edge</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PCS">
        <xs:annotation>
          <xs:appinfo>
            <Label>PCSchool</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SYN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Synergetic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsBiographicChangeReasonType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the reasons for which a persons biographical data may have changed.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="CF">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Changed by family (PA request)</Label>
            <Label xml:lang="mi">He Panoni Nā te Whānau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Entered incorrectly</Label>
            <Label xml:lang="mi">I hē te whakauru</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ON">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Official name change</Label>
            <Label xml:lang="mi">Kua mana te panoni ingoa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAddressTypeType">
    <xs:annotation>
      <xs:documentation><p>
				Address type allows an address to be categorised according to its component structure.
				Address type can be used to build processing rules for validating, managing and presenting
				addresses. Address type is independent of the use of the address by any party. To describe
				how a party may use an address (residence, billing, term address etc) see AddressRoleType
			</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="TH">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Also called 'Street' addresses, The most
					general, and widely used type of address, and can
					contain the widest variety of components</p>
            <p xmlns="http://sifassociation.org/SpecGen">In general a thoroughfare address will include
					components for a number, a roadname, and a
					locality.</p>
            <p xmlns="http://sifassociation.org/SpecGen">They cannot contain any of the components
					specific to a delivery service, rural post
					delivery, or water address.</p>
            <p xmlns="http://sifassociation.org/SpecGen">These addresses are used to 
					find a location.</p>
            <p xmlns="http://sifassociation.org/SpecGen">Example: 30 - 40 Lambton Quay, Wellington, 6165</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Thoroughfare</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RU">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Defined by New Zealand Post, these addresses
					are assigned by NZ Post for customers who purchase
					a rural delivery service (mail and also other
					goods).</p>
            <p xmlns="http://sifassociation.org/SpecGen">They will have the same number and roadname
					components as the street address, and may have the
					same region component.</p>
            <p xmlns="http://sifassociation.org/SpecGen">They do not have a component that identifies
					the locality the address is within. The locality
					and city or town components are replaced by
					components that identify the rural delivery route
					(RD number), and the town from which the rural
					delivery route starts and finishes (the mail
					town). Only addresses of this class can contain
					these components.
					</p>
            <p xmlns="http://sifassociation.org/SpecGen">
              <em>Example:</em> 121 Waitaha Road, RD 1, Ross, 7885</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Rural Post Delivery</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DE">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Defined by New Zealand Post, and used
					exclusively for NZ Post services other than
					standard mail delivery. Addresses in this class
					include PO Box, Private Bag, and Counter Delivery
					addresses.</p>
            <p xmlns="http://sifassociation.org/SpecGen">
              <em>Example:</em> Private Bag 2345, Auckland, 1142</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Delivery Service</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WA">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Where properties have no road access, but do
					have access to water frontage (coastline or
					riverbank or lakefront), a water address uses the
					name of a water feature (for example, islands,
					rivers, bays, or peninsulas).</p>
            <p xmlns="http://sifassociation.org/SpecGen">
              <em>Example:</em> 235 Lochmara Bay, Queen Charlotte Sound, Marlborough Sounds</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Water</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FO">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">A foreign address identifies a location outside of New Zealand.</p>
            <p xmlns="http://sifassociation.org/SpecGen">
              <em>Example:</em> Rudolf-Diesel-Strasse 14, 54595 Prüm, Germany</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Foreign Address</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAddressRoleType">
    <xs:annotation>
      <xs:documentation><p>A standardised description of the role or usage of an address by a party 
			(person or organisation). Where a party has more than one address, this
			provides context for deciding which address to use.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="PHY">
        <xs:annotation>
          <xs:documentation>Applies to addresses associated with persons</xs:documentation>
          <xs:appinfo>
            <Label>Physical Address</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="POS">
        <xs:annotation>
          <xs:documentation>Applies to addresses associated with persons or organisations</xs:documentation>
          <xs:appinfo>
            <Label>Postal Address</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsSpatialUnitTypeType">
    <xs:annotation>
      <xs:documentation><p>A classification of geographical boundaries or statistical 
				areas as defined by Statistics NZ’s geographic hierarchy.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="AE">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen"> Area units are aggregations of
					meshblocks. They are non–administrative areas that
					are in between meshblocks and territorial
					authorities in size. Area units must either define
					or aggregate to define, regional councils,
					territorial authorities and urban areas.</p>
            <a href="http://aria.stats.govt.nz/aria/#ClassificationView:uri=http://stats.govt.nz/cms/ClassificationVersion/F7Wta5k7vAmJyxrU" xmlns="http://sifassociation.org/SpecGen">Statistics NZ Classification of Area Unit 2013 v1.0.0</a>
          </xs:documentation>
          <xs:appinfo>
            <Label>Area Unit</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GE">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The general electoral districts as constituted under the Electoral Act 1993.</p>
            <a href="http://aria.stats.govt.nz/aria/#ClassificationView:uri=http://stats.govt.nz/cms/ClassificationVersion/jtyxBHBzNNas41gu" xmlns="http://sifassociation.org/SpecGen">Statistics NZ General Electoral District 2014 v1.0.0</a>
          </xs:documentation>
          <xs:appinfo>
            <Label>General Electoral District</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CB">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">(aka Local Board within Auckland) Local boards
					provide governance at the local level within
					Auckland Council. They enable democratic decision
					making by, and on behalf of communities within the
					local board area.</p>
            <a href="http://aria.stats.govt.nz/aria/#ClassificationView:uri=http://stats.govt.nz/cms/ClassificationVersion/ZIK9xfNmA6k4hw2B" xmlns="http://sifassociation.org/SpecGen">Statistics NZ Community Board 2013 v1.0.0</a>
          </xs:documentation>
          <xs:appinfo>
            <Label>Community Board</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ME">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Māori electoral districts are the voting
					districts for parliamentary elections for people
					who choose to be on the Māori Electoral Roll.</p>
            <a href="http://aria.stats.govt.nz/aria/#ClassificationView:uri=http://stats.govt.nz/cms/ClassificationVersion/pW9dZ6VeAMFKkHbQ" xmlns="http://sifassociation.org/SpecGen">Statistics NZ Māori Electoral District 2014 v1.0.0</a>
          </xs:documentation>
          <xs:appinfo>
            <Label>Māori Electoral District</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MB">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">A meshblock is the smallest geographic unit for
					which statistical data is collected and processed
					by Statistics New Zealand.</p>
            <p xmlns="http://sifassociation.org/SpecGen">A meshblock is defined by a geographic area,
					which can vary in size from part of a city block
					to a large area of rural land. Each meshblock
					borders on another to form a network covering all
					of New Zealand, including coasts and inlets and
					extending out to the 200-mile economic zone.</p>
            <a href="http://aria.stats.govt.nz/aria/#ClassificationView:uri=http://stats.govt.nz/cms/ClassificationVersion/EUVhZI6UWCZ6JA1F" xmlns="http://sifassociation.org/SpecGen">Statistics NZ Statistical Standard for Meshblock 2013 v1.0.0</a>
          </xs:documentation>
          <xs:appinfo>
            <Label>Mesh Block</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RC">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The top tier of local government in New Zealand, defined
					by the Local Government Act 2002, which requires the
					boundaries of regions to conform as far as
					possible to one or more water catchments. When
					determining regional boundaries, the Local
					Government Commission gave consideration to
					regional communities of interest when selecting
					water catchments to be included in a region. It
					also considered factors such as natural resource
					management, land use planning and environmental
					matters.</p>
            <a href="http://aria.stats.govt.nz/aria/#ClassificationView:uri=http://stats.govt.nz/cms/ClassificationVersion/MSQo0eUwerxmc3Lw" xmlns="http://sifassociation.org/SpecGen">Statistics NZ Regional Council 2013 v1.0.0</a>
          </xs:documentation>
          <xs:appinfo>
            <Label>Regional Council</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TA">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The second tier of local government in New
					Zealand, defined under the Local Government Act
					2002 as a city council or district council. There
					are 67 territorial authorities consisting of 12
					city councils, 53 districts, Auckland Council, and
					Chatham Islands Council.</p>
            <a href="http://aria.stats.govt.nz/aria/#ClassificationView:uri=http://stats.govt.nz/cms/ClassificationVersion/pJACqzvmZ2qy3YDW" xmlns="http://sifassociation.org/SpecGen">Statistics NZ Territorial Authority 2013 v1.0.0</a>
          </xs:documentation>
          <xs:appinfo>
            <Label>Territorial Authority</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UA">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Urban Areas are statistically defined areas
					with no administrative or legal basis. There is a
					three part hierarchical sub-division of urban
					areas into: main urban areas, secondary urban
					areas, minor urban areas.  Together the
					populations in main, secondary and minor urban
					areas comprise the statistically defined urban
					population of New Zealand. The urban area
					classification is designed to identify
					concentrated urban or semi-urban settlements
					without the distortions of administrative
					boundaries.</p>
            <a href="http://aria.stats.govt.nz/aria/#ClassificationView:uri=http://stats.govt.nz/cms/ClassificationVersion/IaYI8w2nLBVWQxrf" xmlns="http://sifassociation.org/SpecGen">Statistics NZ Urban Area 2013 v2.0.0</a>
          </xs:documentation>
          <xs:appinfo>
            <Label>Urban Area</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WA">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Wards are defined under the Local Electoral Act
					2001 and result from the division, for electoral
					purposes, of the district of a territorial
					authority.  The ward system was designed to allow
					for the recognition of communities within a
					district and to increase community involvement in
					the local government system.</p>
            <a href="http://aria.stats.govt.nz/aria/#ClassificationView:uri=http://stats.govt.nz/cms/ClassificationVersion/qI6phchSiGr3QmGQ" xmlns="http://sifassociation.org/SpecGen">Statistics NZ Ward 2013 v1.0.0</a>
          </xs:documentation>
          <xs:appinfo>
            <Label>Ward</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsOperationalStatusType">
    <xs:annotation>
      <xs:documentation><p>Indicates the operational status of an organisation.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="C">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-05-08</endDate>
            <Label>Closed</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="O">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-05-08</endDate>
            <Label>Open</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="P">
        <xs:annotation>
          <xs:documentation>SIF AU uses the term ‘Pending’</xs:documentation>
          <xs:appinfo>
            <endDate>2020-05-08</endDate>
            <Label>Proposed</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="28000">
        <xs:annotation>
          <xs:appinfo>
            <Label>Proposed</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="28001">
        <xs:annotation>
          <xs:appinfo>
            <Label>Open</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="28002">
        <xs:annotation>
          <xs:appinfo>
            <Label>Closed</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="28003">
        <xs:annotation>
          <xs:appinfo>
            <Label>Active</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="28004">
        <xs:annotation>
          <xs:appinfo>
            <Label>Inactive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="28005">
        <xs:annotation>
          <xs:appinfo>
            <Label>Dissolved while Commissioner in place</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="28006">
        <xs:annotation>
          <xs:appinfo>
            <Label>Operating with Limited Statutory Manager</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="28007">
        <xs:annotation>
          <xs:appinfo>
            <Label>Merging Board</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="28008">
        <xs:annotation>
          <xs:appinfo>
            <Label>Not Applicable</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="28009">
        <xs:annotation>
          <xs:appinfo>
            <Label>Approved</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="28010">
        <xs:annotation>
          <xs:appinfo>
            <Label>Formed</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="28011">
        <xs:annotation>
          <xs:appinfo>
            <Label>Disestablished</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsOperationalStatusReasonType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the reasons the operational status of an organisation
			 may change.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="30000">
        <xs:annotation>
          <xs:appinfo>
            <Label>Merger</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30001">
        <xs:annotation>
          <xs:appinfo>
            <Label>Change of Type</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30002">
        <xs:annotation>
          <xs:appinfo>
            <Label>Declining Roll</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30003">
        <xs:annotation>
          <xs:appinfo>
            <Label>Financial Reasons</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30004">
        <xs:annotation>
          <xs:appinfo>
            <Label>Loss of Tenancy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30005">
        <xs:annotation>
          <xs:appinfo>
            <Label>Moved Premises</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30006">
        <xs:annotation>
          <xs:appinfo>
            <Label>Never Opened</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30007">
        <xs:annotation>
          <xs:appinfo>
            <Label>Licence Suspended</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30008">
        <xs:annotation>
          <xs:appinfo>
            <Label>Ministry Withdrawal of Licence Due to Non-compliance</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30009">
        <xs:annotation>
          <xs:appinfo>
            <Label>Owner Retired / Disestablished</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30010">
        <xs:annotation>
          <xs:appinfo>
            <Label>Temporarily Closed</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30011">
        <xs:annotation>
          <xs:appinfo>
            <Label>Merger of State Schools - Forced by Minister</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30012">
        <xs:annotation>
          <xs:appinfo>
            <Label>Changed Type or Number, or Became a Composite School</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30013">
        <xs:annotation>
          <xs:appinfo>
            <Label>Closure of State School - Forced by Minister</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30014">
        <xs:annotation>
          <xs:appinfo>
            <Label>Closure of State School - Voluntary</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30015">
        <xs:annotation>
          <xs:appinfo>
            <Label>Closure - Voluntary of State or Private School</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30016">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cancellation of Integration Agreement</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30017">
        <xs:annotation>
          <xs:appinfo>
            <Label>Re-numbered Continuing School in Merger</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30019">
        <xs:annotation>
          <xs:appinfo>
            <Label>Dis-establishment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30020">
        <xs:annotation>
          <xs:appinfo>
            <Label>Loss of Registration</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30021">
        <xs:annotation>
          <xs:appinfo>
            <Label>Network Review</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30022">
        <xs:annotation>
          <xs:appinfo>
            <Label>Tertiary Education Provider that is taken over in a merger</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30024">
        <xs:annotation>
          <xs:appinfo>
            <Label>Not Applicable</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30025">
        <xs:annotation>
          <xs:appinfo>
            <Label>Changed to Standalone</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30026">
        <xs:annotation>
          <xs:appinfo>
            <Label>Changed from Standalone</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsSchoolCoEdStatusType">
    <xs:annotation>
      <xs:documentation><p>A summary description of the gender of students that a school accepts, indicating the 
				type of school from a gender perspective.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="COED">
        <xs:annotation>
          <xs:appinfo>
            <Label>Co-Educational</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GIRL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Girls School</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BOYS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Boys School</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRCO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Primary Co-Ed, Secondary Girls</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="JUBO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Junior Boys, Senior Co-Ed</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsEducationRegionType">
    <xs:annotation>
      <xs:documentation>
			Regions of New Zealand defined by Ministry of Education for administrative purposes.
		</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="TAIT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tai Tokerau</Label>
            <Label xml:lang="mi">Tai Tokerau</Label>
            <endDate>2020-05-18</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AUCK">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Auckland</Label>
            <Label xml:lang="mi">Tāmaki Makaurau</Label>
            <endDate>2020-05-18</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WAIK">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Waikato</Label>
            <Label xml:lang="mi">Waikato</Label>
            <endDate>2020-05-18</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BOPW">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bay of Plenty, Waiariki</Label>
            <Label xml:lang="mi">Te Moana a Toitehuatahi, Waiariki</Label>
            <endDate>2020-05-18</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HAWK">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hawke's Bay, Tairāwhiti</Label>
            <Label xml:lang="mi">Te Matau a Māui, Tairāwhiti</Label>
            <endDate>2020-05-18</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TARA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Taranaki, Whanganui, Manawatū</Label>
            <Label xml:lang="mi">Taranaki, Whanganui, Manawatū</Label>
            <endDate>2020-05-18</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WELL">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Wellington</Label>
            <Label xml:lang="mi">Te Whanganui a Tara</Label>
            <endDate>2020-05-18</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NELS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Nelson, Marlborough, West Coast</Label>
            <Label xml:lang="mi">Whakatū, Te Tau Ihu o te Waka-a-Māui, Te Tai Poutini</Label>
            <endDate>2020-05-18</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CANT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Canterbury, Chatham Islands</Label>
            <Label xml:lang="mi">Waitaha, Wharekauri</Label>
            <endDate>2020-05-18</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTAG">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Otago, Southland</Label>
            <Label xml:lang="mi">Otākou, Murihiku</Label>
            <endDate>2020-05-18</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12000">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Missing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12005">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Correspondence</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12006">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Not Applicable</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12007">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tai Tokerau</Label>
            <Label xml:lang="mi">Tai Tokerau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12008">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Auckland</Label>
            <Label xml:lang="mi">Tāmaki Makaurau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12009">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Waikato</Label>
            <Label xml:lang="mi">Waikato</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12010">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bay of Plenty/Waiariki</Label>
            <Label xml:lang="mi">Te Moana a Toitehuatahi/Waiariki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12011">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Taranaki/Whanganui/Manawatū</Label>
            <Label xml:lang="mi">Taranaki/Whanganui/Manawatū</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12012">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hawke's Bay/Tairāwhiti</Label>
            <Label xml:lang="mi">Te Matau a Māui/Tairāwhiti</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12013">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Wellington</Label>
            <Label xml:lang="mi">Te Whanganui a Tara</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12014">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Nelson/Marlborough/West Coast</Label>
            <Label xml:lang="mi">Whakatū/Te Tau Ihu o te Waka-a-Māui/Te Tai Poutini</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12015">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Canterbury/Chatham Islands</Label>
            <Label xml:lang="mi">Waitaha/Wharekauri</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12016">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Otago/Southland</Label>
            <Label xml:lang="mi">Otākou/Murihiku</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsSpecialEducationDistrictType">
    <xs:annotation>
      <xs:documentation>
			Special Education district a provider may belong to
		</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="182000">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tai Tokerau</Label>
            <Label xml:lang="mi">Tai Tokerau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="182001">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">North West</Label>
            <endDate>2020-05-08</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="182002">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Manukau</Label>
            <endDate>2020-05-08</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="182003">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Auckland</Label>
            <Label xml:lang="mi">Tāmaki Makaurau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="182004">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Waikato</Label>
            <Label xml:lang="mi">Waikato</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="182005">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bay of Plenty West</Label>
            <endDate>2020-05-08</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="182006">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bay of Plenty, Waiariki</Label>
            <Label xml:lang="mi">Te Moana a Toitehuatahi, Waiariki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="182007">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Gisborne</Label>
            <endDate>2020-05-08</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="182008">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hawke's Bay, Tairāwhiti</Label>
            <Label xml:lang="mi">Te Matau a Māui, Tairāwhiti</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="182009">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Taranaki</Label>
            <Label xml:lang="mi">Taranaki</Label>
            <endDate>2020-05-08</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="182010">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Taranaki, Whanganui, Manawatū</Label>
            <Label xml:lang="mi">Taranaki, Whanganui, Manawatū</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="182011">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Wellington</Label>
            <Label xml:lang="mi">Te Whanganui a Tara</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="182012">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Nelson, Marlborough, West Coast</Label>
            <Label xml:lang="mi">Whakatū, Te Tau Ihu o te Waka-a-Māui, Te Tai Poutini</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="182013">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Canterbury, Chatham Islands</Label>
            <Label xml:lang="mi">Waitaha, Wharekauri</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="182014">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Otago, Southland</Label>
            <Label xml:lang="mi">Otākou, Murihiku</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="182015">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Southland</Label>
            <endDate>2020-05-08</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsOrganisationTypeType">
    <xs:annotation>
      <xs:documentation>Describes the organisation type of the provider, indicating the services provided, 
			function or purpose of the organisation.
		</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="35000">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Early Childhood Education (ECE)</Label>
            <Label xml:lang="mi">Kura Kōhungahunga</Label>
            <endDate>2020-05-08</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10052">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kindergarten Association</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10053">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Playcentre Association</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10054">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Commercial ECE Service Provider</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10055">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other ECE Service Provider</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Casual-Education and Care</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Free Kindergarten</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hospital Based ECE</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Playcentre</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="6">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Education and Care Service</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="7">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Homebased Network</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="8">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Licence Exempt Kohanga Reo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="9">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Kohanga Reo</Label>
            <Label xml:lang="mi">Te Kohanga Reo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10000">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Casual-Education and Care</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10001">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Free Kindergarten</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10002">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Playcentre</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10003">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Education and Care Service</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10004">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Homebased Network</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10005">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Kōhanga Reo</Label>
            <Label xml:lang="mi">Te Kōhanga Reo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10007">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Licence Exempt Kōhanga Reo</Label>
            <endDate>2020-05-08</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10008">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hospital Based</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10009">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Playgroup</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="35003">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">School</Label>
            <Label xml:lang="mi">Kura</Label>
            <endDate>2020-05-08</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10056">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Board of Trustees</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10057">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Private School Provider</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="20">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Full Primary (Year 1-8)</Label>
            <Label xml:lang="mi">Kura Tuatahi (Tau 1 – 8)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="21">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Contributing Primary (Year 1-6)</Label>
            <Label xml:lang="mi">Kura Tuatahi (Tau 1 – 6)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="22">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Intermediate School (Year 7-8)</Label>
            <Label xml:lang="mi">Kura Takawaenga (Tau 7 me te 8)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="23">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Special School</Label>
            <Label xml:lang="mi">Kura Motuhake</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Secondary School (Year 7-15)</Label>
            <Label xml:lang="mi">Kura Tuarua (Tau 7 – 15)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="32">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Composite School (Year 1-15)</Label>
            <Label xml:lang="mi">Kura Hiato (Tau 1 – 15)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="34">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">The Correspondence School</Label>
            <Label xml:lang="mi">Te Kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="35">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Restricted Composite School (Year 7-10)</Label>
            <Label xml:lang="mi">Kura Hiato (Tau 7 – 10)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="40">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Secondary School (Year 9-15)</Label>
            <Label xml:lang="mi">Kura Tuarua (Tau 9 – 15)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="41">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Teen Parent Unit (Year 9-15)</Label>
            <Label xml:lang="mi">Ranga Mātātahi (Tau 9 – 15)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="43">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Activity Centre</Label>
            <Label xml:lang="mi">Pokapū Mahi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10023">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Full Primary (Year 1-8)</Label>
            <Label xml:lang="mi">Kura Tuatahi (Tau 1-8)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10024">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Contributing Primary (Year 1-6)</Label>
            <Label xml:lang="mi">Kura Tuatahi (Tau 1-6)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10025">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Intermediate School (Year 7-8)</Label>
            <Label xml:lang="mi">Kura Takawaenga (Tau 7 me te 8)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10026">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Special School</Label>
            <Label xml:lang="mi">Kura Motuhake</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10027">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Centre for Extra Support</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10028">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Correspondance Unit</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10029">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Secondary School (Year 7-15)</Label>
            <Label xml:lang="mi">Kura Tuarua (Tau 7-15)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10030">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Composite School (Year 1-15)</Label>
            <Label xml:lang="mi">Kura Hiato (Tau 1-15)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10031">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">The Correspondence School</Label>
            <Label xml:lang="mi">Te Kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10032">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Restricted Composite School (Year 7-10)</Label>
            <Label xml:lang="mi">Kura Hiato (Tau 7-10)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10033">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Secondary School (Year 9-15)</Label>
            <Label xml:lang="mi">Kura Tuarua (Tau 9-15)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10034">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Teen Parent Unit (Year 9-15)</Label>
            <Label xml:lang="mi">Ranga Mātātahi (Tau 9-15)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10036">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Activity Centre</Label>
            <Label xml:lang="mi">Pokapū Mahi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="35002">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tertiary</Label>
            <Label xml:lang="mi">Kura Wānanga</Label>
            <endDate>2020-05-08</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10010">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Private Training Establishment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10011">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Government Training Establishment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10012">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Polytechnic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10013">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">College of Education</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10014">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">University</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10015">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Wānanga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10016">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Tertiary Education Provider</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10017">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Industry Training Organisation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10018">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Certifying Authorities</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10019">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">OTEP Resource Centre</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10020">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">OTEP RS24</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10021">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Government Agency</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10022">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Peak Body</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10035">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Alternative Education Provider</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10037">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kura Teina - Primary</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10038">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Side-school</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10039">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Special Unit</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10040">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kura Teina - Composite</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10041">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Land Site</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10042">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Manual Training Centre (Stand Alone)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10043">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Community Education/Resource/Youth Learning Centre</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10044">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Rural Education Activities Programme (REAP)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10045">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Special Education Service Centre</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10047">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Examination Centre</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10048">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">School Cluster for NZQA</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10049">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">School Camp</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10050">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Subsidiary Provider</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10051">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Miscellaneous</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10058">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Campus</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10060">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Special Unit Funded</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10062">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attachment to Kura Kaupapa Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10063">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Secondary (Year 9-10 Att.Int.)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="999">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ministry of Education Local Office</Label>
            <Label xml:lang="mi" />
            <endDate>2020-03-24</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="35007">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ministry of Education Local Office</Label>
            <Label xml:lang="mi" />
            <startDate>2020-03-25</startDate>
            <endDate>2020-05-08</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10059">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Local Office</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="998">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Community of Learning | Kāhui Ako</Label>
            <Label xml:lang="mi">Kāhui Ako</Label>
            <endDate>2020-03-24</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="35008">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Community of Learning | Kāhui Ako</Label>
            <Label xml:lang="mi">Kāhui Ako</Label>
            <startDate>2020-03-25</startDate>
            <endDate>2020-05-08</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10061">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Community of Learning | Kāhui Ako</Label>
            <Label xml:lang="mi">Kāhui Ako</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10065">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Learning Support Cluster</Label>
            <Label xml:lang="mi">Kāhui Akoranga Tautoko</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="996">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Learning Support Cluster</Label>
            <Label xml:lang="mi">Kāhui Akoranga Tautoko</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10064">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">RTLB Cluster</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsOrganisationSectorRoleType">
    <xs:annotation>
      <xs:documentation><p>Describes the roles for organisations within the education sector, e.g. School 
			Sector Institution, Learnign Support Cluster, etc.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="35000">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Licenced ECE Service</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="35001">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Playgroup</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="35002">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tertiary Sector Institution</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="35003">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">School Sector Institution</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="35004">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Organisation Type</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="35005">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">ECE Service Provider</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="35006">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Board of Trustees</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="35007">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Local Office</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="35008">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Community of Schools</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="35009">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Learning Support Cluster</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsCommunicationChannelTypeType">
    <xs:annotation>
      <xs:documentation><p>A standardised method of describing a communication channel used to communicate with or
		   	find information about a party. Provides a more generic definition than phone and email. Intended 
			to provide for future requirements to record social network channels, eg Facebook &amp;amp; Twitter
			 identifiers for a school.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="WEB">
        <xs:annotation>
          <xs:documentation>Typically refers to the home page for an entity</xs:documentation>
          <xs:appinfo>
            <Label>Website</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TWT">
        <xs:annotation>
          <xs:documentation>Twitter handle</xs:documentation>
          <xs:appinfo>
            <Label>Twitter</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FBK">
        <xs:annotation>
          <xs:documentation>Facebook page</xs:documentation>
          <xs:appinfo>
            <Label>Facebook</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsCommunicationUsageType">
    <xs:annotation>
      <xs:documentation><p>A standardised method of describing how (or when) a communication channel may be used to
				communicate with a party. Where a party has more than one electronic contact type (eg several
				phone numbers), this provides context for deciding which to use. A communication usage type
				may apply to a phone number, email address or generic communication channel.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="MED">
        <xs:annotation>
          <xs:documentation>Allows the school to decide which of a caregiver's communication channels is to be used
				when reporting a medical incident occuring to the learner.</xs:documentation>
          <xs:appinfo>
            <Label>Medical Incident</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SMS">
        <xs:annotation>
          <xs:documentation>Allows the school to decide which of a caregiver's communication channels is to be used
				when sending an SMS (TXT) message.</xs:documentation>
          <xs:appinfo>
            <Label>SMS/TXT</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UNE">
        <xs:annotation>
          <xs:documentation>Allows the school to decide which of a caregiver's communication channels is to be used
				when reporting a learner's unexplained absence.</xs:documentation>
          <xs:appinfo>
            <Label>Unexplained Absence</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INT">
        <xs:annotation>
          <xs:documentation>Allows the caregiver to decide which of a school's communication channels is to be used
				when notifying of a learner's intended absence.</xs:documentation>
          <xs:appinfo>
            <Label>Intended Absence</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsOrganisationContactRoleType">
    <xs:annotation>
      <xs:documentation><p>The role played by a person in an organisation where that person is recorded as a
				 contact. The role definition is used to recognise similar functions across organisations,
				 however individuals with the same role may be given different position titles that differ
				 from the generic role description. For example, a principal may have a title of ‘headmaster’.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="PRI">
        <xs:annotation>
          <xs:appinfo>
            <Label>Principal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ACT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Acting Principal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DIR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Director</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ECE">
        <xs:annotation>
          <xs:appinfo>
            <Label>ECE Management Contact</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsEnactedPolicyType">
    <xs:annotation>
      <xs:documentation><p>A policy that a school may choose to implement as part of its operating rules. For example, 
				policies may concern student behaviour, clothing/appearance, wellbeing and new entrant enrolment.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="AE">
        <xs:annotation>
          <xs:documentation>Indicates that new starters will start on the next school
					 day following their 5 birthday.</xs:documentation>
          <xs:appinfo>
            <Label>Age Entry</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CE">
        <xs:annotation>
          <xs:documentation>Indicates that new starters will start in a cohort group
					 only on specific notified dates after their 5th birthday.</xs:documentation>
          <xs:appinfo>
            <Label>Cohort Entry</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsProviderAuthorityType">
    <xs:annotation>
      <xs:documentation>
			The authority by which the provider is authorised to provide education services.
			Describes the ownership/operation or registration status of an educational institution.
		</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="STATE">
        <xs:annotation>
          <xs:documentation>Also known as 'State: Non-Integrated'</xs:documentation>
          <xs:appinfo>
            <Label>State</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STINT">
        <xs:annotation>
          <xs:appinfo>
            <Label>State: Integrated</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRFUL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Private: Fully Registered</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRPRO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Private: Provisionally Registered</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTVOT">
        <xs:annotation>
          <xs:documentation> Owned by another organisation, funded from Vote Education.</xs:documentation>
          <xs:appinfo>
            <Label>Other: Vote Education</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PASCH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Partnership School</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsSchoolClassificationType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the classifications that can be given to a school.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="52000">
        <xs:annotation>
          <xs:appinfo>
            <Label>Kura Teina</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52001">
        <xs:annotation>
          <xs:appinfo>
            <Label>Designated Charter School</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52002">
        <xs:annotation>
          <xs:appinfo>
            <Label>Secondary Māori Boarding School</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52003">
        <xs:annotation>
          <xs:appinfo>
            <Label>Bilingual School</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52004">
        <xs:annotation>
          <xs:appinfo>
            <Label>Kura Kaupapa Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52005">
        <xs:annotation>
          <xs:appinfo>
            <Label>School with Side School</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52006">
        <xs:annotation>
          <xs:appinfo>
            <Label>Alternative School</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52007">
        <xs:annotation>
          <xs:appinfo>
            <Label>Contributing with Year 7 and 8 Bilingual Students</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52008">
        <xs:annotation>
          <xs:appinfo>
            <Label>Restricted Composite (Year 7-9)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52009">
        <xs:annotation>
          <xs:appinfo>
            <Label>Restricted Composite (Year 7-10)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="52010">
        <xs:annotation>
          <xs:appinfo>
            <Label>School with Boarding Facilities</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsSchoolBoardingTypeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting if the school has boarding and if so, if it is for girls only, boys only or both.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="56000">
        <xs:annotation>
          <xs:appinfo>
            <Label>Girls Only</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="56001">
        <xs:annotation>
          <xs:appinfo>
            <Label>Boys Only</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="56002">
        <xs:annotation>
          <xs:appinfo>
            <Label>Both Girls and Boys</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="56003">
        <xs:annotation>
          <xs:appinfo>
            <Label>None</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsSchoolingGenderType">
    <xs:annotation>
      <xs:documentation><p>A description of the gender of students that the school accepts at a certain year 
				level or other instructional grouping.</p><p> For use at the year level or course only, rather than school level. For instance
			 a school may accept boys only in year 11 but both girls and boys at years 12 and 13.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="C">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-05-08</endDate>
            <Label>Both Girls and Boys</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-05-08</endDate>
            <Label>Girls Only</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-05-08</endDate>
            <Label>Boys Only</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="55002">
        <xs:annotation>
          <xs:appinfo>
            <Label>Both Girls and Boys</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="55000">
        <xs:annotation>
          <xs:appinfo>
            <Label>Girls Only</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="55001">
        <xs:annotation>
          <xs:appinfo>
            <Label>Boys Only</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsECEServiceTypeType">
    <xs:annotation>
      <xs:documentation><p>Codes denoting the nature of an Early Childhood Education service.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="KG">
        <xs:annotation>
          <xs:appinfo>
            <Label>Kindergarten</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PC">
        <xs:annotation>
          <xs:appinfo>
            <Label>Playcentre</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="KR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Te Kohanga Reo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsECEServiceProviderOwnershipTypeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the type of ECE Service Provider ownership, e.g. Sole Trader, 
			Company, Charitable Trust etc.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="18000">
        <xs:annotation>
          <xs:appinfo>
            <Label>Sole Trader</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="18001">
        <xs:annotation>
          <xs:appinfo>
            <Label>Company</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="18002">
        <xs:annotation>
          <xs:appinfo>
            <Label>Partnership</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="18004">
        <xs:annotation>
          <xs:appinfo>
            <Label>Incorporated Society</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="18005">
        <xs:annotation>
          <xs:appinfo>
            <Label>Statutory Trust</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="18006">
        <xs:annotation>
          <xs:appinfo>
            <Label>Private Trust</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="18007">
        <xs:annotation>
          <xs:appinfo>
            <Label>Community Trust</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="18008">
        <xs:annotation>
          <xs:appinfo>
            <Label>Government Department</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="18009">
        <xs:annotation>
          <xs:appinfo>
            <Label>State Owned Enterprise</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="18010">
        <xs:annotation>
          <xs:appinfo>
            <Label>Health Board</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="18011">
        <xs:annotation>
          <xs:appinfo>
            <Label>City Council/Local Authority Trading Enterprise</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="18012">
        <xs:annotation>
          <xs:appinfo>
            <Label>Public Education Institution</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="18013">
        <xs:annotation>
          <xs:appinfo>
            <Label>Crown</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="18014">
        <xs:annotation>
          <xs:appinfo>
            <Label>Not Categorised</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsOrganisationRelationshipTypeType">
    <xs:annotation>
      <xs:documentation><p>A code describing the nature of the relationship between a pair of Organisations.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="CAH">
        <xs:annotation>
          <xs:documentation>
					Source Provider sends learners to the related Provider for the provision of some classes. Exact
					student and class details will be recorded in co-enrolment flavour of StudentProviderEnrolment.
				</xs:documentation>
          <xs:appinfo>
            <Label>Client and Host</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CAR">
        <xs:annotation>
          <xs:documentation>
					Source Provider contributes learners to the related Provider, once the learners have completed education 
					at the source Provider.
				</xs:documentation>
          <xs:appinfo>
            <Label>Contributor and Receiver</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TPU">
        <xs:annotation>
          <xs:documentation>
					Source Provider is a Teen Parent Unit which is operated as part of the related Provider. Learners
					who are also parents attend classes at both the Teen Parent Unit and the host school.
				</xs:documentation>
          <xs:appinfo>
            <endDate>2020-05-08</endDate>
            <Label>Teen Parent Unit</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ACE">
        <xs:annotation>
          <xs:documentation>
					Source Provider is an Activity Centre which is operated as part of the related Provider. Learners
					who have been identified as being at risk of disengaging from mainstream Schooling attend classes
					at both the Activity Centre and the host school.
				</xs:documentation>
          <xs:appinfo>
            <endDate>2020-05-08</endDate>
            <Label>Activity Centre</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LOF">
        <xs:annotation>
          <xs:appinfo>
            <Label>Local Office and Organisation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EPL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Playgroup - ECE Service Provider</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ESP">
        <xs:annotation>
          <xs:appinfo>
            <Label>Licenced ECEService - ECE Service Provider</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="34008">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">School and Attached Unit</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="34028">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Community of Learning Funded Member</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="34029">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Community of Learning Unfunded Member</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="34037">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Learning Support Cluster Member</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="34031">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">School RTLB Cluster Member</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsOrganisationRelationshipStatusType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the status of the relationship between the two organisations.</p><p>Set to Active when: EffectiveDate =&gt; today's date and ExpirationDate is NULL
			 or ExpirationDate &gt; than today's date.</p><p>Set to Inactive when: EffectiveDate &lt; today's date or 
			ExpirationDate =&lt; today's date.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Active</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Inactive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsSourceOrganisationRoleType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the role the source organisation is playing in this relationship.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="COL">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Community of Learning</Label>
            <Label xml:lang="mi">Kāhui Ako</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ECE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">ECE Service Provider</Label>
            <Label xml:lang="mi">Kura Kōhungahunga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LOC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Local Office</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Learning Support Cluster</Label>
            <Label xml:lang="mi">Kāhui Akoranga Tautoko</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RTL">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">RTLB Cluster</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SCH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">School</Label>
            <Label xml:lang="mi">Kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsRelatedOrganisationRoleType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the role the related organisation is playing in this relationship.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="184000">
        <xs:annotation>
          <xs:documentation>Role applies to School/ECE's membership of Learning Support Cluster</xs:documentation>
          <xs:appinfo>
            <Label>Standard Member</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="184001">
        <xs:annotation>
          <xs:documentation>Role applies to School/ECE's membership of Learning Support Cluster</xs:documentation>
          <xs:appinfo>
            <Label>Employing Member</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="184002">
        <xs:annotation>
          <xs:documentation>Role applies to School/ECE's membership of Learning Support Cluster</xs:documentation>
          <xs:appinfo>
            <Label>Accommodating Member</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="33038">
        <xs:annotation>
          <xs:documentation>Role applies to School/ECE's membershp of Kāhui Ako</xs:documentation>
          <xs:appinfo>
            <Label>Approved Funded Member</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="33039">
        <xs:annotation>
          <xs:documentation>Role applies to School/ECE's membershp of Kāhui Ako</xs:documentation>
          <xs:appinfo>
            <Label>Joined Funded Member</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="33040">
        <xs:annotation>
          <xs:documentation>Role applies to School/ECE's membershp of Kāhui Ako</xs:documentation>
          <xs:appinfo>
            <Label>Approved Unfunded Member</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="33041">
        <xs:annotation>
          <xs:documentation>Role applies to School/ECE's membershp of Kāhui Ako</xs:documentation>
          <xs:appinfo>
            <Label>Joined Unfunded Member</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LOM">
        <xs:annotation>
          <xs:documentation>Role applies to School/ECE's membershp of Kāhui Ako</xs:documentation>
          <xs:appinfo>
            <Label>Local Office Member</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SPM">
        <xs:annotation>
          <xs:documentation>Role applies to School/ECE's membershp of Kāhui Ako</xs:documentation>
          <xs:appinfo>
            <Label>ECE Service Provider Member</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="33046">
        <xs:annotation>
          <xs:appinfo>
            <Label>Attached Funded Unit</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="33047">
        <xs:annotation>
          <xs:appinfo>
            <Label>Activity Centre</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="33048">
        <xs:annotation>
          <xs:appinfo>
            <Label>Teen Parent Unit</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="33044">
        <xs:annotation>
          <xs:documentation>Role applies to School/ECE's membershp of RTLB Cluster</xs:documentation>
          <xs:appinfo>
            <Label>RTLB Cluster Leader</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="33045">
        <xs:annotation>
          <xs:documentation>Role applies to School/ECE's membershp of RTLB Cluster</xs:documentation>
          <xs:appinfo>
            <Label>RTLB Cluster Member</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsStaffRoleType">
    <xs:annotation>
      <xs:documentation><p>Describes the role a staff member has at a Provider or other EducationOrganisation.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="1001">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Principal</Label>
            <Label xml:lang="mi">Tumuaki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1002">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Deputy Principal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1003">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Associate Principal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1004">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Assistant Principal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1005">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Principal's Nominee (NZQA)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1006">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Enrolment Officer</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1007">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Timetabler</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1008">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Relief Coordinator</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1009">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Office Manager</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1010">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Office Assistant</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1012">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Finance Assistant</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1013">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">IT Manager</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1014">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">IT Assistant</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1015">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Head Librarian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1016">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Assistant Librarian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1017">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Board of Trustees Member (Staff)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1018">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Board of Trustees Member (Parent)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1101">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Head of Department</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1102">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Assistant Head of Department</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1103">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Technician</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1201">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Subject Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1302">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">STP Coordinator</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1303">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Learning Support Coordinator</Label>
            <Label xml:lang="mi">Kaiwhakahaere Akoranga Tautoko</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1304">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Learning Support Staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1305">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">SAC Coordinator</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1306">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Special Needs Coordinator (SENCO)</Label>
            <Label xml:lang="mi">Kaiwhakarite Mātauranga Whāiti</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1307">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Distance Education Coordinator</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1308">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Resource Teacher Literacy (RTLit)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1309">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Resource Teacher Learning and Behaviour (RTLB)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1310">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Parent Help</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1401">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Homeroom Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1402">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Release Homeroom Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1403">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Relief Homeroom Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1404">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pastoral Carer</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1405">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Guidance Counsellor</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1406">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Careers Advisor</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1407">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Truancy Officer</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1408">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sickbay Nurse</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1409">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Dental Nurse</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1410">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hostel Manager / Matron</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1411">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Social Worker (In School)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1501">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Teacher in Charge</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1502">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Coach</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2001">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kāhui Ako Lead Principal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2002">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Across School Teacher</Label>
            <Label xml:lang="mi">Kaiako Takawaenga ā-kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2101">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kāhui Ako Support Facilitator</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2102">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kāhui Ako Expert Partner</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2103">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ministry - Learning Support Facilitator</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2104">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ministry - Strategic Advisor - Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2105">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ministry - SAF</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2106">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">DHB Staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1301">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Teacher Aide</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1203">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Subject Relief Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1202">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Subject Release Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1204">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Subject Tutor</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1205">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Classroom Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1206">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Classroom Release teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1207">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Classroom Relief Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1208">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kāhui Ako within School Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1209">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Itinerant Subject Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1210">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Itinerant Subject Tutor</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1211">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Specialist Classroom Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1011">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Finance Manager</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2107">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Dean</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsStaffStatusType">
    <xs:annotation>
      <xs:documentation><p>Describes the status of a staff member's employment at a Provider or other Organisation.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Active</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Inactive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="S">
        <xs:annotation>
          <xs:appinfo>
            <Label>Suspended</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="O">
        <xs:annotation>
          <xs:appinfo>
            <Label>On Leave</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsStaffAssignmentStatusType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting whether or not this is an Active or Inactive assignment for the staff member.</p><p>Set to Active when: StartDate =&gt; today's date and EndDate is NULL 
				or EndDate &gt; than today's date.</p><p>Set to Inactive when: StartDate &lt; today's date or EndDate =&lt; today's date</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Active</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Inactive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsTeachingGroupTypeType">
    <xs:annotation>
      <xs:documentation><p>Provides the means of identifying the type of group such as Roll class, Subject class or
			Homeroom and allows systems to treat them accordingly</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="RC">
        <xs:annotation>
          <xs:documentation>The TeachingGroup is a class only used for taking daily attendance.</xs:documentation>
          <xs:appinfo>
            <Label>Roll Class</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SC">
        <xs:annotation>
          <xs:documentation>The TeachingGroup is a class only used for teaching.</xs:documentation>
          <xs:appinfo>
            <Label>Subject Class</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HR">
        <xs:annotation>
          <xs:documentation>The TeachingGroup is a class used for both teaching and roll taking.</xs:documentation>
          <xs:appinfo>
            <Label>Home Room</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsStaffTeachingGroupRoleType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the role the staff member is performing within the
			teaching group, e.g. Teacher, Teacher Aide, Student Teacher.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="1201">
        <xs:annotation>
          <xs:appinfo>
            <Label>Subject Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1202">
        <xs:annotation>
          <xs:appinfo>
            <Label>Subject Release Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1203">
        <xs:annotation>
          <xs:appinfo>
            <Label>Subject Relief Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1204">
        <xs:annotation>
          <xs:appinfo>
            <Label>Subject Tutor</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1205">
        <xs:annotation>
          <xs:appinfo>
            <Label>Classroom Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1206">
        <xs:annotation>
          <xs:appinfo>
            <Label>Classroom Release Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1207">
        <xs:annotation>
          <xs:appinfo>
            <Label>Classroom Relief Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1209">
        <xs:annotation>
          <xs:appinfo>
            <Label>Itinerant Subject Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1210">
        <xs:annotation>
          <xs:appinfo>
            <Label>Itinerant Subject Tutor</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1211">
        <xs:annotation>
          <xs:appinfo>
            <Label>Specialist Classroom Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1401">
        <xs:annotation>
          <xs:appinfo>
            <Label>Homeroom Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1402">
        <xs:annotation>
          <xs:appinfo>
            <Label>Release Homeroom Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1403">
        <xs:annotation>
          <xs:appinfo>
            <Label>Relief Homeroom Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1301">
        <xs:annotation>
          <xs:appinfo>
            <Label>Teacher Aide</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsStaffTeachingGroupAssignmentStatusType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the status of the staff member's assignment to a teaching group.</p><p>Set to Active when: StartDate =&gt; today's date and EndDate is NULL 
				or EndDate &gt; than today's date.</p><p>Set to Inactive when: StartDate &lt; today's date or EndDate =&lt; today's date.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Active</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Inactive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsScheduleEffectType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the effect a ScheduleEvent will have on
			the school's academic schedule. At present, only full-day events
			(i.e. the "EventDate" field is populated but "EventTime" isn't)
			can have any effect other than "noEffect".</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="NOEFFECT">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">This event has no effect on the school calendar.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>No Effect</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RENUMBER">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">This event causes the day rotation on the school calendar to
					be renumbered, starting with any academic days specified in
					ScheduleDayList.</p>
            <p xmlns="http://sifassociation.org/SpecGen">If any terms are included in ScheduleTermList, those
					terms are activated effective on the start date of this
					event.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Renumber Days</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INSERT">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">This event causes an insertion into the normal academic day
					rotation of the school calendar.</p>
            <p xmlns="http://sifassociation.org/SpecGen">Any academic days and bell schedules specified in ScheduleDayList
					and BellScheduleList are scheduled for the duration of this event, or school is
					cancelled if ScheduleDayList is omitted.</p>
            <p xmlns="http://sifassociation.org/SpecGen">After the event ends the academic day rotation resumes from the
					point at which it was interrupted. E.g. if it was Day 1
					before the event, then it will be Day 2 afterwards.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Insert Day</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DISPLACE">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">This event causes a displacement in the normal academic day
					rotation of the school calendar.</p>
            <p xmlns="http://sifassociation.org/SpecGen">Any academic days or bell schedules
				 	specified in ScheduleDayList and BellScheduleList are
					scheduled for the duration of this event, or school is
					cancelled if ScheduleDayList is omitted.</p>
            <p xmlns="http://sifassociation.org/SpecGen">After the event ends the rotation resumes from the point it would
					be at had the event not occurred. E.g. if it was Day 1
					before the event, and the event duration was 1 day, then it
					will be Day 3 afterwards; Day 2 is overwritten by the event.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Displace Day</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ENDSCHEDULE">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">This event terminates the academic schedule for any term(s)
					specified in ScheduleTermList, which is required when
					using this schedule effect.</p>
            <p xmlns="http://sifassociation.org/SpecGen">Used to terminate the academic day rotation prior to the end of term; e.g. 
					when the last week of term is used for impromptu non-academic activities.</p>
            <p xmlns="http://sifassociation.org/SpecGen">Note that events take effect at
					midnight on the start date, so the designated term(s) do not
					occur on the actual day of the endSchedule event (i.e. the
					day prior to the event's start date is the last day the
					term(s) are in session).</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>End Schedule</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PAUSESCHEDULE">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Temporarily suspend the academic day rotation
					until a subsequent "resumeSchedule" event occurs.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Pause Schedule</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RESUMESCHEDULE">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Resume an academic day rotation previously suspended using "pauseSchedule".</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Resume Schedule</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CANCEL">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Cancel one or more academic days, specified in ScheduleDayList,
					that would normally occur on this date.</p>
            <p xmlns="http://sifassociation.org/SpecGen">This is generally used to partially cancel the
					school schedule on a given calendar date. To fully cancel
					school on date, use either the "insert" or "displace"
					schedule effect.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Cancel Day</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STARTTERM">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Start one or more terms, specified in ScheduleTermList, on this date
					without changing the academic day rotation.</p>
            <p xmlns="http://sifassociation.org/SpecGen">A ScheduleTermList
					value is required when using this schedule effect.
					</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Start Term</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ADD">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Set one or more additional academic days, specified in ScheduleDayList
					to apply to this calendar date in addition to those normally applied to
					the academic day rotation.</p>
            <p xmlns="http://sifassociation.org/SpecGen">This can also be used to schedule school on a day on which it would not normally occur, such
					as a weekend.</p>
            <p xmlns="http://sifassociation.org/SpecGen">As a convenience, RemoveScheduleDayList specifies a set of 
					academic days to be removed from the calendar while this event is in effect.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Additional Day</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CUSTOM">
        <xs:annotation>
          <xs:documentation>
					This event replaces the normal day rotation for the event date
					with a custom set of SchedulePeriods and bell times.
				</xs:documentation>
          <xs:appinfo>
            <Label>Custom Day Schedule</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsCurriculumType">
    <xs:annotation>
      <xs:documentation><p>Codes denoting the two curricula used in New Zealand.
			</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="NZC">
        <xs:annotation>
          <xs:documentation xml:lang="en">Student is taught using the New Zealand Curriculum.</xs:documentation>
          <xs:documentation xml:lang="mi">E whakaakohia ana te ākonga mā te New Zealand Curriculum.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">New Zealand Curriculum</Label>
            <Label xml:lang="mi">New Zealand Curriculum</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TMA">
        <xs:annotation>
          <xs:documentation xml:lang="en">Student is taught using Te Marautanga o Aotearoa.</xs:documentation>
          <xs:documentation xml:lang="mi">E whakaakohia ana te ākonga mā Te Marautanga o Aotearoa.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Te Marautanga o Aotearoa</Label>
            <Label xml:lang="mi">Te Marautanga o Aotearoa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ECE">
        <xs:annotation>
          <xs:documentation xml:lang="en">Student is taught using Te Whāriki curriculum.</xs:documentation>
          <xs:documentation xml:lang="mi">E whakaakohia ana te ākonga mā te marau o Te Whāriki.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Te Whāriki</Label>
            <Label xml:lang="mi">Te Whāriki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:documentation xml:lang="en">Other (for schools using another curriculum).</xs:documentation>
          <xs:documentation xml:lang="mi">Ētahi kē (Ngā kura e whakamahi ana i te marautanga kē).</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Other Curriculum</Label>
            <Label xml:lang="mi">Marau Kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsCurriculumLevelType">
    <xs:annotation>
      <xs:documentation><p>Codes denoting the levels of the two Curricula used in New Zealand.
			</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation xml:lang="en">Student is working at level 1 of the relevant curriculum.</xs:documentation>
          <xs:documentation xml:lang="mi">E mahi ana i te Taumata 1 o te marau e hāngai ana.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Curriculum Level 1</Label>
            <Label xml:lang="mi">Taumata Marau 1</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation xml:lang="en">Student is working at level 2 of the relevant curriculum.</xs:documentation>
          <xs:documentation xml:lang="mi">E mahi ana i te Taumata 2 o te marau e hāngai ana.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Curriculum Level 2</Label>
            <Label xml:lang="mi">Taumata Marau 2</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation xml:lang="en">Student is working at level 3 of the relevant curriculum.</xs:documentation>
          <xs:documentation xml:lang="mi">E mahi ana i te Taumata 3 o te marau e hāngai ana.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Curriculum Level 3</Label>
            <Label xml:lang="mi">Taumata Marau 3</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation xml:lang="en">Student is working at level 4 of the relevant curriculum.</xs:documentation>
          <xs:documentation xml:lang="mi">E mahi ana i te Taumata 4 o te marau e hāngai ana.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Curriculum Level 4</Label>
            <Label xml:lang="mi">Taumata Marau 4</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation xml:lang="en">Student is working at level 5 of the relevant curriculum.</xs:documentation>
          <xs:documentation xml:lang="mi">E mahi ana i te Taumata 5 o te marau e hāngai ana</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Curriculum Level 5</Label>
            <Label xml:lang="mi">Taumata Marau 5</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="6">
        <xs:annotation>
          <xs:documentation xml:lang="en">Student is working at level 6 of the relevant curriculum.</xs:documentation>
          <xs:documentation xml:lang="mi">E mahi ana i te Taumata 6 o te marau e hāngai ana.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Curriculum Level 6</Label>
            <Label xml:lang="mi">Taumata Marau 6</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="7">
        <xs:annotation>
          <xs:documentation xml:lang="en">Student is working at level 7 of the relevant curriculum.</xs:documentation>
          <xs:documentation xml:lang="mi">E mahi ana i te Taumata 7 o te marau e hāngai ana.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Curriculum Level 7</Label>
            <Label xml:lang="mi">Taumata Marau 7</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="8">
        <xs:annotation>
          <xs:documentation xml:lang="en">Student is working at level 8 of the relevant curriculum.</xs:documentation>
          <xs:documentation xml:lang="mi">E mahi ana i te Taumata 8 o te marau e hāngai ana.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Curriculum Level 8</Label>
            <Label xml:lang="mi">Taumata Marau 8</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningAreaType">
    <xs:annotation>
      <xs:documentation><p>Codes denoting Learning Areas defined by the NZ Curriculum and Te Marautanga o Aotearoa.
			</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="HPE">
        <xs:annotation>
          <xs:documentation>Applicable to both the NZ Curriculum and Te Marautanga o Aotearoa.</xs:documentation>
          <xs:appinfo>
            <Label>Health and Physical Education / Hauora</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LAL">
        <xs:annotation>
          <xs:documentation>Applicable to both the NZ Curriculum and Te Marautanga o Aotearoa.</xs:documentation>
          <xs:appinfo>
            <Label>Language and Languages / Ngā Reo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAT">
        <xs:annotation>
          <xs:documentation>Applicable to both the NZ Curriculum and Te Marautanga o Aotearoa.</xs:documentation>
          <xs:appinfo>
            <Label>Mathematics / Pangarau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SCI">
        <xs:annotation>
          <xs:documentation>Applicable to both the NZ Curriculum and Te Marautanga o Aotearoa.</xs:documentation>
          <xs:appinfo>
            <Label>Science / Putaiao</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SSC">
        <xs:annotation>
          <xs:documentation>Applicable to both the NZ Curriculum and Te Marautanga o Aotearoa.</xs:documentation>
          <xs:appinfo>
            <Label>Social Sciences / Tikanga-a-iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TEC">
        <xs:annotation>
          <xs:documentation>Applicable to both the NZ Curriculum and Te Marautanga o Aotearoa.</xs:documentation>
          <xs:appinfo>
            <Label>Technology / Hangarau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ART">
        <xs:annotation>
          <xs:documentation>Applicable to both the NZ Curriculum and Te Marautanga o Aotearoa.</xs:documentation>
          <xs:appinfo>
            <Label>The Arts / Ngā Toi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TRP">
        <xs:annotation>
          <xs:documentation>Applicable to Te Marautanga o Aotearoa.</xs:documentation>
          <xs:appinfo>
            <Label>Te Reo Pākehā / English Language</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TRM">
        <xs:annotation>
          <xs:documentation>Applicable to Te Marautanga o Aotearoa.</xs:documentation>
          <xs:appinfo>
            <Label>Te Reo Māori / Māori Language and Literature</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningStandardTypeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the type of standard e.g., unit standard, achievement standard.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="US">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Developed by Industry Training Organisations or NZQA.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Unit Standard</Label>
            <Label xml:lang="mi">Paerewa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AS">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Developed by MoE, derived from the achievement objectives 
						of the NZ Curriculum or Te Marautanga o Aotearoa</p>
          </xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Achievement Standard</Label>
            <Label xml:lang="mi">Tutukitanga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SC">
        <xs:annotation>
          <xs:documentation>Administered by NZQA as the highest level of assessment available, above NCEA</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Scholarship</Label>
            <Label xml:lang="mi">Karahipi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningStandardFamilyType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the family the learning standard is part of, e.g. NCEA, International Baccalaureate, Cambridge etc.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="NC">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Administered by NZQA and contributes to NCEA qualifications</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>NCEA</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZ">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Contributes to qualifications other than NCEA on the NZQF</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>NZQF</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CA">
        <xs:annotation>
          <xs:documentation>Administered by Cambridge International Education in the UK</xs:documentation>
          <xs:appinfo>
            <Label>Cambridge International Education</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IB">
        <xs:annotation>
          <xs:documentation>Administered by the International Baccalaureate Organisation in Switzerland.</xs:documentation>
          <xs:appinfo>
            <Label>International Baccalaureate</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningStandardStatusType">
    <xs:annotation>
      <xs:documentation><p>A code denoting the status of the LearningStandard throughout its life-cycle.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="CA">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The LearningStandard is being developed, and is not yet ready
					 for use in teaching and assessment.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Candidate</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PU">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The LearningStandard is available for use in teaching and assessment.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Published</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SU">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The LearningStandard has been superceded (probably by a subsequent 
						version of the standard) but this version is still available for
						 use in teaching and assessment.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Superceded</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DI">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The LearningStandard is no longer available for use in teaching and assessment.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Discontinued</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningStandardRelationshipTypeType">
    <xs:annotation>
      <xs:documentation><p>A code denoting the nature of the relationship with another LearningStandard</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="PREDEC">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The related LearningStandard is a predecessor to this LearningStandard,
						 and is superceded by it.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Predecessor</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SUCCES">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The related LearningStandard is a successor to this LearningStandard, 
						and it supercedes this LearningStandard.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Successor</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PREREQ">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The related LearningStandard is a prerequisite to this LearningStandard, 
						and students should have completed the learning in that LearningStandard 
						before embarking on the learning in this one.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Prerequisite</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UNKNWN">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The precise nature of the relationship between the two LearningStandards not known, 
					but the fact that they are related is known.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Unknown</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsCredentialStatusType">
    <xs:annotation>
      <xs:documentation><p>A code denoting the status of the Credential throughout its life-cycle.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="CA">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The Credential is being developed, and is not yet available 
						for granting as an Attainment.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Candidate</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PU">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The Credential is available for granting as an Attainment</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Published</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SU">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The Credential has been superceded 
						(probably by a subsequent Credential) but this version is still 
						available for granting as an Attainment.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Superceded</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DI">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The Credential is no longer available granting as an Attainment</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Discontinued</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsSubjectAreaType">
    <xs:annotation>
      <xs:documentation><p>Codes denoting Subject Areas defined by the NZ Curriculum and Te Marautanga o Aotearoa.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="GERM">
        <xs:annotation>
          <xs:documentation>Applicable to both NZ Curriculum and Te Marautanga o Aotearoa</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">German</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INDO">
        <xs:annotation>
          <xs:documentation>Applicable to both NZ Curriculum and Te Marautanga o Aotearoa</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Indonesian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="JAPA">
        <xs:annotation>
          <xs:documentation>Applicable to both NZ Curriculum and Te Marautanga o Aotearoa</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Japanese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FREN">
        <xs:annotation>
          <xs:documentation>Applicable to both NZ Curriculum and Te Marautanga o Aotearoa</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">French</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="REME">
        <xs:annotation>
          <xs:documentation>Applicable to both NZ Curriculum and Te Marautanga o Aotearoa</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">English (Remedial)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ENGL">
        <xs:annotation>
          <xs:documentation>Applicable to both NZ Curriculum and Te Marautanga o Aotearoa</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">English</Label>
            <Label xml:lang="mi">Te Reo Pākeha</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COOK">
        <xs:annotation>
          <xs:documentation>Applicable to both NZ Curriculum and Te Marautanga o Aotearoa</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Cook Island Maori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COMM">
        <xs:annotation>
          <xs:documentation>Applicable to Te Marautanga o Aotearoa</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Communication Skills</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CHIN">
        <xs:annotation>
          <xs:documentation>Applicable to Te Marautanga o Aotearoa</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Chinese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="KORE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Korean</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LATI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Latin</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NIUE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Niuean</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OLAN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Languages</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PLAN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pacific Language Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RUSS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Russian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SAMO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Samoan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SPAN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Spanish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAOR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Reo Māori</Label>
            <Label xml:lang="mi">Te Reo Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RANG">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Reo Rangatira</Label>
            <Label xml:lang="mi">Te Reo Rangatira</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TOKE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tokelauan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TONG">
        <xs:annotation>
          <xs:appinfo>
            <Label>Tongan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ENSL">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">English as a Second Language</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MATH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mathematics</Label>
            <Label xml:lang="mi">Pāngarau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MATC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mathematics with Calculus</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MATS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mathematics with Statistics</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="REMM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mathematics (Remedial)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ACCO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Accounting</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SCIE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Science</Label>
            <Label xml:lang="mi">Pūtaiao</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AGHO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Agriculture / Horticulture</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BIOL">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Biology / Biological Science</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CHEM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Chemistry</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EAAS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Earth Science / Astronomy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HUMB">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Human Biology</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PHYS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Physics</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TECN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Technology</Label>
            <Label xml:lang="mi">Hangarau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BITE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Biotechnology</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COSC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Computer Science / Programming</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COMP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Computer Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DEST">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Design, Drawing and Graphics</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ELTE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Electronics and Control</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FOTE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Food Technology</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GRAP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Graphics</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INTE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Information and Communication Technology</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MTEC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Materials Technology</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STME">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Structures and Mechanisms</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TIMA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Test and Information Management</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CLTX">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Textiles / Clothing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ARTA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">The Arts</Label>
            <Label xml:lang="mi">Ngā Toi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ARTD">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Art Design</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ARTH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Art History</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DANC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Dancing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DRAM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Drama</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MUSC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Music / Music Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MUSP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Music Practical / Performance</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ARPA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Painting</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="APER">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Performing Arts</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ARTP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Photography</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ARPR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Printmaking</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ARTS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sculpture</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ARTC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Visial Arts</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SOST">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Social Studies</Label>
            <Label xml:lang="mi">Tikanga ā-iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CLST">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Classics / Classical Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CMTY">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Community Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ECON">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Economics</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SENV">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Environmental Sustainability</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GEOG">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Geography</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HIST">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">History</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LACU">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Language and Cultural Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAOS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Māori Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MEST">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Media Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SOSC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other Social Sciences</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HEPH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Health and Physical Education</Label>
            <Label xml:lang="mi">Hauora</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HEED">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Health</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HOME">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Home Economics</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OUED">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Outdoor Education</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PHED">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Physical Education</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SPOR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sports Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BUSS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Commerce Related</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DEFE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Defence</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EQUE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Equestrian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FARM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Farming</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FISH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Fishing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FOTY">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Forestry</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INTR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Industrial Trades</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INTS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Integrated Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LAWS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Legal / Law Related Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LIFE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Life Skills / Personal Development</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="REST">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Religious Education / Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="REMS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Remedial Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STPR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Secondary Tertiary Programme</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SETR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Service Trades</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SPPR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Special Needs Programme</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STDY">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Study Skills</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TRAN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Transition / Pre-Employment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="THTR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Travel, Hospitality, Tourism</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CROS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cross-Curricular</Label>
            <Label xml:lang="mi">Marautanga Whakawhiti</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INSK">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Information Skills</Label>
            <Label xml:lang="mi">Pūkenga pārongo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STUD">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Student Engagement</Label>
            <Label xml:lang="mi">Te Taute Ākonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsCurriculumProgressReportTimeframeType">
    <xs:annotation>
      <xs:documentation><p>Codes denoting the period of time that a Curriculum Progress Report applies to.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="END">
        <xs:annotation>
          <xs:appinfo>
            <Label>End of Year</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MID">
        <xs:annotation>
          <xs:appinfo>
            <Label>Mid-Year</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SEM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Semester</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TRM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Term</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ONG">
        <xs:annotation>
          <xs:appinfo>
            <Label>Ongoing / As Available / Ad-Hoc</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsTechnologyClassType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting a class or subject area from the technology curriculum that the progress report covers.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="HM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Hard Materials</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FD">
        <xs:annotation>
          <xs:appinfo>
            <Label>Food</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DE">
        <xs:annotation>
          <xs:appinfo>
            <Label>3D Design</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Multimedia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsTechnologyLearningStrandType">
    <xs:annotation>
      <xs:documentation><p>Code list denoting the learning strands from the Technology curriculum 
				that can be covered as part of a technology class.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="TP">
        <xs:annotation>
          <xs:appinfo>
            <Label>Technological Practice</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TK">
        <xs:annotation>
          <xs:appinfo>
            <Label>Technological Knowledge</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Nature of Technology</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsStrandAchievementObjectiveType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting achievement objectives against which a student
				 can be assessed within a Learning Strand.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="BD">
        <xs:annotation>
          <xs:appinfo>
            <Label>Brief Development</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PP">
        <xs:annotation>
          <xs:appinfo>
            <Label>Planning for Practice</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OD">
        <xs:annotation>
          <xs:appinfo>
            <Label>Outcome Development and Evaluation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Technological Modelling</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TP">
        <xs:annotation>
          <xs:appinfo>
            <Label>Technological Products</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Technological Systems</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Characteristics of Technology</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Characteristics of Technological Outcomes</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsStrandAchievementProgressLevelType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the level of progress the student has made
			against the learning strand achievement objectiv. e.g. Beginner,
			Proficient, and Advanced.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Beginner</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="P">
        <xs:annotation>
          <xs:appinfo>
            <Label>Proficient</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Advanced</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsTechnologyCurriculumLevelType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the technology curriculum level that the student's
				 progress report is being made against.  e.g. 2, 3, 4 or 5.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:appinfo>
            <Label>Level 2</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:appinfo>
            <Label>Level 3</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:appinfo>
            <Label>Level 4</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsNCEASubjectAreaType">
    <xs:annotation>
      <xs:documentation><p>Codes denoting Subject Areas defined by the NZQA for NCEA.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="10">
        <xs:annotation>
          <xs:appinfo>
            <Label>Communication Skills</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="103">
        <xs:annotation>
          <xs:appinfo>
            <Label>Solid Wood Processing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="112">
        <xs:annotation>
          <xs:appinfo>
            <Label>Human Services</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="113">
        <xs:annotation>
          <xs:appinfo>
            <Label>Fire Fighting</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="116">
        <xs:annotation>
          <xs:appinfo>
            <Label>Journalism</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="129">
        <xs:annotation>
          <xs:appinfo>
            <Label>Health Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="158">
        <xs:annotation>
          <xs:appinfo>
            <Label>Service Sector Skills</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="166">
        <xs:annotation>
          <xs:appinfo>
            <Label>Driving</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="174">
        <xs:annotation>
          <xs:appinfo>
            <Label>Tourism</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="175">
        <xs:annotation>
          <xs:appinfo>
            <Label>Transport Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="182">
        <xs:annotation>
          <xs:appinfo>
            <Label>Clothing Manufacture</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="184">
        <xs:annotation>
          <xs:appinfo>
            <Label>Food Processing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="185">
        <xs:annotation>
          <xs:appinfo>
            <Label>Furniture Trades</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="186">
        <xs:annotation>
          <xs:appinfo>
            <Label>Glass and Glazing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="189">
        <xs:annotation>
          <xs:appinfo>
            <Label>Outdoor Fabric Products</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="190">
        <xs:annotation>
          <xs:appinfo>
            <Label>Plastics Processing Technology</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="191">
        <xs:annotation>
          <xs:appinfo>
            <Label>Printing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="194">
        <xs:annotation>
          <xs:appinfo>
            <Label>Textiles Manufacture</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="198">
        <xs:annotation>
          <xs:appinfo>
            <Label>Aeronautical Engineering</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="204">
        <xs:annotation>
          <xs:appinfo>
            <Label>Electrical Engineering</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="212">
        <xs:annotation>
          <xs:appinfo>
            <Label>Mechanical Engineering</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="215">
        <xs:annotation>
          <xs:appinfo>
            <Label>Telecommunications</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="221">
        <xs:annotation>
          <xs:appinfo>
            <Label>Architecture</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="224">
        <xs:annotation>
          <xs:appinfo>
            <Label>Construction Trades</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="226">
        <xs:annotation>
          <xs:appinfo>
            <Label>Joinery</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="228">
        <xs:annotation>
          <xs:appinfo>
            <Label>Painting and Decorating</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="229">
        <xs:annotation>
          <xs:appinfo>
            <Label>Plumbing, Gasfitting and Drainlaying</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="230">
        <xs:annotation>
          <xs:appinfo>
            <Label>Quantity Surveying</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="231">
        <xs:annotation>
          <xs:appinfo>
            <Label>Surveying</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="240">
        <xs:annotation>
          <xs:appinfo>
            <Label>Adult Education and Training</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="245">
        <xs:annotation>
          <xs:appinfo>
            <Label>Dairy Manufacturing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="246">
        <xs:annotation>
          <xs:appinfo>
            <Label>Roading Technology</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="247">
        <xs:annotation>
          <xs:appinfo>
            <Label>Distribution</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="249">
        <xs:annotation>
          <xs:appinfo>
            <Label>Social Science Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="253">
        <xs:annotation>
          <xs:appinfo>
            <Label>Core Generic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="257">
        <xs:annotation>
          <xs:appinfo>
            <Label>Motor Industry</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="258">
        <xs:annotation>
          <xs:appinfo>
            <Label>Paperboard Case Manufacturing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="259">
        <xs:annotation>
          <xs:appinfo>
            <Label>Wood Panels Manufacturing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="260">
        <xs:annotation>
          <xs:appinfo>
            <Label>Footwear and Leather Trades</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="261">
        <xs:annotation>
          <xs:appinfo>
            <Label>Manufacturing Skills</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="262">
        <xs:annotation>
          <xs:appinfo>
            <Label>Film and Electronic Media</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="263">
        <xs:annotation>
          <xs:appinfo>
            <Label>Equine</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="264">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cleaning and Caretaking</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="265">
        <xs:annotation>
          <xs:appinfo>
            <Label>Commercial Road Transport</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="266">
        <xs:annotation>
          <xs:appinfo>
            <Label>Fitness</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="267">
        <xs:annotation>
          <xs:appinfo>
            <Label>Sport</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="268">
        <xs:annotation>
          <xs:appinfo>
            <Label>Lifting Equipment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="269">
        <xs:annotation>
          <xs:appinfo>
            <Label>Industrial Measurement and Control</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="271">
        <xs:annotation>
          <xs:appinfo>
            <Label>Reo Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="272">
        <xs:annotation>
          <xs:appinfo>
            <Label>Pulp and Paper Manufacturing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="273">
        <xs:annotation>
          <xs:appinfo>
            <Label>Meat Processing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="275">
        <xs:annotation>
          <xs:appinfo>
            <Label>Educational Administration</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="276">
        <xs:annotation>
          <xs:appinfo>
            <Label>Māori Education and Training</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="277">
        <xs:annotation>
          <xs:appinfo>
            <Label>Industrial Machine Knitting</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="278">
        <xs:annotation>
          <xs:appinfo>
            <Label>Computing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="279">
        <xs:annotation>
          <xs:appinfo>
            <Label>Special Education</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="280">
        <xs:annotation>
          <xs:appinfo>
            <Label>Te Matauranga Māori me te Whakangungu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="281">
        <xs:annotation>
          <xs:appinfo>
            <Label>Maritime</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="282">
        <xs:annotation>
          <xs:appinfo>
            <Label>Energy and Chemical Plant</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="285">
        <xs:annotation>
          <xs:appinfo>
            <Label>Compliance and Law Enforcement</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="286">
        <xs:annotation>
          <xs:appinfo>
            <Label>Animal Care and Handling</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="288">
        <xs:annotation>
          <xs:appinfo>
            <Label>Electronics Technology</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="289">
        <xs:annotation>
          <xs:appinfo>
            <Label>Beauty Services</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="290">
        <xs:annotation>
          <xs:appinfo>
            <Label>Pork Production</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="291">
        <xs:annotation>
          <xs:appinfo>
            <Label>Diving</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="292">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cranes</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="293">
        <xs:annotation>
          <xs:appinfo>
            <Label>Community Support</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="294">
        <xs:annotation>
          <xs:appinfo>
            <Label>Public Health</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="295">
        <xs:annotation>
          <xs:appinfo>
            <Label>Real Estate</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="297">
        <xs:annotation>
          <xs:appinfo>
            <Label>Wool Harvesting</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="298">
        <xs:annotation>
          <xs:appinfo>
            <Label>Statistics and Probability</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="299">
        <xs:annotation>
          <xs:appinfo>
            <Label>Seafood</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="300">
        <xs:annotation>
          <xs:appinfo>
            <Label>Rural Contracting</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="301">
        <xs:annotation>
          <xs:appinfo>
            <Label>Emergency Services</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="303">
        <xs:annotation>
          <xs:appinfo>
            <Label>Occupational Health and Safety</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="304">
        <xs:annotation>
          <xs:appinfo>
            <Label>Ngā Mahi a te Whare Pora</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="305">
        <xs:annotation>
          <xs:appinfo>
            <Label>Highway Construction and Maintenance</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="306">
        <xs:annotation>
          <xs:appinfo>
            <Label>Civil Plant Operation Management</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="307">
        <xs:annotation>
          <xs:appinfo>
            <Label>Civil Works and Services</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="308">
        <xs:annotation>
          <xs:appinfo>
            <Label>Pavement Surfacing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="309">
        <xs:annotation>
          <xs:appinfo>
            <Label>Security</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="310">
        <xs:annotation>
          <xs:appinfo>
            <Label>Hospitality</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="314">
        <xs:annotation>
          <xs:appinfo>
            <Label>Religious Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="315">
        <xs:annotation>
          <xs:appinfo>
            <Label>Food and Related Products Processing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="316">
        <xs:annotation>
          <xs:appinfo>
            <Label>Science</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="317">
        <xs:annotation>
          <xs:appinfo>
            <Label>Home and Life Sciences</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="318">
        <xs:annotation>
          <xs:appinfo>
            <Label>Electricity Supply</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="319">
        <xs:annotation>
          <xs:appinfo>
            <Label>Social Services</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="320">
        <xs:annotation>
          <xs:appinfo>
            <Label>Generic Education and Training</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="321">
        <xs:annotation>
          <xs:appinfo>
            <Label>Petrochemical Industry</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="322">
        <xs:annotation>
          <xs:appinfo>
            <Label>Steel Manufacturing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="323">
        <xs:annotation>
          <xs:appinfo>
            <Label>Extractive Industries</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="324">
        <xs:annotation>
          <xs:appinfo>
            <Label>Civil Defence</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="325">
        <xs:annotation>
          <xs:appinfo>
            <Label>Leather Manufacturing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="326">
        <xs:annotation>
          <xs:appinfo>
            <Label>Funeral Services</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="328">
        <xs:annotation>
          <xs:appinfo>
            <Label>Early Childhood Education and Care</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="329">
        <xs:annotation>
          <xs:appinfo>
            <Label>Mana Wahine</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="330">
        <xs:annotation>
          <xs:appinfo>
            <Label>Technology</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="331">
        <xs:annotation>
          <xs:appinfo>
            <Label>Community Recreation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="332">
        <xs:annotation>
          <xs:appinfo>
            <Label>Outdoor Recreation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="333">
        <xs:annotation>
          <xs:appinfo>
            <Label>Ski</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="334">
        <xs:annotation>
          <xs:appinfo>
            <Label>Public Sector Services</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="335">
        <xs:annotation>
          <xs:appinfo>
            <Label>Economic Theory and Practice</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="336">
        <xs:annotation>
          <xs:appinfo>
            <Label>Poultry Production</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="337">
        <xs:annotation>
          <xs:appinfo>
            <Label>Aviation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="338">
        <xs:annotation>
          <xs:appinfo>
            <Label>English</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="342">
        <xs:annotation>
          <xs:appinfo>
            <Label>Construction</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="343">
        <xs:annotation>
          <xs:appinfo>
            <Label>Masonry</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="344">
        <xs:annotation>
          <xs:appinfo>
            <Label>Boating Industries</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="345">
        <xs:annotation>
          <xs:appinfo>
            <Label>Gas Industry</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="346">
        <xs:annotation>
          <xs:appinfo>
            <Label>Tikanga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="347">
        <xs:annotation>
          <xs:appinfo>
            <Label>General Education Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="349">
        <xs:annotation>
          <xs:appinfo>
            <Label>Hauora</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="351">
        <xs:annotation>
          <xs:appinfo>
            <Label>Music</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="352">
        <xs:annotation>
          <xs:appinfo>
            <Label>Dance</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="354">
        <xs:annotation>
          <xs:appinfo>
            <Label>Stevedoring and Ports Industry</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="355">
        <xs:annotation>
          <xs:appinfo>
            <Label>Māori Business and Management</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="356">
        <xs:annotation>
          <xs:appinfo>
            <Label>Furniture</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="357">
        <xs:annotation>
          <xs:appinfo>
            <Label>Fire and Rescue Services</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="358">
        <xs:annotation>
          <xs:appinfo>
            <Label>Supported Learning</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="359">
        <xs:annotation>
          <xs:appinfo>
            <Label>Languages</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="360">
        <xs:annotation>
          <xs:appinfo>
            <Label>Engineering</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="362">
        <xs:annotation>
          <xs:appinfo>
            <Label>Retail and Wholesale</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="363">
        <xs:annotation>
          <xs:appinfo>
            <Label>Storekeeping and Warehousing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="364">
        <xs:annotation>
          <xs:appinfo>
            <Label>Drama</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="365">
        <xs:annotation>
          <xs:appinfo>
            <Label>Performing Arts General</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="366">
        <xs:annotation>
          <xs:appinfo>
            <Label>Health and Physical Education</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="367">
        <xs:annotation>
          <xs:appinfo>
            <Label>Pacific Islands Early Childhood Education</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="368">
        <xs:annotation>
          <xs:appinfo>
            <Label>Career Practice</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="370">
        <xs:annotation>
          <xs:appinfo>
            <Label>Māori Performing Arts</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="371">
        <xs:annotation>
          <xs:appinfo>
            <Label>Meat Inspection Services</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="372">
        <xs:annotation>
          <xs:appinfo>
            <Label>Mental Health</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="374">
        <xs:annotation>
          <xs:appinfo>
            <Label>Environment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="375">
        <xs:annotation>
          <xs:appinfo>
            <Label>Offender Management</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="378">
        <xs:annotation>
          <xs:appinfo>
            <Label>Film and Television</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="380">
        <xs:annotation>
          <xs:appinfo>
            <Label>Electronic Media</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="384">
        <xs:annotation>
          <xs:appinfo>
            <Label>Ngā Mahi a te Rēhia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="385">
        <xs:annotation>
          <xs:appinfo>
            <Label>Whenua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="386">
        <xs:annotation>
          <xs:appinfo>
            <Label>Call Centres</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="387">
        <xs:annotation>
          <xs:appinfo>
            <Label>Community and Workplace Fire and Emergency Management</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="389">
        <xs:annotation>
          <xs:appinfo>
            <Label>Sports Turf</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="390">
        <xs:annotation>
          <xs:appinfo>
            <Label>Pacific Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="392">
        <xs:annotation>
          <xs:appinfo>
            <Label>Supply Chain Management</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="393">
        <xs:annotation>
          <xs:appinfo>
            <Label>Civil Engineering</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="394">
        <xs:annotation>
          <xs:appinfo>
            <Label>Seafood Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="395">
        <xs:annotation>
          <xs:appinfo>
            <Label>Tourism Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="396">
        <xs:annotation>
          <xs:appinfo>
            <Label>Wood Processing Technology</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="397">
        <xs:annotation>
          <xs:appinfo>
            <Label>Blaster Coating</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="40">
        <xs:annotation>
          <xs:appinfo>
            <Label>Mathematics</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="400">
        <xs:annotation>
          <xs:appinfo>
            <Label>Water Industry</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="402">
        <xs:annotation>
          <xs:appinfo>
            <Label>Visual Arts</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="403">
        <xs:annotation>
          <xs:appinfo>
            <Label>Snowsport</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="405">
        <xs:annotation>
          <xs:appinfo>
            <Label>Specialist Rescue</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="406">
        <xs:annotation>
          <xs:appinfo>
            <Label>Rail Transport</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="407">
        <xs:annotation>
          <xs:appinfo>
            <Label>Logistics</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="408">
        <xs:annotation>
          <xs:appinfo>
            <Label>Retail, Distribution, and Sales</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="410">
        <xs:annotation>
          <xs:appinfo>
            <Label>Reo Māori Media</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="411">
        <xs:annotation>
          <xs:appinfo>
            <Label>Māori Business and Management</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="412">
        <xs:annotation>
          <xs:appinfo>
            <Label>Electronic Engineering</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="413">
        <xs:annotation>
          <xs:appinfo>
            <Label>Coatings, Inks, and Adhesives</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="414">
        <xs:annotation>
          <xs:appinfo>
            <Label>Environment Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="415">
        <xs:annotation>
          <xs:appinfo>
            <Label>Niue Arts and Crafts</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="416">
        <xs:annotation>
          <xs:appinfo>
            <Label>Museum Services</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="419">
        <xs:annotation>
          <xs:appinfo>
            <Label>Pharmaceutical and Allied Products</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="420">
        <xs:annotation>
          <xs:appinfo>
            <Label>Hot Dip Galvanizing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="421">
        <xs:annotation>
          <xs:appinfo>
            <Label>Marae Catering</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="422">
        <xs:annotation>
          <xs:appinfo>
            <Label>Contact Centres</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="423">
        <xs:annotation>
          <xs:appinfo>
            <Label>Fibreboard Packaging</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="424">
        <xs:annotation>
          <xs:appinfo>
            <Label>Resource Recovery</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="426">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cadet Forces</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="428">
        <xs:annotation>
          <xs:appinfo>
            <Label>Solid Wood Manufacturing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="429">
        <xs:annotation>
          <xs:appinfo>
            <Label>Wood Fibre Manufacturing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="430">
        <xs:annotation>
          <xs:appinfo>
            <Label>Wood Handling and Distribution</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="431">
        <xs:annotation>
          <xs:appinfo>
            <Label>Wood Manufacturing - Generic Skills</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="433">
        <xs:annotation>
          <xs:appinfo>
            <Label>Solid Waste</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="435">
        <xs:annotation>
          <xs:appinfo>
            <Label>Business Operations and Development</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="436">
        <xs:annotation>
          <xs:appinfo>
            <Label>Business Environment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="437">
        <xs:annotation>
          <xs:appinfo>
            <Label>Industrial Textile Fabrication</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="438">
        <xs:annotation>
          <xs:appinfo>
            <Label>Concrete</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="441">
        <xs:annotation>
          <xs:appinfo>
            <Label>Animal Product Examination Services</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="442">
        <xs:annotation>
          <xs:appinfo>
            <Label>Financial Services</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="444">
        <xs:annotation>
          <xs:appinfo>
            <Label>Metalliferous Mining</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="445">
        <xs:annotation>
          <xs:appinfo>
            <Label>Greyhound Racing Industry</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="446">
        <xs:annotation>
          <xs:appinfo>
            <Label>Baking Yeasts Manufacturing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="447">
        <xs:annotation>
          <xs:appinfo>
            <Label>Composites</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="449">
        <xs:annotation>
          <xs:appinfo>
            <Label>Explosive Atmospheres</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="450">
        <xs:annotation>
          <xs:appinfo>
            <Label>Civil Defence Emergency Management</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="451">
        <xs:annotation>
          <xs:appinfo>
            <Label>Infrastructure Civil Engineering</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="452">
        <xs:annotation>
          <xs:appinfo>
            <Label>Infrastructure Works</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="453">
        <xs:annotation>
          <xs:appinfo>
            <Label>Health, Disability, and Aged Support</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="454">
        <xs:annotation>
          <xs:appinfo>
            <Label>Zero Waste</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="456">
        <xs:annotation>
          <xs:appinfo>
            <Label>Public Sector Compliance</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="457">
        <xs:annotation>
          <xs:appinfo>
            <Label>Te Ara Nunumi - Bereavement Pathways Maori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="458">
        <xs:annotation>
          <xs:appinfo>
            <Label>Primary Sector</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="459">
        <xs:annotation>
          <xs:appinfo>
            <Label>Recreation and Sport</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="460">
        <xs:annotation>
          <xs:appinfo>
            <Label>Manaaki Marae - Marae Hospitality</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="464">
        <xs:annotation>
          <xs:appinfo>
            <Label>Renewable Energy Systems</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="465">
        <xs:annotation>
          <xs:appinfo>
            <Label>Mau Rākau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="466">
        <xs:annotation>
          <xs:appinfo>
            <Label>Fellmongery and Leather Processing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="467">
        <xs:annotation>
          <xs:appinfo>
            <Label>Te Marautanga o Aotearoa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="468">
        <xs:annotation>
          <xs:appinfo>
            <Label>Primary Products Food Processing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="469">
        <xs:annotation>
          <xs:appinfo>
            <Label>Industrial Coatings</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="470">
        <xs:annotation>
          <xs:appinfo>
            <Label>Dairy Processing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="471">
        <xs:annotation>
          <xs:appinfo>
            <Label>Sign Making</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="472">
        <xs:annotation>
          <xs:appinfo>
            <Label>Taonga Pūoro</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="473">
        <xs:annotation>
          <xs:appinfo>
            <Label>Exercise</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="474">
        <xs:annotation>
          <xs:appinfo>
            <Label>Te Ara Hou ki te Ora</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="475">
        <xs:annotation>
          <xs:appinfo>
            <Label>Inclusive Education</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:appinfo>
            <Label>Whakairo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="53">
        <xs:annotation>
          <xs:appinfo>
            <Label>Design</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="55">
        <xs:annotation>
          <xs:appinfo>
            <Label>Graphic Arts</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="71">
        <xs:annotation>
          <xs:appinfo>
            <Label>Information Processing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="76">
        <xs:annotation>
          <xs:appinfo>
            <Label>Accounting</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="78">
        <xs:annotation>
          <xs:appinfo>
            <Label>Business Administration</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="79">
        <xs:annotation>
          <xs:appinfo>
            <Label>Financial Management</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="82">
        <xs:annotation>
          <xs:appinfo>
            <Label>Information Management</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="84">
        <xs:annotation>
          <xs:appinfo>
            <Label>Management</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="85">
        <xs:annotation>
          <xs:appinfo>
            <Label>Marketing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="86">
        <xs:annotation>
          <xs:appinfo>
            <Label>Office Systems</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="92">
        <xs:annotation>
          <xs:appinfo>
            <Label>Land Skills</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="93">
        <xs:annotation>
          <xs:appinfo>
            <Label>Agriculture</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="96">
        <xs:annotation>
          <xs:appinfo>
            <Label>Forestry</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="97">
        <xs:annotation>
          <xs:appinfo>
            <Label>Horticulture</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="99">
        <xs:annotation>
          <xs:appinfo>
            <Label>Pest Management</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ACCO">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Accounting</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AGHO">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Agricultural and Horticultural Science</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AGRI">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Agribusiness (Business Studies)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ARTC">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Visual Arts</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ARTH">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Art History</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BIOL">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Biology</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BUST">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Business Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CHEM">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Chemistry</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CHIN">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Chinese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CLST">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Classical Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COMP">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Computing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COOK">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Cook Island Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DANC">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Dance</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DLIC">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Drivers Licence</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DRAM">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Drama</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DTEC">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Digital Technologies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EAAS">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Earth and Space Science</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ECON">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Economics</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ENAC">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>English for Academic Purposes</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ENGL">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>English</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ENSL">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>English Language (EL)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FIMA">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Field Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FREN">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>French</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GEOG">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Geography</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GERM">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>German</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GRAP">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Digital and Visual Communication (Graphics)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HANG">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Hangarau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HAUO">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Hauora</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HEED">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Health</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HIST">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>History</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HOME">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Home Economics</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="JAPA">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Japanese</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="KORE">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Korean</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LAFT">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Lea Faka-Tonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LATI">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Latin</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LAWS">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Legal Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LITE">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Literacy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAOR">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Te Reo Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAST">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Mathematics and Statistics</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MEST">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Media Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MPRT">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Māori Performing Arts</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MUSC">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Music</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NGAT">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Ngā Toi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NUME">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Numeracy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZSL">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>New Zealand Sign Language</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PANG">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Pāngarau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PHED">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Physical Education</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PHYS">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Physics</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PLAN">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Pacific Language Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PSYC">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Psychology</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PUTA">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Pūtaiao</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RANG">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Te Reo Rangatira</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="REST">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Religious Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SAMO">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Samoan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SCIE">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Science</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SENV">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Education for Sustainability</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SOSC">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Sociology</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SOST">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Social Studies</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SPAN">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Spanish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SULE">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Supported Learning</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TECN">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Technology</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TIKA">
        <xs:annotation>
          <xs:appinfo>
            <endDate>2020-04-15</endDate>
            <Label>Tikanga-ā-iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAssessmentMethodologyType">
    <xs:annotation>
      <xs:documentation><p>Code denoting the nature of the assessment process;  Primary assessment against NZ Curriculum or Te Marautanga
      o Aotearoa; Secondary assessment against NCEA, Cambridge, International Baccalaureate, or similar.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="P">
        <xs:annotation>
          <xs:documentation>
					Learner is being assessed against assessment against NZ Curriculum or Te Marautanga o Aotearoa; includes
					teacher's overall judgement, specific competency tests conducted manually or with the help of 
					recognised assessment tools.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Primary</Label>
            <Label xml:lang="mi">Aromatawai ā-roto</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="S">
        <xs:annotation>
          <xs:documentation>
					Learner is being assessed in an externally provided qualification system such as NCEA, Cambridge Education,
					International Baccalaureate, or similar.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Secondary</Label>
            <Label xml:lang="mi">Aromatawai ā-waho</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAssessmentTypeType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the type of assessment the student is sitting for the assessment task.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="INT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Internal</Label>
            <Label xml:lang="mi">Aromatawai ā-roto</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EXT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">External</Label>
            <Label xml:lang="mi">Aromatawai ā-waho</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MOC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mock</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="POR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Portfolio</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Practical</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTJ">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Overall Teacher Judgement</Label>
            <Label xml:lang="mi">Tā te Pouako i whakarite ai</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAssessmentToolType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting assessment tools that may be used in an assessment task.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="EASMATH">
        <xs:annotation>
          <xs:appinfo>
            <Label>e-asTTle Mathematics</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EASREAD">
        <xs:annotation>
          <xs:appinfo>
            <Label>e-asTTle Reading</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PATCOMP">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT: Reading Comprehension</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PATMATH">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT: Mathematics</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STARREA">
        <xs:annotation>
          <xs:appinfo>
            <Label>STAR Reading</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAssessmentToolTestType">
    <xs:annotation>
      <xs:documentation><p>Standard code set denoting the tests available within an assessment tool that may be used in an assessment task.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="PMT1">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Maths - Test 1</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PMT1A">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Maths - Test 1A</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PMT2">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Maths - Test 2</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PMT2A">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Maths - Test 2A</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PMT3">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Maths - Test 3</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PMT3A">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Maths - Test 3A</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PMT4">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Maths - Test 4</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PMT4A">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Maths - Test 4A</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PMT5">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Maths - Test 5</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PMT5A">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Maths - Test 5A</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PMT6">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Maths - Test 6</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PMT6A">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Maths - Test 6A</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PMT7">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Maths - Test 7</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PMT7A">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Maths - Test 7A</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PMT8A">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Maths - Test 8A</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PMTADA">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Maths - Adaptive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRCT1">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Reading Comp - Test 1</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRCT2">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Reading Comp - Test 2</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRCT3">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Reading Comp - Test 3</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRCT4">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Reading Comp - Test 4</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRCT5">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Reading Comp - Test 5</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRCT6">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Reading Comp - Test 6</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRCT7">
        <xs:annotation>
          <xs:appinfo>
            <Label>PAT Reading Comp - Test 7</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SRT34A">
        <xs:annotation>
          <xs:appinfo>
            <Label>STAR Reading - 3-4 A</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SRT34B">
        <xs:annotation>
          <xs:appinfo>
            <Label>STAR Reading - 3-4 B</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SRT34C">
        <xs:annotation>
          <xs:appinfo>
            <Label>STAR Reading - 3-4 C</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SRT56A">
        <xs:annotation>
          <xs:appinfo>
            <Label>STAR Reading - 5-6 A</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SRT56B">
        <xs:annotation>
          <xs:appinfo>
            <Label>STAR Reading - 5-6 B</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SRT56C">
        <xs:annotation>
          <xs:appinfo>
            <Label>STAR Reading - 5-6 C</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SRT78A">
        <xs:annotation>
          <xs:appinfo>
            <Label>STAR Reading - 7-8 A</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SRT78B">
        <xs:annotation>
          <xs:appinfo>
            <Label>STAR Reading - 7-8 B</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SRT78C">
        <xs:annotation>
          <xs:appinfo>
            <Label>STAR Reading - 7-8 C</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SRT9A">
        <xs:annotation>
          <xs:appinfo>
            <Label>STAR Reading - 9A</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EMYR4">
        <xs:annotation>
          <xs:appinfo>
            <Label>e-asTTle Maths – Year 4</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EMYR5">
        <xs:annotation>
          <xs:appinfo>
            <Label>e-asTTle Maths – Year 5</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EMYR6">
        <xs:annotation>
          <xs:appinfo>
            <Label>e-asTTle Maths – Year 6</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EMYR7">
        <xs:annotation>
          <xs:appinfo>
            <Label>e-asTTle Maths – Year 7</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EMYR8">
        <xs:annotation>
          <xs:appinfo>
            <Label>e-asTTle Maths – Year 8</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EMYR9">
        <xs:annotation>
          <xs:appinfo>
            <Label>e-asTTle Maths – Year 9</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EMYR10">
        <xs:annotation>
          <xs:appinfo>
            <Label>e-asTTle Maths – Year 10</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ERYR4">
        <xs:annotation>
          <xs:appinfo>
            <Label>e-asTTle Reading – Year 4</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ERYR5">
        <xs:annotation>
          <xs:appinfo>
            <Label>e-asTTle Reading – Year 5</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ERYR6">
        <xs:annotation>
          <xs:appinfo>
            <Label>e-asTTle Reading – Year 6</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ERYR7">
        <xs:annotation>
          <xs:appinfo>
            <Label>e-asTTle Reading – Year 7</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ERYR8">
        <xs:annotation>
          <xs:appinfo>
            <Label>e-asTTle Reading – Year 8</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ERYR9">
        <xs:annotation>
          <xs:appinfo>
            <Label>e-asTTle Reading – Year 9</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ERYR10">
        <xs:annotation>
          <xs:appinfo>
            <Label>e-asTTle Reading – Year 10</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAssessmentEvaluationTypeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the type of assessment evaluation taking place, e.g. formative or summative.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="F">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Formative</Label>
            <Label xml:lang="mi">Arataki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="S">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Summative</Label>
            <Label xml:lang="mi">Whakakapi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAssessmentStatusType">
    <xs:annotation>
      <xs:documentation><p>Codes denoting the current status of the assessment task.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="MOD">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Moderated</Label>
            <Label xml:lang="mi">Kua whakaōritehia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NOT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Unmoderated</Label>
            <Label xml:lang="mi">Kāre anō kia whakaōritehia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PUB">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Published</Label>
            <Label xml:lang="mi">Kua tāia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ENT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Entered</Label>
            <Label xml:lang="mi">I whakaurungia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Marked</Label>
            <Label xml:lang="mi">Kua mākahia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAssessmentProviderRoleType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the role of the provider in the assessment, e.g. Assessing Provider, Location Provider.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="ASR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Assessor</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LOC">
        <xs:annotation>
          <xs:appinfo>
            <Label>Location Provider</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Provider</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="REG">
        <xs:annotation>
          <xs:appinfo>
            <Label>Registering Organisation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAssessmentStaffRoleType">
    <xs:restriction base="xs:token">
      <xs:enumeration value="CRE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Creator</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MOD">
        <xs:annotation>
          <xs:appinfo>
            <Label>Moderator</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ASS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Assessor</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INV">
        <xs:annotation>
          <xs:appinfo>
            <Label>Invigilator</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsScoreMetricType">
    <xs:annotation>
      <xs:documentation><p>The type of score metric used for an assessment task result.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="RAW">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Raw</Label>
            <Label xml:lang="mi">Taketake</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SCA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Scale</Label>
            <Label xml:lang="mi">Āwhata</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Margin of Error</Label>
            <Label xml:lang="mi">Pae Hapa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Stanine</Label>
            <Label xml:lang="mi">Pouiwa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="YEA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Year Level</Label>
            <Label xml:lang="mi">Taumata ā-Tau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CUR">
        <xs:annotation>
          <xs:documentation>Student is assessed to be at one of the levels defined by The National Curriculum: 1A, 1B through 5A, 5B</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Curriculum Level</Label>
            <Label xml:lang="mi">Taumata Marau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NKS">
        <xs:annotation>
          <xs:documentation>Recorded as either stage numbers 1-8 or 7 codes: E, CA, AC, EA, AA, AM, AP</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Number Knowledge Stage</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NA">
        <xs:annotation>
          <xs:documentation>NZQA Unit Standards: Not Achieved, Achieved</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">NA</Label>
            <Label xml:lang="mi">NA</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NAM">
        <xs:annotation>
          <xs:documentation>NZQA Achievement Standards: Not Achieved, Achieved, Achieved with Merit, Achieved with Excellence</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">NAME</Label>
            <Label xml:lang="mi">NAME</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsScoreTypeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting that the score is an over-arching final aggregate score derived from a collection of other scores, 
			or the fact that the score is derived from a multi-stage marking and moderation process, e.g. inital, interim, moderated
			 and final scores for a single assessment.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="INI">
        <xs:annotation>
          <xs:appinfo>
            <Label>Initial</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Interim</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MOD">
        <xs:annotation>
          <xs:appinfo>
            <Label>Moderated</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FIN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Final</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAssessmentRegistrationStatusType">
    <xs:annotation>
      <xs:documentation><p> Code set denoting the status of the student's registration for an assessment
			 task, e.g. applied, approved, withdrawn.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="ALD">
        <xs:annotation>
          <xs:appinfo>
            <Label>Applied</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="APD">
        <xs:annotation>
          <xs:appinfo>
            <Label>Approved</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WTH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Withdrawn</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAssessmentRequestTypeType">
    <xs:annotation>
      <xs:documentation><p>Denotes the request type to NZQA for a Digital Exam/ Paper Exam or 
			Digital Submission / Physical Submission.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="DE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Digital Exam</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Digital Submission</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Not Selected</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Paper Exam</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Physical Submission</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsNZQAFinancialAssistanceType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the type of financial assistance the learner 
			is receiving from NZQA</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Benefit</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Family</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Income</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsSpecialAssessmentConditionType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting special assessment conditions that a student
				requires when sitting an assessment.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="BRA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Braille Paper</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Computer OR Writer</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ENL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Enlarged Paper</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EXT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Extra Time</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="REA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Reader</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RES">
        <xs:annotation>
          <xs:appinfo>
            <Label>Rest Breaks</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SEP">
        <xs:annotation>
          <xs:appinfo>
            <Label>Separate Accommodation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SIR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Signing Reader</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SIS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Signing Supervisor</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SPE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Special Paper</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAssessmentTimeframeType">
    <xs:annotation>
      <xs:documentation><p>The timeframe of the assessment, e.g. Mid-Year, End of Year.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OUT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Out of Cycle</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Interim</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="END">
        <xs:annotation>
          <xs:appinfo>
            <Label>End of Year</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsNCEAEndorsementLevelType">
    <xs:annotation>
      <xs:documentation><p>The level of NCEA endorsement the student received for the attainment.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="E">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Excellence</Label>
            <Label xml:lang="mi">Kairangi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Merit</Label>
            <Label xml:lang="mi">Kaiaka</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAssessmentResultType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting final result and score values that are pre-defined for certain assessments, e.g. NCEA.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="E">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Excellence</Label>
            <Label xml:lang="mi">Kairangi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Merit</Label>
            <Label xml:lang="mi">Kaiaka</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="A">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Achieved</Label>
            <Label xml:lang="mi">I tutuki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Fail</Label>
            <Label xml:lang="mi">Kāre i eke</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Not Achieved</Label>
            <Label xml:lang="mi">Kāore i tutuki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="P">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pass</Label>
            <Label xml:lang="mi">Paetae</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NKS-EM">
        <xs:annotation>
          <xs:documentation>Number Knowledge Stage 1 - Emergent</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Emergent</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NKS-CA">
        <xs:annotation>
          <xs:documentation>Number Knowledge Stages 2-3 - Counting All</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Counting All</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NKS-AC">
        <xs:annotation>
          <xs:documentation>Number Knowledge Stage 4 - Advanced Counting</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Advanced Counting</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NKS-EA">
        <xs:annotation>
          <xs:documentation>Number Knowledge Stage 5 - Early Additive</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Early Additive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NKS-AA">
        <xs:annotation>
          <xs:documentation>Number Knowledge Stage 6 - Advanced Additive</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Advanced Additive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NKS-AM">
        <xs:annotation>
          <xs:documentation>Number Knowledge Stage 7 - Advanced Multiplicative</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Advanced Multiplicative</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NKS-AP">
        <xs:annotation>
          <xs:documentation>Number Knowledge Stage 8 - Advanced Proportional</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Advanced Proportional</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsSchoolEnrolmentTypeType">
    <xs:annotation>
      <xs:documentation><p>A type of student enrolment with a school. Allows
		differentiation of concurrent enrolments, eg base vs
		other.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="BASE">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The school that the student is considered to be primarily
						enrolled with, especially for the purposes of reporting and
						Ministry funding. Typically the student will spend most of
						their school time at this school.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Base Enrolment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HOST">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Indicates an enrolment that is concurrent with the student's base enrolment 
				at another school.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Hosted Enrolment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="REMO">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Indicates an enrolment with a school (typically Te Kura - The Correspondence School) which 
				provides remote/distance learning; this means that the student remains at their base school
				(or at home) for all classes covered by this enrolment.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Remote/Distance Learning</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsProviderEnrolmentStatusType">
    <xs:annotation>
      <xs:documentation><p>Records the status of a potentially multi-year Provider enrolment, which goes through
				a different life-cycle to the single-year school enrolment.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="APP">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">Student has applied to become a Student at the Provider, this pre-enrolment has been received, 
						and is being processed by the provider. It has not yet been accepted or declined by the provider.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Application</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ACC">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The Provider has processed the application, validated it against school zoning rules, and other 
						acceptance criteria. The provider has accepted the enrolment and will have a place for the
						Student if they choose to take it up. Student has accepted the enrolment and is expecting to
						take up the enrolment at the agreed future date.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Accepted</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CAN">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The enrolment application has been declined by the Provider, or discontinued by the Student,
					 prior to becoming an ACTIVE enrolment.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Cancelled</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ACT">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The student has taken up the enrolment, and has attended classes for the first time.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Active</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WIT">
        <xs:annotation>
          <xs:documentation>The Student has left the Provider, after the enrolment was made ACTIVE</xs:documentation>
          <xs:appinfo>
            <Label>Withdrawn</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PEN">
        <xs:annotation>
          <xs:documentation>
            <p xmlns="http://sifassociation.org/SpecGen">The enrolment has been accepted by the Provider, taken up by the Student, and the student
					 	has attended their first day; but the enrolment is unable to be set to ACTIVE, because 
					 	there is still an ACTIVE enrolment for the student at a (previous) provider. Once the 
						blocking Provider has put their enrolment to WITHDRAWN, this enrolment can be moved to 'ACTIVE'.</p>
          </xs:documentation>
          <xs:appinfo>
            <Label>Pending</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsStudentTeachingGroupEnrolmentStatusType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the status of the student's teaching group enrolment.</p><p>Set to Active when: StartDate =&gt; today's date and EndDate is NULL 
				or EndDate &gt; than today's date.</p><p>Set to Inactive when: StartDate &lt; today's date or EndDate =&lt; today's date.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Active</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Inactive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsEnrolmentExitTypeType">
    <xs:annotation>
      <xs:documentation><p>Enrolment Exit code, derived from code set used in School Roll Returns.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="S">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Transferred to Another School in NZ</Label>
            <Label xml:lang="mi">Whakawhiti ki kura kē o Aotearoa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="H">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Transferring to Home Schooling</Label>
            <Label xml:lang="mi">Whakawhiti ki te kura-kāinga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="O">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Gone Overseas</Label>
            <Label xml:lang="mi">Haere ki tāwāhi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="D">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Deceased</Label>
            <Label xml:lang="mi">Kua mate</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="X">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Expulsion (for Students Aged 16 and Over Only)</Label>
            <Label xml:lang="mi">I panaia (mō te hunga ākonga 16 te pakeke neke atu anake)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="L">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">End of Schooling (for Students Aged 16 and Over Only)</Label>
            <Label xml:lang="mi">Kua mutu te kura (mō te hunga ākonga 16 te pakeke neke atu anake)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="E">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Granted Early Exemption (Applies to Those Younger Than 16yrs Old)</Label>
            <Label xml:lang="mi">Whakaaetia kia wāteatia mai (e pā ana ki ērā ākonga tau heke 16 te pakeke)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="K">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Exclusion (for Students Aged Younger Than 16)</Label>
            <Label xml:lang="mi">Whakarerenga (mō te hunga ākonga tau heke 16 te pakeke)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="C">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Continuous Absence</Label>
            <Label xml:lang="mi">Ka ngaro i ia te wā</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="J">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Eligibility Expired</Label>
            <Label xml:lang="mi">Kua kati te māraurau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="P">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Caregiver Decision</Label>
            <Label xml:lang="mi">Whakarite a te Kaitiaki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsEligibilityCriteriaType">
    <xs:annotation>
      <xs:documentation><p>The criteria used to determine the eligibility status of a student for enrolment and MoE funding purposes.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="NZC">
        <xs:annotation>
          <xs:appinfo>
            <Label>NZ Citizen (incl. TKL, COK, NIU)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AUC">
        <xs:annotation>
          <xs:documentation>Includes Australian permanent residents.</xs:documentation>
          <xs:appinfo>
            <Label>AU Citizen</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZR">
        <xs:annotation>
          <xs:appinfo>
            <Label>NZ Resident</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IFP">
        <xs:annotation>
          <xs:appinfo>
            <Label>International Fee Paying</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GAE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Govt. Approved Exchange Scheme</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DTB">
        <xs:annotation>
          <xs:appinfo>
            <Label>Domestic Time-bound</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MOE">
        <xs:annotation>
          <xs:appinfo>
            <Label>MoE Approved</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DAY">
        <xs:annotation>
          <xs:appinfo>
            <Label>28 Day Waiver</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EXT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Extended 28 Day Waiver</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsStudentFundingTypeType">
    <xs:annotation>
      <xs:documentation><p>Student classification for MoE funding purposes.</p><p>Codes in this list are hierarchical. Students can only
			be allocated one TYPE code (even though they may belong to
			more than one of the groups listed below). To allocate a
			code to an individual student, start at the top of the
			list and work down. Use the first code that applies to
			the student.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="FF">
        <xs:annotation>
          <xs:documentation>
					An International student who meets full tuition costs on
					their own or from funds provided to them by sponsors other
					than NZAID.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">International Fee-Paying Student</Label>
            <Label xml:lang="mi">Ākonga ā-Ao Utu Urutomo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AE">
        <xs:annotation>
          <xs:documentation>
					A student who is enrolled in an Alternative Education
					programme, for Funding Year Level they should be reported
					only between Year 9 and Year 13 (inclusive).
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Student in Alternative Education</Label>
            <Label xml:lang="mi">Ākonga Mātauranga Kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EX">
        <xs:annotation>
          <xs:documentation>
					A student (and dependants) studying in New Zealand under an
					exchange programme approved by the New Zealand Government.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">International Exchange Student</Label>
            <Label xml:lang="mi">Ākonga Whakawhiti ā-Ao</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NF">
        <xs:annotation>
          <xs:documentation>
					Code to be used for students attending on Roll Count Day,
					but not paying fee and not funded; e.g. students with
					Eligibility Criteria “28 Day Waiver” and “Extended 28 Day
					Waiver”.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Not Funded</Label>
            <Label xml:lang="mi">Kāore he pūtea āwhina</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RA">
        <xs:annotation>
          <xs:documentation>
					A student who has continued at school and is at least 19 on
					1 January of the Roll count year.  EXAMPLE: Roll count year = 2017 if student is 19 years old on 1 January 2017 their
					student type = RA as there has not been a break in the
					students learning cycle.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Adult Student</Label>
            <Label xml:lang="mi">Ākonga Pakeke</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AD">
        <xs:annotation>
          <xs:documentation>
					A student who has returned to school following a break of at
					least 1 year and is at least 19 years old on 1 January of
					the Roll count year. EXAMPLE: Roll count year = 2017 if
					student is 19 years old on 1 Jan 2017 their student type =
					AD if there has been a break in their learning cycle.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Returning Adult Student</Label>
            <Label xml:lang="mi">Ākonga Pakeke Hokingarua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RE">
        <xs:annotation>
          <xs:documentation>
					A New Zealand student or a student treated for funding and
					staffing purposes as a New Zealand student who is also not
					yet 19 years at 1 Jan of the roll count year. This includes
					students in general classrooms and those in special needs
					units.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Regular Student</Label>
            <Label xml:lang="mi">Ākonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TPREOM">
        <xs:annotation>
          <xs:documentation>
					A regular student (i.e. a student aged under 19 years at 1
					January of the roll count year) who meets the eligibility
					criteria, but whose enrolment would cause the roll of the
					TPU to exceed the set maximum.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Teen Parent Regular Student Over Maximum Roll</Label>
            <Label xml:lang="mi">Ranga Mātātahi, Ākonga kua aua atu i te taumata rārangi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TPRAOM">
        <xs:annotation>
          <xs:documentation>
					An adult student who is enrolled in a Teen Parent Unit (TPU)
					where the enrolment at the TPU has continued beyond the end
					of the year in which the student reached 19 years old. The
					enrolment of this student causes the roll of the TPU to
					exceed the set maximum.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Teen Parent Adult Student Over Maximum Roll</Label>
            <Label xml:lang="mi">Ranga Mātātahi, Ākonga Pakeke kua aua atu i te taumata rārangi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TPAD">
        <xs:annotation>
          <xs:documentation>
					A student enrolling at the TPU as an adult student (i.e. was
					at least 19 on 1st January of the year when they first
					enrolled at the TPU), and who fits within the TPU’s maximum
					roll.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Teen Parent Other Adult Student</Label>
            <Label xml:lang="mi">Ranga Mātātahi, Ākonga Pakeke kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TPRE">
        <xs:annotation>
          <xs:documentation>
					A student who is enrolled in a Teen Parent Unit (TPU) and is
					at least 19 years old on 1 January of the current
					year. These students may continue to be enrolled in the TPU
					after the end of the year in which they turn 19, their
					Student Type however will then be changed to TPRAE – Teen
					Parent Enrolled Continuing Adult Student.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Teen Parent Eligible and Enrolled Regular Student</Label>
            <Label xml:lang="mi">Ranga Mātātahi me ngā Ākonga kua uru</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TPRAE">
        <xs:annotation>
          <xs:documentation>
					A student who is enrolled in a Teen Parent Unit (TPU) where
					the enrolment at the TPU has continued beyond the end of the
					year in which the student reached 19 years old.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Teen Parent Enrolled Continuing Adult Student</Label>
            <Label xml:lang="mi">Ranga Mātātahi kua uru hei Ākonga Pakeke e haere tonu ana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EM">
        <xs:annotation>
          <xs:documentation>
					A student who attends this school for some courses but is
					enrolled at another school where a majority of instruction
					occurs.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">External Student</Label>
            <Label xml:lang="mi">Ākonga ā-waho</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SA">
        <xs:annotation>
          <xs:documentation>Student who is in a Satellite class of a Special School.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Student in a Satellite Class of a Special School</Label>
            <Label xml:lang="mi">Ākonga o te akomanga kē o te Kura Motuhake</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NA">
        <xs:annotation>
          <xs:documentation>
					A student who is not attending the school on the day of the
					roll count and there is no documentation to support their
					absence from the school.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Not Attending</Label>
            <Label xml:lang="mi">Kāore i tae</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SF">
        <xs:annotation>
          <xs:documentation>
					Student is enrolled in a separately funded unit.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Student in a Separately Funded Unit</Label>
            <Label xml:lang="mi">Ākonga kei ranga whai pūtea motuhake</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsOngoingResourceSchemeType">
    <xs:annotation>
      <xs:documentation><p>Codes denoting the level of ORS funding a student may receive.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="H">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">High ORS</Label>
            <Label xml:lang="mi">Teitei te ORS</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="V">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Very High ORS</Label>
            <Label xml:lang="mi">Tino Teitei te ORS</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="E">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Extension (Moderate to High)</Label>
            <Label xml:lang="mi">Whakaroanga (Rewatanga ki Teitei)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsExchangeSchemeType">
    <xs:annotation>
      <xs:documentation><p>The type of exchange scheme for student enrolment where
			the Eligibility Criteria is "Student on Government
			approved exchange scheme" (5).</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="AFS">
        <xs:annotation>
          <xs:appinfo>
            <Label>AFS Intercultural Programmes NZ Inc.</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GSE">
        <xs:annotation>
          <xs:appinfo>
            <Label>NZ / German Student Exchange</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IIU">
        <xs:annotation>
          <xs:appinfo>
            <Label>NZ Institute of International Understanding</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RIN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Rotary International NZ</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STS">
        <xs:annotation>
          <xs:appinfo>
            <Label>STS High School Foundation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="YFU">
        <xs:annotation>
          <xs:appinfo>
            <Label>YFU New Zealand Inc.</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WYS">
        <xs:annotation>
          <xs:appinfo>
            <Label>World Youth Service Society (WYSS)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Student Exchange Australia New Zealand Ltd.</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TAE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Tahiti Exchange</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NGE">
        <xs:annotation>
          <xs:appinfo>
            <Label>NZ - Germany Exchange - Düsseldorf</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="YED">
        <xs:annotation>
          <xs:appinfo>
            <Label>Your Education</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NSE">
        <xs:annotation>
          <xs:appinfo>
            <Label>NZ Switzerland Exchange</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EXA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Exchange Agreement</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsPostSchoolActivityType">
    <xs:annotation>
      <xs:documentation><p>The post school activity the student is moving on to once they have exited the school.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="10">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Further education or training</Label>
            <Label xml:lang="mi">Me whai mātauranga/whakangungu kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="11">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Employment and further education/training</Label>
            <Label xml:lang="mi">Me whai mahi, mātauranga/whakangungu kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Employment</Label>
            <Label xml:lang="mi">Me whai mahi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="13">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other</Label>
            <Label xml:lang="mi">He mea kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="88">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Unknown</Label>
            <Label xml:lang="mi">Kāre e mōhiotia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsCoEnrolmentTypeType">
    <xs:annotation>
      <xs:documentation><p /></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsPreEnrolmentExitTypeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting how the student's pre-enrolment was cancelled.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Automated</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M">
        <xs:annotation>
          <xs:appinfo>
            <Label>Manual</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsPreEnrolmentCancellationReasonType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting why the student's pre-enrolment was cancelled.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="SIE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Student Incorrectly Enrolled</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SDE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Student Declined Enrolment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DEC">
        <xs:annotation>
          <xs:appinfo>
            <Label>Deceased</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other - Please Specify</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsEarlyChildhoodEducationTypeType">
    <xs:annotation>
      <xs:documentation><p>The type of early childhood education the student received.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="EKR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attended Kohanga Reo</Label>
            <Label xml:lang="mi">I haere ki Te Kōhanga Reo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EPC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attended Playcentre</Label>
            <Label xml:lang="mi">I tae ki te Playcentre</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EKE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attended Kindergarden or Education and Care</Label>
            <Label xml:lang="mi">I tae ki te Kura Kōhungahunga, ki Education and Care rānei</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EHB">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attended Home Based Service</Label>
            <Label xml:lang="mi">I tae ki tētahi Ratonga ā-Kāinga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EPG">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attended Playgroup or Pacific Islands EC Group</Label>
            <Label xml:lang="mi">I tae ki ngā kāhui kōhungahunga Pasifika, Playgroup rānei</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ECO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attended The Correspondence School - Te Aho o Te Kura Pounamu</Label>
            <Label xml:lang="mi">I tae ki Te Aho o te Kura Pounamu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EOS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attended, but only outside New Zealand</Label>
            <Label xml:lang="mi">I tae ake, engari i waho kē atu o Aotearoa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ETU">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attended, but don't know what type of service</Label>
            <Label xml:lang="mi">I tae ake engari kāre i mōhiotia te momo ratonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ENA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Did not attend</Label>
            <Label xml:lang="mi">Kāre i tae ake</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EUN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Unable to establish if attended or not</Label>
            <Label xml:lang="mi">Kāre e mōhio mēnā i tae atu kāore rānei</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLanguageInstructionLevelType">
    <xs:annotation>
      <xs:documentation><p>The level of instruction that is made in the selected language.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation xml:lang="en">
					Student is taught in the specified language for more than 20  and up to 25 hrs per week (81-100% of total time).
				</xs:documentation>
          <xs:documentation xml:lang="mi">
					Ākonga i ākona ki tētahi reo mō te 20 tae atu ki te 25 hāora i te wiki (81-100% o te wā katoa).
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">81-100%</Label>
            <Label xml:lang="mi">81-100%</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation xml:lang="en">
					Student is taught in the specified language for more than 12.5  and up to 20 hrs per week (51-80% of total time).
				</xs:documentation>
          <xs:documentation xml:lang="mi">
					Ākonga i ākona ki tētahi reo mō te 12.5 tae atu ki te 20 hāora i te wiki (51-80% o te wā katoa).
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">51-80%</Label>
            <Label xml:lang="mi">51-80%</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation xml:lang="en">
					Student is taught in the specified language for more than 7.5  and up to 12.5 hrs per week (31-50% of total time).
				</xs:documentation>
          <xs:documentation xml:lang="mi">
					Ākonga i ākona ki tētahi reo mō te 7.5  tae atu ki te 12.5 hāora i te wiki (31-50% o te wā katoa).
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">31-50%</Label>
            <Label xml:lang="mi">31-50%</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4a">
        <xs:annotation>
          <xs:documentation xml:lang="en">
					Student is taught in the specified language for more than 3 and up to 7.5 hrs per week (12-30% of total time).
				</xs:documentation>
          <xs:documentation xml:lang="mi">
					Ākonga i ākona ki tētahi reo mō te 3 tae atu ki te 7.5 hāora i te wiki (12-30% o te wā katoa) 
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">12-30%</Label>
            <Label xml:lang="mi">12-30%</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4b">
        <xs:annotation>
          <xs:documentation xml:lang="en">
					Student is taught in the specified language for 3 hrs per week.
				</xs:documentation>
          <xs:documentation xml:lang="mi">
					Ākonga i ākona ki tētahi reo mō te 3 hāora i te wiki
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">3 hours per week</Label>
            <Label xml:lang="mi">3 hāora i te wiki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation xml:lang="en">
					Student is taught in the specified language for less than 3 hours per week or as a separate subject (0-11% of total time).
				</xs:documentation>
          <xs:documentation xml:lang="mi">
					Ākonga i ākona ki tētahi reo mō te iti iho 3 hāora i te wiki, hei akoranga kē (0-11% o te wā katoa).
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">&lt; 3 hours per week</Label>
            <Label xml:lang="mi">iti iho 3 hāora i te wiki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="6">
        <xs:annotation>
          <xs:documentation xml:lang="en">Student is learning Taha Māori.</xs:documentation>
          <xs:documentation xml:lang="mi">E ako ana te Akonga i te Taha Māori.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Taha Māori</Label>
            <Label xml:lang="mi">Taha Māori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsECEYearLevelType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the year level of students attending early childhood education.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="ABF">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">5 years and above</Label>
            <Label xml:lang="mi">5 te pakeke neke atu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FIV">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">5 year old</Label>
            <Label xml:lang="mi">5 te pakeke</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FOU">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">4 year old</Label>
            <Label xml:lang="mi">4 te pakeke</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ONE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">1 year old</Label>
            <Label xml:lang="mi">1 te pakeke</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="THR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">3 year old</Label>
            <Label xml:lang="mi">3 te pakeke</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TWO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">2 year old</Label>
            <Label xml:lang="mi">2 te pakeke</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UNK">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Unknown</Label>
            <Label xml:lang="mi">Kāre i mōhiotia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZER">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Younger than 1 year old</Label>
            <Label xml:lang="mi">Tau heke 1 te pakeke</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAttendanceTypeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the type of attendance being recorded for the student.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="ADH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Ad Hoc</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SCH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Scheduled</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAttendanceCodeType">
    <xs:annotation>
      <xs:documentation><p>Code denoting presence, absence or the reason for non-attendance at school, or class.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="A">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attending Alternative Education</Label>
            <Label xml:lang="mi">Te haere ki te Mātauranga Kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="L">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Late to class</Label>
            <Label xml:lang="mi">Tae tōmuri ki te akomanga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="P">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Present</Label>
            <Label xml:lang="mi">I tae</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="S">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sickbay</Label>
            <Label xml:lang="mi">Taiwhanga tūroro</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="D">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Medical appointment – doctor or dentist</Label>
            <Label xml:lang="mi">Te tiro tākuta, tākuta niho</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="I">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Internal school appointment or activity – Dean, DP, sports administrator, coach, attendance officer etc.</Label>
            <Label xml:lang="mi">Te hui ki te Kura – Tumuaki Tuarua, Kaiako Hākinakina, Āpiha Kura etc.</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="E">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Absent with an explained but unjustified reason</Label>
            <Label xml:lang="mi">I ngaro engari he kōrero i puta, kāre he take whakamana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Absent due to short-term illness/medical reasons</Label>
            <Label xml:lang="mi">He ngaronga nā runga i te māuiui</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="J">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Justified absence – reason for absence within the school policy</Label>
            <Label xml:lang="mi">He ngaronga whakamana – ka taka mai i raro i te ritenga ā-kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="T">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">No information provided – truant (or throw-away explanation)</Label>
            <Label xml:lang="mi">Kāre he kōrero – he whakatau (whakamārama rānei)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="V">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Examination or unsupervised study. Student is on the school-site</Label>
            <Label xml:lang="mi">Whakamātautau, te ako noa rānei – ki te kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">On a school based activity</Label>
            <Label xml:lang="mi">He mahi ā-kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Q">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attending an off-site school-organised activity such as a trip/camp</Label>
            <Label xml:lang="mi">He haerenga nā te kura i whakarite pērā i te haerenga, i te noho puni</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="W">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Work experience</Label>
            <Label xml:lang="mi">Mahi wheako</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="R">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Removed (temporarily) from regular class (internal school student isolation)</Label>
            <Label xml:lang="mi">I tangohia (taupua nei) mai i te akomanga (he mahi ā-kura ki te whakawehe i te ākonga)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="X">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Exam leave – unsupervised study – student is off-site</Label>
            <Label xml:lang="mi">Haerenga whakamātautau – kei waho atu i te kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="G">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Holiday during term time</Label>
            <Label xml:lang="mi">Te hararei i te wā o te kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="O">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Justified Overseas</Label>
            <Label xml:lang="mi">Whakamanatia i tāwāhi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="K">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attending a Teen Parent Unit</Label>
            <Label xml:lang="mi">Te haere ki tētahi Rāngai Mātātahi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="?">
        <xs:annotation>
          <xs:documentation>Unknown reason for absence</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Unknown reason</Label>
            <Label xml:lang="mi">Kāre he kōrero</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Y">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attending an Activity Centre</Label>
            <Label xml:lang="mi">Te haere ki te Pokapū Tūmahi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="F">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attending an off-site course/class</Label>
            <Label xml:lang="mi">He akomanga/whakangungu kei wāhi kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="H">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attending a Health Camp/Regional Health School/Residential School</Label>
            <Label xml:lang="mi">Te Haere ki te Puni Hauora/Kura Hauora ā-Rohe/Kura Tūtahi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="C">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Involved in Justice Court proceedings</Label>
            <Label xml:lang="mi">Kua uru ki ngā tono ā-Kōti</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="U">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Stood down or suspended</Label>
            <Label xml:lang="mi">Tāiritia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Z">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Secondary Tertiary Program (including Trades Academies)</Label>
            <Label xml:lang="mi">Hōtaka Kura Tuarua, Kura Wānanga (me ngā Kura Ahumahi)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAttendanceCodeGroupType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the possible attendance code groups, e.g. Present, Justified and Unjustified.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="J">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Justified</Label>
            <Label xml:lang="mi">Parahau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="P">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Present</Label>
            <Label xml:lang="mi">I tae</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="U">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Unjustified</Label>
            <Label xml:lang="mi">Parahau Kore</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingStatusType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the status of the Wellbeing Response.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="U">
        <xs:annotation>
          <xs:appinfo>
            <Label>Unresolved</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="R">
        <xs:annotation>
          <xs:appinfo>
            <Label>Resolved</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="O">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingAlertCategoryType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the category of the Wellbeing Alert.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="ATT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Attendance</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MED">
        <xs:annotation>
          <xs:documentation>Includes Allergies</xs:documentation>
          <xs:appinfo>
            <Label>Medical</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LEG">
        <xs:annotation>
          <xs:documentation>Comes with sub-Categories: ProtectionOrder,  CustodialOrder, etc.</xs:documentation>
          <xs:appinfo>
            <Label>Legal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DIS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Discipline</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LEA">
        <xs:annotation>
          <xs:documentation>Sub-categories Gifted and Talented, Disability, etc.</xs:documentation>
          <xs:appinfo>
            <Label>Learning Support</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PLA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Plan Review</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CUS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Custodial</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TRA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Transient</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsKeyContactRoleType">
    <xs:annotation>
      <xs:documentation><p>The role of the key contact in the Wellbeing Alert.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="DOC">
        <xs:annotation>
          <xs:appinfo>
            <Label>Doctor</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PAR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Parent/Caregiver</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRI">
        <xs:annotation>
          <xs:appinfo>
            <Label>Principal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingCharacteristicSubSubCategoryType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting codes that provide an additional layer of detail around a wellbeing characteristic sub category. For examples
			 for the learner’s support need sub category, e.g. if the support need of ‘Vision’ is selected for the user, the sub needs
			 ‘Low Vision’ and ‘Blind’ are available to further define the type of vision issue the learner has. Not all 
			 support needs have sub needs.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="LSN-ATT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attending and focusing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-BLI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Blind</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-COM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Comprehension</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-DEA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Deaf</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-EAT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Eating</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-EXP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Expressing emotion</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-FIN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Fine</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-FOL">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Following instructions</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-GRO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Gross</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-HAR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hard of Hearing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-HYA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hyperactive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-HYO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hypoactive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-INV">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Inventing and experimenting</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-LEM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Low energy and motivation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-LOW">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Low mood/Signs of depression</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-LVI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Low vision</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-MAE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Managing anxiety (externalised response)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-MAK">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Making choices and decisions</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-MAN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Managing emotions/self control</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-MAX">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Managing anxiety (internalised response)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-MEM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Memory</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-MPR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Managing peer relationships</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-NUM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Number sense</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-ONN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other numeracy needs</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-OPP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Oppositional</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-ORN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other reading needs</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-OWN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other writing needs</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-PER">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Perservering</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-PHO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Phonological awareness</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-PHY">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Physical aggression</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-PLA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Planning</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-PLY">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Playing and imagining</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-PRO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Processing information</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-PSP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Personal space</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-REC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Recognising emotion</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-RES">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Resilience</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-RPS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Reasoning and problem-solving</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-RUN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Running away</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-SEL">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Self perception as a learner</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-SEQ">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sequencing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-SHA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Self-harm</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-SHO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Showing empathy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-SIW">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Socially isolated/withdrawn</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-TRA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Transcription</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-VER">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Verbal aggression</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingCharacteristicSubCategoryType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the third level category of the Wellbeing Characteristic.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="DIET-01">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Vegan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DIET-02">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Vegetarian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DIET-03">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Halal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DIET-04">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kosher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DIET-05">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pescetarian</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DIET-06">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Gluten-free</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-ACT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Activity</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-ADV">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Advanced learner | gifted</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-ATT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attendance and engagement</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-CHR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Chronic Pain</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-CUL">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cultural and linguistic diversity needs</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-EMO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Emotional regulation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-ENG">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">English language learner/emerging bilingual</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-EXT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Externalised behavioural responses</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-FLU">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Fluency</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-GLC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">General Learning Challenges</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-HEA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hearing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-HYP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hyperfocus</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-INT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Internalised behavioural responses</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-MED">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Medical</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-MOB">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mobility - accessibility</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-MOT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Motor skills</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-NUM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Numeracy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-NZS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">NZ Sign Language</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-REA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Reading</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-SEL">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Self-care (e.g. toileting)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-SEN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sensory needs</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-SLA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Social use of language</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-SOC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Social awareness</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-SPE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Speech</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-SUB">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Substance abuse</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-UND">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Understanding language</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-USI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Using language</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-VIS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Vision</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-WRI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Writing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-1">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Adjustment Disorder</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-2">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Anorexia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-3">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Anxiety Disorder</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-4">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attachment Disorder</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-5">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attention Deficit Hyperactivity Disorder (ADHD)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-6">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bipolar Affective Disorder</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-7">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bulimia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-8">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Depression</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-9">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mixed Depression and Anxiety</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-10">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Obsessive Compulsive  Disorder</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-11">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Oppositional Defiance Disorder</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-12">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Paranoia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-13">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Post-Traumatic Stress Disorder</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-14">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Reactive Attachment Disorder</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-15">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Social Anxiety Disorder</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-16">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tic Disorder</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-17">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tourette’s Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH-18">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Conduct Disorder</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MS-1">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Absence seizures epilepsy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MS-2">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tonic Clonic epilepsy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MS-3">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Myotonic epilepsy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MS-4">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Refractory epilepsy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAA-1">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Antibiotics -specify type(s)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAA-2">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Dairy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAA-3">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Egg</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAA-4">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Fruit (specify)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAA-5">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Insect bites - nfd</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAA-6">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bees</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAA-7">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ants</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAA-8">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ticks</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAA-9">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Latex</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAA-10">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Peanuts</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAA-11">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Shellfish</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAA-12">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tree nuts</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAA-13">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Wheat</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAA-14">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAIM-1">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Coeliac Disease - Gluten</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAIM-2">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Enterocolitis Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAIM-3">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Food Protein Induced Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MB-1">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Anaemia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MB-2">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Haemophilia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MB-3">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Thalassemia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MB-4">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Vasculitis</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MB-5">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Von Willebrand's Disease</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMS-1">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Ehlers Danlos</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMS-2">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Fibromyalgia  - discuss</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMS-3">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hip Dysplasia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMS-4">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Joint Hypermobility</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMS-5">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Juvenile Arthritis</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMS-6">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Kohlers Disease</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMS-7">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Marfan Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMS-8">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Meyers Dysplasia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMS-9">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Neurofibromatosis type 1</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMS-10">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Osgood Schlatter Condition</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMS-11">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Osteo Imperfecta</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMS-12">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Scoliosis</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMS-13">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Severs Disease</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMS-14">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Talipes</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMS-15">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Von Eulenburg Disease</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-1">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Angelman Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-2">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Charcot Marie Tooth</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-3">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Coffin Lowry Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-4">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Coffin-Siris Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-5">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Down Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-6">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Foetal Alcohol Syndrome (FAS)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-7">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Fragile X Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-8">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">G6 PD Deficiency</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-9">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Hyperglycemia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-10">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Klinefelter Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-11">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Malignant Hyperthermia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-12">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">MCADD - Metabolic disorder</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-13">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Non Ketotic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-14">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Oculocutaneous Albinism</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-15">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Phelan-McDermid Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-16">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Phenylketonuria</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-17">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Pierr Robyn Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-18">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Potocki - Lupski Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-19">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Prader Willi Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-20">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Rubinstein-Taybi Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-21">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">ScN2A (Sodium Channel) Gene Mutation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-22">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Trisomy - chromosome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-23">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Trisomy 21/Down Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-24">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Turners Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-25">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Velocardiofacial Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM-26">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Wolf-Hirschhorn Syndrome</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingCharacteristicCategoryType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the second level category of the Wellbeing Characteristic.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="MAO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Allergies - other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DIET">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Dietary Preferences</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-COG">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cognition and Learning</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-PHY">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Physical</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-SEN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sensory Needs</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-SOC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Social, Emotional and Behavioural</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN-SPE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Speech, Language and Communication</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAIM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Auto-immune/Immune Disorders</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MRD">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Respiratory Disorder</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MB">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Blood disorder</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMD">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Heart Disease/ Disorder</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Musculo – skeletal conditions</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MEM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Endocrine and Metabolic Disorders</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Childhood cancer</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Allergy – Anaphylaxis</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mental and behavioural disorders</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Diseases/conditions of the nervous system</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Seizure disorders</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Congenital malformations, deformations and chromosomal abnormalities</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Infectious Diseases</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MGI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Gastro Intestinal/Urinary conditions</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MND">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Neuro/Developmental Disorders</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Oral/Phalangeal Disorders</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MD">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Deaf and Hard of Hearing</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MOP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Optical/ Vision Disorder</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M-OTHER">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Medical Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="D-OTHER">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Disability Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="S-OTHER">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Special Needs Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTHER">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MDC-AST">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Asthma</Label>
            <Label xml:lang="mi">Mate Huango</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MDC-DIA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Diabetes</Label>
            <Label xml:lang="mi">Mate Huka</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MDC-EPI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Epilepsy</Label>
            <Label xml:lang="mi">Mate Hūhuki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MDC-REG">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Regular medication</Label>
            <Label xml:lang="mi">Rongoā</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MDC-OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other</Label>
            <Label xml:lang="mi">Mate Kē Atu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingCharacteristicClassType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the first level category of the Wellbeing Characteristic. 
				(Note: The second and third levels are Category and SubCategory)</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MDC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Medical</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Learning Support Need</Label>
            <Label xml:lang="mi">Hiahia Tautoko Akoranga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ALG">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Allergy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DPR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Dietary Preference</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingCharacteristicPriorityType">
    <xs:annotation>
      <xs:documentation><p>Codes denoting the priority level of the characteristic in relation to 
			other characteristics within the same classification.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="N">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Non-urgent</Label>
            <Label xml:lang="mi">Nonoi kore</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="S">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Semi-urgent</Label>
            <Label xml:lang="mi">Āhua Nonoi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="U">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Urgent</Label>
            <Label xml:lang="mi">Nonoi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingCharacteristicStatusType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the status of the Wellbeing Characteristic.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="ACTI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Active</Label>
            <Label xml:lang="mi">Tuwhera</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CLOS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Closed</Label>
            <Label xml:lang="mi">Kati</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AWAI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Awaiting Consent</Label>
            <Label xml:lang="mi">Tāria kia mana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsOfficialDiagnosisSubTypeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting an official diagnosis sub-type a student is given for an identified wellbeing characteristic.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="DISO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Disorders of intellectual development</Label>
            <Label xml:lang="mi">He Whakaupa ā-hinengaro</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DSLD">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Developmental speech or language disorders</Label>
            <Label xml:lang="mi">He Tapepatanga Reo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ADHD">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attention Deficit Hyperactivity Disorder</Label>
            <Label xml:lang="mi" />
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ANXI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Anxiety or fear-related disorders</Label>
            <Label xml:lang="mi">Manawapā</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTHN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other neurodevelopmental disorders/developmental anomalies</Label>
            <Label xml:lang="mi" />
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DLDI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Developmental learning disorders e.g. dyslexia</Label>
            <Label xml:lang="mi" />
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AUTI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Autism Sprectrum Disorder</Label>
            <Label xml:lang="mi">Takiwātanga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SUBS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Substance abuse or addictive behaviours</Label>
            <Label xml:lang="mi">He Whanonga Waranga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BLIN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Blind or vision impaired</Label>
            <Label xml:lang="mi">Kāpō, he atarua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DEAF">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Deaf or hard of hearing</Label>
            <Label xml:lang="mi">Turi, he mate taringa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FEED">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Feeding or eating disorders</Label>
            <Label xml:lang="mi">He māuiuitanga ā-kai</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STRE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Stress related disorders </Label>
            <Label xml:lang="mi">Te Piringa Wara Whakapōauau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DNDD">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Disruptive behaviour or dissocial disorders</Label>
            <Label xml:lang="mi">He Pōrearea</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTHM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other mental health disorders</Label>
            <Label xml:lang="mi">He māuiui ā-hinengaro kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTHS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other sensory impairment</Label>
            <Label xml:lang="mi">He Mate Aurongo Kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FOET">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Foetal Alcohol Syndrome</Label>
            <Label xml:lang="mi" />
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MOOD">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mood disorder</Label>
            <Label xml:lang="mi">Māuiui Kare-ā-roto/Aurongo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SCHI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Schizophrenia or psychotic disorders </Label>
            <Label xml:lang="mi">Wairua Tuakoi / Māuiui Ahotea</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsOfficialDiagnosisTypeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting an official diagnosis type a student is given for an identified wellbeing characteristic.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="MED">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Medical</Label>
            <Label xml:lang="mi">ā-rongoā</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MEN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Mental health and behavioural</Label>
            <Label xml:lang="mi">ā-hauora Hinengaro, ā-whanonga hoki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NEU">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Neurodevelopmental</Label>
            <Label xml:lang="mi">Whanaketanga ā-Ioio</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PHY">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Physical</Label>
            <Label xml:lang="mi">ā-tinana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SEN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Sensory</Label>
            <Label xml:lang="mi">ā-tairongo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingEventCategoryType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the second level category of the Wellbeing Event.
				(Note: The first and third levels are CategoryClass and SubCategory)</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="B1">
        <xs:annotation>
          <xs:appinfo>
            <Label>Safe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B2">
        <xs:annotation>
          <xs:appinfo>
            <Label>Caring</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B3">
        <xs:annotation>
          <xs:appinfo>
            <Label>Respectful</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B4">
        <xs:annotation>
          <xs:appinfo>
            <Label>Responsible</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B5">
        <xs:annotation>
          <xs:appinfo>
            <Label>Enterprising</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B6">
        <xs:annotation>
          <xs:appinfo>
            <Label>Effort</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B7">
        <xs:annotation>
          <xs:appinfo>
            <Label>Citizenship</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B8">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cooperation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B9">
        <xs:annotation>
          <xs:appinfo>
            <Label>Leadership</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M1">
        <xs:annotation>
          <xs:appinfo>
            <Label>Aggressive physical contact against staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M2">
        <xs:annotation>
          <xs:appinfo>
            <Label>Abuse, threats, harassment or intimidation of staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M3">
        <xs:annotation>
          <xs:appinfo>
            <Label>Aggressive physical contact against a student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M4">
        <xs:annotation>
          <xs:appinfo>
            <Label>Abuse, threats, harassment or intimidation of a student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M5">
        <xs:annotation>
          <xs:appinfo>
            <Label>Damage to, or theft of property</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other violation of Code of Conduct (classroom managed)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M7">
        <xs:annotation>
          <xs:appinfo>
            <Label>Possession, use or supply of substances or objects with restricted sale</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M8">
        <xs:annotation>
          <xs:appinfo>
            <Label>Possession, use or supply of illegal substances or objects</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M9">
        <xs:annotation>
          <xs:appinfo>
            <Label>E-breaches</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other Behaviour</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingEventSubCategoryType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the third level category of the Wellbeing Event.
				(Note: The first and second levels are CategoryClass and Category)</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="B1A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Resolves issues peacefully</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B1B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Plays in a friendly way</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B1C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Uses equipment safely</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B1D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Understands the purpose and need for rules</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B1E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Seeks help from a responsible adult</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B1F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Alerts others to risks and dangers</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B1G">
        <xs:annotation>
          <xs:appinfo>
            <Label>Moves away from danger</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B1H">
        <xs:annotation>
          <xs:appinfo>
            <Label>Uses protective interruption with peers</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B1I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Observes and listens before acting</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B2A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Helps someone or something in need</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B2B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shows empathy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B2C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shows compassion</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B2D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Is forgiving</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B2E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Talks in a friendly way</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B3A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shows intercultural understanding</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B3B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Acknowledges authority</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B3C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shows courtesy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B3D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Is polite</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B3E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Accepts difference</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B3F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Acknowledges the rights of others</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B3G">
        <xs:annotation>
          <xs:appinfo>
            <Label>Uses appropriate language/tone</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B3H">
        <xs:annotation>
          <xs:appinfo>
            <Label>Gives value to others' opinions</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B3I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Maintains appropriate personal space</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B3J">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shows consideration of impact of actions on others</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B4A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Is honest</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B4B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Acts with integrity</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B4C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Self regulates</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B4D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Co-regulates</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B4E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Helps others to regulate</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B4F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Is trustworthy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B4G">
        <xs:annotation>
          <xs:appinfo>
            <Label>Copes with frustration</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B4H">
        <xs:annotation>
          <xs:appinfo>
            <Label>Accepts accountability</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B4I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Owns consequences of actions</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B4J">
        <xs:annotation>
          <xs:appinfo>
            <Label>Is organised</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B5A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Thinks critically</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B5B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Is creative</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B5C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Is timely</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B5D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Takes considered risks</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B5E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Takes a problem solving approach</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B5F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Is adaptable</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B5G">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shows independence</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B5H">
        <xs:annotation>
          <xs:appinfo>
            <Label>Takes initiative</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B5I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shows persistence</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B5J">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shows courage</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B5K">
        <xs:annotation>
          <xs:appinfo>
            <Label>Negotiates</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B5L">
        <xs:annotation>
          <xs:appinfo>
            <Label>Is persuasive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B5M">
        <xs:annotation>
          <xs:appinfo>
            <Label>Builds social support (networks)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B5N">
        <xs:annotation>
          <xs:appinfo>
            <Label>Innovates</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B5O">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shows determination</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B6A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Pays attention</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B6B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Tries hard</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B6C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Completes work</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B6D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Perseveres</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B6E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Asks questions</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B6F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shows desire to learn</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B6G">
        <xs:annotation>
          <xs:appinfo>
            <Label>Stays on task</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B6H">
        <xs:annotation>
          <xs:appinfo>
            <Label>Participates constructively</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B6I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shows commitment to identified goals</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B7A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Promotes justice</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B7B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Follows rules and laws</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B7C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Stands up for others appropriately</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B7D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Puts others' needs before own</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B7E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Contributes to the school/class</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B7F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Contributes to the community</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B7G">
        <xs:annotation>
          <xs:appinfo>
            <Label>Is involved</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B7H">
        <xs:annotation>
          <xs:appinfo>
            <Label>Belongs</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B7I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Promotes harmony</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B7J">
        <xs:annotation>
          <xs:appinfo>
            <Label>Gives back to the greater good</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B7K">
        <xs:annotation>
          <xs:appinfo>
            <Label>Becomes informed</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B7L">
        <xs:annotation>
          <xs:appinfo>
            <Label>Uses procedures and protocols</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B7M">
        <xs:annotation>
          <xs:appinfo>
            <Label>Participates in democratic decision making</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B7N">
        <xs:annotation>
          <xs:appinfo>
            <Label>Helps others to reach their goals</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B8A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Is fair</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B8B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shows mutuality (sharing a feeling, action or relationship)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B8C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shows reciprocity ("I scratch your back, you scratch mine")</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B8D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shows goodwill</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B8E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Is attentive to others' reactions</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B8F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Is open to dialogue/discussion</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B8G">
        <xs:annotation>
          <xs:appinfo>
            <Label>Works to be a valued member of a team</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B8H">
        <xs:annotation>
          <xs:appinfo>
            <Label>Offers others choices</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B9A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Inspires others</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B9B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Represents others</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B9C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Delegates to others</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B9D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shows self confidence</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B9E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shows assertiveness</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B9F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Stays positive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B9G">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shoulders blame</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B9H">
        <xs:annotation>
          <xs:appinfo>
            <Label>Sets an example</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B9I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Communicates effectively</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B9J">
        <xs:annotation>
          <xs:appinfo>
            <Label>Shows wisdom</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M1A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Striking - Staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M1B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Pushing or barging - Staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M1C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Use of a weapon or object - Staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M1D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Projectile - Staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M1E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Struggling to be free of a physical restraint - Staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M1F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Unintentional but negligent contact - Staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M2A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Verbal abuse - Staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M2B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Non-Verbal abuse - Staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M2C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Verbal threat - Staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M2D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Threatening gesture - Staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M2E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Disrespectful or challenging language - Staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M2F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Malicious gossip - Staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M2G">
        <xs:annotation>
          <xs:appinfo>
            <Label>Sexual harassment - Staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M3A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Striking - Student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M3B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Pushing or barging - Student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M3C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Use of a weapon or object - Student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M3D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Projectile - Student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M3E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Struggling to be free of violation of personal space or deprivation of liberty - Student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M3F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Unintentional but negligent contact - Student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M4A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Verbal abuse - Student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M4B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Non-Verbal abuse - Student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M4C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Verbal threat - Student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M4D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Threatening gesture - Student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M4E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Malicious gossip - Student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M4F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Exclusion of peer - Student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M4G">
        <xs:annotation>
          <xs:appinfo>
            <Label>Teasing - Student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M4H">
        <xs:annotation>
          <xs:appinfo>
            <Label>Unhelpful bystander actions - Student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M4I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Sexual harassment - Student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M5A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Theft of personal property</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M5B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Theft of school property</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M5C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Deliberate damage to personal property</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M5D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Incidental damage through negligence</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M5E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Graffiti</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M5F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Buildings and glass</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M5G">
        <xs:annotation>
          <xs:appinfo>
            <Label>Fittings and fixtures</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M5H">
        <xs:annotation>
          <xs:appinfo>
            <Label>Furniture</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M5I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Equipment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M5J">
        <xs:annotation>
          <xs:appinfo>
            <Label>Vehicles</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M5K">
        <xs:annotation>
          <xs:appinfo>
            <Label>Garden and plants</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Active refusal to follow reasonable instructions</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Passive non-compliance</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Disruptive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Defiant</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Unclear boundaries</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Erratic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6G">
        <xs:annotation>
          <xs:appinfo>
            <Label>Impulsive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6H">
        <xs:annotation>
          <xs:appinfo>
            <Label>Uninterested</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Inattentive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6J">
        <xs:annotation>
          <xs:appinfo>
            <Label>Unresponsive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6K">
        <xs:annotation>
          <xs:appinfo>
            <Label>Unprepared</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6L">
        <xs:annotation>
          <xs:appinfo>
            <Label>Out of bounds</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6N">
        <xs:annotation>
          <xs:appinfo>
            <Label>Dress code breach without reasonable explanation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6O">
        <xs:annotation>
          <xs:appinfo>
            <Label>Lateness</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6P">
        <xs:annotation>
          <xs:appinfo>
            <Label>Class-work avoidance</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6Q">
        <xs:annotation>
          <xs:appinfo>
            <Label>Unsafe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6R">
        <xs:annotation>
          <xs:appinfo>
            <Label>Out of class without permission</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6S">
        <xs:annotation>
          <xs:appinfo>
            <Label>Annoying</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6T">
        <xs:annotation>
          <xs:appinfo>
            <Label>Inappropriate language</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6U">
        <xs:annotation>
          <xs:appinfo>
            <Label>Academic dishonesty</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6V">
        <xs:annotation>
          <xs:appinfo>
            <Label>Loud</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6W">
        <xs:annotation>
          <xs:appinfo>
            <Label>Out of seat</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6X">
        <xs:annotation>
          <xs:appinfo>
            <Label>Failure to use manners</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6Y">
        <xs:annotation>
          <xs:appinfo>
            <Label>Littering</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M6Z">
        <xs:annotation>
          <xs:appinfo>
            <Label>Disorderly</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M7A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cigarette / e-cigarette</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M7B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Alcohol</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M7C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Over-the-counter medication</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M7D">
        <xs:annotation>
          <xs:appinfo>
            <Label>ADHD medication</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M7E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other prescription medication</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M7F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Aerosol</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M7G">
        <xs:annotation>
          <xs:appinfo>
            <Label>Solvents</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M7H">
        <xs:annotation>
          <xs:appinfo>
            <Label>Inappropriate sexual material</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M8A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Knife or blade</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M8B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Firearm</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M8C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Amphetamines</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M8D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Marijuana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M8E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Drug implement or paraphernalia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M8F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other illegal drug</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M8G">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other illegal weapon</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M9A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cyberbullying</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M9B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Hacking</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M9C">
        <xs:annotation>
          <xs:appinfo>
            <Label>Breach of Department acceptable use agreement</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M9D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Breach of Students Online Policy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M9E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Persistent personal use of a MED when not permitted</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M9F">
        <xs:annotation>
          <xs:appinfo>
            <Label>Inappropriate audio or video recording</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M9G">
        <xs:annotation>
          <xs:appinfo>
            <Label>Inappropriate uploading of text, images or audio</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M9H">
        <xs:annotation>
          <xs:appinfo>
            <Label>Public posting of messages that bring the school or Department into disrepute</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M9I">
        <xs:annotation>
          <xs:appinfo>
            <Label>Copyright infringement or plagiarism</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingEventTimePeriodType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the time period of the Wellbeing Event.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="AM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">AM</Label>
            <Label xml:lang="mi">AM</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">PM</Label>
            <Label xml:lang="mi">PM</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="R">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Recess</Label>
            <Label xml:lang="mi">Wā moko</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="B">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Before School</Label>
            <Label xml:lang="mi">I mua i te Kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="A">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">After School</Label>
            <Label xml:lang="mi">Muri i te Kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Ex">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Excursion</Label>
            <Label xml:lang="mi">Haerenga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="W">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Weekend</Label>
            <Label xml:lang="mi">Rā whakatā</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="O">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other</Label>
            <Label xml:lang="mi">Ētahi kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingEventCategoryClassType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the first level category of the Wellbeing Event.
			(Note: The second and third levels are Category and SubCategory)</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="POS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Positive</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NEG">
        <xs:annotation>
          <xs:appinfo>
            <Label>Negative</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DAT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Data Record Only</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsBehaviourDirectedAtTypeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting type of object or person the student was directing
			their behaviour at, e.g. Staff Member, Student, Desk, Chair.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="STA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STU">
        <xs:annotation>
          <xs:appinfo>
            <Label>Student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Property</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingEventActionTakenType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the actions that can be taken as a result of the Wellbeing event.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="AASS">
        <xs:annotation>
          <xs:documentation>
					Consequence for referral results in student attending classes on a Saturday.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Additional Attendance/Saturday School</Label>
            <Label xml:lang="mi">Rā kura anō/Kura Rāhoroi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ACPE">
        <xs:annotation>
          <xs:documentation>
					Consequence for referral is pending. Referral will be modified
				  when “action taken” is determined.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Action Pending</Label>
            <Label xml:lang="mi">Te mahi e tārewa ana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ALPL">
        <xs:annotation>
          <xs:documentation>
					Consequence for referral results in student being placed in a
					different educational setting.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Alternative Placement</Label>
            <Label xml:lang="mi">Whakataunga noa atu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BUSU">
        <xs:annotation>
          <xs:documentation>
					Consequence for referral results in 1-3 day period when student not allowed on the bus.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Bus Suspension</Label>
            <Label xml:lang="mi">Kua rāhuitia i te pahi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COSE">
        <xs:annotation>
          <xs:documentation>
					Consequence for referral results in involvement in community
					service activities or projects.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Community Service</Label>
            <Label xml:lang="mi">Ratonga hapori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COST">
        <xs:annotation>
          <xs:documentation>
					Consequence for referral results in student meeting with administrator,
					teacher, and/or parent (in any combination).
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Conference with Student</Label>
            <Label xml:lang="mi">Huihuinga matua, kaiako me te ākonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EXPU">
        <xs:annotation>
          <xs:documentation>
					Consequence for referral results in student being dismissed from school permanently.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Expulsion</Label>
            <Label xml:lang="mi">Kua panaia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ININ">
        <xs:annotation>
          <xs:documentation>
					Consequence for referral results in student receiving individualized instruction
					specifically related to the student’s problem behaviors.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Individualised Instruction</Label>
            <Label xml:lang="mi">Tohutohu Takitahitia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ISSU">
        <xs:annotation>
          <xs:documentation>
					Consequence for referral results in a period of time spent away from scheduled
					activities/classes during the school day.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">In-School Suspension</Label>
            <Label xml:lang="mi">Rāhuitia ki roto o te kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LOPR">
        <xs:annotation>
          <xs:documentation>
					Consequence for referral results in student being unable to participate in some type of privilege.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Loss of Privilege</Label>
            <Label xml:lang="mi">Kua ngaro te mana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OATA">
        <xs:annotation>
          <xs:documentation>
					Consequence for referral results in administrative decision that is not listed. Staff using
					this area will specify the administrative action taken.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Other Action Taken</Label>
            <Label xml:lang="mi">He mahi kē i mahia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OOSS">
        <xs:annotation>
          <xs:documentation>
					Consequence for referral results in a 1-3 day period when student
					is not allowed on campus.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Out-of-School Suspension</Label>
            <Label xml:lang="mi">Rāhuitia ki waho o te Kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PACO">
        <xs:annotation>
          <xs:documentation>
					Consequence for referral results in parent communication by phone, email, or person-to-person
					about the problem.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Parent Contact</Label>
            <Label xml:lang="mi">Te whakapā ki ngā Mātua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RECS">
        <xs:annotation>
          <xs:documentation>
					Consequence for referral results in apologizing or compensating for loss, damage,
					or injury; community services.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Restitution</Label>
            <Label xml:lang="mi">Te Utu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TIOF">
        <xs:annotation>
          <xs:documentation>
					Consequence for referral results in student spending time in the office away
					from scheduled activities/classes.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Time in Office</Label>
            <Label xml:lang="mi">Te noho ki te Tari</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TODE">
        <xs:annotation>
          <xs:documentation>
					Consequence for referral results in student spending time in a specified area
					away from scheduled activities/classes.
				</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Time Out/Detention</Label>
            <Label xml:lang="mi">Te whakawehe/Tautāwhi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingEventRestraintTypeType">
    <xs:annotation>
      <xs:documentation><p>Codes denoting the type of restraint used on a student during a Wellbeing Event.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="NON">
        <xs:annotation>
          <xs:documentation>No restraint or seclusion was used.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">None</Label>
            <Label xml:lang="mi">Karekau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RES">
        <xs:annotation>
          <xs:documentation>Any measure or condition used to immobilize or reduce the ability of a 
					student to move his or her torso, arms, legs, or head freely.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Restraint</Label>
            <Label xml:lang="mi">Te pupuri</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RAS">
        <xs:annotation>
          <xs:documentation>The use of both restraint and seclusion.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Restraint and Seclusion</Label>
            <Label xml:lang="mi">Te pupuri me te whakawehe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SEC">
        <xs:annotation>
          <xs:documentation>The involuntary confinement of a student alone in a room or area from which the student is physically prevented
					 from leaving or believes they cannot freely exit.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Seclusion</Label>
            <Label xml:lang="mi">Te whakawehe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsSuspensionCategoryType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the suspension category a Wellbeing Response belongs to.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="E">
        <xs:annotation>
          <xs:appinfo>
            <Label>Expulsion</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Whole Exclusion</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="P">
        <xs:annotation>
          <xs:appinfo>
            <Label>Partial Exclusion</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="I">
        <xs:annotation>
          <xs:appinfo>
            <Label>In School</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="W">
        <xs:annotation>
          <xs:appinfo>
            <Label>Withdrawal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="S">
        <xs:annotation>
          <xs:appinfo>
            <Label>Suspension</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="R">
        <xs:annotation>
          <xs:appinfo>
            <Label>Removal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="O">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsDetentionCategoryType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the detention category a Wellbeing Response belongs to.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="B">
        <xs:annotation>
          <xs:appinfo>
            <Label>Before School</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="R">
        <xs:annotation>
          <xs:appinfo>
            <Label>Recess</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Morning Recess</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Afternoon Recess</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="A">
        <xs:annotation>
          <xs:appinfo>
            <Label>After School</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="L">
        <xs:annotation>
          <xs:appinfo>
            <Label>Lunch</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="O">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingResponseCategoryType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the category a Wellbeing Response belongs to.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="S">
        <xs:annotation>
          <xs:appinfo>
            <Label>Suspension</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="D">
        <xs:annotation>
          <xs:appinfo>
            <Label>Detention</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="A">
        <xs:annotation>
          <xs:appinfo>
            <Label>Award</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="P">
        <xs:annotation>
          <xs:appinfo>
            <Label>Plan Required</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="M">
        <xs:annotation>
          <xs:appinfo>
            <Label>Multiple Response</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="O">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingAwardTypeType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the type of award that has been achieved as part of a Wellbeing Response.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="CER">
        <xs:annotation>
          <xs:appinfo>
            <Label>Certificate</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TRO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Trophy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LOR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Letter of Recognition</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsPersonInvolvedTypeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the type of person that was involved.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="NONE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">None</Label>
            <Label xml:lang="mi">Ko ia anake</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTHE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other</Label>
            <Label xml:lang="mi">Me t/ētahi noa atu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PEER">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Peers</Label>
            <Label xml:lang="mi">He hoa aropā</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STAF">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Staff</Label>
            <Label xml:lang="mi">Me te/ngā kaimahi kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SUBS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Substitute</Label>
            <Label xml:lang="mi">Me te kairīwhi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TEAC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Teacher</Label>
            <Label xml:lang="mi">Me te/ngā Kaiako</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UNKN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Unknown</Label>
            <Label xml:lang="mi">Kāre i mōhiotia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingEventLocationType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting locations where a Wellbeing Event incident may have took place.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="ARTR">
        <xs:annotation>
          <xs:documentation>The area used for art classes and activities.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Art Room</Label>
            <Label xml:lang="mi">Te Akomanga Toi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BATH">
        <xs:annotation>
          <xs:documentation>Areas used by students for taking care of personal needs.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Bathroom/Restroom</Label>
            <Label xml:lang="mi">Nga Wharepaku</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BUSL">
        <xs:annotation>
          <xs:documentation>The area used for bus loading and unloading.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Bus Loading Zone</Label>
            <Label xml:lang="mi">Te tūnga pahi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BUSS">
        <xs:annotation>
          <xs:documentation>The area inside the bus.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Bus</Label>
            <Label xml:lang="mi">Te Pahi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CAFE">
        <xs:annotation>
          <xs:documentation>The area used for breakfast and lunch. </xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Cafeteria</Label>
            <Label xml:lang="mi">Te wharekai</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CLAS">
        <xs:annotation>
          <xs:documentation>Areas used for instructional purposes.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Classroom</Label>
            <Label xml:lang="mi">Akomanga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COMM">
        <xs:annotation>
          <xs:documentation>Areas shared by students and staff for specific activities.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Commons/Common Area</Label>
            <Label xml:lang="mi">Ngā wāhi o te kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COMP">
        <xs:annotation>
          <xs:documentation>Area used for group computer classes and activities.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Computer Lab</Label>
            <Label xml:lang="mi">Taiwhanga Rorohiko</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GYMM">
        <xs:annotation>
          <xs:documentation>Areas used for physical education activities.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Gym</Label>
            <Label xml:lang="mi">Te Whare Hākinakina</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HALL">
        <xs:annotation>
          <xs:documentation>Areas designated for passing from one activity/class to another.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Hallway/Breezeway</Label>
            <Label xml:lang="mi">Ngā huarahi haere ki ngā akomanga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LIBR">
        <xs:annotation>
          <xs:documentation>The area designated for research and study.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Library</Label>
            <Label xml:lang="mi">Te whare pukapuka</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LOCK">
        <xs:annotation>
          <xs:documentation>The area used by students to prepare for and completing physical education classes and/or sporting events.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Locker Room</Label>
            <Label xml:lang="mi">Te Rūma Rakanga </Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MUSC">
        <xs:annotation>
          <xs:documentation>The area used by students for music activities (e.g., music class, choir, band).</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Music Room</Label>
            <Label xml:lang="mi">Te Rūma Whakatangitangi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OFFC">
        <xs:annotation>
          <xs:documentation>An area beyond the property boundary of the school and not affiliated with a school activity.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Off-Campus</Label>
            <Label xml:lang="mi">A waho atu i te Kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OFFI">
        <xs:annotation>
          <xs:documentation>The area used by school staff for primary school business and management. </xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Office</Label>
            <Label xml:lang="mi">Te Tari</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTHE">
        <xs:annotation>
          <xs:documentation>The location for problem behavior event occurs in a location that is not listed.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Other Location</Label>
            <Label xml:lang="mi">He wāhi kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PARK">
        <xs:annotation>
          <xs:documentation>Areas used for parking vehicles during school hours.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Parking Lot</Label>
            <Label xml:lang="mi">Te tūnga waka</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PLAY">
        <xs:annotation>
          <xs:documentation>The outside area used for recess breaks</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Playground</Label>
            <Label xml:lang="mi">Te papatākaro</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SPEC">
        <xs:annotation>
          <xs:documentation>Areas used for infrequent activities that occur in and/or out of school.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Special Event/Assembly/Field Trip</Label>
            <Label xml:lang="mi">He kaupapa motuhake, he huihuinga, he haerenga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STAD">
        <xs:annotation>
          <xs:documentation>Area used for athletic/special events. </xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Stadium</Label>
            <Label xml:lang="mi">Taiwhanga Hākinakina</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UNKN">
        <xs:annotation>
          <xs:documentation>The location of problem behavior event is not known or undetermined. </xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Unknown Location</Label>
            <Label xml:lang="mi">Kāre e mōhiotia te wāhi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="VOCA">
        <xs:annotation>
          <xs:documentation>The area of a school used for vocational classes and activities.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Vocational Room</Label>
            <Label xml:lang="mi">Te rūma ahumahinga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingEventMinorBehaviourType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the type of minor behaviour problem identified as part of the Wellbeing Event.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="DEFIA">
        <xs:annotation>
          <xs:documentation>Student engages in brief or low-intensity failure to follow directions or talks back.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Defiance/Disrespect/Non-Compliance</Label>
            <Label xml:lang="mi">Ātete – Iti noa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DISRE">
        <xs:annotation>
          <xs:documentation>Student delivers low-intensity, socially rude or dismissive messages to adults or students.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Disrespect</Label>
            <Label xml:lang="mi">Tōtōā – Iti noa</Label>
            <endDate>2020-04-09</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DISRU">
        <xs:annotation>
          <xs:documentation>Student engages in low-intensity, but inappropriate disruption.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Disruption</Label>
            <Label xml:lang="mi">Tauwhati – Iti noa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DRESS">
        <xs:annotation>
          <xs:documentation>Student wears clothing that is near, but not within, the dress code guidelines defined by the school/district.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Dress Code Violation</Label>
            <Label xml:lang="mi">Ngā kākahu ā-Kura – Iti noa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INAPP">
        <xs:annotation>
          <xs:documentation>Student engages in low-intensity instance of inappropriate language.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Inappropriate Language</Label>
            <Label xml:lang="mi">He reo pakirara – Iti noa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTHER">
        <xs:annotation>
          <xs:documentation>Student engages in any other minor problem behaviors that do not fall within the above categories.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Other</Label>
            <Label xml:lang="mi">He mea kē -  Iti noa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PHYSI">
        <xs:annotation>
          <xs:documentation>Student engages in non-serious, but inappropriate physical contact.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Physical Contact/Physical Aggression</Label>
            <Label xml:lang="mi">Te pa ā-ringa/Te tukituki – Iti noa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PROPE">
        <xs:annotation>
          <xs:documentation>Student engages in low-intensity misuse of property.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Property Misuse</Label>
            <Label xml:lang="mi">Te whakamahi hē i ngā taputapu ā-kura – Iti noa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TARDY">
        <xs:annotation>
          <xs:documentation>Student arrives at class after the bell (or signal that class has started).</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Tardy</Label>
            <Label xml:lang="mi">Tōmuritanga – Iti noa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TECHN">
        <xs:annotation>
          <xs:documentation>Student engages in non-serious, but inappropriate (as defined by school) use of cell phone, pager, music/video players, camera, and/or computer.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Technology Violation</Label>
            <Label xml:lang="mi">Te whakamahi hē i te hangarau – Iti noa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingEventMajorBehaviourType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the type of major behaviour problem identified as part of the Wellbeing Event.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="ABUSI">
        <xs:annotation>
          <xs:documentation>Student delivers verbal messages that include swearing, name calling, or use of words in an inappropriate way.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Abusive Language/Inappropriate Language/Profanity</Label>
            <Label xml:lang="mi">Reo whakataki/Reo Pakirara/ Reo kohukohu – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ARSON">
        <xs:annotation>
          <xs:documentation>Student plans and/or participates in malicious burning of property.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Arson</Label>
            <Label xml:lang="mi">Te tahu ahi – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BOMBT">
        <xs:annotation>
          <xs:documentation>Student delivers a message of possible explosive materials being on-campus, near campus, and/or pending explosion.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Bomb Threat/False Alarm</Label>
            <Label xml:lang="mi">Tuma Pāhu/Whakaaraara parau – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BULLY">
        <xs:annotation>
          <xs:documentation>The delivery of direct or technology-based messages that involve intimidation, teasing, taunting, threats, or name calling.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Bullying</Label>
            <Label xml:lang="mi">Te mahi poke – Nui rawa</Label>
            <endDate>2020-04-09</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DEFIA">
        <xs:annotation>
          <xs:documentation>Student engages in refusal to follow directions or talks back.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Defiance/Disrespect/Insubordination/Non-Compliance</Label>
            <Label xml:lang="mi">Ātete/Kāre e whakarongo/Kāre e aro mai – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DISRE">
        <xs:annotation>
          <xs:documentation>Student delivers socially rude or dismissive messages to adults or students.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Disrespect</Label>
            <Label xml:lang="mi">Tōtōā – Nui rawa</Label>
            <endDate>2020-04-09</endDate>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DISRU">
        <xs:annotation>
          <xs:documentation>Student engages in behavior causing an interruption in a class or activity. Disruption includes sustained loud talk, yelling, or screaming; noise with materials; horseplay or roughhousing; and/or sustained out-of-seat behavior.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Disruption</Label>
            <Label xml:lang="mi">Tauwhati – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DRESS">
        <xs:annotation>
          <xs:documentation>Student wears clothing that does not fit within the dress code guidelines practiced by the school/district.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Dress Code Violation</Label>
            <Label xml:lang="mi">Ngā kākahu ā-Kura – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FIGHT">
        <xs:annotation>
          <xs:documentation>Student is involved in mutual participation in an incident involving physical violence.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Fighting</Label>
            <Label xml:lang="mi">Te whawhai – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FORGE">
        <xs:annotation>
          <xs:documentation>Student is involved by being in possession of, having passed on, or being responsible for removing someone else's property; or the student has signed a person’s name without that person’s permission, or claims someone else’s work as their own.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Forgery/Theft/Plagiarism</Label>
            <Label xml:lang="mi">Te Tāwhai/Te whānako/Te Tuhi whānako – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GANGA">
        <xs:annotation>
          <xs:documentation>Student uses gesture, dress, and/or speech to display affiliation with a gang.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Gang Affiliation Display</Label>
            <Label xml:lang="mi">Te mau kākahu Kēne – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HARAS">
        <xs:annotation>
          <xs:documentation>The delivery of disrespectful messages in any format related to gender, ethnicity, sex, race, religion, disability, physical features, or other protected class. </xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Harassment/Bullying</Label>
            <Label xml:lang="mi">Inonotitanga – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INADI">
        <xs:annotation>
          <xs:documentation>Student engages in inappropriate, consensual (as defined by school) verbal and/or physical gestures/contact, of a sexual nature to another student/adult.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Inappropriate Display of Affection</Label>
            <Label xml:lang="mi">Te whai aroha pakirara – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INALO">
        <xs:annotation>
          <xs:documentation>Student is in an area that is outside of school boundaries (as defined by school).</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Inappropriate Location/Out of Bounds Area</Label>
            <Label xml:lang="mi">Tētahi wāhi pakirara/Wāhi rāhui – Nui rawa </Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LYING">
        <xs:annotation>
          <xs:documentation>Student delivers message that is untrue and/or deliberately violates rules.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Lying/Cheating</Label>
            <Label xml:lang="mi">Te rūkahu/Te tāhae – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTHER">
        <xs:annotation>
          <xs:documentation>Student engages in problem behavior not listed.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Other Behaviour</Label>
            <Label xml:lang="mi">Whanonga kē – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PHYSI">
        <xs:annotation>
          <xs:documentation>Student engages in actions involving serious physical contact where injury may occur (e.g., hitting, punching, hitting with an object, kicking, hair pulling, scratching, etc.).</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Physical Aggression</Label>
            <Label xml:lang="mi">Te tukituki –Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PROPE">
        <xs:annotation>
          <xs:documentation>Student participates in an activity that results in destruction or disfigurement of property.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Property Damage/Vandalism</Label>
            <Label xml:lang="mi">Wāwahi whare/Mahi Kaiauru – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SKIPC">
        <xs:annotation>
          <xs:documentation>Student leaves or misses class without permission.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Skip Class</Label>
            <Label xml:lang="mi">Tōhipa akomanga – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TARDY">
        <xs:annotation>
          <xs:documentation>Student is late (as defined by the school) to class or the start up of the school day (and Tardy is not considered a minor problem behavior in the school).</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Tardy</Label>
            <Label xml:lang="mi">Tōmuritanga – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TECHN">
        <xs:annotation>
          <xs:documentation>Student engages in inappropriate (as defined by school) use of cell phone, pager, music/video players, camera, and/or computer.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Technology Violation</Label>
            <Label xml:lang="mi">Te whakamahi hē i te hangarau – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TRUAN">
        <xs:annotation>
          <xs:documentation>Student receives an ‘unexcused absence’ for ½ day or more.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Truancy</Label>
            <Label xml:lang="mi">Whakatau – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UPOAL">
        <xs:annotation>
          <xs:documentation>Student is in possession of or is using alcohol.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Use/Possession of Alcohol</Label>
            <Label xml:lang="mi">Te kai/mau waipiro – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UPOCO">
        <xs:annotation>
          <xs:documentation>Student is/was in possession of substances/objects readily capable of causing bodily harm and/or property damage (matches, lighters, firecrackers, gasoline, lighter fluid).</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Use/Possession of Combustibles</Label>
            <Label xml:lang="mi">Te kai/mau ngingiha – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UPODR">
        <xs:annotation>
          <xs:documentation>Student is in possession of or is using illegal drugs/substances or imitations.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Use/Possession of Drugs</Label>
            <Label xml:lang="mi">Te kai/mau pōauau – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UPOTO">
        <xs:annotation>
          <xs:documentation>Student is in possession of or is using tobacco.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Use/Possession of Tobacco</Label>
            <Label xml:lang="mi">Te kai/mau tupeka – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UPOWE">
        <xs:annotation>
          <xs:documentation>Student is in possession of knives (greater than 6 in., less than 6 in.) and guns (real or look alike), or other objects readily capable of causing bodily harm.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Use/Possession of Weapons</Label>
            <Label xml:lang="mi">Te kai/mau rākau riri – Nui rawa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingAppealStatusType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the status of the Wellbeing Appeal.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="IP">
        <xs:annotation>
          <xs:appinfo>
            <Label>In Progress</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Not Specified</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Rejected</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SU">
        <xs:annotation>
          <xs:appinfo>
            <Label>Successful</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsAppealDeterminationByType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the type of individual or group that determined the appeal outcome.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="BOT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Board of Trustees</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRI">
        <xs:annotation>
          <xs:appinfo>
            <Label>Principal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DEP">
        <xs:annotation>
          <xs:appinfo>
            <Label>Deputy Principal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="YEA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Year Level Dean</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HOM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Home Room Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MOE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Ministry of Education</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningSupportLearnerStatusType">
    <xs:annotation>
      <xs:documentation><p>Codes denoting the whether or not the learner is being actively managed for learning support.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="ACT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Active</Label>
            <Label xml:lang="mi">E Tuwhera Ana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ARC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Archived</Label>
            <Label xml:lang="mi">Pūrangatia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningSupportCaseLeadType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the Agency taking the lead on a learning support need case, e.g. MOE, Police, Corrections etc.)</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="CO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Corrections</Label>
            <Label xml:lang="mi">Ara Poutama Aotearoa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">IHC</Label>
            <Label xml:lang="mi">IHC</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">MOE</Label>
            <Label xml:lang="mi">Te Tāhuhu o te Mātauranga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Oranga Tamariki</Label>
            <Label xml:lang="mi">Oranga Tamariki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other</Label>
            <Label xml:lang="mi">Rōpū kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Police</Label>
            <Label xml:lang="mi">Ngā Pirihimana o Aotearoa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">RTLB</Label>
            <Label xml:lang="mi">RTLB</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">ACC</Label>
            <Label xml:lang="mi">ACC</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningSupportResponseOutcomeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the outcome for the student that the response is seeking to achieve for a learning support need.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="FSR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Further support required</Label>
            <Label xml:lang="mi">Me Whai Tautoko Anō</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GAC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Goal achieved</Label>
            <Label xml:lang="mi">Whāinga i tutuki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GNA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Goal not achieved</Label>
            <Label xml:lang="mi">Whāinga kāre i tutuki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RNA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Response not effective</Label>
            <Label xml:lang="mi">Urupare kāre i tika</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningSupportResponseTierType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the tier of response for a learning support need response.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="IND">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Individual</Label>
            <Label xml:lang="mi">Takitahi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TAR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Targeted / Group</Label>
            <Label xml:lang="mi">Hāngai/Rōpū</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UNI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Universal</Label>
            <Label xml:lang="mi">Ao whānui</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningSupportResponseClosureStatusType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the status of the learning support need response when it is closed.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="COM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Complete</Label>
            <Label xml:lang="mi">Oti</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ILM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Incomplete (support no longer required)</Label>
            <Label xml:lang="mi">Noho tārewa (Kāre ngā mahi tautoko i hiahiatia)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ISN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Incomplete (learner moved from school)</Label>
            <Label xml:lang="mi">Noho tārewa (kua haere te ākonga ki kura kē)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NLF">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">No longer funded</Label>
            <Label xml:lang="mi">Kāre he pūtea tautoko</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other</Label>
            <Label xml:lang="mi">He mea kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningSupportResponseDetailType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the additional detail about the response type provided to the student to support the need.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="ACU">
        <xs:annotation>
          <xs:documentation>Links to Adaptation for access Response Type.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Curriculum</Label>
            <Label xml:lang="mi">Marau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ASC">
        <xs:annotation>
          <xs:documentation>Links to Adaptation for access Response Type.</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">School property</Label>
            <Label xml:lang="mi">Rawa ā-kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HUP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">For help undertaking personal care tasks</Label>
            <Label xml:lang="mi">Hei Āwhina i ngā Tūmahi Atawhai</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MOE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">MOE specialists</Label>
            <Label xml:lang="mi">Mātanga na Te Tāhuhu o te Mātauranga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OAN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other agency/NGO specialists</Label>
            <Label xml:lang="mi">Umanga Kē/Mātanga NGO</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ODS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other adaptation for access</Label>
            <Label xml:lang="mi">Urutaunga Angitu Kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OSS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other specialist support</Label>
            <Label xml:lang="mi">Mātanga Tautoko Kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other teacher aide support in the classroom</Label>
            <Label xml:lang="mi">He Tautoko Kairīwhi Kē ki te Akomanga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OUD">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other universal design</Label>
            <Label xml:lang="mi">Hoahoatanga Whānui Kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SCU">
        <xs:annotation>
          <xs:documentation>Links to the Universal Design Response Type</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">Curriculum</Label>
            <Label xml:lang="mi">Marau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SPC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Support from community</Label>
            <Label xml:lang="mi">Tautoko ā-hapori</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SPI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Support from Iwi</Label>
            <Label xml:lang="mi">Tautoko ā-iwi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SRL">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">To support and reinforce learning</Label>
            <Label xml:lang="mi">Te tautoko me te taunaki akoako</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="USC">
        <xs:annotation>
          <xs:documentation>Links to the Universal Design Response Type</xs:documentation>
          <xs:appinfo>
            <Label xml:lang="en">School property</Label>
            <Label xml:lang="mi">Rawa ā-kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningSupportResponseTypeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the type of response provided to the student to support the need.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="ACC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Accessible technology</Label>
            <Label xml:lang="mi">Hangarau Whakamahi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ADA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Adaptation for Access</Label>
            <Label xml:lang="mi">Urutaunga Tomo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">In class strategies / school</Label>
            <Label xml:lang="mi">Rautaki ā-akomanga, ā-kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Professional learning and upskilling</Label>
            <Label xml:lang="mi">Whakahiki pūkenga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SCH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">School financial support</Label>
            <Label xml:lang="mi">Tahua Tautoko ā-kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SPE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Specialist support</Label>
            <Label xml:lang="mi">Tautoko Mātanga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TEA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Teacher aide support in the classroom</Label>
            <Label xml:lang="mi">Tautokotanga Kairīwhi ki te akomanga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UNI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Universal Design</Label>
            <Label xml:lang="mi">Hoahoatanga Whānui</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningSupportExternalFunderType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting who can fund a learning support need external response.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="ACC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">ACC</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BEH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Behaviour Support</Label>
            <Label xml:lang="mi">Tautoko whanonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ESO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">ESOL</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ESW">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">ESW</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ICS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">ICS</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IWS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">IWS</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ORS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">ORS</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other</Label>
            <Label xml:lang="mi">He mea kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PCC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">PCCS</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RTL">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">RTLB</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IRF">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">IRF</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningSupportExternalProviderType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the providers of an external response for a learning support need.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="MOE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">MOE</Label>
            <Label xml:lang="mi">Te Tāhuhu o te Mātauranga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MOH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">MOH</Label>
            <Label xml:lang="mi" />
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ORA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Oranga Tamariki</Label>
            <Label xml:lang="mi">Oranga Tamariki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CLU">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cluster organisation</Label>
            <Label xml:lang="mi">Kāhui Whakahaere</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NGO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">NGO</Label>
            <Label xml:lang="mi" />
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other</Label>
            <Label xml:lang="mi">He mea kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RTB">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">RTLB</Label>
            <Label xml:lang="mi" />
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RTL">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">RTLit</Label>
            <Label xml:lang="mi" />
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RTM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">RT Māori</Label>
            <Label xml:lang="mi" />
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningSupportFundingStatusType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the status of the funding being provided for a learning support need external response.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="AP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Approved</Label>
            <Label xml:lang="mi">I whakaaetia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Declined</Label>
            <Label xml:lang="mi">Kāre i whakaaetia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">None</Label>
            <Label xml:lang="mi">Kore</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Referred on</Label>
            <Label xml:lang="mi">I tonoa i</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SU">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Submitted</Label>
            <Label xml:lang="mi">Kua tukuna</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Waiting list</Label>
            <Label xml:lang="mi">Rārangi roa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningSupportExtResponseStatusType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the status of the external response.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="ACT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Active</Label>
            <Label xml:lang="mi">Tuwhera</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CLO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Closed</Label>
            <Label xml:lang="mi">Kati</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsMoESpecialistServiceType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the MOE specialist services available to as a response to a students support need.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="ACC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Accessible Format Materials</Label>
            <Label xml:lang="mi">Tānga Kōrero E Taea Ana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ACT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Activity Centres</Label>
            <Label xml:lang="mi">Pokapū Tūmahi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ADE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">ASSIST - Deaf Education Centres Regional Service</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AED">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Alternative Education</Label>
            <Label xml:lang="mi">Mātauranga Kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AEI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Alternative Early Intervention Service Providers</Label>
            <Label xml:lang="mi">Kaituku Ratonga Wawaotanga Tōmua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ATE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Assistive Technology (AT) Equipment</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ATT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Attendance Services (Non Enrolment Truancy Service (NETS) and DTS)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BEH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Behaviour Service</Label>
            <Label xml:lang="mi">Ratonga Whanonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BIL">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Bilingual Support Workers</Label>
            <Label xml:lang="mi">Kaimahi Tautoko Reorua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BLE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">BLENNZ</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BOA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Boarding Allowances</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CHO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cholmondeley Children's Centre</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CLA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Class Funding</Label>
            <Label xml:lang="mi">Tahua Akomanga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Cochlear Implant Habilitation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Communication Service (Language and Learning Intervention)</Label>
            <Label xml:lang="mi">Ratonga Whakapānga (Wawaotanga ā-Reo, ā-Akoranga)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CON">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Conductive Education</Label>
            <Label xml:lang="mi">Conductive Education</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DEC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Deaf Education Centres</Label>
            <Label xml:lang="mi">Pokapū Akoranga Turi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DHH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Deaf and Hard of Hearing Moderate Needs (not ORS)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EDY">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Education Services for Youth Courts</Label>
            <Label xml:lang="mi">Education Services for Youth Courts</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EIN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Early Intervention</Label>
            <Label xml:lang="mi">Wawaotanga Tōmua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EIS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Early Intervention: Specialist Services</Label>
            <Label xml:lang="mi">Wawaotanga Tōmua: Ratonga Whāiti</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ENG">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Engaging Priority Families</Label>
            <Label xml:lang="mi">Te Whakaanga ki ngā Whānau Tōmua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ESO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">ESOL (English for Speakers of Other Languages)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FIR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">First Signs</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ICS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">In-Class Support (ICS) funding</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IMO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Intensive wraparound service (IWS) MOE provided</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IRF">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Interim response fund (IRF)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ITK">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Intensive wraparound service (IWS) Te Kahutoi Assessment Hub</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NAT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">National Mentoring Service (for Māori and Pasifika students)</Label>
            <Label xml:lang="mi">Ratonga Kaitohutohu ā-Motu (ākonga Māori, ākonga Pasifika hoki)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">NZ Sign Language in Schools</Label>
            <Label xml:lang="mi">Te Reo Turi i ngā Kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ORS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">ORS</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PBA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">PB4L (IY Autism)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PBC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">PB4L (check and connect)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PBH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">PB4L (Huakina Mai)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PBI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">PB4L (incredible Years Parents)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PBR">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">PB4L (Restorative Practice)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PBS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">PB4L (School-Wide)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PBT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">PB4L (IY Teachers)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PDM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Physical Disability Service (MOE provided)</Label>
            <Label xml:lang="mi">Ratonga Hauā (nā te Tāhuhu o te Mātauranga)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PDS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Physical Disability Service (Specialist service providers)</Label>
            <Label xml:lang="mi">Ratonga Hauā (nā te kaituku ratonga motuhake)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PFS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Programme for Students (PfS)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="REA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Reading Recovery</Label>
            <Label xml:lang="mi">Te Pānui Tautāwhi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="REG">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Regional Health Schools</Label>
            <Label xml:lang="mi">Kura Hauora ā-Rohe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RFF">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Refugee Flexible Funding Pool</Label>
            <Label xml:lang="mi">Te Tahua mō ngā Manene</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RPC">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Refugee Pathway and Career Planning</Label>
            <Label xml:lang="mi">Rapu Ara Mahi mō te Manene</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RTB">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Resource Teachers: Learning and Behaviour (RTLB)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RTD">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Resource Teachers: Deaf (RTD) Deaf Education Centres Regional Service</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RTL">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Resource Teachers: Literacy (RTLit)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SCH">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">School High Health Needs Fund</Label>
            <Label xml:lang="mi">Tahua Hauora mō ngā Kura</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SER">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Service Academies</Label>
            <Label xml:lang="mi">Rōpū Tuku Ratonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SES">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Special Education Transport Assistance (SESTA)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">STAND Children's Services</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Specialist Teacher Outreach Service</Label>
            <Label xml:lang="mi">Specialist Teacher Outreach Service</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STU">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Study Support Centres</Label>
            <Label xml:lang="mi">Pokapū Tautoko Ākonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TEK">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Te Kura (Learning Support gateways)</Label>
            <Label xml:lang="mi">Te Kura (Learning Support gateways)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TIP">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Tips for Autism</Label>
            <Label xml:lang="mi">Tautoko mō te takiwātanga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TPM">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Teen Parents in the Mainstream</Label>
            <Label xml:lang="mi">Rōpū Mātātahi Kura Auraki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TPU">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Teen Parent Unit (TPU)</Label>
            <Label xml:lang="mi">Rangapū Mātua Mātātahi (TPU)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningSupportInternalFunderType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting who can fund a learning support need internal response.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="BOA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Board funded</Label>
            <Label xml:lang="mi">Nā te Poari i tautoko</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NTA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Not applicable</Label>
            <Label xml:lang="mi">Kāre i arohia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SEG">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">SEG</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningSupportIntResponseStatusType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the status of the internal response.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="CLO">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Closed</Label>
            <Label xml:lang="mi">Kati</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MON">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Monitoring</Label>
            <Label xml:lang="mi">Te Aro turuki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OBS">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Observing</Label>
            <Label xml:lang="mi">Te Mātaki</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsLearningSupportInternalProviderType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the providers of an internal response for a learning support need.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="COU">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Counsellor</Label>
            <Label xml:lang="mi">Kaitautāwhi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ESW">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">ESW</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HEA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Health Professional</Label>
            <Label xml:lang="mi">Mātanga Hauora</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RTL">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">RTLB</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SEN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">SENCO</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SWI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">SWIS</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TAI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Teacher Aide</Label>
            <Label xml:lang="mi">Kairīwhi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TEA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Teacher</Label>
            <Label xml:lang="mi">Kaiako</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsStudentActivityGroupType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the group of the activity the student is participating
					in, e.g. sport, art, cultural, music.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="SPO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Sport</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ART">
        <xs:annotation>
          <xs:appinfo>
            <Label>Art</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CUL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cultural</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MUS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Music</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsStudentActivityTypeType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the type of activity the student is 
				participating in, e.g. rugby, drama, Kapa Haka, Violin.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="NET">
        <xs:annotation>
          <xs:appinfo>
            <Label>Netball</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RUG">
        <xs:annotation>
          <xs:appinfo>
            <Label>Rugby</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CRI">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cricket</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DRA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Drama</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DEB">
        <xs:annotation>
          <xs:appinfo>
            <Label>Debate</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TER">
        <xs:annotation>
          <xs:appinfo>
            <Label>Te Reo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="KAP">
        <xs:annotation>
          <xs:appinfo>
            <Label>Kapa Haka</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GUI">
        <xs:annotation>
          <xs:appinfo>
            <Label>Guitar</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="VIO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Violin</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsStudentInterestTypeType">
    <xs:annotation>
      <xs:documentation><p>Standard codes denoting the type of interest the student likes to do.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="SPO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Sports</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ART">
        <xs:annotation>
          <xs:appinfo>
            <Label>Arts</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CUL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cultural</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MUS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Music</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsStudentVoiceTypeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the type of student voice being heard, e.g. their interests, goals, voice (comments, opinions).</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="GOA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Student Goal</Label>
            <Label xml:lang="mi">Whainga Ākonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="INT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Student Interest</Label>
            <Label xml:lang="mi">Aronga Ākonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="VOI">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Student Voice</Label>
            <Label xml:lang="mi">Reo Ākonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsRestraintAdministeredByRoleType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the role of the person who administered the physical restraint to the student.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="T">
        <xs:annotation>
          <xs:appinfo>
            <Label>Teacher</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="P">
        <xs:annotation>
          <xs:appinfo>
            <Label>Principal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="O">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsRestraintDebriefingTypeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the type of debriefing that occurred, e.g. staff, or student and parent/caregiver.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="S">
        <xs:annotation>
          <xs:appinfo>
            <Label>Staff</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="P">
        <xs:annotation>
          <xs:appinfo>
            <Label>Parent/Caregiver and Student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsRestraintQuestionType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting a question that was asked about a student physical restraint incident.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="101">
        <xs:annotation>
          <xs:appinfo>
            <Label>First time the student has been physically restrained?</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="102">
        <xs:annotation>
          <xs:appinfo>
            <Label>The student was physically restrained more than once during the day?</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="103">
        <xs:annotation>
          <xs:appinfo>
            <Label>The student has an Individual Behaviour Plan?</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="104">
        <xs:annotation>
          <xs:appinfo>
            <Label>Physical restraint was a part of the plan?</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="105">
        <xs:annotation>
          <xs:appinfo>
            <Label>Were the parents notifed?</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="106">
        <xs:annotation>
          <xs:appinfo>
            <Label>Was anyone injured?</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="107">
        <xs:annotation>
          <xs:appinfo>
            <Label>Was the staff member who applied restraint a teacher or authorised staff member?</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="108">
        <xs:annotation>
          <xs:appinfo>
            <Label>Role of staff member who applied the restraint?</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="109">
        <xs:annotation>
          <xs:appinfo>
            <Label>Did the staff member who applied the restraint receive any training prior to the incident?</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsRestraintReasonType">
    <xs:annotation>
      <xs:documentation><p>A code set denoting the reason physical restraint was used on the student.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="SER">
        <xs:annotation>
          <xs:appinfo>
            <Label>Serious and imminent risk to safety</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ACT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Actual injury</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsStaffRestraintReflectionTypeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the type of reflection that the staff member performed.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="EVE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Events leading to the incident</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BEH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Behaviour of the student</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WHA">
        <xs:annotation>
          <xs:appinfo>
            <Label>What did you try before the restraint?</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RES">
        <xs:annotation>
          <xs:appinfo>
            <Label>The restraint method used</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MON">
        <xs:annotation>
          <xs:appinfo>
            <Label>Monitoring</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AFT">
        <xs:annotation>
          <xs:appinfo>
            <Label>After the restraint ended</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NEX">
        <xs:annotation>
          <xs:appinfo>
            <Label>If there's a next time</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HOW">
        <xs:annotation>
          <xs:appinfo>
            <Label>How about you?</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingAppealOutcomeType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the outcome of a wellbeing appeal.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="OTH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Other</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingEventSeverityType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the severity of the Wellbeing Event.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="MIN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Minor</Label>
            <Label xml:lang="mi">Iti te kaha</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAJ">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Major</Label>
            <Label xml:lang="mi">Nui te kaha</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NZCodeSetsWellbeingEventPossibleMotivationType">
    <xs:annotation>
      <xs:documentation><p>Code set denoting the possible motivation that triggered the Wellbeing Event.</p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="AVAD">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Avoid Adult</Label>
            <Label xml:lang="mi">Karo Mātua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AVPE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Avoid Peer(s)</Label>
            <Label xml:lang="mi">Karo Aropā</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AVTA">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Avoid Tasks/Activities</Label>
            <Label xml:lang="mi">Karo Tūmahi/Ngohe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OBAD">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Obtain Adult Attention</Label>
            <Label xml:lang="mi">Whai Aronga Mātua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OBIT">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Obtain Items/Activities</Label>
            <Label xml:lang="mi">Whai mea/tūmahi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OBPE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Obtain Peer Attention</Label>
            <Label xml:lang="mi">Whai aronga hunga aropā</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTHE">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Other</Label>
            <Label xml:lang="mi">He āhua kē</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UNKN">
        <xs:annotation>
          <xs:appinfo>
            <Label xml:lang="en">Unknown Motivation</Label>
            <Label xml:lang="mi">Kāore i mārama te take o ngā whanonga whakararu a te ākonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ISO3166CountryType">
    <xs:annotation>
      <xs:documentation><p>A country is a geopolitical entity recognised by the
			New Zealand government. The term country may include</p><ul><li>Independent countries recognised by the New Zealand
				Government</li><li>Units that are recognised geographic areas</li><li>administrative subdivisions of the United Kingdom</li><li>overseas dependencies, external territories of independent
				countries.</li></ul><p>Conforms to the International Standard <a href="http://www.iso.org/iso/home/store/catalogue_ics/catalogue_detail_ics.htm?csnumber=63545">ISO 3166 Codes
			for the Representation of Names of Countries and their
			Subdivisions (ISO 3166-1:2013).</a>  Education adopts the
			alpha-3 representation of this standard. </p></xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="ABW">
        <xs:annotation>
          <xs:appinfo>
            <Label>Aruba</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AFG">
        <xs:annotation>
          <xs:appinfo>
            <Label>Afghanistan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AGO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Angola</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AIA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Anguilla</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ALA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Åland Islands</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ALB">
        <xs:annotation>
          <xs:appinfo>
            <Label>Albania</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AND">
        <xs:annotation>
          <xs:appinfo>
            <Label>Andorra</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ARE">
        <xs:annotation>
          <xs:appinfo>
            <Label>United Arab Emirates</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ARG">
        <xs:annotation>
          <xs:appinfo>
            <Label>Argentina</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ARM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Armenia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ASM">
        <xs:annotation>
          <xs:appinfo>
            <Label>American Samoa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ATA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Antarctica</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ATF">
        <xs:annotation>
          <xs:appinfo>
            <Label>French Southern Territories</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ATG">
        <xs:annotation>
          <xs:appinfo>
            <Label>Antigua and Barbuda</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AUS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Australia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AUT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Austria</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AZE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Azerbaijan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BDI">
        <xs:annotation>
          <xs:appinfo>
            <Label>Burundi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BEL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Belgium</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BEN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Benin</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BES">
        <xs:annotation>
          <xs:appinfo>
            <Label>Bonaire, Sint Eustatius and Saba</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BFA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Burkina Faso</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BGD">
        <xs:annotation>
          <xs:appinfo>
            <Label>Bangladesh</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BGR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Bulgaria</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BHR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Bahrain</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BHS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Bahamas</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BIH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Bosnia and Herzegovina</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BLM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Saint Barthélemy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BLR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Belarus</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BLZ">
        <xs:annotation>
          <xs:appinfo>
            <Label>Belize</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BMU">
        <xs:annotation>
          <xs:appinfo>
            <Label>Bermuda</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BOL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Bolivia, Plurinational State of</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BRA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Brazil</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BRB">
        <xs:annotation>
          <xs:appinfo>
            <Label>Barbados</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BRN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Brunei Darussalam</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BTN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Bhutan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BVT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Bouvet Island</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BWA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Botswana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CAF">
        <xs:annotation>
          <xs:appinfo>
            <Label>Central African Republic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CAN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Canada</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CCK">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cocos (Keeling) Islands</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CHE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Switzerland</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CHL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Chile</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CHN">
        <xs:annotation>
          <xs:appinfo>
            <Label>China</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CIV">
        <xs:annotation>
          <xs:appinfo>
            <Label>Côte d'Ivoire</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CMR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cameroon</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COD">
        <xs:annotation>
          <xs:appinfo>
            <Label>Congo, the Democratic Republic of the</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COG">
        <xs:annotation>
          <xs:appinfo>
            <Label>Congo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COK">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cook Islands</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Colombia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="COM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Comoros</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CPV">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cabo Verde</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CRI">
        <xs:annotation>
          <xs:appinfo>
            <Label>Costa Rica</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CUB">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cuba</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CUW">
        <xs:annotation>
          <xs:appinfo>
            <Label>Curaçao</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CXR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Christmas Island</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CYM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cayman Islands</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CYP">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cyprus</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CZE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Czechia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DEU">
        <xs:annotation>
          <xs:appinfo>
            <Label>Germany</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DJI">
        <xs:annotation>
          <xs:appinfo>
            <Label>Djibouti</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DMA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Dominica</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DNK">
        <xs:annotation>
          <xs:appinfo>
            <Label>Denmark</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DOM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Dominican Republic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DZA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Algeria</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ECU">
        <xs:annotation>
          <xs:appinfo>
            <Label>Ecuador</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EGY">
        <xs:annotation>
          <xs:appinfo>
            <Label>Egypt</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ERI">
        <xs:annotation>
          <xs:appinfo>
            <Label>Eritrea</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ESH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Western Sahara</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ESP">
        <xs:annotation>
          <xs:appinfo>
            <Label>Spain</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EST">
        <xs:annotation>
          <xs:appinfo>
            <Label>Estonia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ETH">
        <xs:annotation>
          <xs:appinfo>
            <Label>Ethiopia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FIN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Finland</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FJI">
        <xs:annotation>
          <xs:appinfo>
            <Label>Fiji</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FLK">
        <xs:annotation>
          <xs:appinfo>
            <Label>Falkland Islands (Malvinas)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FRA">
        <xs:annotation>
          <xs:appinfo>
            <Label>France</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FRO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Faroe Islands</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FSM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Micronesia, Federated States of</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GAB">
        <xs:annotation>
          <xs:appinfo>
            <Label>Gabon</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GBR">
        <xs:annotation>
          <xs:appinfo>
            <Label>United Kingdom</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GEO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Georgia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GGY">
        <xs:annotation>
          <xs:appinfo>
            <Label>Guernsey</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GHA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Ghana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GIB">
        <xs:annotation>
          <xs:appinfo>
            <Label>Gibraltar</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GIN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Guinea</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GLP">
        <xs:annotation>
          <xs:appinfo>
            <Label>Guadeloupe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GMB">
        <xs:annotation>
          <xs:appinfo>
            <Label>Gambia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GNB">
        <xs:annotation>
          <xs:appinfo>
            <Label>Guinea-Bissau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GNQ">
        <xs:annotation>
          <xs:appinfo>
            <Label>Equatorial Guinea</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GRC">
        <xs:annotation>
          <xs:appinfo>
            <Label>Greece</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GRD">
        <xs:annotation>
          <xs:appinfo>
            <Label>Grenada</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GRL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Greenland</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GTM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Guatemala</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GUF">
        <xs:annotation>
          <xs:appinfo>
            <Label>French Guiana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GUM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Guam</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="GUY">
        <xs:annotation>
          <xs:appinfo>
            <Label>Guyana</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HKG">
        <xs:annotation>
          <xs:appinfo>
            <Label>Hong Kong</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HMD">
        <xs:annotation>
          <xs:appinfo>
            <Label>Heard Island and McDonald Islands</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HND">
        <xs:annotation>
          <xs:appinfo>
            <Label>Honduras</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HRV">
        <xs:annotation>
          <xs:appinfo>
            <Label>Croatia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HTI">
        <xs:annotation>
          <xs:appinfo>
            <Label>Haiti</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HUN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Hungary</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IDN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Indonesia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IMN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Isle of Man</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IND">
        <xs:annotation>
          <xs:appinfo>
            <Label>India</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IOT">
        <xs:annotation>
          <xs:appinfo>
            <Label>British Indian Ocean Territory</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IRL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Ireland</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IRN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Iran, Islamic Republic of</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IRQ">
        <xs:annotation>
          <xs:appinfo>
            <Label>Iraq</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ISL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Iceland</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ISR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Israel</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ITA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Italy</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="JAM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Jamaica</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="JEY">
        <xs:annotation>
          <xs:appinfo>
            <Label>Jersey</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="JOR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Jordan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="JPN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Japan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="KAZ">
        <xs:annotation>
          <xs:appinfo>
            <Label>Kazakhstan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="KEN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Kenya</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="KGZ">
        <xs:annotation>
          <xs:appinfo>
            <Label>Kyrgyzstan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="KHM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Cambodia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="KIR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Kiribati</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="KNA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Saint Kitts and Nevis</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="KOR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Korea, Republic of</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="KWT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Kuwait</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LAO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Lao People's Democratic Republic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LBN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Lebanon</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LBR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Liberia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LBY">
        <xs:annotation>
          <xs:appinfo>
            <Label>Libya</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LCA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Saint Lucia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LIE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Liechtenstein</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LKA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Sri Lanka</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LSO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Lesotho</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LTU">
        <xs:annotation>
          <xs:appinfo>
            <Label>Lithuania</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LUX">
        <xs:annotation>
          <xs:appinfo>
            <Label>Luxembourg</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="LVA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Latvia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAC">
        <xs:annotation>
          <xs:appinfo>
            <Label>Macao</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAF">
        <xs:annotation>
          <xs:appinfo>
            <Label>Saint Martin (French part)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MAR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Morocco</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MCO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Monaco</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MDA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Moldova, Republic of</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MDG">
        <xs:annotation>
          <xs:appinfo>
            <Label>Madagascar</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MDV">
        <xs:annotation>
          <xs:appinfo>
            <Label>Maldives</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MEX">
        <xs:annotation>
          <xs:appinfo>
            <Label>Mexico</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MHL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Marshall Islands</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MKD">
        <xs:annotation>
          <xs:appinfo>
            <Label>Macedonia, the former Yugoslav Republic of</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MLI">
        <xs:annotation>
          <xs:appinfo>
            <Label>Mali</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MLT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Malta</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MMR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Myanmar</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MNE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Montenegro</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MNG">
        <xs:annotation>
          <xs:appinfo>
            <Label>Mongolia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MNP">
        <xs:annotation>
          <xs:appinfo>
            <Label>Northern Mariana Islands</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MOZ">
        <xs:annotation>
          <xs:appinfo>
            <Label>Mozambique</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MRT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Mauritania</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MSR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Montserrat</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MTQ">
        <xs:annotation>
          <xs:appinfo>
            <Label>Martinique</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MUS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Mauritius</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MWI">
        <xs:annotation>
          <xs:appinfo>
            <Label>Malawi</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MYS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Malaysia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MYT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Mayotte</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NAM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Namibia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NCL">
        <xs:annotation>
          <xs:appinfo>
            <Label>New Caledonia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NER">
        <xs:annotation>
          <xs:appinfo>
            <Label>Niger</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NFK">
        <xs:annotation>
          <xs:appinfo>
            <Label>Norfolk Island</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NGA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Nigeria</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NIC">
        <xs:annotation>
          <xs:appinfo>
            <Label>Nicaragua</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NIU">
        <xs:annotation>
          <xs:appinfo>
            <Label>Niue</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NLD">
        <xs:annotation>
          <xs:appinfo>
            <Label>Netherlands</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NOR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Norway</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NPL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Nepal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NRU">
        <xs:annotation>
          <xs:appinfo>
            <Label>Nauru</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NZL">
        <xs:annotation>
          <xs:appinfo>
            <Label>New Zealand</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OMN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Oman</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PAK">
        <xs:annotation>
          <xs:appinfo>
            <Label>Pakistan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PAN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Panama</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PCN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Pitcairn</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PER">
        <xs:annotation>
          <xs:appinfo>
            <Label>Peru</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PHL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Philippines</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PLW">
        <xs:annotation>
          <xs:appinfo>
            <Label>Palau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PNG">
        <xs:annotation>
          <xs:appinfo>
            <Label>Papua New Guinea</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="POL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Poland</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRI">
        <xs:annotation>
          <xs:appinfo>
            <Label>Puerto Rico</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRK">
        <xs:annotation>
          <xs:appinfo>
            <Label>Korea, Democratic People's Republic of</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Portugal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PRY">
        <xs:annotation>
          <xs:appinfo>
            <Label>Paraguay</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PSE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Palestine, State of</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PYF">
        <xs:annotation>
          <xs:appinfo>
            <Label>French Polynesia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="QAT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Qatar</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="REU">
        <xs:annotation>
          <xs:appinfo>
            <Label>Réunion</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ROU">
        <xs:annotation>
          <xs:appinfo>
            <Label>Romania</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RUS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Russian Federation</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RWA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Rwanda</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SAU">
        <xs:annotation>
          <xs:appinfo>
            <Label>Saudi Arabia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SDN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Sudan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SEN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Senegal</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SGP">
        <xs:annotation>
          <xs:appinfo>
            <Label>Singapore</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SGS">
        <xs:annotation>
          <xs:appinfo>
            <Label>South Georgia and the South Sandwich Islands</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SHN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Saint Helena, Ascension and Tristan da Cunha</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SJM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Svalbard and Jan Mayen</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SLB">
        <xs:annotation>
          <xs:appinfo>
            <Label>Solomon Islands</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SLE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Sierra Leone</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SLV">
        <xs:annotation>
          <xs:appinfo>
            <Label>El Salvador</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SMR">
        <xs:annotation>
          <xs:appinfo>
            <Label>San Marino</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SOM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Somalia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SPM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Saint Pierre and Miquelon</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SRB">
        <xs:annotation>
          <xs:appinfo>
            <Label>Serbia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SSD">
        <xs:annotation>
          <xs:appinfo>
            <Label>South Sudan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="STP">
        <xs:annotation>
          <xs:appinfo>
            <Label>Sao Tome and Principe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SUR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Suriname</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SVK">
        <xs:annotation>
          <xs:appinfo>
            <Label>Slovakia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SVN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Slovenia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SWE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Sweden</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SWZ">
        <xs:annotation>
          <xs:appinfo>
            <Label>Swaziland</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SXM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Sint Maarten (Dutch part)</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SYC">
        <xs:annotation>
          <xs:appinfo>
            <Label>Seychelles</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SYR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Syrian Arab Republic</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TCA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Turks and Caicos Islands</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TCD">
        <xs:annotation>
          <xs:appinfo>
            <Label>Chad</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TGO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Togo</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="THA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Thailand</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TJK">
        <xs:annotation>
          <xs:appinfo>
            <Label>Tajikistan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TKL">
        <xs:annotation>
          <xs:appinfo>
            <Label>Tokelau</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TKM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Turkmenistan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TLS">
        <xs:annotation>
          <xs:appinfo>
            <Label>Timor-Leste</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TON">
        <xs:annotation>
          <xs:appinfo>
            <Label>Tonga</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TTO">
        <xs:annotation>
          <xs:appinfo>
            <Label>Trinidad and Tobago</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TUN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Tunisia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TUR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Turkey</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TUV">
        <xs:annotation>
          <xs:appinfo>
            <Label>Tuvalu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TWN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Taiwan, Province of China</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TZA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Tanzania, United Republic of</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UGA">
        <xs:annotation>
          <xs:appinfo>
            <Label>Uganda</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UKR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Ukraine</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UMI">
        <xs:annotation>
          <xs:appinfo>
            <Label>United States Minor Outlying Islands</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="URY">
        <xs:annotation>
          <xs:appinfo>
            <Label>Uruguay</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="USA">
        <xs:annotation>
          <xs:appinfo>
            <Label>United States of America</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UZB">
        <xs:annotation>
          <xs:appinfo>
            <Label>Uzbekistan</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="VAT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Holy See</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="VCT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Saint Vincent and the Grenadines</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="VEN">
        <xs:annotation>
          <xs:appinfo>
            <Label>Venezuela, Bolivarian Republic of</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="VGB">
        <xs:annotation>
          <xs:appinfo>
            <Label>Virgin Islands, British</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="VIR">
        <xs:annotation>
          <xs:appinfo>
            <Label>Virgin Islands, U.S.</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="VNM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Viet Nam</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="VUT">
        <xs:annotation>
          <xs:appinfo>
            <Label>Vanuatu</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WLF">
        <xs:annotation>
          <xs:appinfo>
            <Label>Wallis and Futuna</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WSM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Samoa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="YEM">
        <xs:annotation>
          <xs:appinfo>
            <Label>Yemen</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZAF">
        <xs:annotation>
          <xs:appinfo>
            <Label>South Africa</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZMB">
        <xs:annotation>
          <xs:appinfo>
            <Label>Zambia</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZWE">
        <xs:annotation>
          <xs:appinfo>
            <Label>Zimbabwe</Label>
          </xs:appinfo>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>

  <!--SubjectAreaListType-->

  <xs:complexType name="SubjectAreaListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of code values denoting Learning Areas and Subjects from either the NZ Curriculum
				or Te Marautanga o Aotearoa.
				</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:choice maxOccurs="unbounded">
        <xs:element name="SubjectArea" minOccurs="0" nillable="true" type="NZCodeSetsSubjectAreaType">
          <xs:annotation>
            <xs:appinfo>
              <sifChar>O</sifChar>
              <privacyRating />
            </xs:appinfo>
            <xs:documentation />
          </xs:annotation>
        </xs:element>
        <xs:element name="NCEASubjectArea" minOccurs="0" nillable="true" type="NZCodeSetsNCEASubjectAreaType">
          <xs:annotation>
            <xs:appinfo>
              <sifChar>O</sifChar>
              <privacyRating />
            </xs:appinfo>
            <xs:documentation />
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>


  <!--StaffSubjectListType-->

  <xs:complexType name="StaffSubjectListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Subject(s) Staff member is eligible to teach.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StaffSubject" maxOccurs="unbounded" type="StaffSubjectType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>This element contains Staff subjects they are eligible to teach together with the teaching preference.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StaffSubjectType-->

  <xs:complexType name="StaffSubjectType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>This element contains Staff subjects they are eligible to teach together with the teaching preference.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PreferenceNumber" minOccurs="0" nillable="true" type="xs:unsignedInt">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Priority of Subject to Teach.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Code" type="NZCodeSetsSubjectAreaType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>NZ education standardised code denoting LearningArea / SubjectArea</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="YearLevels" minOccurs="0" nillable="true" type="YearLevelListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Staff assignment to this particular subject area / learning area applies
					only for students enrolled in a particular set of year levels.   
					e.g.  "Asst. Head of Dept (Maths, Jnr)" could ony be responsible for Students in 
					year levels 9 &amp; 10, who are learning Mathematics.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--LanguageOfInstructionListType-->

  <xs:complexType name="LanguageOfInstructionListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Records the number of hours per week the Learner is taught in each language.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Language" maxOccurs="unbounded" type="LanguageOfInstructionType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The number of hours per week the Learner is taught in a specific language during the enrolment.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--LanguageOfInstructionType-->

  <xs:complexType name="LanguageOfInstructionType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>The number of hours per week the Learner is taught in a specific language during the enrolment.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Code" type="NZCodeSetsLanguageType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Code denoting the actual language of instruction.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Level" type="NZCodeSetsLanguageInstructionLevelType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The level of instruction that is made in the selected language.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--LearningStandardListType-->

  <xs:complexType name="LearningStandardListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of LearningStandardRefIds providing a manner of referring
				to a collection of LearningStandards.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="LearningStandardRefId" maxOccurs="unbounded" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--RelatedLearningStandardsListType-->

  <xs:complexType name="RelatedLearningStandardsListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of ObjectReferences to related LearningStandards.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RelatedLearningStandard" maxOccurs="unbounded" type="RelatedLearningStandardType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A member of the related LearningStandard list.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--RelatedLearningStandardType-->

  <xs:complexType name="RelatedLearningStandardType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A member of a list of related LearningStandard references.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="ObjectReferenceType">
        <xs:sequence>
          <xs:element name="Relationship" type="NZCodeSetsLearningStandardRelationshipTypeType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>Code describing the relationship from a LearningStandard to a related LearningStandard.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>


  <!--CredentialListType-->

  <xs:complexType name="CredentialListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of ObjectReferences providing a manner of referring
				to a collection of Credentials.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Credential" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--CourseListType-->

  <xs:complexType name="CourseListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of associated courses.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Course" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>An associated course.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ProgressReportAuthorListType-->

  <xs:complexType name="ProgressReportAuthorListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the staff members that compiled the progress report. A report can be authored by
				 a collective of individual class teachers, or may be compiled by a single author.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Author" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A generic object reference to a staff memberthat authored the progress report.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--TechnologyClassListType-->

  <xs:complexType name="TechnologyClassListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of  records of the Student's progress in particular classes from the Technology 
					curriculum. e.g. Hard Materials, Food Technology, Digital Design etc.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TechnologyClass" maxOccurs="unbounded" type="TechnologyClassType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation> A record of the Student's progress in a particular class from the Technology curriculum. </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--TechnologyClassType-->

  <xs:complexType name="TechnologyClassType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A record of the Student's progress in a particular class from the Technology curriculum. </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Class" type="NZCodeSetsTechnologyClassType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A code denoting the technology class the progress report covers.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Teacher" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Generic object reference to the staff member that taught the subject and assessed the student against the technology strand objectives.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="BehaviourComment" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Overall comment about the behaviour of the student over the course of the lessons in the Class.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EffortComment" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Overall comment about the effort the student has made in class</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StrandList" minOccurs="0" nillable="true" type="ClassStrandListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A record of the Student's progress in a set of learning strands 
					from the Technology curriculum, that were covered in the class</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ClassStrandListType-->

  <xs:complexType name="ClassStrandListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A record of the Student's progress in a set of learning strands 
					from the Technology curriculum, that were covered in the class.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Strand" maxOccurs="unbounded" type="ClassStrandType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A record of the Student's progress in a particular learning strand
					 from the Technology curriculum, that was covered in the class.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ClassStrandType-->

  <xs:complexType name="ClassStrandType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A record of the Student's progress in a particular learning strand 
						from the Technology curriculum, that was covered in the class.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="LearningStrand" type="NZCodeSetsTechnologyLearningStrandType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Code denoting the particular learning strand from the Technology curriculum, that was covered in the class, 
					and for which the student's progress is being reported.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AchievementObjectiveList" minOccurs="0" nillable="true" type="StrandAchievementObjectiveListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A record of the Student's progress in a set of achievement objectives from the 
					from the Technology curriculum strand, that was covered in the class.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StrandAchievementObjectiveListType-->

  <xs:complexType name="StrandAchievementObjectiveListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A record of the Student's progress in a set of achievement objectives from the 
					Technology curriculum strand, that was covered in the class.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AchievementObjective" maxOccurs="unbounded" type="StrandAchievementObjectiveType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A record of the Student's progress in a particular achievement objective
						 from the Technology curriculum strand, that was covered in the class. </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StrandAchievementObjectiveType-->

  <xs:complexType name="StrandAchievementObjectiveType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A record of the Student's progress in a particular achievement objective 
						from the Technology curriculum strand, that was covered in the class. </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AchievementObjective" type="NZCodeSetsStrandAchievementObjectiveType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Code denoting the particular achievement objective against which
					 the student's progress is being reported. </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CurriculumLevel" minOccurs="0" nillable="true" type="NZCodeSetsTechnologyCurriculumLevelType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Code denoting the technology curriculum level that the student's progress report
				 is being made against for this learning strand achievement objective. e.g. 2, 3, 4 or 5. </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProgressLevel" minOccurs="0" nillable="true" type="NZCodeSetsStrandAchievementProgressLevelType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Code denoting the level of progress the student has made against the particular learning 
					strand achievement objective. e.g. Beginner, Proficient, and Advanced. </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AchievementObjectiveDesc" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A description of what the achievement objective covers.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OverallStudentEffortNote" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A note about the student's overall effort in relation to this 
					achievement objective for this strand.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PracticalAbilityDesc" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A description of practical ability covered by the 
					achievement objective for the strand.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PracticalAbilityProgressNote" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A note about the student's practical ability progress in relation to
					 this achievement objective for this strand.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocumentList" minOccurs="0" nillable="true" type="DocumentListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Documents that relate to students progress in this strand achievement 
					objective, e.g. report, photos, media, documents etc.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StaffListType-->

  <xs:complexType name="StaffListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of associated staff members.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StaffMember" maxOccurs="unbounded" type="StaffListStaffMemberType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The individual staff member as a member of the StaffList and their role.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StaffListStaffMemberType-->

  <xs:complexType name="StaffListStaffMemberType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>The individual staff member as a member of the StaffList and their role.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="ObjectReferenceType">
        <xs:sequence>
          <xs:element name="Role" type="NZCodeSetsStaffRoleType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating />
              </xs:appinfo>
              <xs:documentation>Code describing the staff members role. Note: This role
				may affect the Teacher's access to the students data for
				those students who are members of the TeachingGroup.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>


  <!--StudentListType-->

  <xs:complexType name="StudentListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of references to the set of Students who are assigned to 
					the Teaching Group, SchoolCourse or AssessmentTask.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Student" maxOccurs="unbounded" type="StudentObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Student reference in the StudentList.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--RoomListType-->

  <xs:complexType name="RoomListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>List of rooms in which the scheduled activity is held. Used for onsite venues which are
					 represented in the source system as rooms. Can include large venues (ovals, library, etc), 
					 if they have been represented as rooms; source system practice varies.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RoomId" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The school's local identifier for the Room in which the teaching
					or scheduled activity is held.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--SchoolServiceType-->

  <xs:complexType name="SchoolServiceType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Contains Organisation properties that are specific to Organisations
				that are Providers of School education services.
				</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="CoEdStatus" minOccurs="0" nillable="true" type="NZCodeSetsSchoolCoEdStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A summary of the genders accepted by the school</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Decile" minOccurs="0" nillable="true">
        <xs:simpleType>
          <xs:restriction base="xs:integer">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>A description of the socio-economic position of a school's
				student community according to the MoE decile rating system.
				</xs:documentation>
            </xs:annotation>
            <xs:minInclusive value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
            <xs:maxInclusive value="10" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="NewEntrantPolicyList" minOccurs="0" nillable="true" type="EnactedPolicyListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of recognised policy choices adopted by the School.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AllowManualProvisioning" 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 school has a student management system.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchoolClassificationList" minOccurs="0" nillable="true" type="SchoolClassificationListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of School Classification descriptors that further describe the nature of a school</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchoolYearList" minOccurs="0" nillable="true" type="SchoolYearLevelListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of SchoolYear elements describing
				the genders of students accepted for enrolment at each year
				level.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TechnologyCentreName" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>
				The name of the Technology Centre that is run as part of the School;  Eg:  Marlborough Technology Centre
				is run as part of Bohally Intermediate School.
			</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--SchoolYearLevelListType-->

  <xs:complexType name="SchoolYearLevelListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of NZSchoolYearLevel elements, describing the Year Levels
				taught by the School, and the Co-Ed Status of each year level.
				</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SchoolYear" maxOccurs="unbounded" type="SchoolYearLevelType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--SchoolYearLevelType-->

  <xs:complexType name="SchoolYearLevelType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A descriptor for a particular Year Level offered by the school, including
				detail of the gender of students that are accepted for enrolment in this year level.
				</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="YearLevel">
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>Which year level are we describing?</xs:documentation>
            </xs:annotation>
            <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="FIRSTSchoolYearGenderId" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>This is the unique identifier for the combination of School Year, Gender 
				and Boarding received from FIRST.
				</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Gender" type="NZCodeSetsSchoolingGenderType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Which genders are accepted for enrolment in this Year Level?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Boarding" minOccurs="0" nillable="true" type="NZCodeSetsSchoolBoardingTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Says if the school has boarding and if so, if it is for girls only, boys only or both.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--YearLevelListType-->

  <xs:complexType name="YearLevelListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of NZSchoolYearLevel elements, describing the Year Levels
				taught to the Course or TeachingGroup.
				</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="YearLevel" maxOccurs="unbounded">
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>MR</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>The student Year Level that the staff member is responsible for. e.g.  "Junior Student Dean" could have responsibility for all students in year levels 9 and 10. May only contain the values 1 through to 13 inclusive.</xs:documentation>
            </xs:annotation>
            <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:sequence>
  </xs:complexType>


  <!--EnactedPolicyListType-->

  <xs:complexType name="EnactedPolicyListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of EnactedPolicy elements, describing the
				state legislated policy choices the school has adopted, and the
				time-period of that adoption.
				</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="EnactedPolicy" maxOccurs="unbounded" type="EnactedPolicyType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--EnactedPolicyType-->

  <xs:complexType name="EnactedPolicyType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A descriptor for a particular enacted policy that has been adopted by a school.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="EffectiveFrom" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date from which the school adopted the policy.  If not populated
				then this is the current/original policy of the school.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EffectiveTo" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date after which the school has no longer adopted the policy.  If not populated
				then the school has no planned date to end the policy.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Policy" type="NZCodeSetsEnactedPolicyType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Which recognised policy has been chosen?</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--SchoolClassificationListType-->

  <xs:complexType name="SchoolClassificationListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of Classification elements, further describing the
				nature of the school.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Classification" maxOccurs="unbounded" type="NZCodeSetsSchoolClassificationType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ECEServiceType-->

  <xs:complexType name="ECEServiceType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Contains Organisation properties that are specific to Organisations
				that are Providers of early childhood education services.
				</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Type" minOccurs="0" nillable="true" type="NZCodeSetsECEServiceTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code denoting the kind of ECE service. eg: Kindergarten, PLayCentre, Te Kohanga Reo, etc.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PrimaryLanguage" type="NZCodeSetsLanguageType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The primary language utilised by the ECE Service.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PrimaryLanguageOther" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Additional information about a language when one of the 'Other' language codes sets is selected.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--TertiaryServiceType-->

  <xs:complexType name="TertiaryServiceType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Contains Organisation properties that are specific to Organisations
				that are Providers of early tertiary education services.
				</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Type" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code denoting the kind of Tertiary service. eg: University, Wananga, etc.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--AddressListType-->

  <xs:complexType name="AddressListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of Address elements.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Address" maxOccurs="unbounded" type="AddressType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--AddressType-->

  <xs:complexType name="AddressType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>This element contains address data.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Type" minOccurs="0" nillable="true" type="NZCodeSetsAddressTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Code defining the class of the address: Urban, Rural, Delivery Service or Foreign.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Role" minOccurs="0" nillable="true" type="NZCodeSetsAddressRoleType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Describes how the Person/Organisation uses the Address</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Line1" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Address line 1.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Line2" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Address line 2.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Line3" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Address line 3.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Line4" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Address line 4.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Suburb" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The suburb part of urban addresses, or the 'RD No' part of rural addresses</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="City" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The city part of the address.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StateProvince" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The state or province code. StateTerritory Code only applicable if a non-New Zealand Address.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Country" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The country code.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PostalCode" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The ZIP/postal code.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GridLocation" minOccurs="0" nillable="true" type="GridLocationType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The latitude &amp; longitude of the location. Grid location values
				are derived from New Zealand Map Grid x,y coordinates and converted
				to Latitude and Longitude values per the World Geodetic System 1984 (G1762)
				</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StatisticalAreaList" minOccurs="0" nillable="true" type="StatisticalAreaListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A list of Statistical Areas containing the location.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--GridLocationType-->

  <xs:complexType name="GridLocationType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>This element contains a map location. The GridLocation
				element is utilized within the Address element.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Latitude">
        <xs:simpleType>
          <xs:restriction base="xs:decimal">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating />
              </xs:appinfo>
              <xs:documentation>Latitude in decimal degrees.</xs:documentation>
            </xs:annotation>
            <xs:minInclusive value="-90" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
            <xs:maxInclusive value="90" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Longitude">
        <xs:simpleType>
          <xs:restriction base="xs:decimal">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating />
              </xs:appinfo>
              <xs:documentation>Longitude in decimal degrees.</xs:documentation>
            </xs:annotation>
            <xs:minInclusive value="-180" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
            <xs:maxInclusive value="180" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--CountryListType-->

  <xs:complexType name="CountryListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation />
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Country" maxOccurs="unbounded" type="ISO3166CountryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A person's country of citizenship.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--LocationListType-->

  <xs:complexType name="LocationListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of Location elements.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Location" maxOccurs="unbounded" type="LocationType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--LocationType-->

  <xs:complexType name="LocationType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>This element contains data about a geographical location.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Description" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A description for the Location.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LocationNum" minOccurs="0" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Number identifying the individual location within the set of locations used by the Provider.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Address" minOccurs="0" nillable="true" type="AddressType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The physical address of the Location</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GridLocation" minOccurs="0" nillable="true" type="GridLocationType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The latitude &amp; longitude of the location. Grid location values
				are derived from New Zealand Map Grid x,y coordinates and converted
				to Latitude and Longitude values per the World Geodetic System 1984 (G1762)
				</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StatisticalAreaList" minOccurs="0" nillable="true" type="StatisticalAreaListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A list of Statistical Areas containing the location.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StatisticalAreaListType-->

  <xs:complexType name="StatisticalAreaListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of Statistical Areas. It may contain
				a StatisticalArea element for each of the
				following spatial unit types:</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StatisticalArea" maxOccurs="unbounded" type="StatisticalAreaType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A code denoting one of the following spacial unit types:</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StatisticalAreaType-->

  <xs:complexType name="StatisticalAreaType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A particular statistical area defined by Statistics New Zealand.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SpatialUnitType" type="NZCodeSetsSpatialUnitTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Denotes the type of Spatial Unit that the
				StatisticalArea code refers to. (eg: Teritorial Authority,
				General Electoral District, etc.)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Code" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A valid value defined by the nominated spatial unit
				type, defined by Statistics New Zealand in one of the
				following statistical area defintion standards:</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--PersonInfoType-->

  <xs:complexType name="PersonInfoType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>The personal information collected about students.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Name" type="BaseNameType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A name used by the person </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OtherNameList" minOccurs="0" nillable="true" type="OtherNameListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Previous, alternate or other names or aliases
				associated with the person.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="VerifiedName" minOccurs="0" nillable="true" type="VerifiedNameType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The verified name of the person.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Demographics" minOccurs="0" nillable="true" type="DemographicsType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Details of the person’s demographic properties</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AddressList" minOccurs="0" nillable="true" type="AddressListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The person's address(es) - one or more addresses</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EmailList" minOccurs="0" nillable="true" type="EmailListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The person's e-mail address(es) - one or more emails.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PhoneNumberList" minOccurs="0" nillable="true" type="PhoneNumberListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The person's phone number(s) - one or more phone numbers.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HouseholdContactInfoList" minOccurs="0" nillable="true" type="HouseholdContactInfoListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The person's household/s contact information. A list of
				one or more household’s contact information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PersonPhoto" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A photo of the person. A person photo is stored in Document against the student with a document type of Person Photo.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MedicalNeedList" minOccurs="0" nillable="true" type="MedicalNeedListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A list of a persons known medical needs.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--BaseCommunicationChannelType-->

  <xs:complexType name="BaseCommunicationChannelType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A set of attributes common to multiple kinds of communication channel</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Notes" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Notes on when / how to use the communication channel. eg: Phone after 4pm</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Preference" minOccurs="0" nillable="true" type="xs:unsignedInt">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Preference number indicating an order in which communication channels should be used
				when contacting person or organisation.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Usage" minOccurs="0" nillable="true" type="NZCodeSetsCommunicationUsageType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A code describing the acceptable usage of a person or organisation's communication channel</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--BaseNameType-->

  <xs:complexType name="BaseNameType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Base type, without attributes, for Name elements, primarily to allow structure to be leveraged with different Type attribute values.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Title" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A title or prefix associated with the name.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FamilyName" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Also known as Last Name, although some cultures may not present a family name as the last name.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GivenName" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Also known as First Name, although some cultures may
				not present this name as the first element in a name.  May
				contain a composite of all given names.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MiddleName" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Where more than one Given Name, these may be combined
				in one composite field or else populated in several
				elements.
				</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FamilyNameFirst" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>An indicator used to identify the naming conventions
				used by some predominantly non-European, ethnic or
				language groups and related to the display nature of a
				name.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreferredFamilyName" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A preferred version of the Family Name. Note:A name
				cannot have both a Preferred Family and Preferred Given
				Name within the same Name structure – only one of these
				fields should be populated. If a person does have both a
				Preferred Family and Preferred Given Name then this must
				be populated as a separate Name of type ‘Preferred’.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreferredFamilyNameFirst" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>An indicator used to identify the naming conventions
				used by some predominantly non-European, ethnic or
				language groups and related to the display nature of a
				name.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreferredGivenName" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A preferred version of the Given Name. Note: A name
				cannot have both a Preferred Family and Preferred Given
				Name within the same Name structure – only one of these
				fields should be populated. If a person does have both a
				Preferred Family and Preferred Given Name then this must
				be populated as a separate Name of type ‘Preferred’.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Suffix" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Textual suffix like PHD, JP, BSc. </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FullName" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A combination of all name elements as one composite text element</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Type" minOccurs="0" nillable="true" type="NZCodeSetsNameUsageTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>
				Where a person has more than one name, the usage type
				distinguishes the purposes or their preference for use of
				the name.
			</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IsVerified" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>
				Flag indicating that this name has been verified.
			</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--VerifiedNameType-->

  <xs:complexType name="VerifiedNameType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Extension of BaseNameType including name verification data</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="BaseNameType">
        <xs:sequence>
          <xs:element name="Verification" minOccurs="0" nillable="true" type="VerificationEventType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating />
              </xs:appinfo>
              <xs:documentation>
					The verification event that verified the person's name.
				</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>


  <!--OtherNameListType-->

  <xs:complexType name="OtherNameListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar>O</sifChar>
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Previous, alternate or other names or aliases associated with a person.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Name" maxOccurs="unbounded" type="VerifiedNameType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Name of the person. Note: Type value of LGL may not occur here.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--DemographicsType-->

  <xs:complexType name="DemographicsType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Demographics information about the student, contact, staff member, etc.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="BirthDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The person's date of birth.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DateOfDeath" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The person's date of death.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfBirth" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The person's place of birth - like village, town, city etc.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CountryOfBirth" minOccurs="0" nillable="true" type="ISO3166CountryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The person's country of birth.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CitizenshipList" minOccurs="0" nillable="true" type="CountryListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="CitizenshipStatus" minOccurs="0" nillable="true" type="NZCodeSetsCitizenshipStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The Citizenship or Residency status of the Person</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CitizenshipVerification" minOccurs="0" nillable="true" type="VerificationEventType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>
					The verification event that verified the residency
					status of the person.  Absence of a verification event
					indicates that the residency was not verified against
					an identity document.
				</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Gender" minOccurs="0" nillable="true" type="NZCodeSetsGenderType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The gender with which the Person identifies, according to
				NZ Standard Gender Identity codes.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LanguageList" minOccurs="0" nillable="true" type="LanguageListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>List of languages an individual uses to communicate.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CountryArrivalDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Date the person first arrived in the country.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EthnicityList" minOccurs="0" nillable="true" type="EthnicityListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>One or more ethnic groups with which the person identifies.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IwiAffiliationList" minOccurs="0" nillable="true" type="IwiAffiliationListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A list of one or more iwi with which the person has an affiliation.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReligiousAffiliationList" minOccurs="0" nillable="true" type="ReligiousAffiliationListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A list of one or more religions with which the person has an affiliation.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--LanguageListType-->

  <xs:complexType name="LanguageListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>A list of languages that an individual uses to communicate</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Language" maxOccurs="unbounded" type="LanguageBaseType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--LanguageBaseType-->

  <xs:complexType name="LanguageBaseType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>Low</privacyRating>
      </xs:appinfo>
      <xs:documentation>A language that an individual uses to communicate.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Code" type="NZCodeSetsLanguageType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The code representing the specific language that an individual uses to communicate.�</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Usage" minOccurs="0" nillable="true" type="NZCodeSetsLanguageUsageType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The usage of the language by a person, potentially
				indicating capability and preference for the language.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Dialect" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Specific dialect of a person's language.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProficiencyList" minOccurs="0" nillable="true" type="LanguageProficiencyListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A list of the person's proficiency in the language in regards to speaking, reading and writing.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--LanguageProficiencyListType-->

  <xs:complexType name="LanguageProficiencyListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>The person's proficiency in the language in regards to speaking, reading and writing.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Proficiency" maxOccurs="unbounded" type="LanguageProficiencyType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The person's proficiency in the language in regards to speaking, reading and writing.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--LanguageProficiencyType-->

  <xs:complexType name="LanguageProficiencyType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>The person's proficiency in the language in regards to speaking, reading and writing.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Level" type="NZCodeSetsLanguageProficiencyLevelType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The person's proficency level in the language in regards to reading, writing or speaking.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Type" type="NZCodeSetsLanguageProficiencyTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The type of language proficency, e.g. speaking, writing or reading.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--EmailListType-->

  <xs:complexType name="EmailListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of e-mail addresses associated with an individual or organization.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Email" maxOccurs="unbounded" type="EmailType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--EmailType-->

  <xs:complexType name="EmailType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>
					This element represents an e-mail address of one of a
					number of types and occurs in objects such as
					StudentPersonal, StaffPersonal,
					StudentContactPersonal, etc.
				</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="BaseCommunicationChannelType">
        <xs:sequence>
          <xs:element name="Type" minOccurs="0" nillable="true" type="NZCodeSetsEmailTypeType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>High</privacyRating>
              </xs:appinfo>
              <xs:documentation>A Code denoting how the owner of the e-mail address describes it.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="SourceOrganisation" minOccurs="0" nillable="true" type="OrganisationObjectReferenceType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>High</privacyRating>
              </xs:appinfo>
              <xs:documentation>Generic object reference to the organisation that provided the email address.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Address" type="xs:normalizedString">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating />
              </xs:appinfo>
              <xs:documentation>The actual email address.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>


  <!--PhoneNumberListType-->

  <xs:complexType name="PhoneNumberListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Lists phone numbers associated with an entity.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PhoneNumber" maxOccurs="unbounded" type="PhoneNumberType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--PhoneNumberType-->

  <xs:complexType name="PhoneNumberType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>This element represents a phone number and occurs within
				objects such as StudentPersonal, StaffPersonal, etc.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="BaseCommunicationChannelType">
        <xs:sequence>
          <xs:element name="Type" minOccurs="0" nillable="true" type="NZCodeSetsTelephoneNumberTypeType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>High</privacyRating>
              </xs:appinfo>
              <xs:documentation>Code that specifies what type of phone number this is.
				Note: A subset of valid values may be specified in data
				objects.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Number" type="xs:normalizedString">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating />
              </xs:appinfo>
              <xs:documentation>Phone number.  Free-form, but typical New Zealand formats include:</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Extension" minOccurs="0" nillable="true" type="xs:normalizedString">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating />
              </xs:appinfo>
              <xs:documentation>Phone number extension.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="ListedStatus" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>High</privacyRating>
              </xs:appinfo>
              <xs:documentation>Indicates whether or not the phone number is available to the public.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>


  <!--RelationshipType-->

  <xs:complexType name="RelationshipType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Describes the relationship between a Student and StudentContact.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Code" type="NZCodeSetsRelationshipToStudentType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Code representing the relationship.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OtherTypeDescription" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A free text description of relationship type, where
				Relationship To Student Type is set to ‘Other’, eg
				‘Au-pair’, ‘Neighbour’</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ContactFlagsType-->

  <xs:complexType name="ContactFlagsType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Contains Yes/No characteristics of the contact person's role with the student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ParentLegalGuardian" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Does the individual have parental or legal guardianship responsibility for the student?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LivesWith" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Does the student live with this contact?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AccessToRecords" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Does this contact have access to the student's records?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReceivesAssessmentReport" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>In particular, should this contact receive a copy of the student report? </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EmergencyContact" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Should this contact be notified in case of emergency?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CivilEmergencyContact" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Does the contact have pickup rights?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CivilDefenceEmergencyContact" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Should this contact be notified in case of civil defense emergency
				where the normal emergency contact is not close to a hosting school?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DisciplinaryContact" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Is this person to be contacted in case of disciplinary action?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AttendanceContact" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Should this contact be notified in case of an attendance issue?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PrimaryCareProvider" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Does this person provide daily living or personal assistance to the student?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FeesBilling" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Is this the contact responsible for Payment of Fees?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FeesAccess" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Does this contact have access to fees information?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FamilyMail" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Does this person receive family mail?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CourtOrder" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Is there a Protection Order, Restraining Order or some other court order
				preventing the Person from having contact with the Student?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HealthContact" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Is this student contact a healthcare provider for the student?</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--HouseholdContactInfoListType-->

  <xs:complexType name="HouseholdContactInfoListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>List of Households this Person is associated with</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="HouseholdContactInfo" maxOccurs="unbounded" type="HouseholdContactInfoType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Common element used to supply information about a particular household a person is a member of.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--HouseholdContactInfoType-->

  <xs:complexType name="HouseholdContactInfoType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Common element used to supply information about a particular household a person is a member of.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PreferenceNumber" minOccurs="0" nillable="true" type="xs:unsignedInt">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Priority of Household Contact in relation to this Person.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HouseholdContactId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Local Household Id</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HouseholdSalutation" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Salutation to be used in addressing this household.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AddressList" minOccurs="0" nillable="true" type="AddressListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="EmailList" minOccurs="0" nillable="true" type="EmailListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>List of Email elements.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PhoneNumberList" minOccurs="0" nillable="true" type="PhoneNumberListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>List of PhoneNumber elements.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--HouseholdListType-->

  <xs:complexType name="HouseholdListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of HouseholdContactIds, from the Student's HouseholdContactInfoList
				that the StudentContact is also a member of.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="HouseholdId" maxOccurs="unbounded" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Repeatable element containing the HouseholdContactId of a household identifier from 
				the Student's HouseholdContactInfoList, that the StudentContact is also a member of.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--EduOrganisationType-->

  <xs:complexType name="EduOrganisationType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Generic organisation that operates within the education sector.
					For example Providers, Communities of Learning, Ministry local offices, etc.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AddressList" minOccurs="0" nillable="true" type="AddressListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The set of postal and other addresses that the Organisation uses</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CommunicationChannelList" minOccurs="0" nillable="true" type="CommunicationChannelListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of one or more methods of communication with the organisation</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ContactList" minOccurs="0" nillable="true" type="ContactListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of one or more cotact persons related to the organisation</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EducationRegion" minOccurs="0" nillable="true" type="NZCodeSetsEducationRegionType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A region of New Zealand defined by the Ministry of Education for adminstrative purposes</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SpecialEducationDistrict" minOccurs="0" nillable="true" type="NZCodeSetsSpecialEducationDistrictType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The special education district the provider belongs to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EmailList" minOccurs="0" nillable="true" type="EmailListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The set of contact email addresses that the Organisation uses</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EntityClose" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Closing date of entity. Only present for closed providers.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EntityOpen" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Opening date of entity.  For proposed schools this will
				be the projected opening date.  For open schools this may
				not be present.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LocationList" minOccurs="0" nillable="true" type="LocationListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of one or more locations, from which the
				organisation operates or provides a service.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Name" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The normal business name of the Organisation</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PhoneNumberList" minOccurs="0" nillable="true" type="PhoneNumberListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The set of contact phone numbers that the Organisation uses</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RelatedOrganisationList" minOccurs="0" nillable="true" type="RelatedOrganisationListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of other organisations that are related to the Provider</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OperationalStatus" minOccurs="0" nillable="true" type="NZCodeSetsOperationalStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Current status of the Provider</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OperationalStatusReason" minOccurs="0" nillable="true" type="NZCodeSetsOperationalStatusReasonType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The reason the operational status of the organisation was changed.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Type" type="NZCodeSetsOrganisationTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Describes the nature of the Organisation;  for Schools this indicate
				the schooling levels offered.
				</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SectorRole" minOccurs="0" nillable="true" type="NZCodeSetsOrganisationSectorRoleType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code denoting the role the organisation plays within the education sector,
				 e.g. School Sector Institution, Learning Support Cluster, etc.
				</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProviderSMS" minOccurs="0" nillable="true" type="NZCodeSetsSchoolManagementSystemType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name of the School Management System (SMS) that the provider is currently using. Note: not all education providers use an SMS.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TeRitoConfig" minOccurs="0" nillable="true" type="TeRitoConfigurationType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Provides iinformation specific to Te Rito, e.g. which functionality in
				 Te Rito an organisation (school, ECE etc.) is utilising.
				</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IsLicencedECEServiceProvider" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates whether or not an ECE Service Provider Organisation is a Licenced ECE Service Provider.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IsPlaygroupServiceProvider" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates whether or not an ECE Service Provider Organisation is a Playgroup Service Provider.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ECEServiceProviderOwnershipType" minOccurs="0" nillable="true" type="NZCodeSetsECEServiceProviderOwnershipTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The type of ECE Service Provider ownership, e.g. Sole Trader, 
				Company, Charitable Trust etc.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--TeRitoConfigurationType-->

  <xs:complexType name="TeRitoConfigurationType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Indicates which features of the Te Rito platform the organisation has access to within the Te Rito platform.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DataAnalysisDashboardsInd" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates whether or not the organisation has access to the data analysis dashboards within the Te Rito platform.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StandardisedLearningSupportRegisterInd" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates whether or not the organisation has access to the  within the Te Rito platform.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="VirtualLearningEnvironmentInd" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates whether or not the organisation has access to the VLE within the Te Rito platform.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ContactListType-->

  <xs:complexType name="ContactListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of people's contact details</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Contact" maxOccurs="unbounded" type="ContactType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ContactType-->

  <xs:complexType name="ContactType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A particular person's contact details</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Name" type="BaseNameType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The contact's name</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PositionTitle" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The title the contact has within the Organisation being contacted</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Role" minOccurs="0" nillable="true" type="NZCodeSetsOrganisationContactRoleType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The role the contact plays within the Organisation being contacted</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AddressList" minOccurs="0" nillable="true" type="AddressListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="EmailList" minOccurs="0" nillable="true" type="EmailListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>List of Email elements.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PhoneNumberList" minOccurs="0" nillable="true" type="PhoneNumberListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>List of PhoneNumber elements.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--CommunicationChannelListType-->

  <xs:complexType name="CommunicationChannelListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of people/organisation's ccommunications channels</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Channel" maxOccurs="unbounded" type="CommunicationChannelType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--CommunicationChannelType-->

  <xs:complexType name="CommunicationChannelType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A particular person or organisation's communications method</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="BaseCommunicationChannelType">
        <xs:sequence>
          <xs:element name="Type" minOccurs="0" nillable="true" type="NZCodeSetsCommunicationChannelTypeType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating />
              </xs:appinfo>
              <xs:documentation>A code classifying the Communication's method</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Value" type="xs:string">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating />
              </xs:appinfo>
              <xs:documentation>The unique value that provides access to the channel. eg: URL for a website;
				Facebook page addess, Twitter handle.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>


  <!--RelatedOrganisationListType-->

  <xs:complexType name="RelatedOrganisationListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of an Organisation's related organisations</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RelatedOrganisation" maxOccurs="unbounded" type="RelatedOrganisationType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--RelatedOrganisationType-->

  <xs:complexType name="RelatedOrganisationType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Extends ObjectReferenceType to add an extra element, OrganisationType,
				describing the nature of the related organisation.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="ObjectReferenceType">
        <xs:sequence>
          <xs:element name="StartDate" minOccurs="0" nillable="true" type="xs:date">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>The start date of the relationship between the two organisations</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="EndDate" minOccurs="0" nillable="true" type="xs:date">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>The end date of the relationship between the two organisations</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Type" type="NZCodeSetsOrganisationRelationshipTypeType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>Code denoting the nature of the relationship between the two Organisations</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>


  <!--VerificationEventType-->

  <xs:complexType name="VerificationEventType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A record of how information about a person has been
				verified. For example, verification of name, date of
				birth, citizenship.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Source" type="NZCodeSetsVerificationSourceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code denoting the source of the person's identity or eligibility verificaiton. 
				Principally refers to an identity document type (eg passport) but may also
				include a type of business decision taken to accept an
				assertion of identity and eligibility status (eg principal
				discretion).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocumentSerialNumber" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The serial number on the document that was used to verify the name or birthdate.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocumentExpiryDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The expiry date on the document that was used to verify the name or birthdate.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IsConfirmed" type="xs:boolean">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>If true then verification has been confirmed by MoE.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Timestamp" minOccurs="0" nillable="true" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date &amp; time that the VerificationEvent took place.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Provider" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the provider (eg school) that provided the verification.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--EthnicityListType-->

  <xs:complexType name="EthnicityListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of one or more ethnic groups with which a person identifies.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Ethnicity" maxOccurs="unbounded" type="EthnicityType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--EthnicityType-->

  <xs:complexType name="EthnicityType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>An ethnic group with which the person identifies, and if there is more than one, their order of preference.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PreferenceOrderNumber" minOccurs="0" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The order of preference for the person's ethnicity.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Code" type="NZCodeSetsEthnicityType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>An ethnic group with which the person identifies.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--IwiAffiliationListType-->

  <xs:complexType name="IwiAffiliationListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of one or more Iwi with which a person affiliates.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Iwi" maxOccurs="unbounded" type="IwiType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>An iwi the person is associated to.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--IwiType-->

  <xs:complexType name="IwiType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>An iwi the person is affiliated to.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Code" type="NZCodeSetsIwiType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The code of the iwi the person is affiliated to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreferenceOrderNumber" minOccurs="0" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Indicates the persons preferred Iwi. The order of preference for the person's Iwi. '1' is their first preference. If left NULL means no preference is set and defers to any Iwi with a preference of '1'.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HapuAffiliationList" minOccurs="0" nillable="true" type="HapuAffiliationListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A list of one or more affiliations of a person with a Hapū within an Iwi.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--HapuAffiliationListType-->

  <xs:complexType name="HapuAffiliationListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of one or more affiliations of a person with a Hapū within an Iwi.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Hapu" maxOccurs="unbounded" type="HapuType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A Hapū a person is affiliated with.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--HapuType-->

  <xs:complexType name="HapuType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>An hapu the person is affiliated to.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="HapuName" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The name of a Hapū that the person is affiliated with.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreferenceOrderNumber" minOccurs="0" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Indicates the persons preferred Hapu. The order of preference for the person's Hapu. '1' is their first preference. If left NULL means no preference is set and defers to any Hapu with a preference of '1'.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ReligiousAffiliationListType-->

  <xs:complexType name="ReligiousAffiliationListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of one or more religions with which a person affiliates.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ReligiousAffiliation" maxOccurs="unbounded" type="NZCodeSetsReligionType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--HealthcareServiceInfoType-->

  <xs:complexType name="HealthcareServiceInfoType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Details of a healthcare service provided by the student contact, for example if the contact is a doctor or dentist.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="OrganisationName" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name of the healthcare service, eg: 'Martinborough Health Centre'</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OrganisationPhoneNum" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The name phone number of the healthcare service</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Notes" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Who at the healthservice is the Student's regular e.g. 'Dr Phillips'</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Type" type="NZCodeSetsHealthcareServiceTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>What kind of healthcare service is provided to the Student by the contact?</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--RelatedToListType-->

  <xs:complexType name="RelatedToListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>List of objects that this document relates to, e.g. a Wellbeing Response or Characteristic, Physical Restraint.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RelatedTo" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>An object that this document relates to, e.g. a Wellbeing Response or Characteristic, Physical Restraint.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--PersonDocumentRoleListType-->

  <xs:complexType name="PersonDocumentRoleListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>The list of people associated to a document and their role in relation to it,
					 e.g. author, owner, reviewer, subject of.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PersonDocumentRole" maxOccurs="unbounded" type="PersonDocumentRoleType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A person associated to a document and their role in relation to it,
					 e.g. author, owner, reviewer, subject of.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--PersonDocumentRoleType-->

  <xs:complexType name="PersonDocumentRoleType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A person associated to a document and their role in
				relation to it, e.g. author, owner, reviewer, subject of.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Role" minOccurs="0" nillable="true" type="NZCodeSetsDocumentRoleType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A code set denoting the role a person performs in relation
				to a document and their role in relation to it, e.g. author,
				owner, reviewer, subject of.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:choice>
        <xs:element name="Person" minOccurs="0" nillable="true" type="ObjectReferenceType">
          <xs:annotation>
            <xs:appinfo>
              <sifChar>O</sifChar>
              <privacyRating />
            </xs:appinfo>
            <xs:documentation>A non student person associated to a document and their role in relation to it, e.g. author, owner, reviewer, subject of.</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="Student" minOccurs="0" nillable="true" type="StudentObjectReferenceType">
          <xs:annotation>
            <xs:appinfo>
              <sifChar>O</sifChar>
              <privacyRating />
            </xs:appinfo>
            <xs:documentation>A student associated to a document and their role in relation to it, e.g. author, owner, reviewer, subject of.</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>


  <!--MedicalNeedListType-->

  <xs:complexType name="MedicalNeedListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of a persons known medical needs.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="MedicalNeed" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A persons known medical need.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StudentSubjectChoiceListType-->

  <xs:complexType name="StudentSubjectChoiceListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of subject areas choices that can be made, or have been made by a Student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentSubjectChoice" maxOccurs="unbounded" type="StudentSubjectChoiceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>An individual Subject choice that can be made, or has been made by a Student.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StudentSubjectChoiceType-->

  <xs:complexType name="StudentSubjectChoiceType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>An individual Subject choice that can be made, or has been made by a Student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PreferenceNumber" minOccurs="0" nillable="true" type="xs:unsignedInt">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The student's preference for this subject, with respect
					to the other subject choices in the list.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Code" type="NZCodeSetsSubjectAreaType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>MoE code denoting the chosen subject / learning area.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--EarlyChildhoodEducationType-->

  <xs:complexType name="EarlyChildhoodEducationType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A summary of the early childhood education the student received before enrolling in their first school.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Type" minOccurs="0" nillable="true" type="NZCodeSetsEarlyChildhoodEducationTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>  The type of early childhood education the student received. </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HoursAttended" minOccurs="0" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The total number of hours of early childhood education attended, prior to enrolling in their first school.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StudentECEEnrolmentType-->

  <xs:complexType name="StudentECEEnrolmentType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Defines information related to a student's enrolment at
					an Early Childhood Education (ECE) Provider.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ECEYearLevel" minOccurs="0" nillable="true" type="NZCodeSetsECEYearLevelType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code set denoting the year level of students attending early childhood education.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Curriculum" minOccurs="0" nillable="true" type="NZCodeSetsCurriculumType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code denoting which part of the National Curriculum (NZ Curriculum or Te Marautanga o Aotearoa) the ECE learner is enrolled in.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StudentTertiaryEnrolmentType-->

  <xs:complexType name="StudentTertiaryEnrolmentType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Defines information related to a student's enrolment at
					a Tertiary Education Provider.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Type" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The type of tertiary education the student is enrolling in.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StudentSchoolEnrolmentListType-->

  <xs:complexType name="StudentSchoolEnrolmentListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of school enrolments, one for each academic year (or part thereof) that the Student
				was enroled at the particular Provider.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SchoolEnrolment" maxOccurs="unbounded" type="StudentSchoolEnrolmentType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Defines information related to a student's enrolment at a school education Provider 
					for a particular academic year (or part thereof)</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StudentSchoolEnrolmentType-->

  <xs:complexType name="StudentSchoolEnrolmentType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar>O</sifChar>
        <privacyRating>High</privacyRating>
      </xs:appinfo>
      <xs:documentation>Defines information related to a student's enrolment at a school education Provider 
					for a particular academic year (or part thereof)</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SchoolCalendarYear" minOccurs="0" nillable="true" type="xs:gYear">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>School year for which this enrolment is applicable,
					expressed as the four-digit year in which the school year
					ends (eg 2018).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>  The date the student started at the school.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MembershipType" type="NZCodeSetsSchoolEnrolmentTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The type of enrolment as it relates to this school, 
					eg whether base school, co-enrolment. </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="YearLevel" minOccurs="0" nillable="true">
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>High</privacyRating>
              </xs:appinfo>
              <xs:documentation>Represents the year level at which the student is considered to be predominantly taught. For example – Year 10, Year 11. Can only contain the values 1 through to 13 inclusive.</xs:documentation>
            </xs:annotation>
            <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="EligibilityCriteria" minOccurs="0" nillable="true" type="NZCodeSetsEligibilityCriteriaType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Records the Student's eligibility to enrol / for funding.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EligibilityVerification" minOccurs="0" nillable="true" type="VerificationEventType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Records how the Student's eligibility to enrol / for funding was verified by the
					school staff during the enrolment process.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FTE" minOccurs="0" nillable="true">
        <xs:simpleType>
          <xs:restriction base="xs:decimal">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>Full-time equivalent numeric value of the student's
					course load during this enrollment, expressed in decimal
					form, where 1.00 represents a full-time enrolment.</xs:documentation>
            </xs:annotation>
            <xs:minInclusive value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
            <xs:maxInclusive value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
            <xs:fractionDigits value="2" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="FundingType" minOccurs="0" nillable="true" type="NZCodeSetsStudentFundingTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The student classification for MoE funding purposes</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FundingYearLevel" minOccurs="0" nillable="true">
        <xs:simpleType>
          <xs:restriction base="xs:int">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>High</privacyRating>
              </xs:appinfo>
              <xs:documentation>Indicates the number of years for which funding has been provided by MoE. Must only contain values from 0 through to 15 inclusive.</xs:documentation>
            </xs:annotation>
            <xs:minInclusive value="0" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
            <xs:maxInclusive value="15" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Curriculum" type="NZCodeSetsCurriculumType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code denoting which half of the National Curriculum
					(NZ Curriculum or Te Marautanga o Aotearoa) the student is enrolled in.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CurriculumLevel">
        <xs:simpleType>
          <xs:restriction base="xs:unsignedInt">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>Which level of the National Curriculum (1-5) is the student enrolling in?</xs:documentation>
            </xs:annotation>
            <xs:minInclusive value="1" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
            <xs:maxInclusive value="5" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="LanguageOfInstructionList" minOccurs="0" nillable="true" type="LanguageOfInstructionListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>How much instruction has the student received in which languages?</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TimeInImmersion" minOccurs="0" nillable="true" type="xs:unsignedInt">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The number of years the student has been in Te Reo Māori immersion education.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Section9Agreement" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates whether or not the student is enrolled under a Section 9 agreement</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NZQA" minOccurs="0" nillable="true" type="NZQAEnrolmentType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>NZQA details for a student for this school year.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OngoingResourceScheme" minOccurs="0" nillable="true" type="NZCodeSetsOngoingResourceSchemeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates the level of ORS funding the student receives.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubjectChoiceList" minOccurs="0" nillable="true" type="StudentSubjectChoiceListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Student’s choice of general subjects and learning areas to be studied during the school year. 
					Not to be confused with CourseChoiceList which allows students to choose specific courses.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CourseChoiceList" minOccurs="0" nillable="true" type="StudentCourseChoiceListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Student’s choice of courses to be studied during the school year. Not to be confused
				with SubjectChoiceList which allows students to choose general subjects and learning areas
				rather than specific courses.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CoEnrolment" minOccurs="0" nillable="true" type="StudentSchoolCoEnrolmentType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Describes the student's enrolment with their base school in the
					case where this enrolment is not a base school enrolment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="InternationalEnrolment" minOccurs="0" nillable="true" type="InternationalSchoolEnrolmentType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Additional information collected for international enrolments.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StudentConsentList" minOccurs="0" nillable="true" type="StudentConsentListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>A list of student consent information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AcademicAttainmentGoalList" minOccurs="0" nillable="true" type="AcademicAttainmentGoalListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The academic attainment goals of the student when they enrol, e.g. they wish to achieve a certain qualification.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreEnrolmentCancellation" minOccurs="0" nillable="true" type="PreEnrolmentCancellationType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Details of why the school pre-enrolment was cancelled.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--NZQAEnrolmentType-->

  <xs:complexType name="NZQAEnrolmentType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>NZQA details for a student for this school year.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="EnrolmentId" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The student's NZQA enrolment Id.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FeeAmount" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Amount paid by student to school for current year's NZQA fees.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FinancialAssistance" minOccurs="0" nillable="true" type="NZCodeSetsNZQAFinancialAssistanceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Code set denoting the type of financial assistance the student is receiving.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SortCode" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Student’s NZQA sort code, e.g. 13AB. Sort order for admission slips.
				 Often the form class of the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubmitterName" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Full name of person submitting student information to NZQA.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubmitterEmailAddress" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>E-mail address of person submitting student information to NZQA.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WithdrawnAllAssessmentsInd" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates that the student has withdrawn from all NZQA assessments.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--AcademicAttainmentGoalListType-->

  <xs:complexType name="AcademicAttainmentGoalListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>The academic attainment goals of the student when they
				enrolment, e.g. they wish to achieve a certain
				qualification.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AttainmentGoal" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The student's academic attainment goal at the time of enrolment.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StudentSchoolCoEnrolmentType-->

  <xs:complexType name="StudentSchoolCoEnrolmentType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar>O</sifChar>
        <privacyRating>High</privacyRating>
      </xs:appinfo>
      <xs:documentation>The identity of the other school where the Student is concurrently enrolled.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="OtherProvider" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Generic object reference to the other school where the student is concurrently enrolled.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CoEnrolmentType" minOccurs="0" nillable="true" type="NZCodeSetsCoEnrolmentTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>  The type of CoEnrolment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="BehaviouralKeyIssuesNote" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text note of key behavioural issues, made by the client school in relation to the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ClientSchoolConfidentialNote" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text confidential note made by the client school in relation to the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GuardianConfidentialNote" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text confidential note made by the parents/caregivers of the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--InternationalSchoolEnrolmentType-->

  <xs:complexType name="InternationalSchoolEnrolmentType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar>O</sifChar>
        <privacyRating>High</privacyRating>
      </xs:appinfo>
      <xs:documentation>Additional information collected for international enrolments.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NZArrivalDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the Student arrived in New Zealand.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TuitionWeeklyFee" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The amount paid by the Student per Week (GST excl) as a tuition fee.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExchangeScheme" minOccurs="0" nillable="true" type="NZCodeSetsExchangeSchemeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>Which government approved exchange scheme is the student part of?</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StudentCourseChoiceListType-->

  <xs:complexType name="StudentCourseChoiceListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of course choices that can be made, or have been made by a Student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentCourseChoice" maxOccurs="unbounded" type="StudentCourseChoiceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>An individual Course choice that can be made, or has been made by a Student.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StudentCourseChoiceType-->

  <xs:complexType name="StudentCourseChoiceType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>An individual Course choice that can be made, or has been made by a Student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PreferenceNumber" minOccurs="0" nillable="true" type="xs:unsignedInt">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The student's preference for this course, with respect
			to the other course choices in the list.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Course" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Generic object reference to the Course the student has chosen to study during the year.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--PreEnrolmentCancellationType-->

  <xs:complexType name="PreEnrolmentCancellationType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Details around why a pre-enrolment for a school was cancelled.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NotifiedDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The date the Student was notified of the cancellation of the pre-enrolment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CancellationMethod" minOccurs="0" nillable="true" type="NZCodeSetsPreEnrolmentExitTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A code describing how the student's pre-enrolment was terminated.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CancellationReason" minOccurs="0" nillable="true" type="NZCodeSetsPreEnrolmentCancellationReasonType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The reason the pre-enrolment was cancelled</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CancellationReasonOtherDesc" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Free text reason the pre-enrolment was cancelled if the cancellation reason of other was selected.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ProviderExitType-->

  <xs:complexType name="ProviderExitType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Details of the reasons, and interventions leading up to the
					student's enrolment being terminated.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Reason" type="NZCodeSetsEnrolmentExitTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A code describing how or why the student's enrolment was terminated.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PostSchoolActivity" minOccurs="0" nillable="true" type="NZCodeSetsPostSchoolActivityType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation> The post school activity the student is moving on to once they have exited the school.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="InterventionList" minOccurs="0" nillable="true" type="InterventionListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A list of references to Wellbeing Event, Response &amp; Appeal data objects, 
					that record the process of terminating a students enrolment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PotentialDestinationSchoolList" minOccurs="0" nillable="true" type="PotentialDestinationSchoolListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>List of potential destination schools for the departing student.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--InterventionListType-->

  <xs:complexType name="InterventionListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of references to Wellbeing Event, Response &amp; Appeal data objects, 
					that record the process of terminating a students enrolment.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Intervention" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A reference to a Wellbeing Event, Response &amp; Appeal data object,
					 that records the process of terminating a students enrolment.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--PotentialDestinationSchoolListType-->

  <xs:complexType name="PotentialDestinationSchoolListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>List of references to potential destination schools for the departing student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="School" maxOccurs="unbounded" type="OrganisationObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A reference to a potential destination school for the departing student.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ECEEducationHistoryListType-->

  <xs:complexType name="ECEEducationHistoryListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>The list of the types of early childhood education the parent told a primary school
				 that the student received and the hours per week and/or day the student attended.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ECEType" maxOccurs="unbounded" type="ECEHistoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The type of early childhood education the student received and the hours per week and/or day the student attended.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ECEHistoryType-->

  <xs:complexType name="ECEHistoryType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>History of a type of early childhood education the student received and 
				the hours per week and/or day the student attended.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Type" minOccurs="0" nillable="true" type="NZCodeSetsEarlyChildhoodEducationTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The type of early childhood education the student attended.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HoursPerDayAttended" minOccurs="0" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The number of hours per day the student attended this ECE Type.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="HoursPerWeekAttended" minOccurs="0" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation>The number of hours per week the student attended this ECE Type.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ScheduleListType-->

  <xs:complexType name="ScheduleListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of references to a set of Schedules</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Schedule" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Generic object reference to a Schedule in the list.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ScheduleDayListType-->

  <xs:complexType name="ScheduleDayListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of ScheduleDay object references.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ScheduleDay" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Generic object reference to a ScheduleAcademicDay in the list</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--BellScheduleListType-->

  <xs:complexType name="BellScheduleListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of BellSchedule object references.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="BellSchedule" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Generic object reference to a BellSchedule in the list</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--PeriodListType-->

  <xs:complexType name="PeriodListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the object references to a set of SchedulePeriods</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Period" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation> A generic object references to a SchedulePeriod in the list</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ScheduleTermListType-->

  <xs:complexType name="ScheduleTermListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of ScheduleTerm object references.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ScheduleTerm" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Generic object reference to a ScheduleTerm in the list</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--TeachingGroupEventListType-->

  <xs:complexType name="TeachingGroupEventListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list generic references to a set of TeachingGroupEvents</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Event" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Generic object reference to a TeachingGroupEvent in the list</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--AcademicDayListType-->

  <xs:complexType name="AcademicDayListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the academic days within this schedule</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AcademicDay" maxOccurs="unbounded" type="AcademicDayType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>An academic day that is part of this schedule.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--AcademicDayType-->

  <xs:complexType name="AcademicDayType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>An academic day that is part of this schedule</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="ObjectReferenceType">
        <xs:sequence>
          <xs:element name="BellSchedule" minOccurs="0" nillable="true" type="ObjectReferenceType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating />
              </xs:appinfo>
              <xs:documentation>The bell schedule this academic day is following.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="PeriodList" type="PeriodListType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating />
              </xs:appinfo>
              <xs:documentation>A list of the periods that make up this academic day, e.g. Period 1, Period 2 etc.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>


  <!--SchedulePeriodTimeListType-->

  <xs:complexType name="SchedulePeriodTimeListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the periods that make up the bell schedule and their start and end times.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SchedulePeriodTime" maxOccurs="unbounded" type="SchedulePeriodTimeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A period that makes up or partially makes up the bell schedule and its start and end times.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--SchedulePeriodTimeType-->

  <xs:complexType name="SchedulePeriodTimeType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>The definition of a SchedulePeriod start and end time, on a particular Bell Schedule.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Period" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Generic object reference to the schedule period whose start and end times are being defined.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartTime" type="xs:time">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The time the period starts.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndTime" type="xs:time">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The time the period ends.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ScheduleCustomDayPeriodListType-->

  <xs:complexType name="ScheduleCustomDayPeriodListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of generic object references to a set of
				SchedulePeriods, along with their custom start and end times,
				which are part of a 'CUSTOM' ScheduleEvent.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Period" maxOccurs="unbounded" type="ScheduleCustomDayPeriodType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Generic object reference to a SchedulePeriod, along with
				its custom start and end times, which are part of a 'CUSTOM'
				ScheduleEvent.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ScheduleCustomDayPeriodType-->

  <xs:complexType name="ScheduleCustomDayPeriodType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Generic object reference to a single SchedulePeriod, along
				with its custom start and end times, which are part of a
				'CUSTOM' ScheduleEvent.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="ObjectReferenceType">
        <xs:sequence>
          <xs:element name="StartTime" type="xs:time">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating />
              </xs:appinfo>
              <xs:documentation>The time the custom schedule period starts.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="EndTime" type="xs:time">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating />
              </xs:appinfo>
              <xs:documentation>The time the custom schedule period ends.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>


  <!--AttendanceTimeListType-->

  <xs:complexType name="AttendanceTimeListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Breakdown of times that the student entered or returned to school.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AttendanceTime" maxOccurs="unbounded" type="AttendanceTimeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--AttendanceTimeType-->

  <xs:complexType name="AttendanceTimeType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Time span that the student entered or returned to school</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AttendanceTimeLocalId" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The source system identifier of the attendance time list record.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AttendanceType" type="NZCodeSetsAttendanceTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The type of attendance being recorded e.g. Scheduled or Ad Hoc. If it is a schedule attendance then the SchedulePeriod must also be provided. If it is an Ad Hoc attendance then StartDateTime and EndDateTime must also be provided.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AttendanceCodeGroup" minOccurs="0" nillable="true" type="NZCodeSetsAttendanceCodeGroupType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The attendance code group the students attendance code belongs to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Code" type="NZCodeSetsAttendanceCodeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>MoE defined code for attendance or  absence during the time period described.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AttendanceDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date the attendance is being record for.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchedulePeriod" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The scheduled period this attendnance time list record is for. The SchedulePeriod must be provided if the AttendanceType = 'Scheduled'.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartTime" minOccurs="0" nillable="true" type="xs:time">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The Start Time of the students attendance for the provided Attendance Date. Mandatory for attendance records with a type of 'Ad Hoc'.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndTime" minOccurs="0" nillable="true" type="xs:time">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The End Time of the students attendance for the provided Attendance Date. Mandatory for attendance records with a type of 'Ad Hoc'.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubmissionDateTime" minOccurs="0" nillable="true" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date the students attendance for this date and time/period was submitted.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Note" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Free text note about the students attendance for the provided date and time/period.</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>


  <!--NoteListType-->

  <xs:complexType name="NoteListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of notes that have been written about the associated subject matter.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Note" maxOccurs="unbounded" type="NoteType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A free text note about the associated subject matter.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--NoteType-->

  <xs:complexType name="NoteType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A free text note about the associated subject matter.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Note" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Free text note.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CreatedDateTime" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date and time the note was created.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LastUpdatedDateTime" minOccurs="0" nillable="true" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date and time the note was last updated.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CreatedBy" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Generic reference to the user that created the note.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LastUpdatedBy" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Generic reference to the user that last updated the note.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--MedicationListType-->

  <xs:complexType name="MedicationListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the medications required for this Wellbeing Characteristic.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Medication" maxOccurs="unbounded" type="MedicationType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--MedicationType-->

  <xs:complexType name="MedicationType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>The medication, dosage and frequency, required by the student to manage the Wellbeing Characteristic.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="MedicationName" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Name of medication required for the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Dosage" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Dosage and strength of medication required for the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Frequency" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Frequency of Administration.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AdministrationInformation" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Information about how the medication is to be administered.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Method" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Method of administration.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MedicationConsentList" minOccurs="0" nillable="true" type="MedicationConsentListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--MedicationConsentListType-->

  <xs:complexType name="MedicationConsentListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list consents that have been provided for administration of a medicine to a student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="MedicationConsent" maxOccurs="unbounded" type="MedicationConsentType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--MedicationConsentType-->

  <xs:complexType name="MedicationConsentType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Contains information about when, by whom, and who consent was given to for the administration of a medicine to a student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StartDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date from which the student or student caretaker consented to the medicine being administered to the student by a particular individual.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date the consent for administration of the medicine ends or is revoked.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ConsentedBy" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The student or student caregiver that has consented to the medicine being administered to the student by the school.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProviderApplicableTo" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The provider the medication administartion consent is applicable to.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AdministeredBy" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The staff member at the school that have been given permission by the student or the student's caregiver to administer the medicine to the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--WellbeingEventCategoryListType-->

  <xs:complexType name="WellbeingEventCategoryListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>List of Categories of the WellbeingEvent.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="EventCategory" maxOccurs="unbounded" type="WellbeingEventCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--WellbeingEventCategoryType-->

  <xs:complexType name="WellbeingEventCategoryType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation />
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Category" type="NZCodeSetsWellbeingEventCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="EventSubCategoryList" minOccurs="0" nillable="true" type="WellbeingEventSubCategoryListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--WellbeingEventSubCategoryListType-->

  <xs:complexType name="WellbeingEventSubCategoryListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>List of Categories of the WellbeingEvent.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="EventSubCategory" maxOccurs="unbounded" type="WellbeingEventSubCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--WellbeingEventSubCategoryType-->

  <xs:complexType name="WellbeingEventSubCategoryType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation />
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SubCategory" type="NZCodeSetsWellbeingEventSubCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--FollowUpActionListType-->

  <xs:complexType name="FollowUpActionListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>List of Actions where an action resulted and is known – maybe just a link to a WellbeingResponse Object</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="FollowUpAction" maxOccurs="unbounded" type="FollowUpActionType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Container for the Follow Up details.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--FollowUpActionType-->

  <xs:complexType name="FollowUpActionType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Repeatable Follow Up Action.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WellbeingResponseRefId" minOccurs="0" nillable="true" type="IdRefType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The RefId of a WellbeingResponse Object if it exists.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FollowUpDetails" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Optional free text to outline follow up.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FollowUpActionCategory" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Category of Action - typing locally defined.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--PersonInvolvementListType-->

  <xs:complexType name="PersonInvolvementListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>List of People involved in the Wellbeing event/response.  Mandatory if more people than the student to which this event/response occurs is involved.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PersonInvolvement" maxOccurs="unbounded" type="PersonInvolvementType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A person (additional to the student) involved in a  Wellbeing event/response where required to be known.  </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--PersonInvolvementType-->

  <xs:complexType name="PersonInvolvementType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A repeatable element recording the identifier and details of another person that was involved in the Wellbeing Event/Response.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="StudentObjectReferenceType">
        <xs:sequence>
          <xs:element name="HowInvolved" minOccurs="0" nillable="true" type="xs:normalizedString">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>Optional free text detailing involvement.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="PersonType" minOccurs="0" nillable="true" type="NZCodeSetsPersonInvolvedTypeType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>The type of person that the person involved is, e.g. Teacher, Peers, etc.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>


  <!--RecognitionListType-->

  <xs:complexType name="RecognitionListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>List of awards and other types of recognition given to the student for this activity. </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Recognition" maxOccurs="unbounded" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The nature of recognition given to the student for the
				successful completion of work in a co-curricular or
				extra-curricular activity.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--WithdrawalTimeListType-->

  <xs:complexType name="WithdrawalTimeListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Where a student is to be removed or withdrawn partially for particular times in a week within the Start and End dates of the Response.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Withdrawal" maxOccurs="unbounded" type="WithdrawalType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--WithdrawalType-->

  <xs:complexType name="WithdrawalType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Repeatable Withdrawal.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WithdrawalStartDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The start date of the withdrawal.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WithdrawalEndDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The end date of the withdrawal.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WithdrawalStartTime" minOccurs="0" nillable="true" type="xs:time">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Start time of the Withdrawal on that day.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WithdrawalEndTime" minOccurs="0" nillable="true" type="xs:time">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>End time of the Withdrawal on that day.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchoolTerm" minOccurs="0" nillable="true" type="xs:integer">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The school term the withdrawal took place in.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WithdrawalFrom" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Generic reference to the TeachingGroup, StudentActivity, or TimeTableSubject that
				the learner is withdrawn from.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--SuspensionContainerType-->

  <xs:complexType name="SuspensionContainerType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Container for details of a Removal/Suspension.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SuspensionCategory" minOccurs="0" nillable="true" type="NZCodeSetsSuspensionCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Categorisation of a Suspension record to fall into, In School, Withdrawal, Expulsion/Exclusion etc.  In School is usually NOT formally recognised by a jurisdiction but managed at a school level where the student is temporarily withdrawn from normal classes. Expulsion/Exclusion may mean the student’s attendance at a school is terminated.
				</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WithdrawalTimeList" minOccurs="0" nillable="true" type="WithdrawalTimeListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="Duration" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The duration of a Suspension in days 0.00 – X.xx.  (Half Day = 0.5, Full Day = 1.0 or the percentage of any day.)  Must be provided for a Suspension when known.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AdvisementDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date parent/carers were officially notified.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ResolutionMeetingTime" minOccurs="0" nillable="true" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date and time at which a meeting with the student’s parents/carers was held to resolve the Suspension.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ResolutionNotes" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Comments about how the Suspension has been resolved, including any reparative actions the student needs to take.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EarlyReturnDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date at which the student was permitted to return to school earlier than the agreed duration would have allowed.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--DetentionContainerType-->

  <xs:complexType name="DetentionContainerType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Container for details of a Detention.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DetentionCategory" minOccurs="0" nillable="true" type="NZCodeSetsDetentionCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Categorisation of a Detention.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DetentionDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date of the detention.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DetentionLocation" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Eventually to be typed for initial draft will be string to try and determine a valid code set.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DetentionNotes" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Any notes that can be provided regarding the need/response that led to the detention.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--PlanRequiredListType-->

  <xs:complexType name="PlanRequiredListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>List to contain information of any plans that may eventuate.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Plan" maxOccurs="unbounded" type="WellbeingPlanType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--WellbeingPlanType-->

  <xs:complexType name="WellbeingPlanType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Repeatable Plan information.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PlanNotes" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Any notes that can be provided regarding the need that led to the plan.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlanDocument" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The GUID of a PersonalisedPlan Object if it exists and it can be provided.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--AwardContainerType-->

  <xs:complexType name="AwardContainerType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Container for details of an Award, where this response was in relation to a particular Award.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AwardDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Date when to be awarded.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AwardType" minOccurs="0" nillable="true" type="NZCodeSetsWellbeingAwardTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Type of Award.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AwardDescription" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Description of the Award.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AwardNotes" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Any comments/notes associated with the Award.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--OtherWellbeingResponseContainerType-->

  <xs:complexType name="OtherWellbeingResponseContainerType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Container for details of any other response that can not be classified by previous types.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="OtherResponseDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Date of the other response</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OtherResponseDescription" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Description of the other response.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OtherResponseNotes" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Any comments/notes associated with the other response.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--AcknowledgementListType-->

  <xs:complexType name="AcknowledgementListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the providers and staff who have been sent the alerts and have acknowledged they have been read.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Acknowledgement" maxOccurs="unbounded" type="AcknowledgementType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--AcknowledgementType-->

  <xs:complexType name="AcknowledgementType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A provider or staff member that has been sent the alerts and have acknowledged they have been read.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Acknowledged" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Indicates whether or not a staff member has viewed the alerts.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AcknowledgedDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date the provider acknowledged a staff member has viewed the alerts.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Provider" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A provider who has been sent the alerts and have acknowledged they have been read.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StaffMember" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A staff member who has been sent the alerts and have acknowledged they have been read.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--KeyContactListType-->

  <xs:complexType name="KeyContactListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of key contacts for the alert.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="KeyContact" maxOccurs="unbounded" type="KeyContactType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--KeyContactType-->

  <xs:complexType name="KeyContactType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A key contact for the Wellbeing Alert and their role, e.g. Parent, Doctor, Principal.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Role" minOccurs="0" nillable="true" type="NZCodeSetsKeyContactRoleType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The role of the key contact in relation to the Wellbeing Alert.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Contact" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Details about the contact, e.g. Doctor, Parent, Principal.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--WellbeingResponseListType-->

  <xs:complexType name="WellbeingResponseListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of relevant Wellbeing Responses for the student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WellbeingResponse" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--WellbeingAppealListType-->

  <xs:complexType name="WellbeingAppealListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of relevant Wellbeing Appeals for the student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WellbeingAppeal" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--WellbeingCharacteristicListType-->

  <xs:complexType name="WellbeingCharacteristicListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of relevant Wellbeing Characteristics for the student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WellbeingCharacteristic" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--WellbeingEventListType-->

  <xs:complexType name="WellbeingEventListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of relevant Wellbeing Events for the student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WellbeingEvent" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--WellbeingAlertListType-->

  <xs:complexType name="WellbeingAlertListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of relevant Wellbeing Alerts for the student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WellbeingAlert" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--RelatedWellbeingEventListType-->

  <xs:complexType name="RelatedWellbeingEventListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A Wellbeing Event gets created for every student involved in an event. This list links together all related Wellbeing Events.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RelatedWellbeingEvent" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--RestraintWitnessListType-->

  <xs:complexType name="RestraintWitnessListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the people that witnessed the physical constraint.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Witness" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A person that witnessed the physical restraint incident.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--RestraintAdministeredByListType-->

  <xs:complexType name="RestraintAdministeredByListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the people who administered the physical restraint to the student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RestraintAdministeredBy" maxOccurs="unbounded" type="RestraintAdministeredByType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The person who administered the physical restraint to the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--RestraintAdministeredByType-->

  <xs:complexType name="RestraintAdministeredByType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>The person who administered the physical restraint to the student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AdministeredBy" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The person who administered the physical restraint to the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SafePhysicalRestraintTraining" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Indicates whether or not the person involved has received training of the safe use of physical restraint.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TrainingDescription" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Free text providing additional information about any training the person has had on the safe use pf physical restraint.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Role" minOccurs="0" nillable="true" type="NZCodeSetsRestraintAdministeredByRoleType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The role of the person who administered the physical restraint to the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--BehaviourDirectedAtListType-->

  <xs:complexType name="BehaviourDirectedAtListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>The list of the people and/or property that the student, who was restrained, was directing their behaviour at.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="BehaviourDirectedAt" maxOccurs="unbounded" type="BehaviourDirectedAtType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The person and/or piece of property that the student, who was restrained, was directing their behaviour at.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--BehaviourDirectedAtType-->

  <xs:complexType name="BehaviourDirectedAtType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>The person and/or piece of property that the student, who was restrained, was directing their behaviour at.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DirectedAt" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The person the student's behaviour was directed at.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="BehaviourDescription" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Free text describing the behaviour the student showed towards a person of piece of property.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DirectedAtType" minOccurs="0" nillable="true" type="NZCodeSetsBehaviourDirectedAtTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Code set denoting type of object or person the student was directing their behaviour at, e.g. Staff Member, Student, Desk, Chair.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StaffReflectionListType-->

  <xs:complexType name="StaffReflectionListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the reflections made by the staff members who applied the physical restraint.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StaffReflection" maxOccurs="unbounded" type="StaffReflectionType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The reflections performed by the staff member who applied the physical restraint to the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StaffReflectionType-->

  <xs:complexType name="StaffReflectionType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>The reflections performed by the staff member who applied the physical restraint to the student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ReflectionDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date the staff member performed their reflection on the use of physical restraint on the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WitnessedBy" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The staff member that witnessed the person who applied the restraint performing the staff reflections.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Staff" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The staff member who performed the staff reflection.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReflectionList" minOccurs="0" nillable="true" type="ReflectionListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A list of the reflections the staff member performed.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ReflectionListType-->

  <xs:complexType name="ReflectionListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the reflections the staff member performed.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Reflection" maxOccurs="unbounded" type="ReflectionType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A reflection that a staff member performed about the physical restraint incident.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ReflectionType-->

  <xs:complexType name="ReflectionType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A reflection that a staff member performed about the physical restraint incident.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ReflectionDescription" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Free text outlining the staff members thoughts on a type of reflection.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Type" minOccurs="0" nillable="true" type="NZCodeSetsStaffRestraintReflectionTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The type of reflection that the staff member performed.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--RestraintDebriefingListType-->

  <xs:complexType name="RestraintDebriefingListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the debriefings that took place after the physical restraint incident occurred.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RestraintDebriefing" maxOccurs="unbounded" type="RestraintDebriefingType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A debriefing that took place after the physical restraint incident occurred. A debriefing can be with a staff member or with the student and their parent/caregiver.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--RestraintDebriefingType-->

  <xs:complexType name="RestraintDebriefingType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A debriefing that took place after the physical restraint incident occurred. A debriefing can be with a staff member or with the student and their parent/caregiver.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DebriefingDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date the debriefing about the use of physical restraint on the student occurred.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DebriefingTime" minOccurs="0" nillable="true" type="xs:time">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The time the debriefing about the use of physical restraint on the student occurred.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Findings" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Free text outlining the findings of the debriefing in the use of physical restraint on the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NextStepsActions" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Free text about the next steps and/or actions that will be taken in as a result of the debriefing on the use of physical restraint  on the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ParentCaregiverComment" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Parent/caregiver comments made about the use physical restraint on the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StudentComment" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Student comments made about the use physical restraint on the them.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DebriefingType" minOccurs="0" nillable="true" type="NZCodeSetsRestraintDebriefingTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The type of debriefing that occurred, e.g. staff, or student and parent/caregiver.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AttendeeList" minOccurs="0" nillable="true" type="AttendeeListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A list of the people that attended the debriefing.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--AttendeeListType-->

  <xs:complexType name="AttendeeListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>The type of debriefing that occurred, e.g. staff, or student and parent/caregiver.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Attendee" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A person that attended the debriefing.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--RestraintQuestionListType-->

  <xs:complexType name="RestraintQuestionListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of questions and their answers about the physical restraint incident.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RestraintQuestion" maxOccurs="unbounded" type="RestraintQuestionType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A question and it's answer about the physical restraint incident that occurred. Additional free text information to support the answer may also be supplied.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--RestraintQuestionType-->

  <xs:complexType name="RestraintQuestionType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A question and it's answer about the physical restraint incident that occurred. Additional free text information to support the answer may also be supplied.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Question" type="NZCodeSetsRestraintQuestionType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The question asked about the physical restraint incident.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Answer" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The answer to the question. Options are Yes or No.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AnswerSupportingDescription" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A free text description providing additional information about the question if required.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--SocialGoalListType-->

  <xs:complexType name="SocialGoalListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of social goals the student has set.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SocialGoal" maxOccurs="unbounded" type="BaseStudentGoalType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--CareerGoalListType-->

  <xs:complexType name="CareerGoalListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of career goals the student has set.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="CareerGoal" maxOccurs="unbounded" type="BaseStudentGoalType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--AcademicGoalListType-->

  <xs:complexType name="AcademicGoalListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of academic goals the student has set.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AcademicGoal" maxOccurs="unbounded" type="AcademicGoalType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--BaseStudentGoalType-->

  <xs:complexType name="BaseStudentGoalType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Base complex type defining elements common to all flavours of StudentGoal.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="GoalRecordedDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date the Student's goal was recorded.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GoalAchievedDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date the Student achieved their goal.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GoalDescription" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A description of the goal the student wants to achieve</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GoalName" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The name of the goal the student wants to achieve</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--AcademicGoalType-->

  <xs:complexType name="AcademicGoalType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Defining elements of the Academic flavour of student goal.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="BaseStudentGoalType">
        <xs:sequence>
          <xs:element name="SubjectArea" minOccurs="0" nillable="true" type="NZCodeSetsSubjectAreaType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating />
              </xs:appinfo>
              <xs:documentation>The subject are athe student's academic goal is for.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>


  <!--StudentInterestListType-->

  <xs:complexType name="StudentInterestListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of interestes the student has set.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentInterest" maxOccurs="unbounded" type="StudentInterestType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StudentInterestType-->

  <xs:complexType name="StudentInterestType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Object recording an interest the student has expressed.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="InterestRecordedDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date the Student's interest was recorded.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="InterestDescription" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A description of the interest the student wants to achieve</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="InterestName" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The name of the interest the student has expressed</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="InterestType" minOccurs="0" nillable="true" type="NZCodeSetsStudentInterestTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Code denoting the type of interest the student has expressed</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SubjectArea" minOccurs="0" nillable="true" type="NZCodeSetsSubjectAreaType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The subject area the student has expressed an interest in.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--EventLocationListType-->

  <xs:complexType name="EventLocationListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the locations where the incident took place.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Location" maxOccurs="unbounded" type="NZCodeSetsWellbeingEventLocationType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The location where the incident took place.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ActionTakenListType-->

  <xs:complexType name="ActionTakenListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the actions taken as a result of this Wellbeing event.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ActionTaken" maxOccurs="unbounded" type="NZCodeSetsWellbeingEventActionTakenType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The action taken as a result of this Wellbeing event.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--PossibleMotivationListType-->

  <xs:complexType name="PossibleMotivationListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the possible motivations that triggered the event.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PossibleMotivation" maxOccurs="unbounded" type="NZCodeSetsWellbeingEventPossibleMotivationType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The possible motivation that triggered the event.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--BehaviourIdentifiedListType-->

  <xs:complexType name="BehaviourIdentifiedListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the problem behaviours identified for the student as a result of the Wellbeing Event. There are both minor and major behaviours.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="BehaviourIdentified" maxOccurs="unbounded" type="BehaviourIdentifiedType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The type of minor problem behaviour identified as a result of the Wellbeing Event.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--BehaviourIdentifiedType-->

  <xs:complexType name="BehaviourIdentifiedType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A problem behaviour identified for the student as a result of the Wellbeing Event.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Severity" minOccurs="0" nillable="true" type="NZCodeSetsWellbeingEventSeverityType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The severity of the Wellbeing Event.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:choice>
        <xs:element name="MinorBehaviour" minOccurs="0" maxOccurs="unbounded" type="NZCodeSetsWellbeingEventMinorBehaviourType">
          <xs:annotation>
            <xs:appinfo>
              <sifChar>OR</sifChar>
              <privacyRating />
            </xs:appinfo>
            <xs:documentation>The type of minor problem behaviour identified as a result of the Wellbeing Event.</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="MajorBehaviour" minOccurs="0" maxOccurs="unbounded" type="NZCodeSetsWellbeingEventMajorBehaviourType">
          <xs:annotation>
            <xs:appinfo>
              <sifChar>OR</sifChar>
              <privacyRating />
            </xs:appinfo>
            <xs:documentation>The type of major problem behaviour identified as a result of the Wellbeing Event.</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>


  <!--StudentVoiceListType-->

  <xs:complexType name="StudentVoiceListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <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:sequence>
      <xs:element name="StudentVoice" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The student's or their whānau's voice about their wellbeing characteristic in regards to the student 's interests, goals, and voice (comments, opinions).</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--SupportNeedListType-->

  <xs:complexType name="SupportNeedListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of learning support needs that have been identified for the student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SupportNeed" maxOccurs="unbounded" type="SupportNeedType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A learning support need that has been identified for the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--SupportNeedType-->

  <xs:complexType name="SupportNeedType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A learning support need that has been identified for the student.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Need" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A learning support need that has been identified for the student.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ResponseList" minOccurs="0" nillable="true" type="SupportNeedResponseListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A list of responses made about a learning support need.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--SupportNeedResponseListType-->

  <xs:complexType name="SupportNeedResponseListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of responses made about a learning support need.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Response" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A responses made for a learning support need.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--SupportNeedResponseReviewListType-->

  <xs:complexType name="SupportNeedResponseReviewListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the reviews made about the response.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Review" maxOccurs="unbounded" type="SupportNeedResponseReviewType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A review of the response.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--SupportNeedResponseReviewType-->

  <xs:complexType name="SupportNeedResponseReviewType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A review of a support need response.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Reviewer" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The staff member reviewed the response.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReviewDate" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date of the review.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReviewComments" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Free text comment about the review.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NextReviewDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date of the next review.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AttachmentList" minOccurs="0" nillable="true" type="DocumentListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A list of attachments related to a learning support need response review.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--SupportNeedExternalResponseType-->

  <xs:complexType name="SupportNeedExternalResponseType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Additional information for an external response.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Provider" type="NZCodeSetsLearningSupportExternalProviderType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The response provider.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProviderDetail" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Additional information about a provider.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Status" type="NZCodeSetsLearningSupportExtResponseStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The status of the external response.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MOESpecialistService" minOccurs="0" nillable="true" type="NZCodeSetsMoESpecialistServiceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The MoE specialist service that has been selected as a response to a student's support need. Required if Response Detail = 'MOE' (MOE Specialists).</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FundedBy" minOccurs="0" nillable="true" type="NZCodeSetsLearningSupportExternalFunderType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Who the response was funded by.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FundedByDetail" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Additional detail about a funder.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RequestMadeDate" minOccurs="0" nillable="true" type="xs:date">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date the request about funding was made.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FundingStatus" minOccurs="0" nillable="true" type="NZCodeSetsLearningSupportFundingStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The status of the funding being provided for the response.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FundingDeclinedReason" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The reason funding was declined.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--SupportNeedInternalResponseType-->

  <xs:complexType name="SupportNeedInternalResponseType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Additional information for an internal response.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ProvidedBy" type="NZCodeSetsLearningSupportInternalProviderType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The response provider.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProvidedByName" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The name of the person providing the response. Mandatory to be provided when the ProvidedBy = 'Teacher'.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Status" type="NZCodeSetsLearningSupportIntResponseStatusType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The status of the internal response.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FundedBy" type="NZCodeSetsLearningSupportInternalFunderType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Who is funding the reponse.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--OfficialDiagnosisListType-->

  <xs:complexType name="OfficialDiagnosisListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of official diagnoses that pertains to this wellbeing characteristic.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="OfficialDiagnosis" maxOccurs="unbounded" type="OfficialDiagnosisType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>An official diagnosis that pertains to this Wellbeing Characteristic.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--OfficialDiagnosisType-->

  <xs:complexType name="OfficialDiagnosisType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>An official diagnosis that pertains to this Wellbeing Characteristic.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DiagnosisType" type="NZCodeSetsOfficialDiagnosisTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The official diagnosis type the student was given.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DiagnosisSubType" minOccurs="0" nillable="true" type="NZCodeSetsOfficialDiagnosisSubTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The official diagnosis sub-type the student was given.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OfficialDiagnosisDetail" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Providers additional free text information about an official diagnosis. Mandatory when the Official Diagnosis Type selected is ‘Physical Impairments’, or ‘Medical Conditions’. Mandatory when the Official Diagnosis Sub-Type selected is ‘Other neurodevelopmental disorders/developmental anomalies’, Other mental health disorders’, or ‘Other sensory impairment’.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DocumentList" minOccurs="0" nillable="true" type="DocumentListType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A list of documents that conatin information that pertain to this official diagnosis.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--AssessmentTaskListType-->

  <xs:complexType name="AssessmentTaskListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation />
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SubAssessmentTask" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>GUID that identifies the sub-ordinate AssessmentTask.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--NZQAAssessmentRegistrationType-->

  <xs:complexType name="NZQAAssessmentRegistrationType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>
				Extra details to support NZQA assessment registration process
			</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="EnrolmentId" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="EntryId" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The student's NZQA entry Id provided upon confirmation of the student's registration
				 to be assessed against a unit or achievement standard. Identifies what entry the result
				 is for to NZQA.
				</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AssessmentRequestType" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentRequestTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="PaperLanguage" minOccurs="0" nillable="true" type="NZCodeSetsLanguageType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="AnswerLanguage" minOccurs="0" nillable="true" type="NZCodeSetsLanguageType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--SpecialAssessmentConditionListType-->

  <xs:complexType name="SpecialAssessmentConditionListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of Special Assessment Conditions (SACs) that may be applied, or excluded form	
				a particular student's participation in an assessment task.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SpecialAssessmentCondition" maxOccurs="unbounded" type="NZCodeSetsSpecialAssessmentConditionType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A single SAC that may be applied, or excluded from a student's participation in an assessment task.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--AssessmentResultScoreListType-->

  <xs:complexType name="AssessmentResultScoreListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of scores for the assessment task result.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ResultScore" maxOccurs="unbounded" type="AssessmentResultScoreType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>An Assessment Result Score that is a member of the related AssessmentResultScoreList.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--AssessmentResultScoreType-->

  <xs:complexType name="AssessmentResultScoreType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>An individual result score for the assessment task.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ScoreType" minOccurs="0" nillable="true" type="NZCodeSetsScoreTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Either defines that the score is an over-arching final aggregate score derived from
				 a collection of other scores, or the fact that the score is derived from a multi-stage
				 marking and moderation process, e.g. inital, interim, moderated and final scores for
				  a single assessment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Competency" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>String describing a particular competency that is being reported in the assessment.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ScoreMetric" minOccurs="0" nillable="true" type="NZCodeSetsScoreMetricType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A code denoting the type of metric the ScoreValue represents.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ScoreValue" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The score the student received for assessment task against that metric. If the result score is for an NZQA or International Baccalaureate then the ScoreResultCode using the enumeration NZCodeSetsAssessmentResultType must be used instead.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ScoreMax" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The maximum value possible for the score.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ItemNumber" minOccurs="0" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The Item within an NZQA Assessment Task that the score is for. When a marker marks an external 
				assessment (a paper for a standard in an examination, for example) they provide a score of 0-8 for
				each item (question) in the paper. </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--JustificationListType-->

  <xs:complexType name="JustificationListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list identifying the assessment task results that justify the student
					 achieving this attainment.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Justification" maxOccurs="unbounded" type="JustificationType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A generic reference to an assessment task result or other student attainment
					 that justifies the student achieving this attainment.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--JustificationType-->

  <xs:complexType name="JustificationType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Details of an assessment task result or other student attainment that 
					justifies the student achieving this attainment.
				</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="ObjectReferenceType">
        <xs:sequence>
          <xs:element name="AssessmentType" minOccurs="0" nillable="true" type="NZCodeSetsAssessmentTypeType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>High</privacyRating>
              </xs:appinfo>
              <xs:documentation>A Code denoting how the Justification assessment task was assessed</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Result" type="xs:normalizedString">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating />
              </xs:appinfo>
              <xs:documentation>The final result of the assessment task that justifies the attainment.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Date" type="xs:date">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating />
              </xs:appinfo>
              <xs:documentation>The date the justifying assessment task was achieved.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="CreditValue" minOccurs="0" nillable="true" type="xs:decimal">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating />
              </xs:appinfo>
              <xs:documentation>The number of credits the justifying assessment task contributes towards this attainment.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>


  <!--ObjectReferenceType-->

  <xs:complexType name="ObjectReferenceType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A reference to another SIF Data Object</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RefId" minOccurs="0" nillable="true" type="IdRefType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The GUUID of the referenced object</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LocalId" minOccurs="0" nillable="true" type="LocalIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Local identifier representing the referenced object.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Name" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The normal descriptive name of the referenced object.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ObjectType" minOccurs="0" nillable="true" type="NZCodeSetsReferrableDataObjectsType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The type of the referenced object:</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ProviderObjectReferenceType-->

  <xs:complexType name="ProviderObjectReferenceType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A reference to a Provider Data Object</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RefId" type="MoEOrgIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The Ministry of Education Organisation Id of the referenced provider</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Name" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>The normal descriptive name of the referenced object.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LocationNum" minOccurs="0" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Number identifying the individual location within the set of locations used by the Provider.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StudentObjectReferenceType-->

  <xs:complexType name="StudentObjectReferenceType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A reference to a StudentPersonal Data Object, which may be via NSN rather than RefId or LocalId</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="ObjectReferenceType">
        <xs:sequence>
          <xs:element name="NationalStudentNumber" minOccurs="0" nillable="true" type="xs:positiveInteger">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>O</sifChar>
                <privacyRating>High</privacyRating>
              </xs:appinfo>
              <xs:documentation>The NSN of the referenced Student</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="YearLevel" minOccurs="0" nillable="true">
            <xs:simpleType>
              <xs:restriction base="xs:positiveInteger">
                <xs:annotation>
                  <xs:appinfo>
                    <sifChar>O</sifChar>
                    <privacyRating>High</privacyRating>
                  </xs:appinfo>
                  <xs:documentation>The NSN of the referenced Student</xs:documentation>
                </xs:annotation>
                <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:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>


  <!--OrganisationObjectReferenceType-->

  <xs:complexType name="OrganisationObjectReferenceType">
    <xs:complexContent>
      <xs:extension base="ProviderObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar />
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A reference to a Provider specific location at the Organisation; rather 
				than the Provider as a whole.</xs:documentation>
        </xs:annotation>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>


  <!--LearningStandardObjectReferenceType-->

  <xs:complexType name="LearningStandardObjectReferenceType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A reference to a LearningStandard via Number and VersionNum</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Number" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A unique number that is used to identify the learning standard. One use of this is for NZQA standard numbers
				which cannot be used as a unique identifier (in LocalId) on their own as they are versioned so are part of
				a composite key with VersionNo.
				</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="VersionNo" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The version of the learning standard.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--PrerequisiteListType-->

  <xs:complexType name="PrerequisiteListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>References to ProviderCourses, LearningStandards, Credentials, or AssessmentTasks that
					 the student must have completed or passed to engage in futher courses, 
					 activities and assessment tasks.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Prerequisite" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>A reference to a ProviderCourse, LearningStandard, Credential, or AssessmentTask that
					 the student must have completed or passed to engage in futher courses, 
					 activities and assessment tasks.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ProviderInvolvedListType-->

  <xs:complexType name="ProviderInvolvedListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the providers involved and their role,
					 e.g. assessing provider, assessment provider, assessment location provider, registering provider.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ProviderInvolved" maxOccurs="unbounded" type="ProviderInvolvedType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The provider involved with the assessment task and the role they play,
					 e.g. assessing provider, assessment location provider, assessment provider, registering provider.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--ProviderInvolvedType-->

  <xs:complexType name="ProviderInvolvedType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>The provider and Location with the assessment task and the role they play,
					 e.g. assessing provider, assessment location provider, assessment provider, registering provider.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="ProviderObjectReferenceType">
        <xs:sequence>
          <xs:element name="ProviderRole" type="NZCodeSetsAssessmentProviderRoleType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>The role of the provider in relation to the assessment task, e.g. assessing provider, assessment location provider, assessment provider, registering provider.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>


  <!--StaffInvolvedListType-->

  <xs:complexType name="StaffInvolvedListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of the staff involved and their role in relation to the assessment task,
					 e.g. the staff member that created the assessment task, the moderator, the marker, the invigilator.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StaffInvolved" maxOccurs="unbounded" type="StaffInvolvedType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The staff member involved with the assessment task and their role, 
					e.g. created the assessment task, moderator, marker.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StaffInvolvedType-->

  <xs:complexType name="StaffInvolvedType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>The staff member involved with the assessment task and their
					 role, e.g. created the assessment task, moderator, marker.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="ObjectReferenceType">
        <xs:sequence>
          <xs:element name="StaffRole" type="NZCodeSetsAssessmentStaffRoleType">
            <xs:annotation>
              <xs:appinfo>
                <sifChar>M</sifChar>
                <privacyRating>Low</privacyRating>
              </xs:appinfo>
              <xs:documentation>NZCodeSetsAssessmentStaffRoleTYpe</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>


  <!--DocumentListType-->

  <xs:complexType name="DocumentListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of documents relevent to the contents of the data object.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Document" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The Document and it's meta-data, e.g. evidentiary documents, personalised plans, action plans.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--StudentConsentListType-->

  <xs:complexType name="StudentConsentListType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>A list of student consent information.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentConsent" maxOccurs="unbounded" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>MR</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>Generic object reference to a StudentConsent data object that records the student's consent to
				 a particular action taking place.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--RecordAuditType-->

  <xs:complexType name="RecordAuditType">
    <xs:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating />
      </xs:appinfo>
      <xs:documentation>Holds the audit for a records, e.g. Created/Last Updated DateTime and Created/Last Updated By.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="CreatedDateTime" minOccurs="0" nillable="true" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date and time the record being sent through was created in the source system.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LastUpdatedDateTime" minOccurs="0" nillable="true" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date and time the record was last updated.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DeletedDateTime" minOccurs="0" nillable="true" type="xs:dateTime">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The date and time the record was deleted.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CreatedBy" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The user that created the record in the source system.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LastUpdatedBy" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The user that last updated the record.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DeletedBy" minOccurs="0" nillable="true" type="ObjectReferenceType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The user that deleted the record.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DeletedReason" minOccurs="0" nillable="true" type="NZCodeSetsDeletedReasonType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating />
          </xs:appinfo>
          <xs:documentation>The reason the record was deleted.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>


  <!--GUIDType-->

  <xs:simpleType name="GUIDType">
    <xs:restriction>
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:annotation>
            <xs:appinfo>
              <sifChar />
              <privacyRating />
            </xs:appinfo>
            <xs:documentation>SIF format for a UUID; as defined in rfc-4122</xs:documentation>
          </xs:annotation>
          <xs:pattern value="[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
        </xs:restriction>
      </xs:simpleType>
    </xs:restriction>
  </xs:simpleType>


  <!--MoEOrgIdType-->

  <xs:simpleType name="MoEOrgIdType">
    <xs:restriction>
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:annotation>
            <xs:appinfo>
              <sifChar />
              <privacyRating />
            </xs:appinfo>
            <xs:documentation>1 to 5 digit Ministry Organisation Id, without leading zeros</xs:documentation>
          </xs:annotation>
          <xs:pattern value="[1-9][0-9]{0,4}" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
        </xs:restriction>
      </xs:simpleType>
    </xs:restriction>
  </xs:simpleType>


  <!--RefIdType-->

  <xs:simpleType name="RefIdType">
    <xs:restriction base="GUIDType">
      <xs:annotation>
        <xs:appinfo>
          <sifChar />
          <privacyRating />
        </xs:appinfo>
        <xs:documentation>An object or element identifier.</xs:documentation>
      </xs:annotation>
    </xs:restriction>
  </xs:simpleType>


  <!--IdRefType-->

  <xs:simpleType name="IdRefType">
    <xs:restriction base="RefIdType">
      <xs:annotation>
        <xs:appinfo>
          <sifChar />
          <privacyRating />
        </xs:appinfo>
        <xs:documentation>A reference to a RefId.</xs:documentation>
      </xs:annotation>
    </xs:restriction>
  </xs:simpleType>


  <!--LocalIdType-->

  <xs:simpleType name="LocalIdType">
    <xs:restriction base="xs:normalizedString">
      <xs:annotation>
        <xs:appinfo>
          <sifChar />
          <privacyRating />
        </xs:appinfo>
        <xs:documentation>
					This is a common element used to define the locally assigned identifier
					associated with an entity. 
				</xs:documentation>
      </xs:annotation>
    </xs:restriction>
  </xs:simpleType>

</xs:schema>