<!--
		SIF Implementation Specification (Australia) 3.4.3


		(April 5, 2018)
		
		Infrastructure Version: v3
	-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sifassociation.org/datamodel/au/3.4" targetNamespace="http://www.sifassociation.org/datamodel/au/3.4" elementFormDefault="qualified" version="3.4.3">
  <xs:complexType name="StudentContactRelationshipType">
    <xs:sequence>
      <xs:element name="StudentPersonalRefId" minOccurs="0" type="RefIdType" />
      <xs:element name="StudentContactPersonalRefId" minOccurs="0" type="RefIdType" />
      <xs:element name="Relationship" minOccurs="0" type="RelationshipType" />
      <xs:element name="ParentRelationshipStatus" minOccurs="0" nillable="true">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="Parent1" />
            <xs:enumeration value="Parent2" />
            <xs:enumeration value="NotForReporting" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="HouseholdList" minOccurs="0" nillable="true" type="HouseholdListType" />
      <xs:element name="ContactFlags" minOccurs="0" nillable="true" type="ContactFlagsType" />
      <xs:element name="MainlySpeaksEnglishAtHome" minOccurs="0" nillable="true" type="AUCodeSetsYesOrNoCategoryType" />
      <xs:element name="ContactSequence" minOccurs="0" nillable="true" type="xs:unsignedInt" />
      <xs:element name="ContactSequenceSource" minOccurs="0" nillable="true" type="AUCodeSetsSourceCodeTypeType" />
      <xs:element name="SchoolInfoRefId" minOccurs="0" nillable="true" type="IdRefType" />
      <xs:element name="SIF_Metadata" minOccurs="0" nillable="true" type="SIF_MetadataType" />
      <xs:element name="SIF_ExtendedElements" minOccurs="0" nillable="true" type="SIF_ExtendedElementsType" />
    </xs:sequence>
    <xs:attribute name="StudentContactRelationshipRefId" use="required" type="IdRefType" />
  </xs:complexType>

  <xs:element name="StudentContactRelationship" type="StudentContactRelationshipType">
    <xs:unique name="StudentContactRelationshipKey1">
      <xs:selector xpath="./StudentContactRelationship" />
      <xs:field xpath="@StudentContactRelationshipRefId" />
    </xs:unique>
  </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" />

</xs:schema>