<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.homeconnections.gov.uk" xmlns:govtalk="http://www.govtalk.gov.uk/people/AddressAndPersonalDetails" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.homeconnections.gov.uk" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0a" id="RegisteredIndividual">
	<xsd:include schemaLocation="CBLDataTypes.xsd"/>
	<xsd:include schemaLocation="CBLNationalEthnicityCodes.xsd"/>
	<xsd:import namespace="http://www.govtalk.gov.uk/people/AddressAndPersonalDetails" schemaLocation="PersonalDetailsTypes_v1_0.xsd"/>
	<xsd:import namespace="http://www.govtalk.gov.uk/people/AddressAndPersonalDetails" schemaLocation="AddressTypes_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>RegisteredIndividual</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 Structure architectural schema</dc:title>
			<dc:description>
				<dcq:abstract>Schema for Individual Structure definitions</dcq:abstract>
			</dc:description>
		</xsd:appinfo>
		<xsd:documentation>
			This schema is used by the Choice Based Letting pilot to transfer individual details from HMS to CBL		</xsd:documentation>
	</xsd:annotation>
	<xsd:complexType name="IndividualAddressStructure">
		<xsd:sequence>
			<xsd:choice>
				<xsd:annotation>
					<xsd:documentation>One Residential Address or One Correspondence Address or Both.</xsd:documentation>
				</xsd:annotation>
				<xsd:element name="ResidentialAddress" type="govtalk:UKAddressStructure"/>
				<xsd:element name="CorrespondenceAddress" type="govtalk:UKAddressStructure"/>
				<xsd:sequence>
					<xsd:annotation>
						<xsd:documentation>Both</xsd:documentation>
					</xsd:annotation>
					<xsd:element name="ResidentialAddress" type="govtalk:UKAddressStructure"/>
					<xsd:element name="CorrespondenceAddress" type="govtalk:UKAddressStructure"/>
				</xsd:sequence>
			</xsd:choice>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="HouseholdMemberStructure">
		<xsd:sequence>
			<xsd:element name="IndividualDetails" type="govtalk:CitizenDetailsStructure"/>
			<xsd:element name="Nationality" type="NationalityType" minOccurs="0"/>
			<xsd:element name="Ethnicity" type="EthnicityType" minOccurs="0"/>
			<xsd:element name="EthnicityCode" type="RestrictedStringType" minOccurs="0"/>
			<xsd:element name="EthnicityDescription" type="RestrictedStringType" minOccurs="0"/>
			<xsd:element name="Disabled" type="YesNoType" minOccurs="0"/>
			<xsd:element name="DisabledCategories" type="CBLDisabledCategoriesType" minOccurs="0"/>
			<xsd:element name="VulnerablePerson" type="YesNoType" minOccurs="0"/>
			<xsd:element name="VulnerableCategories" type="CBLVulnerableCategoriesType" minOccurs="0"/>
			<xsd:element name="CoupleID" type="RestrictedStringType"/>
			<xsd:element name="Warning" type="WarningCodeType" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<!--The main Individual schema structure-->
	<xsd:complexType name="RegisteredIndividual">
		<xsd:sequence>
			<xsd:element name="IndividualDetails" type="govtalk:CitizenDetailsStructure">
				<xsd:annotation>
					<xsd:documentation>Mandatory</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="IndividualAddress" type="IndividualAddressStructure"/>
			<xsd:element name="ApplicantStatus" type="RestrictedStringType" minOccurs="0"/>
			<xsd:element name="Nationality" type="NationalityType" minOccurs="0"/>
			<xsd:element name="Ethnicity" type="EthnicityType" minOccurs="0"/>
			<xsd:element name="EthnicityDescription" type="RestrictedStringType" minOccurs="0"/>
			<xsd:element name="Disabled" type="YesNoType" minOccurs="0"/>
			<xsd:element name="VulnerablePerson" type="YesNoType" minOccurs="0"/>
			<xsd:element name="VulnerableCategories" type="CBLVulnerableCategoriesType" minOccurs="0"/>
			<xsd:element name="Warning" type="WarningCodeType" minOccurs="0"/>
			<xsd:element name="CoupleID" type="RestrictedStringType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						The couple id is used to link related individuals - e.g two partners, brother and sister etc.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="HouseHoldMember" type="HouseholdMemberStructure" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="Notes" type="CBLNotesType" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>
