<?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="PropertyStructure">
	<xsd:include schemaLocation="CBLDataTypes.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>PropertyStructure</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 Property Structure architectural schema</dc:title>
			<dc:description>
				<dcq:abstract>Schema for Property Structure definitions</dcq:abstract>
			</dc:description>
		</xsd:appinfo>
		<xsd:documentation>
			This schema is used by the Choice Based Letting pilot to transfer property details from HMS to CBL				</xsd:documentation>
	</xsd:annotation>
	<xsd:simpleType name="PropertyDescriptorType">
		<xsd:restriction base="xsd:string">
			<xsd:maxLength value="50"/>
			<xsd:minLength value="1"/>
			<xsd:whiteSpace value="preserve"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="CBLInternalModificationsType">
		<xsd:annotation>
			<xsd:documentation>
				The following descriptions apply to the enumerated types listed below:
				1: Property doors are automatic
				2: Property is fully wheelchair accessible
				3: Stair lift is fitted
				4: Hand rails fitted in washing areas
				5: Other
			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:integer">
			<xsd:enumeration value="1"/>
			<xsd:enumeration value="2"/>
			<xsd:enumeration value="3"/>
			<xsd:enumeration value="4"/>
			<xsd:enumeration value="5"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="CBLExternalFacilitiesType">
		<xsd:annotation>
			<xsd:documentation>
				The following descriptions apply to the enumerated types listed below:
				1: Priority parking places on-site for people with disabilities
				2: On-street, disabled badge parking places nearby (less than about 100 metres/yards away)
				3: Set down point for easy access to the property nearby (less than 100 metres/yards away)
				4: There is a train/underground station nearby (less than 100 metres/yards away)
				5: There a bus stop less than 100 metres away
				6: From the nearest bus stop people would encounter no obstacles
				7: From the nearest train/underground station, people will encounter no obstacles
				10: Guide dogs and hearing dogs are permitted
				11: Someone is especially responsible on-site for arrangements to meet the needs of people with disabilities
				12: British Sign Language support on-site?
				13: No steps to and including property entrance
				15. The access route to the property is adequately illuminated
				16. Other
			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:integer">
			<xsd:enumeration value="1"/>
			<xsd:enumeration value="2"/>
			<xsd:enumeration value="3"/>
			<xsd:enumeration value="4"/>
			<xsd:enumeration value="5"/>
			<xsd:enumeration value="6"/>
			<xsd:enumeration value="7"/>
			<xsd:enumeration value="10"/>
			<xsd:enumeration value="11"/>
			<xsd:enumeration value="12"/>
			<xsd:enumeration value="13"/>
			<xsd:enumeration value="15"/>
			<xsd:enumeration value="16"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="CBLBlockType">
		<xsd:annotation>
			<xsd:documentation>
				The following descriptions apply to the enumerated types listed below:
				EB:   Estate Block              
				SE: Small Estate    
				LE: Large Estate         
				SP: Street Property
				IB: Individual Block
				TB: Tower Block
				OT: Other
			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string">
			<xsd:maxLength value="2"/>
			<xsd:enumeration value="EB"/>
			<xsd:enumeration value="SE"/>
			<xsd:enumeration value="LE"/>
			<xsd:enumeration value="SP"/>
			<xsd:enumeration value="IB"/>
			<xsd:enumeration value="TB"/>
			<xsd:enumeration value="OT"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="CBLHeatingType">
		<xsd:annotation>
			<xsd:documentation>
				The following descriptions apply to the enumerated types listed below:
				N: None (no permanently fixed heating facilities)
				CH: Central Heating
				SH: Storage heaters
				GF: Gas Fire
				E7: Economy 7 night time heating
				BA: Blow Air
				CMH: Communal Heating
				DH: District Heating
				EFH: Electric Fires
				ENSH: Electric Nightime Storage Heaters				
				OFH: Open Fires
				SFH: solid fuel heating
				EU: Electric Underfloor Heating
				EA: Electric Warm Air Heating
				EC: Electric Ceiling Heater System
				SFF: Closed solid Fuel Fire
				EH: Electric central heating
				GBB: Gas back boiler for hot water
				GWH: Gas water heater
				CMH: Communal Heating
				EWH: Electric water heater
				GCH: Gas Convector heater
				GAW: Gas warm air wall heater
				GFB: Gas fire and Back Boiler
				SB: Solid Fuel Boiler
				GW: Gas Wall Heater(s)
				GCH: Gas Convector Heater
				EF: Electric Fan Heater
				GB: Gas Boiler
				ECH: Electric Convector heater



			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string">
			<xsd:maxLength value="4"/>
			<xsd:enumeration value="N"/>
			<xsd:enumeration value="CH"/>
			<xsd:enumeration value="SH"/>
			<xsd:enumeration value="GF"/>
			<xsd:enumeration value="E7"/>
			<xsd:enumeration value="BA"/>
			<xsd:enumeration value="CMH"/>
			<xsd:enumeration value="DH"/>
			<xsd:enumeration value="EFH"/>
			<xsd:enumeration value="ENSH"/>
			<xsd:enumeration value="OFH"/>
			<xsd:enumeration value="SFH"/>
			<xsd:enumeration value="EU"/>
			<xsd:enumeration value="EA"/>		
			<xsd:enumeration value="EC"/>
			<xsd:enumeration value="SFF"/>
			<xsd:enumeration value="EH"/>
			<xsd:enumeration value="GBB"/>
			<xsd:enumeration value="GWH"/>
			<xsd:enumeration value="CMH"/>
			<xsd:enumeration value="EWH"/>
			<xsd:enumeration value="GCH"/>
			<xsd:enumeration value="GAW"/>
			<xsd:enumeration value="GFB"/>
			<xsd:enumeration value="SB"/>
			<xsd:enumeration value="GW"/>
			<xsd:enumeration value="GCH"/>
			<xsd:enumeration value="EF"/>			
			<xsd:enumeration value="GB"/>
			<xsd:enumeration value="ECH"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="CBLEnergyConservationType">
		<xsd:annotation>
			<xsd:documentation>
				The following descriptions apply to the enumerated types listed below:
				SH: Solar water heating
				DG: Double glazing (uvpc or secondary)
				CW: Cavity wall insulation
				RS: Roof space insulation
				EL: Energy saving light bulbs	
							
			

			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string">
			<xsd:maxLength value="3"/>
			<xsd:enumeration value="SH"/>
			<xsd:enumeration value="DG"/>
			<xsd:enumeration value="CW"/>
			<xsd:enumeration value="RS"/>
			<xsd:enumeration value="EL"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:element name="PropertyDetail" type="PropertyStructure"/>
	<!--The main property schema structure-->
	<xsd:complexType name="PropertyStructure">
		<xsd:sequence>
			<xsd:element name="OsGridReference" type="OSGridRefsStructure" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
This represents the OS grid ref data for property location. The XML document author must provide
easterly and northerly together or not at all.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="PropertyName" type="PropertyDescriptorType" minOccurs="0"/>
			<xsd:element name="StreetName" type="RestrictedStringType" minOccurs="0"/>
			<xsd:element name="Address" type="govtalk:UKAddressStructure"/>
			<xsd:element name="CouncilTaxBand" type="CouncilTaxBandType" minOccurs="0"/>
			<xsd:element name="CouncilSubRegion" type="CBLAreaCodeType"/>
			<xsd:element name="DwellingType" type="CBLDwellingType"/>
			<xsd:element name="BlockType" type="CBLBlockType"/>
			<xsd:element name="NoOfBedrooms" type="xsd:short"/>
			<xsd:element name="NoOfBedspaces" type="xsd:short" minOccurs="0"/>
			<xsd:element name="LivingRoom" type="YesNoType" minOccurs="0"/>
			<xsd:element name="Garden" type="YesNoType" minOccurs="0"/>
			<xsd:element name="TypeOfGarden" type="RestrictedStringType" minOccurs="0"/>
			<xsd:element name="OtherServices" type="RestrictedStringType" minOccurs="0"/>
			<xsd:element name="FloorLevel" type="RestrictedStringType">
				<xsd:annotation>
					<xsd:documentation>
						The floor level on which the front door of the accomodation is situated
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="dwelling_subtype" type="RestrictedStringType" minOccurs="0"/>
			<xsd:element name="NoOfFloors" type="RestrictedStringType" minOccurs="0"/>
			<xsd:element name="FloorsInBlock" type="xsd:short" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						The number of floors in the whole block
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="NoOfHabitableRooms" type="xsd:short" minOccurs="0"/>
			<xsd:element name="NoOfKitchens" type="xsd:short" minOccurs="0"/>
			<xsd:element name="SharedKitchen" type="YesNoType" minOccurs="0"/>
			<xsd:element name="NoOfBathrooms" type="xsd:short" minOccurs="0"/>
			<xsd:element name="SharedBathroom" type="YesNoType" minOccurs="0"/>
			<xsd:element name="ParkingSpace" type="YesNoType" minOccurs="0"/>
			<xsd:element name="AvailableParking" type="RestrictedStringType" minOccurs="0"/>
			<xsd:element name="Garage" type="YesNoType" minOccurs="0"/>
			<xsd:element name="TypeOfHeating" type="CBLHeatingType" minOccurs="0"/>
			<xsd:element name="EnergyConservation" type="CBLEnergyConservationType" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="Lift" type="YesNoType" minOccurs="0"/>
			<xsd:element name="Sheltered" type="YesNoType" minOccurs="0"/>
			<xsd:element name="SubstantiallyAdapted" type="YesNoType" minOccurs="0"/>
			<xsd:element name="PropertyForDisabled" type="YesNoType" minOccurs="0"/>
			<xsd:element name="InternalModifications" type="CBLInternalModificationsType" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="ExternalFacilities" type="CBLExternalFacilitiesType" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="InternalFeaturesStructure" minOccurs="0" >
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="InternalFeatureDescription" type="RestrictedStringType" minOccurs="0" maxOccurs="unbounded"/>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="ExternalFeaturesStructure" minOccurs="0" >
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="ExternalFeatureDescription" type="RestrictedStringType" minOccurs="0" maxOccurs="unbounded"/>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="AdditionalFeaturesStructure" minOccurs="0" >
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="AdditionalFeatureDescription" type="RestrictedStringType" minOccurs="0" maxOccurs="unbounded"/>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="Notes" type="CBLNotesType" minOccurs="0"/>
			<xsd:element name="AvailableForRent" type="YesNoType" minOccurs="0"/>
			<xsd:element name="OccupiedFlag" type="YesNoType" minOccurs="0"/>
			<xsd:element name="PropertyStatus" type="RestrictedStringType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Text description of status, e.g void or awaiting rennovation
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="OSGridRefsStructure">
		<xsd:sequence>
			<xsd:element name="OSEasterly" type="OSGridReferenceEastType"/>
			<xsd:element name="OSNorttherly" type="OSGridReferenceNorthType"/>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>
