<!--
		SIF Implementation Specification (New Zealand) 3.1
		(8 December, 2020
)
		
		Infrastructure Version: v3.1
	-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sifassociation.org/datamodel/nz/3.1" targetNamespace="http://www.sifassociation.org/datamodel/nz/3.1" elementFormDefault="qualified" version="3.1 (rc 5)">
  <xs:complexType name="StudentContactPersonalType">
    <xs:sequence>
      <xs:element name="StudentContactPersonalRefId" minOccurs="0" nillable="true" type="RefIdType" />
      <xs:element name="StudentContactPersonalLocalId" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="HasBOTVote" minOccurs="0" nillable="true" type="NZCodeSetsYesOrNoCategoryType" />
      <xs:element name="PersonInfo" type="PersonInfoType" />
      <xs:element name="HealthcareServiceInfo" minOccurs="0" nillable="true" type="HealthcareServiceInfoType" />
      <xs:element name="RecordAudit" minOccurs="0" nillable="true" type="RecordAuditType" />
    </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" />

</xs:schema>