<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.homeconnections.gov.uk" xmlns="http://www.homeconnections.gov.uk" xmlns:govtalk="http://www.govtalk.gov.uk/people/AddressAndPersonalDetails" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0a" id="IndividualAdminStructure">
	<xsd:include schemaLocation="CBLCommonSimpleTypes_v1_0.xsd"/>
	<xsd:include schemaLocation="CBLDataTypes.xsd"/>
	<xsd:import namespace="http://www.govtalk.gov.uk/people/AddressAndPersonalDetails" schemaLocation="PersonalDetailsTypes_v1_0.xsd"/>
	<xsd:annotation>
		<xsd:appinfo xmlns:gms="http://www.govtalk.gov.uk/CM/gms" xmlns:dcq="http://purl.org/dc/terms/" xmlns:dc="http://purl.org/dc/elements/1.1/">
			<dc:contributor>Anite Public Sector Limited</dc:contributor>
			<dc:creator>Anite Public Sector Limited  http://www.anite.com
				<dcq:owner>Home Connections Project, Camden, Westminster, Barnet, Kensington - Chelsea, Islington</dcq:owner>
				<dcq:contact>info@homeconnections.org.uk</dcq:contact>
			</dc:creator>
			<dc:date>
				<dcq:created>2001-12-12</dcq:created>
			</dc:date>
			<dc:date>
				<dcq:modified>2002-01-25</dcq:modified>
				<dcq:modified>2004-03-22</dcq:modified>
			</dc:date>
			<dc:format>text</dc:format>
			<dc:format>
				<dc:medium>http://www.w3.org/2000/10/XMLSchema</dc:medium>
			</dc:format>
			<dc:format>
				<dc:medium>XML Schema (.xsd) file, W3C Recommendation 2000</dc:medium>
			</dc:format>
			<dc:identifier>RegisteredAdminIndividual</dc:identifier>
			<dc:language>en</dc:language>
			<dc:publisher>Anite CGD, Unit 4 Eaton Court, Colmworth Business Park, Eaton Socon, Cambridgeshire PE19 8YH</dc:publisher>
			<dc:rights>
				<dcq:copyright>Home Connections 2002-2004</dcq:copyright>
				<gms:SecurityClassification>Unclassified</gms:SecurityClassification>
			</dc:rights>
			<dc:subject>
				<gms:Category>People, communities and living</gms:Category>
			</dc:subject>
			<dc:subject>
				<gms:Project>Home Connections Choice Based Lettings</gms:Project>
			</dc:subject>
			<dc:title>CBL Individual Administration Structure architectural schema</dc:title>
			<dc:description>
				<dcq:abstract>Schema for Individual Administration Structure definitions</dcq:abstract>
			</dc:description>
		</xsd:appinfo>
		<xsd:documentation>
			This schema is used by the Choice Based Letting pilot to transfer individual administration details from HMS to CBL		</xsd:documentation>
	</xsd:annotation>
	<xsd:simpleType name="CBLRegistrationStatusType">
		<xsd:annotation>
			<xsd:documentation>
				   Used to determine whether individual may bid for a property                    
			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string">
			<xsd:maxLength value="50"/>
			<xsd:enumeration value="Registered"/>
			<xsd:enumeration value="Deleted"/>
			<xsd:enumeration value="Suspended"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="SuspensionCodeType">
		<xsd:annotation>
			<xsd:documentation>
				   Used to determine whether individual may bid for a property                    
			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string">
			<xsd:maxLength value="4"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="SuspensionDescriptionType">
		<xsd:annotation>
			<xsd:documentation>
				   Used to determine whether individual may bid for a property                    
			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string">
			<xsd:maxLength value="50"/>
		</xsd:restriction>
	</xsd:simpleType>
	<!--The main Individual schema structure-->
	<xsd:complexType name="IndividualAdminStructure">
		<xsd:sequence>
			<xsd:element name="PropertySubType" type="CBLPropertySubType" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="home_ownership_option" type="RestrictedStringType" minOccurs="0"/>
			<xsd:element name="max_floor_level_with_lift" type="xsd:short" minOccurs="0"/>
			<xsd:element name="max_floor_level_without_lift" type="xsd:short" minOccurs="0"/>
			<xsd:element name="other_application_req" type="RestrictedStringType" minOccurs="0"/>
			<xsd:element name="DateMovedIn" type="DateType" minOccurs="0"/>
			<xsd:element name="PointsAllocated" type="xsd:integer" minOccurs="0"/>
			<xsd:element name="RegistrationStatus" type="CBLRegistrationStatusType" minOccurs="0"/>
			<xsd:element name="WaitingListReference" type="RestrictedStringType" minOccurs="0"/>
			<xsd:element name="AreaTypeRequested" type="CBLAreaCodeType" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="EligibleNoBedrooms" type="xsd:integer" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="PropertyTypeRequested" type="CBLDwellingType" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="EligibleForSheltered" type="YesNoType" minOccurs="0"/>
			<xsd:element name="MutualExchangeInterest" type="YesNoType" minOccurs="0"/>
			<xsd:element name="EffectiveDate" type="xsd:date" minOccurs="0"/>
			<xsd:element name="ContactOfficer" type="govtalk:CitizenNameStructure" minOccurs="0"/>
			<xsd:element name="ChannelUsedToRegister" type="CBLChannelType" minOccurs="0"/>
			<xsd:element name="Eligibility" type="RestrictedStringType" minOccurs="0"/>
			<xsd:element name="Tenure" type="CurrentTenureType" minOccurs="0"/>
			<xsd:element name="CurrentResidencyCouncil" type="YesNoType" minOccurs="0"/>
			<xsd:element name="CurrentResidencyBand" type="RestrictedStringType" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="RegistrationDate" type="xsd:date" minOccurs="0"/>
			<xsd:element name="HighPriorityWaitingList" type="YesNoType" minOccurs="0"/>
			<xsd:element name="SuspensionCode" type="SuspensionCodeType" minOccurs="0"/>
			<xsd:element name="SuspensionDescription" type="SuspensionDescriptionType" minOccurs="0"/>
			<xsd:element name="Notes" type="CBLNotesType" minOccurs="0"/>
			<xsd:element name="CommonCurrencyPointsAllocated" type="xsd:integer" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						The approximate minimum number of points required to bid for the property in
						a commonly agreed currency 
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="CommonCurrencyBandAllocated" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						The commonly agreed band rating required to bid for the property
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="TemporaryAccommodationEligible" type="YesNoType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Whether the applicant is eligible for temporary accommodation
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>
