<!--
		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:annotation>
      <xs:appinfo>
        <sifChar />
        <privacyRating>High</privacyRating>
      </xs:appinfo>
      <xs:documentation>
      This object defines a relationship between a contact person and a student.
    </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StudentPersonalRefId" type="RefIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>GUID that identifies the student for the relationship.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StudentContactPersonalRefId" type="RefIdType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>M</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>GUID that identifies the contact person for 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="ParentRelationshipStatus" minOccurs="0" nillable="true">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>Confirms whether or not this contact defined in the relationship is to be tracked for MCEECDYA Data Implementation Manual Reporting.</xs:documentation>
        </xs:annotation>
        <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:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <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 Yes/No characteristics of the contact person's role.  Provide a Yes value for all that apply.
        At least one of the child elements of ContactFlags must have a Yes value.
        Do not publish the StudentContactRelationship instance if one of the child elements does not have a Yes value.
      </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MainlySpeaksEnglishAtHome" minOccurs="0" nillable="true" type="AUCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Medium</privacyRating>
          </xs:appinfo>
          <xs:documentation>Is English the main language spoken at home?</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 person should be contacted.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ContactSequenceSource" minOccurs="0" nillable="true" type="AUCodeSetsSourceCodeTypeType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>Indicates the source who provided the contact sequence order. </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SchoolInfoRefId" minOccurs="0" nillable="true" type="IdRefType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>C</sifChar>
            <privacyRating>Low</privacyRating>
          </xs:appinfo>
          <xs:documentation>GUID that identifies a school associated with the relationship.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SIF_Metadata" minOccurs="0" nillable="true" type="SIF_MetadataType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
      <xs:element name="SIF_ExtendedElements" minOccurs="0" nillable="true" type="SIF_ExtendedElementsType">
        <xs:annotation>
          <xs:appinfo>
            <sifChar>O</sifChar>
            <privacyRating>High</privacyRating>
          </xs:appinfo>
          <xs:documentation />
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="StudentContactRelationshipRefId" use="required" type="IdRefType">
      <xs:annotation>
        <xs:appinfo>
          <sifChar>M</sifChar>
          <privacyRating>Medium</privacyRating>
        </xs:appinfo>
        <xs:documentation>An ID (GUID) for this paticular student-contact relationship. This GUID would be used to form a REST URL.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>

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

</xs:schema>