<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSpy v2005 sp1 U (http://www.xmlspy.com) by Steve O'Hagan (The University of Manchester) -->
<!-- - - - - - - - - - - - - - - - - - - - - - - -  -->
<!-- Schema: Human.xsd         -->
<!-- - - - - - - - - - - - - - - - - - - - - - - -  -->
<!--
    SCHEMA: Human.xsd
    AUTHOR: Irena Spasic
    LAST CHANGE: 17-11-2005
    DESCRIPTION: This document provides an XML schema which models 
    the meta data for human samples. 
-->
<xs:schema xmlns:HMN="http://www.Human.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.Human.com" elementFormDefault="unqualified" attributeFormDefault="unqualified">
	<!-- - - - - - - - - - - - - - - - - - - - - - - -  -->
	<!--  Root element: human                           -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - -  -->
	<xs:element name="human">
		<xs:annotation>
			<xs:documentation>Description of a human subject</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="comment" type="xs:string" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Comment about the sample.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="labels" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Identifiers and labels for the sample.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="ID" type="xs:string">
								<xs:annotation>
									<xs:documentation>Internal identifier.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="externalID" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation>External identifiers given by the supplier of the sample.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="sample_no" type="xs:int" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The ordinal number of the sample reflecting the order in which it has been or will be processed.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="bar_code" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Internal bar ocde.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="class_label" type="xs:int" minOccurs="0"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="general" minOccurs="0">
					<xs:annotation>
						<xs:documentation>General information about the person from which the sample originates.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="gender" type="HMN:gender">
								<xs:annotation>
									<xs:documentation>The gender of the human source.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ethnicity" type="HMN:ethnicity" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The ethnic origin of the human source.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="Carstairs_index" type="xs:positiveInteger" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Carstairs index of deprivation based on unemployment, overcrowding, non car ownership and social class. The higher the number the more deprived an area is.</xs:documentation>
								</xs:annotation>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="external" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Quantitative description of the phenotypic characteristics.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="age" type="xs:int" minOccurs="0"/>
							<xs:element name="height" minOccurs="0">
								<xs:complexType>
									<xs:simpleContent>
										<xs:extension base="xs:int">
											<xs:attribute name="unit" type="xs:string" use="optional" default="cm"/>
										</xs:extension>
									</xs:simpleContent>
								</xs:complexType>
							</xs:element>
							<xs:element name="weight" minOccurs="0">
								<xs:complexType>
									<xs:simpleContent>
										<xs:extension base="xs:float">
											<xs:attribute name="unit" type="xs:string" use="optional" default="kg"/>
										</xs:extension>
									</xs:simpleContent>
								</xs:complexType>
							</xs:element>
							<xs:element name="waist" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Waist circumference.</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:simpleContent>
										<xs:extension base="xs:int">
											<xs:attribute name="unit" type="xs:string" use="optional" default="cm"/>
										</xs:extension>
									</xs:simpleContent>
								</xs:complexType>
							</xs:element>
							<xs:element name="BMI" type="xs:float" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Body mass index.</xs:documentation>
								</xs:annotation>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="lab" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Blood test results.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="measurement" maxOccurs="unbounded">
								<xs:complexType>
									<xs:attribute name="substance" type="HMN:substance" use="required"/>
									<xs:attribute name="value" type="xs:float" use="required"/>
									<xs:attribute name="unit" type="xs:string" use="optional"/>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="habits" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Smoking and drinking.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="smoking" type="HMN:smoking" minOccurs="0"/>
							<xs:element name="drinking" minOccurs="0">
								<xs:annotation>
									<xs:documentation>units per week</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="min" type="xs:positiveInteger"/>
										<xs:element name="max" type="xs:positiveInteger"/>
									</xs:sequence>
									<xs:attribute name="unit" type="xs:string" default="units per week"/>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="prescriptions" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Drugs and doses currently under prescription.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="prescription" maxOccurs="unbounded">
								<xs:complexType>
									<xs:attribute name="drug_class" type="HMN:drug_class" use="required"/>
									<xs:attribute name="drug" type="xs:string" use="required"/>
									<xs:attribute name="dose" type="xs:float" use="required"/>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="conditions" minOccurs="0">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="condition" maxOccurs="unbounded">
								<xs:complexType>
									<xs:attribute name="condition_class" type="HMN:condition_class" use="required"/>
									<xs:attribute name="condition" type="HMN:specific_condition" use="required"/>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="genotype" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Mutations.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="snp" minOccurs="0" maxOccurs="unbounded">
								<xs:complexType>
									<xs:attribute name="gene" type="HMN:snp" use="required"/>
									<xs:attribute name="value" type="xs:int" use="required"/>
								</xs:complexType>
							</xs:element>
							<xs:element name="haplotypes">
								<xs:annotation>
									<xs:documentation>SNPs can be expressed one of two ways on each of two chromosomes (1 and 2
being the common and rare alleles on the SNPs, respectively) and there are two SNPs, giving rise to four values in two pairs, one for each chromosome having a value of either 11, 12, 21 or 22. If both SNPs (A643G and A4403F) express their rare alleles on a given chromosome, the haplotype is 22, which is significantly protective against nephropathy with respect to 11, and initial analysis shows that it occurs significantly more often in the group with no nephropathy. Haplotypes 11 and 22 make up more than 95% of all haplotypes.</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="chromosome1" type="HMN:chromosome"/>
										<xs:element name="chromosome2" type="HMN:chromosome"/>
									</xs:sequence>
									<xs:attribute name="score">
										<xs:annotation>
											<xs:documentation>The haplotypes are shown as chromosome 1 haplotypes and then chromosome 2 haplotypes. If the chromosome 1 and chromosome 2 haplotypes are both 11, this means that both SNPs were expressed as their common allele on both chromosomes, while 11 22 means that they were both heterozygotes and 22 22 means that they both expressed their minor alleles on both chromosomes. A scoring system is used to give the degree of haplotype effect (which is additive) by adding up the genotype values for the two SNPs at the two locations, ie if both locations have haplotype 11 (all major allele, therefore maximally non-protective) then the score = 4, whereas if both chromosomes are 22, then the score is 8, maximally protective.  There is a sliding scale from 4 to 8 to describe different combinations of haplotype, but most are either 11 or 12, so most scores are even numbers 4, 6 or 8.</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<!-- - - - - - - - - - - - - - - - - - - - - - - -  -->
	<!--               custom types                     -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - -  -->
	<xs:simpleType name="gender">
		<xs:annotation>
			<xs:documentation>Gender: male (M) or female (F).</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="M"/>
			<xs:enumeration value="F"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="smoking">
		<xs:restriction base="xs:string">
			<xs:enumeration value="Never"/>
			<xs:enumeration value="Stopped"/>
			<xs:enumeration value="Yes"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="ethnicity">
		<xs:restriction base="xs:string">
			<xs:enumeration value="White - British"/>
			<xs:enumeration value="White - Irish"/>
			<xs:enumeration value="White - Other"/>
			<xs:enumeration value="Black or Black British - Caribbean"/>
			<xs:enumeration value="Black or Black British - African"/>
			<xs:enumeration value="Black - Other"/>
			<xs:enumeration value="Asian or Asian British - Indian"/>
			<xs:enumeration value="Asian or Asian British - Pakistani"/>
			<xs:enumeration value="Asian or Asian British - Bangladeshi"/>
			<xs:enumeration value="Asian or Asian British - Other"/>
			<xs:enumeration value="Chinese"/>
			<xs:enumeration value="Asian - Other"/>
			<xs:enumeration value="Mixed - White and Black Caribbean"/>
			<xs:enumeration value="Mixed - White and Black African"/>
			<xs:enumeration value="Mixed - White and Asian"/>
			<xs:enumeration value="Mixed - Other"/>
			<xs:enumeration value="Other"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="substance">
		<xs:restriction base="xs:string">
			<xs:enumeration value="HbA1c">
				<xs:annotation>
					<xs:documentation>The HbA1c test (hemoglobin A1c test, glycosylated hemoglobin A1c test, glycohemoglobin A1c test, or A1c test) is a lab test which reveals average blood glucose over a period of two to three months.  Specifically,  it measures the number of glucose molecules attached to hemoglobin, a substance in red blood cells.

HbA1c test results are expressed as a percentage, with 4 to 6 % considered normal.  The HbA1c "big picture" complements the day to day "snapshots" obtained from the self-monitoring of blood glucose (mg/dl), and the two tests can be equated as in the printable diabetes chart.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="cholesterol">
				<xs:annotation>
					<xs:documentation>Cholesterol is different from most tests in that it is not used to diagnose or monitor a disease but is used to estimate risk of developing a disease - specifically heart disease. Because high blood cholesterol has been associated with hardening of the arteries, heart disease and a raised risk of death from heart attacks, cholesterol testing is considered a routine part of preventive health care. In a routine setting where testing is done to screen for risk, the test results are grouped in three categories of risk:
Desirable: below 200 mg/dL (5.18 mmol/L)
Borderline high: 200 to 240 mg/dL (5.18 to 6.22 mmol/L)
High Risk: above 240 mg/dL (6.22 mmol/L)
			</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="LDL">
				<xs:annotation>
					<xs:documentation> The test for LDL is used to predict your risk of developing heart disease. Of all the forms of cholesterol in the blood, the LDL cholesterol is considered the most important form in determining risk of heart disease. Treatment decisions are based on LDL values. Elevated levels of LDL indicate risk for heart disease. Treatment (with diet or drugs) for high LDL aims to lower LDL to a target value based on your overall risk of heart disease. Your target value is: less than 100 mg/dL (2.59 mmol/L) if you have heart disease or diabetes, less than 130 mg/dL (3.37 mmol/L) if you have 2 or more risk factors, less than 160 mg/dL (4.14 mmol/L) if you have 0 or 1 risk factor. Risk factors include: smoking, age (you are a male 45 years or older or a female 55 years or older), low HDL (less than 40 mg/dL (1.04 mmol/L)), hypertension (blood pressure of 140/90 or higher or taking high blood pressure medications), family history of premature heart disease (heart disease in a first degree male relative under age 55 or a first degree female relative under age 65).</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="HDL">
				<xs:annotation>
					<xs:documentation>The test for HDL cholesterol is used along with other lipid tests to determine your risk of heart disease. High HDL is better than low HDL. It is usually reported as a measured value. If HDL is less than 40 mg/dL (1.04 mmol/L), there is an increased risk of heart disease. A desirable level of HDL is greater than 40 mg/dL (1.04 mmol/L) and is associated with average risk of heart disease. A good level of HDL is 60 mg/dL (1.55 mmol/L) or more and is associated with a less than average risk of heart disease.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="glucose">
				<xs:annotation>
					<xs:documentation>The glucose test is a snapshot, a still photograph of a moving picture. It tells what the blood glucose level was at the moment it was collected. The fasting blood glucose level (collected after an 8 to 10 hr fast) is used to screen for and diagnose diabetes and pre-diabetes. Fasting blood glucose:
normal glucose tolerance: 70 to 99 mg/dL (3.9 to 5.4 mmol/L)
impaired fasting glucose (pre-diabetes): 100 to 125 mg/dL (5.5 to 6.9 mmol/L)
probable diabetes: 126 mg/dL (7.0 mmol/L) and above</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="TRIG">
				<xs:annotation>
					<xs:documentation>Blood tests for triglycerides are usually part of a lipid profile used to identify the risk of developing heart disease. A normal level for fasting triglycerides is less than 150 mg/dL (1.70 mmol/L). It is unusual to have high triglycerides without also having high cholesterol. Most treatments for heart disease risk will be aimed at lowering LDL cholesterol. However, the type of treatment used to lower LDL cholesterol may differ depending on whether triglycerides are high or normal. When triglycerides are very high (greater than 1000 mg/dL (11.30 mmol/L)), there is a risk of developing pancreatitis. Treatment to lower triglycerides should be started as soon as possible.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="creatinine">
				<xs:annotation>
					<xs:documentation>It is used to determine whether your kidneys are functioning normally (in this case the amount of creatinine in your blood will be very low). A combination of blood and urine creatinine levels may be used to calculate a "creatinine clearance." This measures how effectively your kidneys are filtering small molecules like creatinine out of your blood.
			</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="albumin_creatinine">
				<xs:annotation>
					<xs:documentation>Albumin:creatinine ratio is a measure of the progressive decline in renal barrier function in nephropathy, and is an adjunct to glomerular filtration rate. The early diabetic nephropathy marker called microalbuminuria is indicated where there is an albumin:creatinine ratio greather than 2.5 mg/mmol (men) or 3.5 mg/mmol (women). Full blown proteinuria is indicated by a ratio of greater than 30 mg/mmol in either sex. There should not be very much detectable protein in the urine at all if your kidneys are OK.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="DBP">
				<xs:annotation>
					<xs:documentation>Diastolic Blood Pressure: the pressure in the arteries when the heart is at rest.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="SBP">
				<xs:annotation>
					<xs:documentation>Systolic Blood Pressure: the maximum pressure exerted when the heart contracts.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="drug_class">
		<xs:restriction base="xs:string">
			<xs:enumeration value="ACEinhibitor">
				<xs:annotation>
					<xs:documentation>Angiotensin-Converting–Enzyme Inhibitor. ACE inhibitors, or angiotensin converting enzyme inhibitors (i.e., Enalapril, Captropril) reduce peripheral vascular resistance via blockage of the angiotensin converting enzyme. This action reduces the myocardial oxygen consumption, thereby improving cardiac output and moderating left ventricular and vascular hypertrophy.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="biguanid"/>
			<xs:enumeration value="fibrate">
				<xs:annotation>
					<xs:documentation>In pharmacology, the fibrates are a class of amphipathic carboxylic acids. They are used for a range of metabolic disorders, mainly hypercholesterolemia and are therefore hypolipidemic agents.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="statin">
				<xs:annotation>
					<xs:documentation>Statins are a class of drugs used to lower blood cholesterol. They work in your liver to block a substance needed to make cholesterol. They may also help your body reabsorb cholesterol that has accumulated in plaques on your artery walls. This helps prevent further blockage in your blood vessels. Long-term use of statins may even reduce existing blockage in narrowed blood vessels.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="sulpony"/>
			<xs:enumeration value="PPAR">
				<xs:annotation>
					<xs:documentation>Peroxisome Proliferator Activated Receptor</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="heart_disease">
		<xs:restriction base="xs:string">
			<xs:enumeration value="MI">
				<xs:annotation>
					<xs:documentation>Myocardial Infarction</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="angina"/>
			<xs:enumeration value="CABG">
				<xs:annotation>
					<xs:documentation>Coronary Artery Bypass Graft</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="other"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="other_disease">
		<xs:restriction base="xs:string">
			<xs:enumeration value="PVD">
				<xs:annotation>
					<xs:documentation>Peripheral Vascular Disease</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="CVD">
				<xs:annotation>
					<xs:documentation>Cardio-Vascular Disease</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="body_part">
		<xs:restriction base="xs:string">
			<xs:enumeration value="toe"/>
			<xs:enumeration value="ankle"/>
			<xs:enumeration value="leg"/>
			<xs:enumeration value="other"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="ulcer">
		<xs:restriction base="xs:string">
			<xs:enumeration value="neuropathic ulcer"/>
			<xs:enumeration value="ischemic ulcer"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="snp">
		<xs:restriction base="xs:string">
			<xs:enumeration value="snpapa1"/>
			<xs:enumeration value="snpalu1"/>
			<xs:enumeration value="snp1926"/>
			<xs:enumeration value="snp2331"/>
			<xs:enumeration value="snp202"/>
			<xs:enumeration value="snp4403"/>
			<xs:enumeration value="snp643"/>
			<xs:enumeration value="snp3963"/>
			<xs:enumeration value="snp2877"/>
			<xs:enumeration value="snp575"/>
			<xs:enumeration value="snp4332"/>
			<xs:enumeration value="snp5881"/>
			<xs:enumeration value="snp555"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="neuropathy">
		<xs:restriction base="xs:string">
			<xs:enumeration value="neuropathy"/>
			<xs:enumeration value="neuropathy B"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="nephropathy">
		<xs:restriction base="xs:string">
			<xs:enumeration value="nephropathy"/>
			<xs:enumeration value="all nephropathy"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="eye">
		<xs:restriction base="xs:string">
			<xs:enumeration value="laser"/>
			<xs:enumeration value="macular degeneration"/>
			<xs:enumeration value="retinopathy"/>
			<xs:enumeration value="microangiopathy"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="specific_condition">
		<xs:union memberTypes="HMN:heart_disease HMN:ulcer HMN:neuropathy HMN:nephropathy HMN:eye HMN:other_disease HMN:body_part"/>
	</xs:simpleType>
	<xs:simpleType name="condition_class">
		<xs:restriction base="xs:string">
			<xs:enumeration value="heart"/>
			<xs:enumeration value="ulcer"/>
			<xs:enumeration value="neuropathy"/>
			<xs:enumeration value="nephropathy"/>
			<xs:enumeration value="eye"/>
			<xs:enumeration value="other"/>
			<xs:enumeration value="amputation"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="haplotypes">
		<xs:restriction base="xs:string">
			<xs:enumeration value="11"/>
			<xs:enumeration value="12"/>
			<xs:enumeration value="21"/>
			<xs:enumeration value="22"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="chromosome">
		<xs:simpleContent>
			<xs:extension base="HMN:haplotypes">
				<xs:attribute name="risk_factor">
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:enumeration value="risk"/>
							<xs:enumeration value="protect"/>
							<xs:enumeration value="other"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:attribute>
			</xs:extension>
		</xs:simpleContent>
	</xs:complexType>
</xs:schema>
