<!--
		SIF Implementation Specification (Australia) 1.1 (December 23, 2010) Infrastructure Version: 2.4-16
	-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://www.sifinfo.org/au/infrastructure/2.x" xmlns:sif="http://www.sifinfo.org/au/infrastructure/2.x" elementFormDefault="qualified">
  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="imports/xml/xml.xsd" />
  <xs:complexType name="StudentContactRelationshipType">
    <xs:annotation>
      <xs:documentation>
      This object defines a relationship between a contact person and a student.
    </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element ref="sif:Relationship" />
      <xs:element name="ParentRelationshipStatus" minOccurs="0" nillable="true">
        <xs:annotation>
          <xs:documentation>Confirms whether or not this contact defined in the relationship is to be tracked for MCEEDYCA 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">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Household" maxOccurs="unbounded" type="sif:LocalIdType">
              <xs:annotation>
                <xs:documentation>Repeatable element containing the ID of a household.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="ContactFlags" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ParentLegalGuardian" minOccurs="0" nillable="true" type="sif:AUCodeSetsYesOrNoCategoryType">
              <xs:annotation>
                <xs:documentation>Does the individual have parental or legal guardianship responsibility for the student?</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="PickupRights" minOccurs="0" nillable="true" type="sif:AUCodeSetsYesOrNoCategoryType">
              <xs:annotation>
                <xs:documentation>This element tells whether or not the contact has pickup rights.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="LivesWith" minOccurs="0" nillable="true" type="sif:AUCodeSetsYesOrNoCategoryType">
              <xs:annotation>
                <xs:documentation>Does the student live with this contact?</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="AccessToRecords" minOccurs="0" nillable="true" type="sif:AUCodeSetsYesOrNoCategoryType">
              <xs:annotation>
                <xs:documentation>Does this contact have access to the student's records?</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="EmergencyContact" minOccurs="0" nillable="true" type="sif:AUCodeSetsYesOrNoCategoryType">
              <xs:annotation>
                <xs:documentation>Should this contact be notified in case of emergency?</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="HasCustody" minOccurs="0" nillable="true" type="sif:AUCodeSetsYesOrNoCategoryType">
              <xs:annotation>
                <xs:documentation>Does this contact have or share custody of the student?</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="DisciplinaryContact" minOccurs="0" nillable="true" type="sif:AUCodeSetsYesOrNoCategoryType">
              <xs:annotation>
                <xs:documentation>Is this person to be contacted in case of disciplinary action?</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="PrimaryCareProvider" minOccurs="0" nillable="true" type="sif:AUCodeSetsYesOrNoCategoryType">
              <xs:annotation>
                <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="sif:AUCodeSetsYesOrNoCategoryType">
              <xs:annotation>
                <xs:documentation>Is this the contact responsible for Payment of Fees?</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="FamilyMail" minOccurs="0" nillable="true" type="sif:AUCodeSetsYesOrNoCategoryType">
              <xs:annotation>
                <xs:documentation>Does this person receive family mail?</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="InterventionOrder" minOccurs="0" nillable="true" type="sif:AUCodeSetsYesOrNoCategoryType">
              <xs:annotation>
                <xs:documentation>Is there an Intervention Order against this Contact?</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="MainlySpeaksEnglishAtHome" minOccurs="0" nillable="true" type="sif:AUCodeSetsYesOrNoCategoryType">
        <xs:annotation>
          <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: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="sif:AUCodeSetsSourceCodeTypeType">
        <xs:annotation>
          <xs:documentation>Indicates the source who provided the contact sequence order. </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SIF_Metadata" minOccurs="0" nillable="true" type="sif:SIF_MetadataType" />
      <xs:element name="SIF_ExtendedElements" minOccurs="0" nillable="true" type="sif:SIF_ExtendedElementsType">
        <xs:key name="SIF_ExtendedElementsKey42">
          <xs:selector xpath="./sif:SIF_ExtendedElement" />
          <xs:field xpath="@Name" />
        </xs:key>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="StudentPersonalRefId" use="required" type="sif:RefIdType">
      <xs:annotation>
        <xs:documentation>GUID that identifies the student for the relationship.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="StudentContactPersonalRefId" use="required" type="sif:RefIdType">
      <xs:annotation>
        <xs:documentation>GUID that identifies the contact person for the relationship.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>

  <xs:element name="StudentContactRelationship" type="sif:StudentContactRelationshipType">
    <xs:key name="StudentContactRelationshipKey1">
      <xs:selector xpath="." />
      <xs:field xpath="@StudentPersonalRefId" />
      <xs:field xpath="@StudentContactPersonalRefId" />
    </xs:key>
  </xs:element>

</xs:schema>