<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
        xmlns:about="http://CytometryML/ACS/about"
        xmlns:acquisition="http://CytometryML/ACS/acquisition"
        xmlns:dicom="http://CytometryML/ACS/dicom"
        xmlns:nums="http://CytometryML/ACS/num_types"
        targetNamespace="http://CytometryML/ACS/acquisition"
        elementFormDefault="qualified"
        attributeFormDefault="unqualified">
	<import namespace="http://CytometryML/ACS/about"
	        schemaLocation="about.xsd"/>
	<import namespace="http://CytometryML/ACS/dicom"
	        schemaLocation="dicom.xsd"/>
	<import namespace="http://CytometryML/ACS/num_types"
	        schemaLocation="num_types.xsd"/>
	<annotation>
		<documentation>Since Acquisition_Type needs to be imported into multiple schemas besides ToT.xsd and Tot.xsd needs to import these schemas, 
		a circular reference can be omitted by making Acquisition its own schema. This will also permit extension of Acquisition_Type</documentation>
	</annotation>
	<annotation>
		<documentation>Referenced Instance Sequence (0008,114A) 1 Sequence of Items each providing a
reference to an Instance that is part of the Series defined by Series Instance UID
(0020,000E) in the enclosing Item. One or more Items shall be present
PS 3.4-2008, C.6.1.1.5.1 Alternate Representation Sequence
The Purpose of Reference Code Sequence (0040,A170), which shall describe the nature
of the alternate encoding of the image. The Purpose of Reference Code Sequence
(0040,A170) shall include only one Item. The Baseline Context Group for this Code
Sequence is CID 7205.</documentation>
	</annotation>
	<!--***************************************************************************-->
	<annotation>
		<documentation>The Acquisition Number is a number produced by the instrument that is changed for each run. 
		(the Acquisition Number is sequentially changed (incremented) for each run of the instrument independently of the measurement being performed)
		 Depending upon the instrument, 
		the underlying data-type and pattern can be changed without changing any code that includes this data-type.
	(0020,0012) Acquisition Number IS 1</documentation>
	</annotation>
	<complexType name="Acquisition_Number_Type">
		<simpleContent>
			<extension base="nums:Int32_Type">
				<attribute name="Tag" type="dicom:Tag_Type"
				           use="prohibited" fixed="00200012"/>
				<attribute name="VR" type="dicom:VR_Type"
				           use="prohibited" fixed="IS"/>
			</extension>
		</simpleContent>
	</complexType>
	<!--***************************************************************************-->
	<annotation>
		<documentation>The Instance Number is an integer that is increase by 1 for every set of binary data included in an ACS file. In order to maximize reliability, the values shall start with 1. this permits the last number to equal the total number of data sets. (0020,0013) Instance Number IS 1
It is suggested that the name of the file that contains the binary data includes either the Acquisition Number or the Instance Number.</documentation>
	</annotation>
	<complexType name="Instance_Number_Type">
		<simpleContent>
			<extension base="nums:PInt32_Type">
				<attribute name="Tag" type="dicom:Tag_Type"
				           use="prohibited" fixed="00200013"/>
				<attribute name="VR" type="dicom:VR_Type"
				           use="prohibited" fixed="IS"/>
			</extension>
		</simpleContent>
	</complexType>
	<!--***************************************************************************-->
	<annotation>
		<documentation>Tag=(0008,0022) Acquisition Date VR=DA 1</documentation>
	</annotation>
	<complexType name="Acquisition_Date_Type">
		<simpleContent>
			<extension base="date">
				<attribute name="Tag" type="dicom:Tag_Type"
				           use="prohibited" fixed="00080022"/>
				<attribute name="VR" type="dicom:VR_Type"
				           use="prohibited" fixed="DA"/>
			</extension>
		</simpleContent>
	</complexType>
	<!--***************************************************************************-->
	<annotation>
		<documentation>Tag =(0008,0032) Acquisition Time VR=TM 1</documentation>
	</annotation>
	<complexType name="Acquisition_Time_Type">
		<simpleContent>
			<extension base="time">
				<attribute name="Tag" type="dicom:Tag_Type"
				           use="prohibited" fixed="00080032"/>
				<attribute name="VR" type="dicom:VR_Type"
				           use="prohibited" fixed="TM"/>
			</extension>
		</simpleContent>
	</complexType>
	<!--***************************************************************************-->
	<complexType name="Acquisition_Date_And_Time_Type">
		<sequence>
			<element name="Acquisition_Date"
			         type="acquisition:Acquisition_Date_Type"/>
			<element name="Acquisition_Time"
			         type="acquisition:Acquisition_Time_Type"/>
		</sequence>
	</complexType>
	<!--***************************************************************************-->
	<annotation>
		<documentation>Acquisition Datetime 	(0008,002A) VR=DT Date and Time
1	The date and time that the acquisition of data that resulted in this image started.</documentation>
	</annotation>
	<complexType name="Acquisition_Datetime_Type">
		<simpleContent>
			<extension base="dateTime">
				<attribute name="Tag" type="dicom:Tag_Type"
				           fixed="0008002A"/>
				<attribute name="VR" type="dicom:VR_Type" fixed="DT"/>
			</extension>
		</simpleContent>
	</complexType>
	<!--***************************************************************************-->
	<annotation>
		<documentation>From: PS 3.3 - 2008, C.7.6.1 General Image Module
Table C.7-9 specifies the Attributes that identify and describe an image within a particular series.
Table C.7-9, GENERAL IMAGE MODULE ATTRIBUTES
"Acquisition Number (0020,0012)  A number identifying the single
continuous gathering of data over a period of time that resulted in this image." 
 This is also relevant to list-mode. (0020,0012) Acquisition Number IS 1 (</documentation>
	</annotation>
	<complexType name="Acquisition_Context_Type">
		<sequence>
			<element name="Acquisition_Number"
			         type="acquisition:Acquisition_Number_Type"/>
			<element name="Instance_Number"
			         type="acquisition:Instance_Number_Type"/>
			<element name="Acquisition_Date_Time"
			         type="acquisition:Acquisition_Datetime_Type"/>
		</sequence>
	</complexType>
	<!--***************************************************************-->
	<element name="Acquisition"/>
</schema>