<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2014 (x64) (http://www.altova.com) by Group IT (PostNL Groep) -->
<!--org/2001/XMLSchema-->
<!--
major/ minor versie:	1.0
datum productie:		24-11-2021
gemaakt door			NM voor Mathijs Hoeijmakers
doelgroep					PostNL - logistiek
opmerking					Observation3 is de basis voor dit Noun; omdat per observation specifieke eisen worden gesteld en de omvang van het Noun niet te groot mag zijn, kunnen in de specifieke Nouns aangepaste componenten gebruikt.

  	
   -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:osi1="urn:postnl/mail/observationscanitem/1" xmlns:ma1="urn:postnl/mail/manufacturingcomponents/1" xmlns:co1="urn:postnl/mail/components/1" xmlns:me1="urn:postnl/mail/meta/1" xmlns:fi1="urn:postnl/mail/fields1" xmlns:lo1="urn:postnl/mail/logisticscomponents/1" xmlns:ma2="urn:postnl/mail/manufacturingcomponents/2" xmlns:co2="urn:postnl/mail/components/2" xmlns:co3="urn:postnl/mail/components/3" xmlns:ma3="urn:postnl/mail/manufacturingcomponents/3" targetNamespace="urn:postnl/mail/observationscanitem/1" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xsd:import namespace="urn:postnl/mail/manufacturingcomponents/1" schemaLocation="../../Common/OAGI/Components/ManufacturingComponents1.xsd"/>
	<xsd:import namespace="urn:postnl/mail/manufacturingcomponents/2" schemaLocation="../../Common/OAGI/Components/ManufacturingComponents2.xsd"/>
	<xsd:import namespace="urn:postnl/mail/manufacturingcomponents/3" schemaLocation="../../Common/OAGI/Components/ManufacturingComponents3.xsd"/>
	<xsd:import namespace="urn:postnl/mail/components/1" schemaLocation="../../Common/OAGI/Components/Components1.xsd"/>
	<xsd:import namespace="urn:postnl/mail/components/2" schemaLocation="../../Common/OAGI/Components/Components2.xsd"/>
	<xsd:import namespace="urn:postnl/mail/components/3" schemaLocation="../../Common/OAGI/Components/Components3.xsd"/>
	<xsd:import namespace="urn:postnl/mail/meta/1" schemaLocation="../../Common/OAGI/Components/Meta1.xsd"/>
	<xsd:import namespace="urn:postnl/mail/fields1" schemaLocation="../../Common/OAGI/Components/Fields1.xsd"/>
	<xsd:element name="ObservationScanItem" type="osi1:ObservationScanItemType">
		<xsd:annotation>
			<xsd:documentation>Observation is an act ("event"), whose result is an estimate of the value of a property of the feature of interest.So, it is an act of measuring or otherwise determining the value of a property.

</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="ObservationScanItemType">
		<xsd:sequence>
			<xsd:element ref="osi1:ObservationScanItemHeader" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Information that generally describes the Observation of the scanned item. </xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="osi1:ObservationScanItemResult" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>The ObservationResult contains the value of the Observation, as well as the inforrnation about the context of the observation.

</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="ObservationScanItemHeader" type="osi1:ObservationScanItemHeaderType">
		<xsd:annotation>
			<xsd:documentation>Information that generally describes the Observation of the scan item and the context.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="ObservationScanItemHeaderType">
		<xsd:complexContent>
			<xsd:extension base="co1:StatusEnabledHeaderType">
				<xsd:sequence>
					<xsd:element ref="ma1:ResultReleaseTime" minOccurs="0"/>
					<xsd:element ref="ma1:ResultReceivedTime" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:element name="ObservationScanItemResult" type="osi1:ObservationScanItemResultType">
		<xsd:annotation>
			<xsd:documentation>The ObservationResult contains the value of the Observation, as well as the inforrnation about the context of the observation.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="ObservationScanItemResultType">
		<xsd:sequence>
			<xsd:element name="ResultTime" type="co1:TimePeriodType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation> Result time is the time when the result became available, typically when the procedure associated with the observation was completed For some observations this is identical to the samplingTime. However, there are important cases where they
differ. </xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ValidTime" type="co1:TimePeriodType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>If present, the attribute validTime shall describe the
time period during which the result is intended to be used. </xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Procedure" type="osi1:ProcedureType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The procedure property within an Observation is a reference to a description of the procedure or process of the mailitem.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="osi1:ResultSource" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The ResultValue contains the values of the Observation of the feature of interest.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="osi1:ResultValue" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>The process used to obtain the value of the  result of the observation. It is the method, algorithm, instrument, of system of these, which may be used in making an observation..</xsd:documentation>
				</xsd:annotation>
				<!-- ten behoeve van TransportationUnit ea. Nouns is ResultSource uit OMI4 algemeen gemaakt en toegevoegd aan de ma3 XSD (17juli2020 -->
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="ResultValue" type="osi1:ResultValueType"/>
	<xsd:complexType name="ResultValueType">
		<xsd:sequence>
			<xsd:element ref="fi1:TrackingID" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="co2:TrackingIdentification" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="ProcedureType">
		<xsd:sequence>
			<xsd:element ref="fi1:ObservationProcedureCode" minOccurs="0"/>
			<xsd:element ref="ma1:ProcessLocationIDs" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="ResultSource" type="osi1:ResultSourceType">
		<xsd:annotation>
			<xsd:documentation>The name of the application or other source of the value of the  result of the observed process. When appropriate, this can also include the name of the employee resposible for thwe observation, like in case of a barcode scan.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="ResultSourceType">
		<xsd:sequence>
			<xsd:element ref="fi1:ObservationSourceCode" minOccurs="0"/>
			<xsd:element ref="fi1:FileName" minOccurs="0"/>
			<xsd:element name="Equipment" type="ma2:EquipmentIDsType" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="ma1:EmployeeReference" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>
