<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<Schema xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes">

	<ElementType name="datamodel" content="eltOnly" model="closed">
		<AttributeType name="version" required="yes"/>
		<attribute type="version"/>
		<element   type="levelmap" minOccurs="1" maxOccurs="1"/>
		<element   type="iod" minOccurs="0" maxOccurs="*"/>
		<element   type="imd" minOccurs="0" maxOccurs="*"/>
	</ElementType>
	
	<AttributeType name="name"    required="yes"/>
	<AttributeType name="usage"   required="yes" dt:type="enumeration" dt:values="M U C"/>
	<AttributeType name="ie"      required="yes" dt:type="enumeration" dt:values="patient study series equipment frame-of-reference image dose curve overlay modality-lut voi-lut structure-set plan treatment-record presentation-state document"/>
	<AttributeType name="tag"     required="yes"/>
	<AttributeType name="type"    required="yes" dt:type="enumeration" dt:values="1 1C 2 2C 3 3C"/>

	<ElementType   name="table"     content="textOnly"/>
	<ElementType   name="sop"       content="textOnly"/>
	<ElementType   name="condition" content="textOnly"/>

	<ElementType name="iod" content="eltOnly" model="closed">
		<attribute type="name"/>
		<element   type="table"/>
		<element   type="sop"    minOccurs="1" maxOccurs="*"/>		
		<element   type="module" minOccurs="1" maxOccurs="*"/>		
	</ElementType>

	<ElementType   name="module" content="eltOnly" model="closed">
		<attribute type="name"/>
		<attribute type="usage"/>
		<attribute type="ie"/>
		<element   type="condition" minOccurs="0" maxOccurs="1"/>
	</ElementType>

	<ElementType name="imd" content="eltOnly" model="closed">
		<attribute type="name"/>
		<element   type="table"/>
		<element   type="element" minOccurs="1" maxOccurs="*"/>
	</ElementType>

	<ElementType name="element" content="eltOnly" order="many" model="closed">
		<attribute type="tag"/>
		<attribute type="type"/>
		<element   type="element"/>
	</ElementType>
	
	<AttributeType name="level" required ="yes" dt:type="enumeration" dt:values="PATIENT STUDY SERIES IMAGE"/>
	
	<ElementType name="map" content="empty" model="closed">
		<attribute type="ie"/>
		<attribute type="level"/>
	</ElementType>

	<ElementType name="levelmap" content="eltOnly" model="closed">
		<element type="map" minOccurs="1" maxOccurs="*"/>
	</ElementType>
</Schema>
