<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:swe="http://www.opengis.net/swe/1.0" xmlns:sa="http://www.opengis.net/sampling/0.0" xmlns:om="http://www.opengis.net/om/0.0" xmlns:gml="http://www.opengis.net/gml" xmlns:adx="http://www.seegrid.csiro.au/xml/adx/3" targetNamespace="http://www.seegrid.csiro.au/xml/adx/3" elementFormDefault="qualified" attributeFormDefault="unqualified" version="3.0">
	<!-- ==================================================== -->
	<annotation>
		<documentation>Description of specimen events 
		
2006-03-11

Copyright (c) 2006 CSIRO - see https://www.seegrid.csiro.au/twiki/bin/view/Xmml/LegalNotices#Software_Notice</documentation>
	</annotation>
	<!-- ==================================================== -->
	<!-- ==================================================== -->
	<import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"/>
	<import namespace="http://www.opengis.net/swe/1.0" schemaLocation="../../sweCommon/trunk/swe.xsd"/>
	<import namespace="http://www.opengis.net/om/0.0" schemaLocation="../../om/trunk/om.xsd"/>
	<import namespace="http://www.seegrid.csiro.au/xml/sampling" schemaLocation="http://www.seegrid.csiro.au/xsd/sampling/0.1.0/sampling.xsd"/>
	<!-- ==================================================== -->
	<include schemaLocation="./adxBase.xsd"/>
	<!-- ==================================================== -->
	<!-- ==================================================== -->
	<complexType name="PulpPrepEventType">
		<annotation>
			<documentation>An event concerning the preparation of samples for geochemical analysis. 
			Used to describe steps up to the production of standard pulp.
			Typically composed into a history. 
			
			The procedureUsed will refer to a SpecimenPreparationActivity, eg: Crush</documentation>
		</annotation>
		<complexContent>
			<extension base="om:ProcedureEventType">
				<sequence>
					<element name="massPrior" type="swe:RelativeMeasureType"/>
					<element name="massPost" type="swe:RelativeMeasureType"/>
				</sequence>
			</extension>
		</complexContent>
	</complexType>
	<!-- ........................................................................ -->
	<element name="PulpPrepEvent" type="adx:PulpPrepEventType" substitutionGroup="om:ProcedureEvent"/>
	<!-- ==================================================== -->
	<complexType name="RejectStoreEventType">
		<annotation>
			<documentation>An event concerning the preparation of samples for geochemical analysis. 
			Represents the decision to return a portion of material to store as a reject due to failing the last PulpPrepEvent quality-control guidelines.
						
			The procedureUsed will refer to a SpecimenPreparationActivity, eg: Store</documentation>
		</annotation>
		<complexContent>
			<extension base="om:ProcedureEventType">
				<sequence>
					<element name="massPrior" type="swe:RelativeMeasureType"/>
					<element name="massPost" type="swe:RelativeMeasureType"/>
				</sequence>
			</extension>
		</complexContent>
	</complexType>
	<!-- ........................................................................ -->
	<element name="RejectStoreEvent" type="adx:RejectStoreEventType" substitutionGroup="om:ProcedureEvent"/>
	<!-- ==================================================== -->
	<complexType name="InstrumentPrepEventType">
		<annotation>
			<documentation>An event preparing some pulp with instrument-specific procedure.
			
			The procedureUsed will refer to a SpecimenPreparationActivity, eg: Fusion</documentation>
		</annotation>
		<complexContent>
			<extension base="om:ProcedureEventType">
				<sequence>
					<element name="massPrior" type="swe:RelativeMeasureType"/>
					<element name="massPost" type="swe:RelativeMeasureType"/>
				</sequence>
			</extension>
		</complexContent>
	</complexType>
	<!-- ........................................................................ -->
	<element name="InstrumentPrepEvent" type="adx:InstrumentPrepEventType" substitutionGroup="om:ProcedureEvent"/>
	<!-- ........................................................................ -->
	<complexType name="InstrumentPrepEventPropertyType">
		<sequence minOccurs="0">
			<element ref="adx:InstrumentPrepEvent"/>
		</sequence>
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
	</complexType>
	<!-- ==================================================== -->
	<complexType name="SampleReceiptEventType">
		<annotation>
			<documentation>
			An event concerning the receipt of samples at a lab for geochemical analysis. 
			Typically the first step of a history.
			Whilst the form of the sample will commonly be a bag of rock, it may conceivably be Pulp or even a fused bead,
			sent onto another lab eg: for verification.

			The procedureUsed will refer to a SpecimenPreparationActivity.
						</documentation>
		</annotation>
		<complexContent>
			<extension base="om:ProcedureEventType">
				<sequence>
					<element name="originalSampleID" type="gml:CodeType"/>
					<element name="mass" type="swe:RelativeMeasureType"/>
					<element name="type" type="adx:SpecimenTypeCode"/>
				</sequence>
			</extension>
		</complexContent>
	</complexType>
	<!-- ........................................................................ -->
	<element name="SampleReceiptEvent" type="adx:SampleReceiptEventType" substitutionGroup="om:ProcedureEvent"/>
	<!-- ........................................................................ -->
	<complexType name="SampleReceiptEventPropertyType">
		<sequence minOccurs="0">
			<element ref="adx:SampleReceiptEvent"/>
		</sequence>
		<attributeGroup ref="gml:AssociationAttributeGroup"/>
	</complexType>
	<!-- ==================================================== -->
	<complexType name="PulpReuseEventType">
		<annotation>
			<documentation>An event concerning the reuse of the portion of some pulp for analysis. 
			Typically the first step of a history</documentation>
		</annotation>
		<complexContent>
			<extension base="om:ProcedureEventType">
				<sequence>
					<element name="originalSampleID" type="gml:CodeType"/>
					<element name="mass" type="swe:RelativeMeasureType"/>
				</sequence>
			</extension>
		</complexContent>
	</complexType>
	<!-- ........................................................................ -->
	<element name="PulpReuseEvent" type="adx:PulpReuseEventType" substitutionGroup="om:ProcedureEvent"/>
	<!-- ==================================================== -->
	<complexType name="RepeatEventType">
		<annotation>
			<documentation>An event concerning the repeating of measurement from a given point in the process. This results in the forking of a new adx:ProcessingHistory but will still refer to the original sample as the origin (in whatever state it arrived at the lab).</documentation>
		</annotation>
		<complexContent>
			<extension base="om:ProcedureEventType">
				<sequence>
					<element name="originalSampleID" type="gml:CodeType"/>
					<element name="mass" type="swe:RelativeMeasureType"/>
				</sequence>
				</extension>
		</complexContent>
	</complexType>
	<!-- ........................................................................ -->
	<element name="RepeatEvent" type="adx:RepeatEventType" substitutionGroup="om:ProcedureEvent"/>
	<!-- ==================================================== -->
	<complexType name="TrayEventType">
		<annotation>
			<documentation>An event immediately before measurement recording that an item about to be measured was put into a 'Tray' of some kind, with other items. Provides a physical grouping record if tracking contamination</documentation>
		</annotation>
		<complexContent>
			<extension base="om:ProcedureEventType">
				<sequence>
					<element name="trayID" type="gml:CodeType"/>
				</sequence>
			</extension>
		</complexContent>
	</complexType>
	<!-- ........................................................................ -->
	<element name="TrayEvent" type="adx:TrayEventType" substitutionGroup="om:ProcedureEvent"/>
	<!-- ==================================================== -->
	<!-- ==================================================== -->
	<complexType name="MeasureEventType">
		<annotation>
			<documentation>At the end of the history, something gets measured.
			
			The procedureUsed will point to an AssayProcedure</documentation>
		</annotation>
		<complexContent>
			<extension base="om:ProcedureEventType"/>
		</complexContent>
	</complexType>
	<!-- ........................................................................ -->
	<element name="MeasureEvent" type="adx:MeasureEventType" substitutionGroup="om:ProcedureEvent"/>
	<!-- ==================================================== -->
	<!-- ==================================================== -->
	<simpleType name="SpecimenTypeCode">
		<annotation>
			<documentation>Specimen material type</documentation>
		</annotation>
		<union>
			<simpleType>
				<restriction base="string">
					<enumeration value="Bullion">
						<annotation>
							<documentation>Bullion</documentation>
						</annotation>
					</enumeration>
					<enumeration value="Cake">
						<annotation>
							<documentation>Plant  filter cakes</documentation>
						</annotation>
					</enumeration>
					<enumeration value="Concentrate">
						<annotation>
							<documentation>High grade mineral concentrates and pan concentrates</documentation>
						</annotation>
					</enumeration>
					<enumeration value="Core">
						<annotation>
							<documentation>Drill core</documentation>
						</annotation>
					</enumeration>
					<enumeration value="Cutting">
						<annotation>
							<documentation>Drill cuttings</documentation>
						</annotation>
					</enumeration>
					<enumeration value="Pulp">
						<annotation>
							<documentation>Pulp</documentation>
						</annotation>
					</enumeration>
					<enumeration value="Rock">
						<annotation>
							<documentation>Rock samples and/or chips</documentation>
						</annotation>
					</enumeration>
					<enumeration value="Sediment">
						<annotation>
							<documentation>Stream or lake sediments</documentation>
						</annotation>
					</enumeration>
					<enumeration value="Slurry">
						<annotation>
							<documentation>Slurries from process streams</documentation>
						</annotation>
					</enumeration>
					<enumeration value="Soil">
						<annotation>
							<documentation>Soil (including Humus)</documentation>
						</annotation>
					</enumeration>
					<enumeration value="Solution/Suspension-aqueous">
						<annotation>
							<documentation>Aqueous solution or suspension (effluent streams, cyanide solutions, etc.)</documentation>
						</annotation>
					</enumeration>
					<enumeration value="Solution/Suspension-other">
						<annotation>
							<documentation>Non-aqueous solution or suspension</documentation>
						</annotation>
					</enumeration>
					<enumeration value="Vapor">
						<annotation>
							<documentation>Vapor or gas</documentation>
						</annotation>
					</enumeration>
					<enumeration value="Vegetation">
						<annotation>
							<documentation>Plant material</documentation>
						</annotation>
					</enumeration>
				</restriction>
			</simpleType>
			<simpleType>
				<restriction base="adx:other"/>
			</simpleType>
		</union>
	</simpleType>
</schema>

