<!--
		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="WellbeingCharacteristicType">
    <xs:sequence>
      <xs:element name="StudentPersonalRefId" type="IdRefType" />
      <xs:element name="SchoolInfoRefId" minOccurs="0" nillable="true" type="IdRefType" />
      <xs:element name="WellbeingCharacteristicClassification" minOccurs="0" nillable="true" type="AUCodeSetsWellbeingCharacteristicClassificationType" />
      <xs:element name="WellbeingCharacteristicStartDate" minOccurs="0" nillable="true" type="xs:date" />
      <xs:element name="WellbeingCharacteristicEndDate" minOccurs="0" nillable="true" type="xs:date" />
      <xs:element name="WellbeingCharacteristicReviewDate" minOccurs="0" nillable="true" type="xs:date" />
      <xs:element name="WellbeingCharacteristicNotes" minOccurs="0" nillable="true" type="xs:string" />
      <xs:element name="WellbeingCharacteristicCategory" minOccurs="0" nillable="true">
        <xs:simpleType>
          <xs:union>
            <xs:simpleType>
              <xs:restriction base="AUCodeSetsWellbeingCharacteristicCategoryType" />
            </xs:simpleType>
            <xs:simpleType>
              <xs:restriction base="xs:string" />
            </xs:simpleType>
          </xs:union>
        </xs:simpleType>
      </xs:element>
      <xs:element name="WellbeingCharacteristicSubCategory" minOccurs="0" nillable="true">
        <xs:simpleType>
          <xs:union>
            <xs:simpleType>
              <xs:restriction base="AUCodeSetsWellbeingCharacteristicSubCategoryType" />
            </xs:simpleType>
            <xs:simpleType>
              <xs:restriction base="xs:string" />
            </xs:simpleType>
          </xs:union>
        </xs:simpleType>
      </xs:element>
      <xs:element name="LocalCharacteristicCode" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="CharacteristicSeverity" minOccurs="0" nillable="true" type="xs:string" />
      <xs:element name="DailyManagement" minOccurs="0" nillable="true" type="xs:string" />
      <xs:element name="EmergencyManagement" minOccurs="0" nillable="true" type="xs:string" />
      <xs:element name="EmergencyResponsePlan" minOccurs="0" nillable="true" type="xs:string" />
      <xs:element name="Trigger" minOccurs="0" nillable="true" type="xs:string" />
      <xs:element name="ConfidentialFlag" minOccurs="0" nillable="true" type="AUCodeSetsYesOrNoCategoryType" />
      <xs:element name="Alert" minOccurs="0" nillable="true" type="AUCodeSetsYesOrNoCategoryType" />
      <xs:element name="MedicationList" minOccurs="0" nillable="true" type="MedicationListType" />
      <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="WellbeingCharacteristic" type="WellbeingCharacteristicType">
    <xs:key name="WellbeingCharacteristicKey1">
      <xs:selector xpath="./WellbeingCharacteristic" />
      <xs:field xpath="@RefId" />
    </xs:key>
  </xs:element>

  <xs:complexType name="WellbeingCharacteristicCollectionType">
    <xs:sequence>
      <xs:element name="WellbeingCharacteristic" type="WellbeingCharacteristicType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="WellbeingCharacteristics" type="WellbeingCharacteristicCollectionType" />

</xs:schema>