<?xml version="1.0" encoding="UTF-8"?>
<xs:schema 
    xmlns="http://www.RecordsForLiving.com/Schemas/2009-04/HealthFrameWorks/ServiceDirectoryURL/" 
    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
    targetNamespace="http://www.RecordsForLiving.com/Schemas/2009-04/HealthFrameWorks/ServiceDirectoryURL/" 
    elementFormDefault="qualified" 
    attributeFormDefault="unqualified"
    >
	<xs:element name="Services">
		<xs:annotation>
			<xs:documentation>List of available service endpoints.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Service" minOccurs="0" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="Type" type="xs:string">
								<xs:annotation>
									<xs:documentation>
                    The Service Type refers to the external API provided by the service.
                    The form of the value is a URI - which is the namespace URI of the schema. This is used
                    as an alias for the type of the service.
                    Possible values include:
                    http://www.RecordsForLiving.com/Schemas/2009-04/HealthFrameWorks/IRepository_V1/
                    http://www.RecordsForLiving.com/Schemas/2009-04/HealthFrameWorks/PHRExchange_V1/
                  </xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="Description" minOccurs="0"/>
							<xs:element name="EndPoints">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="EndPoint" maxOccurs="unbounded">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="URL"/>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>

