<?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
04 Mar 2013   BvO    New noun
        *****     Update End     *****
 
-->
<xsd:schema targetNamespace="http://schema.infor.com/InforOAGIS/2"
	xmlns="http://schema.infor.com/InforOAGIS/2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xsd:include schemaLocation="../Components/Operational/QualityComponents.xsd"/>

	<xsd:element name="InspectionOrder" type="InspectionOrderType">
		<xsd:annotation>
			<xsd:documentation> Inspection orders can roughly be divided into 3 categories: (1)
				inspections of products that are purchased, produced, or sold; (2) production
				routing inspections, which are not related to an origin order; (3) storage
				inspections - quality inspections for items in inventory. Each InspectionOrder BOD
				message contains a single inspection order and its tasks and task
				lines.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="InspectionOrderType">
		<xsd:sequence>
			<xsd:element ref="InspectionOrderHeader" minOccurs="0"/>
			<xsd:element ref="InspectionOrderTask" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	
	<xsd:element name="InspectionOrderHeader" type="InspectionOrderHeaderType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The header information
				of the inspection order.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="InspectionOrderTask" type="InspectionOrderTaskType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Typically, an
				inspection order results in an inspection task for the Quality Management
				team.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="InspectionOrderTaskLine" type="InspectionOrderTaskLineType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">An inspection task may
				consist of multiple inspection task lines. In an inspection task line, the
				inspection setup by item part and characteristic is defined.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>

	<xsd:complexType name="InspectionOrderHeaderType">
		<xsd:complexContent>
			<xsd:extension base="StatusEnabledHeaderType">
				<xsd:sequence>
					<xsd:element ref="PurchaseOrderReference" minOccurs="0"/>
					<xsd:element ref="ProductionOrderReference" minOccurs="0"/>
					<xsd:element ref="SalesOrderReference" minOccurs="0"/>
					<xsd:element ref="InspectDeliveryReference" minOccurs="0"/>
					<xsd:element ref="InspectionOrderTypeCode" minOccurs="0"/>
					<xsd:element ref="SupplierParty" minOccurs="0"/>
					<xsd:element ref="ShipFromParty" minOccurs="0"/>
					<xsd:element ref="CustomerParty" minOccurs="0"/>
					<xsd:element ref="ShipToParty" minOccurs="0"/>
					<xsd:element ref="Item" minOccurs="0"/>
					<xsd:element ref="WarehouseLocation" minOccurs="0"/>
					<xsd:element ref="InventoryDateTime" minOccurs="0"/>
					<xsd:element ref="Quantity" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>The inspection order quantity that is eligible for
								inspection.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="BaseUOMQuantity" minOccurs="0"/>
					<xsd:element ref="AcceptedQuantity" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>The total actual quantity that is accepted for the
								inspection order.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="AcceptedBaseUOMQuantity" minOccurs="0"/>
					<xsd:element ref="RecommendedAcceptedQuantity" minOccurs="0"/>
					<xsd:element ref="RecommendedAcceptedBaseUOMQuantity" minOccurs="0"/>
					<xsd:element ref="RejectedQuantity" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>The total actual quantity that is rejected for the
								inspection order.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="RejectedBaseUOMQuantity" minOccurs="0"/>
					<xsd:element ref="RecommendedRejectedQuantity" minOccurs="0"/>
					<xsd:element ref="RecommendedRejectedBaseUOMQuantity" minOccurs="0"/>
					<xsd:element ref="DestroyedQuantity" minOccurs="0"/>
					<xsd:element ref="DestroyedBaseUOMQuantity" minOccurs="0"/>
					<xsd:element ref="RecommendedDestroyedQuantity" minOccurs="0"/>
					<xsd:element ref="RecommendedDestroyedBaseUOMQuantity" minOccurs="0"/>
					<xsd:element ref="RejectReasonCode" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>The overall reason why the samples are
								rejected.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="DestroyReasonCode" minOccurs="0"/>
					<xsd:element ref="RecommendationIndicator" minOccurs="0"/>
					<xsd:element ref="ProcessBlockingMethodCode" minOccurs="0"/>
					<xsd:element ref="ResponsiblePersonReference" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>The person who requested the
								inspection.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="ProducedByPersonReference" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>The person who produced the material to be inspected
								in case of a production order inspection related
								request.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="SourceLocation" minOccurs="0"/>
					<xsd:element ref="MaterialLocation" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="InspectionDueDateTime" minOccurs="0"/>
					<xsd:element ref="Reference" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="Classification" minOccurs="0"/>
					<xsd:element ref="UserArea" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="InspectionOrderTaskType">
		<xsd:complexContent>
			<xsd:extension base="StatusEnabledLineType">
				<xsd:sequence>
					<xsd:element ref="CreationDateTime" minOccurs="0"/>
					<xsd:group ref="InspectionTaskGeneralGroup" minOccurs="0"/>
					<xsd:group ref="InspectionTaskMethodologyGroup" minOccurs="0"/>
					<xsd:element ref="InspectionOrderTaskLine" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="Reference" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="Classification" minOccurs="0"/>
					<xsd:element ref="UserArea" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:group name="InspectionTaskGeneralGroup">
		<xsd:annotation>
			<xsd:documentation>Inspection order task - general data.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="CreationPeriod" minOccurs="0"/>
			<xsd:element ref="CompletionPeriod" minOccurs="0"/>
			<xsd:element ref="TestProcedureCode" minOccurs="0"/>
			<xsd:element ref="TestProcedureVersion" minOccurs="0"/>
			<xsd:element ref="TestGroupCode" minOccurs="0"/>
			<xsd:element ref="TestResultCode" minOccurs="0"/>
			<xsd:element ref="OriginalInspectionOrderTaskLineNumber" minOccurs="0"/>
			<xsd:element ref="ReInspectionOrderTaskLineNumber" minOccurs="0"/>
		</xsd:sequence>
	</xsd:group>
	<xsd:group name="InspectionTaskMethodologyGroup">
		<xsd:annotation>
			<xsd:documentation>Inspection order task - methodology.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="TestTypeCode" minOccurs="0"/>
			<xsd:element ref="TestFrequency" minOccurs="0"/>
			<xsd:element ref="TestPercent" minOccurs="0"/>
			<xsd:element ref="TestQuantity" minOccurs="0"/>
			<xsd:element ref="TestBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="SampleQuantity" minOccurs="0"/>
			<xsd:element ref="SampleBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="AcceptableQualityPercent" minOccurs="0"/>
			<xsd:element ref="SamplingRuleCode" minOccurs="0"/>
			<xsd:element ref="SamplingPlan" minOccurs="0"/>
			<xsd:element ref="InspectionStandardCode" minOccurs="0"/>
			<xsd:element ref="InspectionSeverityCode" minOccurs="0"/>
			<xsd:element ref="NumberOfIterations" minOccurs="0"/>
			<xsd:element ref="Iteration" minOccurs="0"/>
			<xsd:element ref="InspectionLevelCode" minOccurs="0"/>
			<xsd:element ref="SkipLotIndicator" minOccurs="0"/>
			<xsd:element ref="AcceptedQuantity" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The part of the sample quantity accepted after
						testing.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="AcceptedBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="RejectedQuantity" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The part of the sample quantity rejected after
						testing.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="RejectedBaseUOMQuantity" minOccurs="0"/>
		</xsd:sequence>
	</xsd:group>
	<xsd:complexType name="InspectionOrderTaskLineType">
		<xsd:complexContent>
			<xsd:extension base="StatusEnabledLineType">
				<xsd:sequence>
					<xsd:element ref="CreationDateTime" minOccurs="0"/>
					<xsd:group ref="TaskLineGeneralGroup" minOccurs="0"/>
					<xsd:group ref="TaskLineTestDataGroup" minOccurs="0"/>
					<xsd:group ref="TaskLineLimitsGroup" minOccurs="0"/>
					<xsd:element ref="Reference" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="Classification" minOccurs="0"/>
					<xsd:element ref="UserArea" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:group name="TaskLineGeneralGroup">
		<xsd:annotation>
			<xsd:documentation>Inspection order task line - general data.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="ItemAspectCode" minOccurs="0"/>
			<xsd:element ref="ItemCharacteristicCode" minOccurs="0"/>
			<xsd:element ref="ItemCharacteristicTypeCode" minOccurs="0"/>
			<xsd:element ref="ItemCharacteristicUOMCode" minOccurs="0"/>
			<xsd:element ref="ItemCharacteristicStandardTypeCode" minOccurs="0"/>
			<xsd:element ref="ItemCharacteristicCategoryCode" minOccurs="0"/>
			<xsd:element ref="ActualStartDateTime" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The date on which the first data is entered for the
						inspection order task line.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ActualStartPeriod" minOccurs="0"/>
			<xsd:element ref="ActualCompletionDateTime" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The date on which the inspection is reported as
						completed.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ActualCompletionPeriod" minOccurs="0"/>
		</xsd:sequence>
	</xsd:group>
	<xsd:group name="TaskLineTestDataGroup">
		<xsd:annotation>
			<xsd:documentation>Inspection order task line - test data.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="TestCode" minOccurs="0"/>
			<xsd:element ref="TestLocation" minOccurs="0"/>
			<xsd:element ref="TestResultCode" minOccurs="0"/>
			<xsd:element ref="AcceptedQuantity" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The actual quantity that is accepted for the task
						line.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="AcceptedBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="RejectedQuantity" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The actual quantity that is rejected for the task
						line.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="RejectedBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="HoldQuantity" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The quantity which was placed on hold pending further
						inspection.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="HoldBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="RejectReasonCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The reason for rejection of the samples.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="HoldReasonCode" minOccurs="0"/>
			<xsd:element ref="DestructiveTestIndicator" minOccurs="0"/>
			<xsd:element ref="TestResultTypeCode" minOccurs="0"/>
			<xsd:element ref="TestUOMCode" minOccurs="0"/>
			<xsd:element ref="TestStandard" minOccurs="0"/>
			<xsd:element ref="TestSkill" minOccurs="0"/>
			<xsd:element ref="TestPersonReference" minOccurs="0"/>
		</xsd:sequence>
	</xsd:group>
	<xsd:group name="TaskLineLimitsGroup">
		<xsd:annotation>
			<xsd:documentation>Inspection order task line - limits.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="FixedItemCharacteristicValue" minOccurs="0"/>
			<xsd:element ref="ItemCharacteristicStandard" minOccurs="0"/>
			<xsd:element ref="NormValue" minOccurs="0"/>
			<xsd:element ref="LowerLimit" minOccurs="0"/>
			<xsd:element ref="UpperLimit" minOccurs="0"/>
			<xsd:element ref="LowerWarningLimit" minOccurs="0"/>
			<xsd:element ref="UpperWarningLimit" minOccurs="0"/>
		</xsd:sequence>
	</xsd:group>
	<xsd:element name="InspectionOrderTypeCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>The type of inspection order. Extensible code list. Valid values
				include: Sales, Purchase, Production, BillOfMaterial, Routing,
				Storage.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!--
Move the following element definitions to "../Components/Operational/Components.xsd".
-->
	<xsd:element name="AcceptableQualityPercent" type="PercentType">
		<xsd:annotation>
			<xsd:documentation>The minimum percentage of a test sample that must be approved to have
				the entire item quantity approved.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="ActualCompletionDateTime" type="DateTimeType"/>
	<xsd:element name="ActualCompletionPeriod" type="FinancialPeriodType"/>
	<xsd:element name="ActualStartDateTime" type="DateTimeType"/>
	<xsd:element name="ActualStartPeriod" type="FinancialPeriodType"/>
	<xsd:element name="DestroyReasonCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>The reason why the samples are destroyed in the destructive
				tests.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="DestructiveTestIndicator" type="IndicatorType">
		<xsd:annotation>
			<xsd:documentation>Boolean. True, if the test is destructive and the item cannot be used
				after testing.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="FixedItemCharacteristicValue" type="QuantityType">
		<xsd:annotation>
			<xsd:documentation>An item characteristic value that is determined
				once.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="HoldReasonCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>The reason why the hold quantity was put on hold (reported as
				nonconformant). Typically this would be for outbound
				information.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="InspectionDueDateTime" type="DateTimeType">
		<xsd:annotation>
			<xsd:documentation>The date and time the inspection is due by.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="InspectionLevelCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>The inspection level at which the inspection must be conducted. User
				definable standard code list.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="InspectionSeverityCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>The severity level defined for the inspection. Extensible code list.
				Valid values include: Reduced, Normal, Tightened.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="InspectionStandardCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>The inspection standard defined for the inspection task. User
				definable standard code list.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="InventoryDateTime" type="DateTimeType">
		<xsd:annotation>
			<xsd:documentation>Storage date and time of the item.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="ItemAspectCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>A part of an item. For example, a bolt can have the aspects head and
				tail. An aspect can have one or more characteristics. For example, a head can have a
				diameter and a length, and a tail can have a diameter and a color. User definable
				code list.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="ItemCharacteristicCategoryCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>Category for the characteristic. User definable code
				list.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="ItemCharacteristicCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>A code that indicates a particular quality or distinctive mark of an
				item or an item part/component. For example, diameter, length, weight. User
				definable code list.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="ItemCharacteristicStandard" type="StringType">
		<xsd:annotation>
			<xsd:documentation>The standard normally used for characteristics. For example, a DIN
				standard.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="ItemCharacteristicStandardTypeCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>The standard type of the characteristic. Extensible code list. Valid
				values include: Attribute, Variable, Text.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="ItemCharacteristicTypeCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>The type of value that is measured. Extensible code list. Valid
				values include: Fraction, Integer, Option.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="ItemCharacteristicUOMCode" type="UOMCodeType">
		<xsd:annotation>
			<xsd:documentation>The UOM in which the item characteristic is
				expressed.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="Iteration" type="PositiveIntegerNumericType">
		<xsd:annotation>
			<xsd:documentation>The number of times the iteration has been
				performed.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="LowerLimit" type="QuantityType">
		<xsd:annotation>
			<xsd:documentation>The lowest characteristic value, expressed in the characteristic UOM,
				for which the quality is acceptable.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="LowerWarningLimit" type="QuantityType">
		<xsd:annotation>
			<xsd:documentation>The highest characteristic value, in between the lower limit and the
				norm value, that results in a quality warning.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="MaterialLocation" type="LocationType">
		<xsd:annotation>
			<xsd:documentation>The material location where the material physically exists. Allows
				nesting to support multi-level hierarchical location such as "QA Crib 001", "Rack
				1", "Shelf 1", "Slot 2", etc.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="NormValue" type="QuantityType">
		<xsd:annotation>
			<xsd:documentation>The desired quality for the item characteristic, expressed in the
				characteristic UOM.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="NumberOfIterations" type="PositiveIntegerNumericType">
		<xsd:annotation>
			<xsd:documentation>The iterations performed for the sampling plan.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="OriginalInspectionOrderTaskLineNumber" type="IdentifierType">
		<xsd:annotation>
			<xsd:documentation>In case of a re-inspection, this is a cross-reference, from the
				re-inspection task, to the original inspection task, as published with the same
				inspection order.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="ProducedByPersonReference" type="PersonReferenceType">
		<xsd:annotation>
			<xsd:documentation>The person who produced the material.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="ProcessBlockingMethodCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>The way in which production, purchase, or sales, is stopped or
				controlled in order to carry out inspections. Extensible code list. Valid values
				include: Continue, Block, BlockOperation,
				BlockCompletedOperation.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="RecommendationIndicator" type="IndicatorType">
		<xsd:annotation>
			<xsd:documentation>A boolean, indicating whether the inspection results are either a
				mere recommendation for the user (true), or mandatorily to be accepted as such
				(false). In the first case, the user can ignore and even overwrite the accepted and
				rejected quantities.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="ReInspectionOrderTaskLineNumber" type="IdentifierType">
		<xsd:annotation>
			<xsd:documentation>In case of a re-inspection, this is a cross-reference, from the
				original inspection task, to the re-inspection task, as published with the same
				inspection order.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="SamplingPlan" type="StringType">
		<xsd:annotation>
			<xsd:documentation>The sampling plan ID for the inspection task.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="SamplingRuleCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>The sampling rule for the inspection task. User definable standard
				code list.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="SkipLotIndicator" type="IndicatorType">
		<xsd:annotation>
			<xsd:documentation>Boolean. If true, only a part of the lot is to be
				inspected.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="SourceLocation" type="LocationType">
		<xsd:annotation>
			<xsd:documentation>The location where the nonconforming material was found. Such as, a
				department, work center, area, etc.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="TestCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>An examination or check done on a characteristic. User definable code
				list.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="TestGroupCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>Defines how often samples to test an order quantity are taken, and
				what the sample size is. User definable standard code list.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="TestPercent" type="PercentType">
		<xsd:annotation>
			<xsd:documentation>The sample size, expressed as a percentage of either the order
				quantity or the frequency (in case of ContinuousSampling as the test
				type).</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="TestPersonReference" type="PersonReferenceType">
		<xsd:annotation>
			<xsd:documentation>The person who performs the test on the item
				characteristic.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="TestProcedureCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>Refers to a user definable standard test procedure. Standard code
				list.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="TestProcedureVersion" type="PositiveIntegerNumericType">
		<xsd:annotation>
			<xsd:documentation>The version number of the standard test
				procedure.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="TestResultCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>Summary of the test result. Extensible code list. Valid values
				include: Accepted, PartiallyAccepted, Rejected, Undefined.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="TestResultTypeCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>The type of result reported to the user. Extensible code list. Valid
				values include: Quantitative, Qualitative.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="TestSkill" type="ProfessionalSkillType">
		<xsd:annotation>
			<xsd:documentation>The specific know-how or technical expertise that an engineer must
				have to carry out activities. Uses user definable code list
				Skills.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="TestStandard" type="StringType">
		<xsd:annotation>
			<xsd:documentation>The standard normally used for the test. For example, a DIN
				standard.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="TestTypeCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>Specification of the way in which the samples are taken from the
				order quantity. Extensible code list. Valid values include: HundredPercent,
				SingleSampling, ContinuousSampling, SamplingRule.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="TestUOMCode" type="UOMCodeType">
		<xsd:annotation>
			<xsd:documentation>The UOM that applies to the test.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="UpperLimit" type="QuantityType">
		<xsd:annotation>
			<xsd:documentation>The highest characteristic value, expressed in the characteristic
				UOM, for which the quality is acceptable.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="UpperWarningLimit" type="QuantityType">
		<xsd:annotation>
			<xsd:documentation>The lowest characteristic value, in between the norm value and the
				upper limit, that results in a quality warning.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!--
Move the following element definitions to "../Components/Common/Fields.xsd".
-->
	<xsd:element name="DestroyedQuantity" type="QuantityType">
		<xsd:annotation>
			<xsd:documentation>The total quantity destroyed during a destructive test. The quantity
				destroyed is equal to the sample size of the inspection tasks that are tested by
				means of destructive tests. The quantity destroyed does not have any impact on the
				accepted or rejected quantities.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="RecommendedAcceptedQuantity" type="QuantityType">
		<xsd:annotation>
			<xsd:documentation>The total quantity to be accepted, as recommended by Quality
				Management. The total of all sample quantities which passed the tests
				successfully.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="RecommendedDestroyedQuantity" type="QuantityType">
		<xsd:annotation>
			<xsd:documentation>The quantity to be destroyed in destructive tests, as recommended by
				Quality Management.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="RecommendedRejectedQuantity" type="QuantityType">
		<xsd:annotation>
			<xsd:documentation>The total quantity to be rejected, as recommended by Quality
				Management.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="TestQuantity" type="QuantityType">
		<xsd:annotation>
			<xsd:documentation>The part of the sample quantity that is tested. Example: A 5 kg
				sample will be tested by testing 1 kg at a time.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="DestroyedBaseUOMQuantity" type="QuantityType"/>
	<xsd:element name="RecommendedAcceptedBaseUOMQuantity" type="QuantityType"/>
	<xsd:element name="RecommendedDestroyedBaseUOMQuantity" type="QuantityType"/>
	<xsd:element name="RecommendedRejectedBaseUOMQuantity" type="QuantityType"/>
	<xsd:element name="TestBaseUOMQuantity" type="QuantityType"/>
</xsd:schema>
