<!--
		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="WellbeingAppealType">
    <xs:sequence>
      <xs:element name="StudentPersonalRefId" type="IdRefType" />
      <xs:element name="SchoolInfoRefId" type="IdRefType" />
      <xs:element name="WellbeingResponseRefId" type="IdRefType" />
      <xs:element name="LocalAppealId" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="AppealStatusCode" minOccurs="0" nillable="true" type="AUCodeSetsWellbeingAppealStatusType" />
      <xs:element name="Date" minOccurs="0" nillable="true" type="xs:date" />
      <xs:element name="AppealNotes" minOccurs="0" nillable="true" type="xs:string" />
      <xs:element name="AppealOutcome" minOccurs="0" nillable="true" type="xs:string" />
      <xs:element name="DocumentList" minOccurs="0" nillable="true" type="WellbeingDocumentListType" />
      <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="RefId" use="required" type="RefIdType" />
  </xs:complexType>

  <xs:element name="WellbeingAppeal" type="WellbeingAppealType">
    <xs:key name="WellbeingAppealKey1">
      <xs:selector xpath="./WellbeingAppeal" />
      <xs:field xpath="@RefId" />
    </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" />

</xs:schema>