<!--
Copyright © 2004 Chemical Industry Data Exchange. All rights reserved.
This schema and its use are subject to the statement appearing on
Page 1 of the Chem eStandards v4.0 Introduction, and to the license
agreement available during the Chem eStandards download process.
-->
<xsd:schema targetNamespace="urn:cidx:names:specification:ces:schema:all:4:0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:cidx:names:specification:ces:schema:all:4:0">
<xsd:include schemaLocation="CIDX_CeS_v4.0_CommonComponents.xsd"/>
<xsd:element name="DateSampleTaken" type="DateSampleTakenType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Date the sample was taken.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="DateSampleTakenType">
<xsd:sequence>
<xsd:element ref="DateTime"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="LocationSampleObtained" type="LocationSampleObtainedType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Location of shore tank, vessel, rail car or truck where sample was taken.</Description>
<SampleData>Stolthaven Terminal at Bayport, TX</SampleData>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:simpleType name="LocationSampleObtainedType">
<xsd:restriction base="cidxToken"/>
</xsd:simpleType>
<xsd:element name="QualityTestingReport" type="QualityTestingReportType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description/>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="QualityTestingReportType">
<xsd:sequence>
<xsd:element ref="Header"/>
<xsd:element ref="QualityTestingReportBody"/>
</xsd:sequence>
<xsd:attribute name="Version" type="cidxToken" use="required" fixed="4.0"/>
</xsd:complexType>
<xsd:element name="QualityTestingReportBatchDetail" type="QualityTestingReportBatchDetailType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Structure that defines the Batch Detail for a Quality Testing Report.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="QualityTestingReportBatchDetailType">
<xsd:sequence>
<xsd:element ref="ManufactureDate" minOccurs="0"/>
<xsd:element ref="BatchNumber" minOccurs="0"/>
<xsd:element ref="EquipmentIdentifier" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="SourceContainer" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="SampleNumber" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="ShelfLifeDate" minOccurs="0"/>
<xsd:element ref="TestSpecification" maxOccurs="unbounded"/>
<xsd:element ref="Comment" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="SpecialInstructions" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="ThirdPartyLaboratoryDetail" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="QualityTestingReportBody" type="QualityTestingReportBodyType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>eStandards Body structure. Contains the message-specific metadata in up-to three sections: Properties, Partners, and Details.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="QualityTestingReportBodyType">
<xsd:sequence>
<xsd:element ref="QualityTestingReportProperties"/>
<xsd:element ref="QualityTestingReportPartners"/>
<xsd:element ref="QualityTestingReportDetails"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="QualityTestingReportDetails" type="QualityTestingReportDetailsType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>eStandards Details structure. It contains the remainder of the message data which was not covered under "Properties" (which is the message 'metadata' or 'common data') and "Partners" (which is the information about the parties involved).</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="QualityTestingReportDetailsType">
<xsd:sequence>
<xsd:element ref="QualityTestingReportBatchDetail" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="QualityTestingReportPartners" type="QualityTestingReportPartnersType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>eStandards Partners structure. It contains the information about the parties involved in the data exchange.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="QualityTestingReportPartnersType">
<xsd:sequence>
<xsd:element ref="Seller"/>
<xsd:element ref="ThirdPartyLaboratory"/>
<xsd:element ref="OtherPartner" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="QualityTestingReportProperties" type="QualityTestingReportPropertiesType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>eStandards Properties structure. It contains the message 'metadata' or 'common data'.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="QualityTestingReportPropertiesType">
<xsd:sequence>
<xsd:element ref="ReferenceInformation" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="ProductIdentification" maxOccurs="unbounded"/>
<xsd:element ref="OrderedProductQuantity" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="ShippedProductQuantity" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="ShipDate" minOccurs="0"/>
<xsd:element ref="LanguageCode"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="SampleContainer" type="SampleContainerType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Container in which sample is transported.</Description>
<SampleData>125 ml glass bottle</SampleData>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:simpleType name="SampleContainerType">
<xsd:restriction base="cidxToken"/>
</xsd:simpleType>
<xsd:element name="SampleDescription" type="SampleDescriptionType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Description of vessel or tank from which the sample was taken.</Description>
<SampleData>Top
Bottom
Comingled sample taken from tank B13.</SampleData>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:simpleType name="SampleDescriptionType">
<xsd:restriction base="cidxToken"/>
</xsd:simpleType>
<xsd:element name="ThirdPartyLaboratory" type="ThirdPartyLaboratoryType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Independent laboratory used to conduct a quality testing for a product.</Description>
<Comments>Testing by this partner can be requested by a Buyer, Seller or a Marketplace.</Comments>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="ThirdPartyLaboratoryType">
<xsd:sequence>
<xsd:element ref="PartnerInformation"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="ThirdPartyLaboratoryDetail" type="ThirdPartyLaboratoryDetailType">
<xsd:annotation>
<xsd:documentation>
<Documentation>
<Description>Independent testing laboratory of neither buyer nor seller.</Description>
</Documentation>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="ThirdPartyLaboratoryDetailType">
<xsd:sequence>
<xsd:element ref="SampleContainer"/>
<xsd:element ref="DateSampleTaken"/>
<xsd:element ref="SampleDescription"/>
<xsd:element ref="LocationSampleObtained"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
|