<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.homeconnections.gov.uk" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:govtalk="http://www.govtalk.gov.uk/people/AddressAndPersonalDetails" xmlns="http://www.homeconnections.gov.uk" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0a" id="PropertyAdminStructure">
	<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>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 Administration Structure architectural schema</dc:title>
			<dc:description>
				<dcq:abstract>Schema for Property Administration Structure definitions</dcq:abstract>
			</dc:description>
		</xsd:appinfo>
		<xsd:documentation>
			This schema is used by the Choice Based Letting pilot to transfer property administration details from HMS to CBL
		</xsd:documentation>
	</xsd:annotation>
	<xsd:simpleType name="ChargeFrequencyType">
		<xsd:annotation>
			<xsd:documentation>
				The following descriptions apply to the enumerated types listed below
				1: One date in the year
				2: Two date in the year
				3: Three dates in the year
				4: Four dates in the year
				L: Last day of every month
				M: Last day of specific month
				P: Last working day of every month
				W: Weekly
				F: Fortnightly
				X: Not applicable
				Z: Irregularly (see notes)
			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string">
			<xsd:maxLength value="1"/>
			<xsd:enumeration value="1"/>
			<xsd:enumeration value="2"/>
			<xsd:enumeration value="3"/>
			<xsd:enumeration value="4"/>
			<xsd:enumeration value="C"/>
			<xsd:enumeration value="D"/>
			<xsd:enumeration value="L"/>
			<xsd:enumeration value="M"/>
			<xsd:enumeration value="P"/>
			<xsd:enumeration value="W"/>
			<xsd:enumeration value="X"/>
			<xsd:enumeration value="Z"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="CBLPropertyRefNumberType">
		<xsd:annotation>
			<xsd:documentation>
				The reference number for property as made public on adverts and used by IVR system
			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="RestrictedStringType">
			<xsd:maxLength value="40"/>
			<xsd:minLength value="1"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:element name="PropertyAdmin" type="PropertyAdminStructure"/>
	<!--The main property schema structure-->
	<xsd:complexType name="PropertyAdminStructure">
		<xsd:sequence>
			<xsd:element name="TotalRentAmount" type="xsd:float" minOccurs="0"/>
			<xsd:element name="TotalRentDescription" type="RestrictedStringType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Description of what the rent includes (e.g. heating etc)
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ChargeFrequency" type="ChargeFrequencyType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						The charge frequency indicates what the TotalRentAmount figure
						represents, e.g £xx per month. It does not represent how often a tenant will have to pay - as 							this varies depending on the circumstance of the tenant.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="HeatingIncludedInRent" type="YesNoType" minOccurs="0"/>
			<xsd:element name="DateAvailable" type="DateType" minOccurs="0"/>
			<xsd:element name="FirstComeFirstServed" type="YesNoType" minOccurs="0"/>
			<xsd:element name="BidOpeningDate" type="DateType" minOccurs="0"/>
			<xsd:element name="BidClosingDate" type="DateType" minOccurs="0"/>
			<xsd:element name="OfficerContactName" type="govtalk:CitizenNameStructure" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Housing officer responsible for managing the property
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="OfficerContactDetails" type="govtalk:CitizenContactDetailsStructure" minOccurs="0"/>
			<xsd:element name="MinimumPointsRequired" type="xsd:short" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						The approximate minimum number of points required to let the property
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="PointsLet" type="xsd:short" minOccurs="0"/>
			<xsd:element name="PointsLetDescription" type="RestrictedStringType" minOccurs="0"/>
			<xsd:element name="OfferDate" type="DateType" minOccurs="0"/>
			<xsd:element name="PropertyRefNumber" type="CBLPropertyRefNumberType" minOccurs="0"/>
			<xsd:element name="ShortListClosingDate" type="DateType" minOccurs="0"/>
			<xsd:element name="ViewingDateTime" type="CBLDateTimeStructure" minOccurs="0"/>
			<xsd:element name="TMOCode" type="RestrictedStringType" minOccurs="0"/>
			<xsd:element name="TMODescription" type="RestrictedStringType" minOccurs="0"/>
			<xsd:element name="BiddingRestrictionCode" type="CBLBiddingRestrictionCodeType" minOccurs="0"/>
			<xsd:element name="CommonCurrencyPointsRequired" type="xsd:short" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						The approximate minimum number of points required to let the property in
						a commonly agreed currency 
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="CommonCurrencyBandRequired" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						The commonly agreed band rating required to let the property
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="TemporaryAccommodation" type="YesNoType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Whether this property is for temporary accommodation
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>
