<!--
		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="WellbeingEventType">
    <xs:sequence>
      <xs:element name="StudentPersonalRefId" type="IdRefType" />
      <xs:element name="SchoolInfoRefId" type="IdRefType" />
      <xs:element name="EventId" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="WellbeingEventNotes" minOccurs="0" nillable="true" type="xs:string" />
      <xs:element name="WellbeingEventCategoryClass" type="AUCodeSetsWellbeingEventCategoryClassType" />
      <xs:element name="WellbeingEventCategoryList" minOccurs="0" nillable="true" type="WellbeingEventCategoryListType" />
      <xs:element name="ReportingStaffRefId" minOccurs="0" nillable="true" type="IdRefType" />
      <xs:element name="WellbeingEventLocationDetails" minOccurs="0" nillable="true" type="WellbeingEventLocationDetailsType" />
      <xs:element name="WellbeingEventCreationTimeStamp" minOccurs="0" nillable="true" type="xs:dateTime" />
      <xs:element name="WellbeingEventDate" type="xs:date" />
      <xs:element name="WellbeingEventTime" minOccurs="0" nillable="true" type="xs:time" />
      <xs:element name="WellbeingEventDescription" minOccurs="0" nillable="true" type="xs:string" />
      <xs:element name="WellbeingEventTimePeriod" type="AUCodeSetsWellbeingEventTimePeriodType" />
      <xs:element name="ConfidentialFlag" minOccurs="0" nillable="true" type="AUCodeSetsYesOrNoCategoryType" />
      <xs:element name="PersonInvolvementList" minOccurs="0" nillable="true" type="PersonInvolvementListType" />
      <xs:element name="FollowUpActionList" minOccurs="0" nillable="true" type="FollowUpActionListType" />
      <xs:element name="Status" minOccurs="0" nillable="true" type="AUCodeSetsWellbeingStatusType" />
      <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="WellbeingEvent" type="WellbeingEventType">
    <xs:key name="WellbeingEventKey1">
      <xs:selector xpath="./WellbeingEvent" />
      <xs:field xpath="@RefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="WellbeingEventCollectionType">
    <xs:sequence>
      <xs:element name="WellbeingEvent" type="WellbeingEventType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="WellbeingEvents" type="WellbeingEventCollectionType" />

</xs:schema>