<xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="HILIS4Genomics">
    <xs:complexType>
      <xs:sequence>
        <xs:element type="xs:dateTime" name="FileCreationDateTime">
			<xs:annotation>
				<xs:documentation>Datetime of xml file creation</xs:documentation>
			</xs:annotation>
		</xs:element>
        <xs:element name="Record">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Approach" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:dateTime" name="appointment_date" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Date of appointment for consenting</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:dateTime" name="approach_date" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Date of 1st approach</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:dateTime" name="approach_followup_date" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Date of 2nd approach</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="approach_method" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Approach method (letter, telephone, etc)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:int" name="family_id" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Family ID: 9-digit family identifier</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="first_outcome" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>First approach response</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="second_outcome" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Second approach response</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:byte" name="total_samples" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Total samples in group</xs:documentation>
						</xs:annotation>
					</xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>

              <xs:element name="Consent" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Files" maxOccurs="1" minOccurs="0">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element type="xs:string" name="file" maxOccurs="unbounded" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Consent form PDF filename (but could be any file)</xs:documentation>
								</xs:annotation>
							</xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element type="xs:dateTime" name="consent_date" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Date consent taken</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_form_version" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent form version (C1, R1/2, etc)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_given" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent given by patient (Y/N)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_q1" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent question #1 (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_q10" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent question #10 (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_q11" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent question #11 (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_q12" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent question #12 (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_q13" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent question #13 (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_q14" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent question #14 (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_q2" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent question #2 (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_q3" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent question #3 (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_q4" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent question #4 (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_q5" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent question #5 (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_q6" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent question #6 (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_q7" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent question #7 (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_q8" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent question #8 (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_q9" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent question #9 (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_taken_by" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>HILIS4 user who recorded result</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="info_sheet_version" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Information sheet version (C1, C2, R1-R8)</xs:documentation>
						</xs:annotation>
					</xs:element>
                  </xs:sequence>
                  <xs:element type="xs:string" name="health_related_additional" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation></xs:documentation>
						</xs:annotation>
					</xs:element>
                  <xs:element type="xs:string" name="reproductive_additional" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation></xs:documentation>
						</xs:annotation>
					</xs:element>
                </xs:complexType>
              </xs:element>

              <xs:element name="ConsentUpdate" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:dateTime" name="consent_date_update" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Date consent taken</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="consent_form_update" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent form version (7a_cf, R1/R2,etc)</xs:documentation>
						</xs:annotation>
					</xs:element>consent_given_update
                    <xs:element type="xs:string" name="consent_given_update" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Consent given by patient (Y/N)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="info_sheet_update" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Information sheet version (7a_pis, R1, etc)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="update_health_related" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation></xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="update_reproductive_add" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation></xs:documentation>
						</xs:annotation>
					</xs:element>

                  </xs:sequence>
                </xs:complexType>
              </xs:element>

              <xs:element name="ConsentWithdrawal" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:dateTime" name="withdrawal_date" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Date consent withdrawn</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="withdrawal_form" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Withdrawal form version (6a, 6b, 7b)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="withdrawal_option" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Withdrawal option (Full, partial)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="withdrawal_taken_by" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Person taking withdrawal</xs:documentation>
						</xs:annotation>
					</xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>

              <xs:element name="DNABlood" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:string" name="blood_summary_qc" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Blood DNA QC result (pass/fail)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="dna_lab_number" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Blood DNA tube ID (internal use only)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="edta1_fluidx" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Blood DNA Fluidx vial ID (2D barcode)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="edta1_fluidx_rack_id" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Blood DNA Fluidx rack ID (2D barcode)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="edta1_fluidx_rack_well" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Blood DNA Fluidx well location (A8, H10, etc)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:short" name="edta1_fluidx_vol" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Blood DNA Fluidx vial volume (microlitres)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:dateTime" name="edta1_qc_date" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Blood DNA QC test result datetime</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="edta1_qc_result" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Blood DNA QC test result (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="edta1_qc_source" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Blood DNA QC source (not in use)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="edta1_qc_type" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Blood DNA QC result type (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="qubit_blood" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Blood Qubit result (free text)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:short" name="volume_stored" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Blood DNA sample volume retained at lab (microlitres)</xs:documentation>
						</xs:annotation>
					</xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>

              <xs:element name="DNATumour" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:string" name="cellularity" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Assessment of cellularity (low, high, etc)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="cellularity_datetime" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Cellularity result datetime</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="dna_extraction_protocol" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>DNA extraction protocol</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="percent_necrosis" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Assessment of % necrosis (free text)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="percent_necrosis_datetime" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Percent necrosis result datetime</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="qubit_tumour" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour Qubit result (free text)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="qubit_tumour_datetime" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour Qubit result datetime</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="tumour_content" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Assessment of tumour content (low, high, etc)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="tumour_content_datetime" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour content result datetime</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="tumour_fluidx" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour DNA tube ID</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="tumour_fluidx_rack_id" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour DNA Fluidx rack ID (2D barcode)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="tumour_fluidx_rack_well" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour DNA Fluidx well location (A8, H10, etc)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:short" name="tumour_fluidx_vol" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour DNA Fluidx vial volume (microlitres)</xs:documentation>
						</xs:annotation>
					</xs:element>
                     <xs:element type="xs:string" name="tumour_lab_number" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour DNA tube ID</xs:documentation>
						</xs:annotation>
					</xs:element>
                   <xs:element type="xs:dateTime" name="tumour_qc_date" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour DNA QC test result datetime (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="tumour_qc_result" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour DNA QC test result (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="tumour_qc_source" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour DNA QC source (not in use)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="tumour_qc_type" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour DNA QC result type (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:short" name="tumour_summary_qc" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour DNA QC result (pass/fail)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:short" name="tumour_volume_stored" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour DNA sample volume retained at lab (microlitres)</xs:documentation>
						</xs:annotation>
					</xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>

              <xs:element name="Demographics">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:string" name="arm" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Participant type (Rare disease or Cancer)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="disease_type_registration" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Cancer type (bladder, lung, etc)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:dateTime" name="dob" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Date of birth</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="first_name"/>
                    <xs:element type="xs:string" name="gender"/>
                    <xs:element type="xs:string" name="lab_number"/>
                    <xs:element type="xs:string" name="last_name"/>
                    <xs:element type="xs:positiveInteger" name="nhs_number" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:string" name="organisation_code">
						<xs:annotation>
							<xs:documentation>Organisation code of referral location</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:int" name="participant_id" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Participant ID: 122xxxxxx (rare disease) or 223xxxxxx (cancer)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="referral_source"/>
                    <xs:element type="xs:string" name="referrer_code">
						<xs:annotation>
							<xs:documentation>GMC code of referrer</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="referrer_name"/>
                    <xs:element type="xs:dateTime" name="registered">
						<xs:annotation>
							<xs:documentation>Date request registered</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:short" name="request_id">
						<xs:annotation>
							<xs:documentation>Internal HILIS4 request ID</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:dateTime" name="screened" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Date of allocation in HILIS as cancer or rare disease</xs:documentation>
						</xs:annotation>
					</xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>

              <xs:element name="Dispatch" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:dateTime" name="dna_arrived_ccp" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>DNA sample arrival datetime as central collection point</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="dna_consignment_number" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>GMC DNA sample consignment number</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:dateTime" name="dna_dispatched" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>GMC DNA sample dispatch datetime</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:dateTime" name="dna_sent_ccp" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>DNA sample dispatch to central collection point</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:dateTime" name="omics_arrived_ccp" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>GMC omics sample arrived at central collection point</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="omics_consignment_number" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>GMC omics sample consignment number</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:dateTime" name="omics_dispatched" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>GMC omics sample dispatch datetime</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:dateTime" name="omics_sent_ccp" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>GMC omics sample sent to central collection point</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="tracking_number" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Sheffield to Leeds Royal Mail tracking number</xs:documentation>
						</xs:annotation>
					</xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>

              <xs:element name="SpecimensBlood" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:byte" name="additional_samples" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>No. of additional samples expected (field moved to Approach/total_samples)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="ccft_dna" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Sample ID (barcode) of CCFT DNA sample (cancer arm only)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="edta1" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Sample ID (barcode) of 1st EDTA sample</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="edta2" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Sample ID (barcode) of 2nd EDTA sample (internal use only)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="handling_protocol" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Sample handling protocol (currently only v2 in use)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="paxgene_rna" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Sample ID (barcode) of PAXgene RNA sample</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="pst" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Sample ID (barcode) of PST sample</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:dateTime" name="sample_taken" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Datetime sample taken</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="sst" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Sample ID (barcode) of SST sample</xs:documentation>
						</xs:annotation>
					</xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>

              <xs:element name="SpecimensFFPE" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:string" name="ffpe_dissection_details" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Macrodissection details</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="ffpe_macrodissected" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Whether sample macrodissected (yes/no)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="fixation_comments" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Fixation comments</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:dateTime" name="fixation_end" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Fixation end datetime</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:dateTime" name="fixation_start" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Fixation begin datetime</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="fixative_type" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Type of fixative</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:int" name="formalin_duration" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Time in formalin (hrs)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:byte" name="number_of_blocks" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Number of blocks</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:byte" name="number_of_sections" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Number of sections</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="pre_invasive_elements" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Description of atypia or in situ disease (moved to SpecimensTumour)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="processing_schedule" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Duration of processing (overnight, extended, etc)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:byte" name="section_thickness" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Section thickness (microns)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="tumour_sample_type" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour sample type (section, block, etc)</xs:documentation>
						</xs:annotation>
					</xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>

              <xs:element name="SpecimensFrozen" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:string" name="frozen_dissection_details" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Macrodissection details</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="frozen_macrodissected" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Whether sample macrodissected (yes/no)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:dateTime" name="snap_freezing_start" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Snap freezing start datetime</xs:documentation>
						</xs:annotation>
					</xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>

              <xs:element name="SpecimensTumour" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:string" name="biopsy_gauge" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Gauge of biopsies (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="clinic_sample_type" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Sample type (DNA fibroblast, DNA blood tumour, etc)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="excision_margin" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Excision margin description</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="local_lab_identifier" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Local lab identifier (eg CoPath)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:byte" name="number_of_biopsies" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Number of biopsies (discontinued)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:byte" name="number_of_blocks" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Number of blocks (moved to SpecimensFFPE)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:byte" name="number_of_sections" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Number of sections (moved to SpecimensFFPE)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="pre_invasive_elements" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Description of atypia or in situ disease</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="prolonged_storage_method" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Prolonged storage method (vac pack, refrigeration, etc)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:byte" name="section_thickness" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Section thickness (moved to SpecimensFFPE)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="tissue_source" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tissue source (CT-guided biopsy, surgical resection, etc)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="tumour_sample_id" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour sample ID</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:dateTime" name="tumour_sample_taken" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Sample taken datetime</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="tumour_sample_type" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour sample type (moved to SpecimensFFPE)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:short" name="tumour_size" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Size of tumour (mm)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="tumour_type" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Tumour type (metastatic, primary, etc)</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:string" name="unsent_sample_reason" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Reason sample not sent</xs:documentation>
						</xs:annotation>
					</xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>

              <xs:element name="Storage" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Vials" maxOccurs="1" minOccurs="0">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="vial" maxOccurs="unbounded" minOccurs="0">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element type="xs:string" name="part_number" maxOccurs="1" minOccurs="0">
									<xs:annotation>
										<xs:documentation>Original sample ID (barcode) for link with Fluidx tube</xs:documentation>
									</xs:annotation>
								</xs:element>
                                <xs:element type="xs:string" name="rack_id" maxOccurs="1" minOccurs="0">
									<xs:annotation>
										<xs:documentation>Omics sample Fluidx rack ID (barcode)</xs:documentation>
									</xs:annotation>
								</xs:element>
                                <xs:element type="xs:string" name="sample" maxOccurs="1" minOccurs="0">
									<xs:annotation>
										<xs:documentation>Omics sample type (free-text; internal use only)</xs:documentation>
									</xs:annotation>
								</xs:element>
                                <xs:element type="xs:string" name="source" maxOccurs="1" minOccurs="0">
									<xs:annotation>
										<xs:documentation>Omics sample source (SST, PST, etc)</xs:documentation>
									</xs:annotation>
								</xs:element>
                                <xs:element type="xs:string" name="vial_location" maxOccurs="1" minOccurs="0">
									<xs:annotation>
										<xs:documentation>Omics sample Fluidx vial location (A2, D7, etc)</xs:documentation>
									</xs:annotation>
								</xs:element>
                                <xs:element type="xs:string" name="vialid" maxOccurs="1" minOccurs="0">
									<xs:annotation>
										<xs:documentation>Omics sample Fluidx vial ID (barcode)</xs:documentation>
									</xs:annotation>
								</xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>

              <xs:element name="TransferToGenetics" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:dateTime" name="received_by_cytogenetics" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Received by cytogenetics datetime</xs:documentation>
						</xs:annotation>
					</xs:element>
                    <xs:element type="xs:dateTime" name="sent_from_histopathology" maxOccurs="1" minOccurs="0">
						<xs:annotation>
							<xs:documentation>Sent to cytogenetics datetime</xs:documentation>
						</xs:annotation>
					</xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
