<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2006 rel. 3 U (http://www.altova.com) by Jim Bowery (Landmark Information Group Ltd.) -->
<xs:schema xmlns="DCLG-SAP" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:pfdt="DCLG-HIP/BaseDataTypes" xmlns:HIP="DCLG-HIP" targetNamespace="DCLG-SAP" elementFormDefault="qualified" attributeFormDefault="unqualified" version="LIG-NI-16.0">
	<xs:annotation>
		<xs:documentation>© Department of Communities and Local Government. © Crown copyright, 2007. The Home Condition Report logo and associated wording is a registered trade mark - any unlicensed use is not permitted. Copyright in the typographical arrangement of this document rests with the Crown. This publication, excluding logos, may be reproduced free of charge in any format or medium for research, private study, for internal circulation within an organisation or by registered scheme users. This is subject to it being reproduced accurately and not used in a misleading context.</xs:documentation>
	</xs:annotation>
	<xs:import namespace="DCLG-HIP/BaseDataTypes" schemaLocation="../UDT/BaseDataTypes.xsd"/>
	<xs:import namespace="DCLG-HIP" schemaLocation="../Templates/EPC-CollectedData.xsd"/>
	<xs:import namespace="DCLG-HIP" schemaLocation="../Templates/EPC-Certificate.xsd"/>
	<xs:import namespace="DCLG-HIP" schemaLocation="../UDT/HCR-Domains.xsd"/>
	<xs:include schemaLocation="../Templates/AssessorManagement.xsd"/>
	<xs:element name="Energy-Performance-Certificate" type="Energy-Performance-Certificate"/>
	<xs:complexType name="Energy-Performance-Certificate">
		<xs:all>
			<xs:element name="Calculation-Software-Name" type="xs:string">
				<xs:annotation>
					<xs:documentation>Name of the software used to perform the SAP calculation.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Calculation-Software-Version" type="xs:string">
				<xs:annotation>
					<xs:documentation>Version of the software used to perform the SAP calculation.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="SAP-Version" type="HIP:SAP-VersionCode">
				<xs:annotation>
					<xs:documentation>Version of RdSAP that was used for the assessment.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="BEDF-Revision-Number" type="xs:string"/>
			<xs:element name="Energy-Assessment" type="HIP:Energy-Assessment"/>
			<xs:element name="SAP-Data" type="HIP:SAP-Data" minOccurs="0"/>
			<xs:element name="Report-Header" type="Report-Header"/>
			<xs:element name="Insurance-Details" type="Insurance-Details"/>
			<xs:element name="ExternalDefinitions-Revision-Number" type="xs:string">
				<xs:annotation>
					<xs:documentation>A number indicating the version of related ExternalDefinitions.xsd</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:all>
	</xs:complexType>
	<xs:element name="ReportKeyFields" type="ReportKeyFields"/>
	<xs:complexType name="ReportKeyFields">
		<xs:annotation>
			<xs:documentation>Primary Key Fields definition for Home Condition Report - used when a message requires a reference tio a report to be passed.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="RRN" type="pfdt:RRNType"/>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="Insurance-Details" type="Insurance-Details"/>
	<xs:complexType name="Insurance-Details">
		<xs:annotation>
			<xs:documentation>Details of the Professional Indemnity Insurance policy used to provide cover against a compensation claim against any particular Home Condition Report.

A particular Home Condition Report may be covered by an Professional Indemnity Insurance policy in one of three different ways:
*	The Home Inspector has personal Professional Indemnity Insurance and the Home Condition Report is covered by this.
*	The Home Condition Report is covered by an umbrella Professional Indemnity Insurance policy held by the Home Condition Report Supplier that assigned the inspection to the Home Inspector.
*	An individual insurance policy is taken out to cover the individual report such as the case where the property is unusual and falls outside the Home Inspectors normal Professional Indemnity Insurance policy.

A Home Inspector may use any or all of these methods to providing Professional Indemnity Insurance for a Report on a case-by-case basis.
</xs:documentation>
		</xs:annotation>
		<xs:all>
			<xs:element name="Insurer" type="xs:string">
				<xs:annotation>
					<xs:documentation>The name of the insurance company that underwrites / issued the insurance policy</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Policy-No" type="xs:string">
				<xs:annotation>
					<xs:documentation>The policy number of the insurance policy</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Effective-Date" type="xs:date">
				<xs:annotation>
					<xs:documentation>The date that the insurance policy becomes effective (commences cover)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Expiry-Date" type="xs:date">
				<xs:annotation>
					<xs:documentation>The date that the insurance policy is supposed to expire.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="PI-Limit" type="pfdt:Money">
				<xs:annotation>
					<xs:documentation>The upper limit of the Professional Indemnity cover provided by the insurance policy.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:all>
	</xs:complexType>
	<xs:element name="Report-Header" type="Report-Header"/>
	<xs:complexType name="Report-Header">
		<xs:annotation>
			<xs:documentation>Report Header contains all the identification and searchable details for the Report.</xs:documentation>
		</xs:annotation>
		<xs:all>
			<xs:element name="RRN" type="pfdt:RRNType">
				<xs:annotation>
					<xs:documentation>Report Reference Number is the unique report Identifier that the report will be publicly known by.

The RRN is allocated to the Report at the point that it is registered and will be algorithmically derived from the natural key characteristics of the Home Condition Report i.e. The Unique Property Reference Number (UPRN) and Inspection Date.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Inspection-Date" type="xs:date">
				<xs:annotation>
					<xs:documentation>The date that the inspection was actually carried out by the Home Inspector.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Report-Type" type="HIP:ReportTypeCode">
				<xs:annotation>
					<xs:documentation>The type of Home Inspection that was carried out.

Initially the only allowed type will be a Home Condition Report inspection but this may be extended in the future to cover Energy Assessment Only inspections.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Completion-Date" type="xs:date">
				<xs:annotation>
					<xs:documentation>The date that the Home Inspector completed the report. This will be after the Inspection Date but generally before the Registration Date.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Registration-Date" type="xs:date">
				<xs:annotation>
					<xs:documentation>The date that the report was submitted to the HCR Registration Organisation for lodging in the HCR Register.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Status" type="HIP:ReportStatusCode">
				<xs:annotation>
					<xs:documentation>The Status of the Report.

A Home Condition Report can have a number of distinct states depending on whereabouts in its overall lifecycle the HCR is - see Home Condition Report Statechart for more details.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Language-Code" type="pfdt:LanguageCode">
				<xs:annotation>
					<xs:documentation>The language that the report is written in. </xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Restricted-Access" type="HIP:RestrictedAccessCode">
				<xs:annotation>
					<xs:documentation>Indicates that the Seller wants to restrict access to the Home Condition Report to General Public / Unregistered Users only.

Some members of the public have a moral / religious objection to money lending and hence may not want to let Mortgage Lenders have access to the data. When set to "Yes" retrieval of the structured (XML) data will be blocked.

However anyone with access to the Report Reference Number (RRN) can retrieve the PDF version of the Home Condition Report via the public access mechanism which cannot be restricted in this way.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Seller-Commission-Report" type="pfdt:Flag">
				<xs:annotation>
					<xs:documentation>Indicates that the HCR was commissioned by the Seller of the Property or their Agent. This is required in order to differentiate these reports from Buyer commisioned reports  which are not eligible for inclusion in a Home Information Pack</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Property-Type" type="HIP:PropertyTypeCode">
				<xs:annotation>
					<xs:documentation>Describes the type of Property that is being inspected. This should be the same as the Property-Type recorded in the Property-Details section.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Region-Code" type="HIP:UKRegionCode" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Region within the UK.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Country-Code" type="HIP:UKCountryCode" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Country within the UK.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Transaction-Type" type="HIP:TransactionType" default="1"/>
			<xs:element name="Home-Inspector" type="Home-Inspector"/>
			<xs:element name="Property" type="HIP:Property"/>
			<xs:element name="Related-Party-Disclosure">
				<xs:complexType>
					<xs:choice>
						<xs:element name="Related-Party-Disclosure-Number" type="HIP:DisclosureCode">
							<xs:annotation>
								<xs:documentation>Code indicating any potential conflicts of interest or commercial relationships with other parties.</xs:documentation>
							</xs:annotation>
						</xs:element>
						<xs:element name="Related-Party-Disclosure-Text" type="pfdt:Sentence">
							<xs:annotation>
								<xs:documentation>For backward compatibility only</xs:documentation>
							</xs:annotation>
						</xs:element>
					</xs:choice>
				</xs:complexType>
			</xs:element>
		</xs:all>
	</xs:complexType>
</xs:schema>