<?xml version="1.0" encoding="utf-8"?>
<!--
        
        ** OAGIS® Revision: 9.1  **
        ** Date: 11 May 2007 **
        ** Copyright 1997-2007, All Rights Reserved **
        
        This is an OAGIS® BOD XML Schema (XSD) Definition.
        
       License information for this file is provided in the file **OAGi License Agreement.txt** that is provided with this download package.
        
        For support, more information, or to report implementation bugs, please contact the Open Applications Group at xml@openapplications.org.
        
        XML Schema 
        
-->
 
<!--
© Copyright 2007 Infor Global Solutions Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. The 
word and design marks set forth herein are trademarks and/or registered trademarks of Infor Global Solutions 
Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. All other trademarks listed herein 
are the property of their respective owners.
 
-->
 
<!--    *****     Update Log     *****
 
Date          By      Note

        *****     Update End     *****
 
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns="http://schema.infor.com/InforOAGIS/2"
	targetNamespace="http://schema.infor.com/InforOAGIS/2" elementFormDefault="qualified"
	attributeFormDefault="unqualified">

	<xsd:include schemaLocation="./Components.xsd"/>

	<xsd:element name="QualityTestMaster" type="QualityTestMasterType">
		<xsd:annotation>
			<xsd:documentation> QualityTestMasterType... </xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	
	<xsd:complexType name="QualityTestMasterType">
		<xsd:complexContent>
			<xsd:extension base="StatusEnabledStandardHeaderType">
				<xsd:sequence>
					<xsd:element ref="Type" minOccurs="0"/>
					<xsd:element ref="SignificantDigits" minOccurs="0"/>
					<xsd:element ref="DefaultRequiredIndicator" minOccurs="0"/>
					<xsd:element ref="TestClass" minOccurs="0"/>
					<xsd:element ref="TestAttribute" minOccurs="0"/>
					<xsd:element ref="IndustryStandard" minOccurs="0"/>
					<xsd:element ref="SamplingRequiredIndicator" minOccurs="0"/>
					<xsd:element ref="InternalTestIndicator" minOccurs="0"/>
					<xsd:element ref="TestFrequency" minOccurs="0"/>
					<xsd:element ref="SampleAmount" minOccurs="0"/>
					<xsd:element ref="DestructiveSampleIndicator" minOccurs="0"/>
					<xsd:element ref="RetainSampleIndicator" minOccurs="0"/>
					<xsd:element ref="MeasurementMethod" minOccurs="0"/>
					<xsd:element ref="MeasurementResourceReference" minOccurs="0"/>
					<xsd:element ref="DepartmentCode" minOccurs="0"/>
					<xsd:element ref="SupplierParty" minOccurs="0"/>
					<xsd:element ref="CalculatedTestIndicator" minOccurs="0"/>
					<xsd:element ref="QualitativeCode" minOccurs="0"/>
					<xsd:element ref="ExpectedQuantity" minOccurs="0"/>
					<xsd:element ref="ExpectedQuantityDescription" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="ValueLimit" minOccurs="0" maxOccurs="unbounded"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	
	<xsd:complexType name="TestFrequencyType">
		<xsd:sequence>
			<xsd:choice>
				<xsd:element ref="Quantity" minOccurs="0"/>
				<xsd:element ref="Duration" minOccurs="0"/>
			</xsd:choice>
			<xsd:element ref="FrequencyNumber" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="TestFrequency" type="TestFrequencyType"/>
	
	<xsd:complexType name="ValueLimitType">
		<xsd:sequence>
			<xsd:element ref="Limit" minOccurs="0"/>
			<xsd:element ref="ValueOperator" minOccurs="0"/>
		</xsd:sequence>
		<xsd:attribute name="type" type="NormalizedStringType"/>
	</xsd:complexType>
	<xsd:element name="ValueLimit" type="ValueLimitType"/>
	
	<xsd:element name="SampleAmount" type="AmountType"/>
	
	<xsd:element name="TestClass" type="CodeType"/> 
	<xsd:element name="QualitativeCode" type="CodeType"/>
	
	<xsd:element name="DefaultRequiredIndicator" type="IndicatorType"/>
	<xsd:element name="TestRequiredIndicator" type="IndicatorType"/>
	<xsd:element name="SamplingRequiredIndicator" type="IndicatorType"/>
	<xsd:element name="InternalTestIndicator" type="IndicatorType"/>
	<xsd:element name="DestructiveSampleIndicator" type="IndicatorType"/>
	<xsd:element name="RetainSampleIndicator" type="IndicatorType"/>
	<xsd:element name="CalculatedTestIndicator" type="IndicatorType"/>
	
	<xsd:element name="Limit" type="NormalizedStringType"/>
	<xsd:element name="ValueOperator" type="NormalizedStringType"/>
	
	<xsd:element name="FrequencyNumber" type="PositiveIntegerNumericType"/>
	
	<xsd:element name="TestAttribute" type="StringType"/>
	<xsd:element name="IndustryStandard" type="StringType"/>
	<xsd:element name="MeasurementMethod" type="StringType"/> <!-- should this be code type -->

	<xsd:element name="ExpectedQuantity" type="QuantityType"/>
	
	<xsd:element name="ExpectedQuantityDescription" type="DescriptionType"/>

	<xsd:element name="MeasurementResourceReference" type="ConstrainedResourceReferenceType"/>
</xsd:schema>
