<?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:     4.0
datum productie			31 juli 2019
aanpassing door		Manon, Henk en Nelleke
Doelgroep					LSP, LED en Datalake
details:						Herijking met standaard Open Geospatial Consortium en grote herziening tbv LED en datalake aansluiting.

Major/Minor versie:     4.1
datum productie			8 augustus 2019
aanpassing door		Manon, Mustafa (Henk en Nelleke)
Doelgroep					LSP, LED en Datalake
details:						Aanpassingen op verzoek van Manon.


Major/Minor versie:     4.2
datum productie			11 oktober 2019
aanpassing door		Manon, Hedy, Nelleke
Doelgroep					CBS
details:						Aanpassingen op verzoek van Manon en Hedy

Major/Minor versie:     4.3
datum productie			5 november 2019
aanpassing door		Manon,  Nelleke
Doelgroep					CBS
details:						co1:Copybulkmailannouncement uitgebreid met element rubriek fi1:ValueIdentificationOnMailItem 
  	
   -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:omi4="urn:postnl/mail/observationmailitem/4" xmlns:ma1="urn:postnl/mail/manufacturingcomponents/1" xmlns:co1="urn:postnl/mail/components/1" xmlns:fi1="urn:postnl/mail/fields1" xmlns:ma2="urn:postnl/mail/manufacturingcomponents/2" xmlns:co2="urn:postnl/mail/components/2" xmlns:ma3="urn:postnl/mail/manufacturingcomponents/3" targetNamespace="urn:postnl/mail/observationmailitem/4" 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/fields1" schemaLocation="../../Common/OAGI/Components/Fields1.xsd"/>
	<xsd:element name="ObservationMailItem" type="omi4:ObservationMailItemType">
		<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="ObservationMailItemType">
		<xsd:sequence>
			<xsd:element ref="omi4:ObservationMailItemHeader" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Information that generally describes the Observation. </xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="omi4:ObservationMailItemResult" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The ObservationResult contains the value of the Observation, as well as the inforrnation about the context of the observation.

An observation results in a value being assigned to a phenomenon. The phenomenon is a property of a feature, the latter being the feature-of-interest of the observation. The observation uses a procedure, which is
often an instrument or sensor , but may be a process chain, human observer, an algorithm, a computation 
or simulator. The key idea is that the observation result is an estimate of the value of some property of the
feature-of-interest, and the other observation properties provide context or metadata to support evaluation,
interpretation and use of the result.
The relationship between the properties of an observatio and those of its feature-of-interest is key to the semantics of the model.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="ObservationMailItemHeader" type="omi4:ObservationMailItemHeaderType">
		<xsd:annotation>
			<xsd:documentation>Information that generally describes the Observation and the context of the Observation.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="ObservationMailItemHeaderType">
		<xsd:sequence>
			<xsd:group ref="co1:DocumentIDsGroup" minOccurs="0"/>
			<xsd:element ref="fi1:LastModificationDateTime" minOccurs="0"/>
			<xsd:element ref="fi1:DocumentDateTime" minOccurs="0"/>
			<xsd:element ref="ma1:ResultReleaseTime" minOccurs="0"/>
			<xsd:element ref="ma2:ObservationClass" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="ObservationMailItemResult" type="omi4:ObservationMailItemResultType">
		<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="ObservationMailItemResultType">
		<xsd:sequence>
			<xsd:element name="ResultTime" type="co2:ResultTimeType" 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="Procedure" type="omi4: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 name="ResultSource" type="omi4:ResultSourceType" minOccurs="0">
				<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:element ref="omi4: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="omi4:ResultValueType"/>
	<xsd:complexType name="ResultValueType">
		<xsd:sequence>
			<xsd:element ref="co1:MailItemResult" minOccurs="0"/>
			<xsd:element ref="co1:Barcodes" minOccurs="0"/>
			<xsd:element ref="co1:InductionStationResult" minOccurs="0"/>
			<xsd:element ref="co1:EnrichmentResult" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="co1:SortingResult" minOccurs="0"/>
			<xsd:element ref="co1:PrintingResult" minOccurs="0"/>
			<xsd:element ref="co1:CollectingPostageIncident" minOccurs="0"/>
		</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:complexType name="ResultSourceType">
		<xsd:sequence>
			<xsd:element ref="ma1:SortScheme" minOccurs="0"/>
			<xsd:element ref="ma2:Machine" minOccurs="0"/>
			<xsd:element ref="ma1:MachineGroup" minOccurs="0"/>
			<xsd:element ref="ma1:Mode" minOccurs="0"/>
			<xsd:element ref="ma3:ProgramMode" minOccurs="0"/>
			<xsd:element ref="ma1:ProductLine" minOccurs="0"/>
			<xsd:element name="RunInterval" type="co1:TimePeriodType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Information about the time interval in which a sorting machine was processing mail with the same sorting scheme.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="co1:DeliveryDateTimePeriod" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>
