<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- edited with XMLSpy v2008 sp1 (http://www.altova.com) by Richard Rowan (Minnesota Judicial Branch) -->
<!--W3C Schema generated by XMLSpy v2006 sp2 U (http://www.altova.com)-->
<!--
 Copyright © 2008, 2009 by the State of Minnesota
	State Court Administrator’s Office
	All Rights Reserved
-->
<!-- Modification History 
	Date				Version	Rev		Change
	02/01/2008	3:1		1			Initial Draft Schema
	02/06/2008	3:1		2			OrderedBy Judge field
	02/22/2008	3:1		3			Made ConditionGroupComment optional. 
	01/28/2009	3:1		4			Removed Pull/Release elements since they only apply to submissions through web services and are defined in the WSDL separate from the schema.
	
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.courts.state.mn.us/CourtXML/3" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" targetNamespace="http://www.courts.state.mn.us/CourtXML/3" elementFormDefault="qualified" attributeFormDefault="unqualified" version="4">
	<xs:include schemaLocation="CourtXML_3.xsd"/>
	<xs:include schemaLocation="SimpleTypes/ConditionAllType.xsd"/>
	<xs:attributeGroup name="InitialReleaseConditionsAttributes">
		<xs:attribute name="schemaVersion" type="xs:string" use="required">
			<xs:annotation>
				<xs:documentation>Specifies the version of the schema that this message should be validated against.  For this schema the value should be 3:1.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="messageProducedDateTime" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>Date and time when this message was produced.  This value is included on all outbound messages and not required on inbound messages.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:attributeGroup>
	<xs:element name="SpecifyInitialReleaseConditions">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="EFileID" type="EFileIDType">
					<xs:annotation>
						<xs:documentation>Value which when combined with the SubmittingAgencyORI uniquely identifies a specific instance of a  submission.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="SubmittingAgencyORI" type="SubmittingAgencyORIType">
					<xs:annotation>
						<xs:documentation>ORI number for agency submitting this message.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:choice>
					<xs:element name="CourtFileNumber" type="CourtFileNumberType">
						<xs:annotation>
							<xs:documentation>Case number for the court case that the case event is being added to.</xs:documentation>
						</xs:annotation>
					</xs:element>
					<xs:element name="CorrelationEFileID" type="EFileIDType">
						<xs:annotation>
							<xs:documentation>EfileID from a previous message that this message should be matched up with.</xs:documentation>
						</xs:annotation>
					</xs:element>
				</xs:choice>
				<xs:element name="OrderDate" type="xs:date">
					<xs:annotation>
						<xs:documentation>Date the conditions were ordered.  </xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="OrderedBy" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Judge that issued the order specifying the conditions. Authorization is required to use this element.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="JudgeID" type="JudgeIDType"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="OrderExpirationDate" type="xs:date" minOccurs="0"/>
				<xs:element name="ConditionGroupComment" type="CommentType" minOccurs="0">
					<xs:annotation>
						<xs:documentation>This comment applies to the set of conditions being submitted.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="ReleaseCondition" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>The Conpanion file will indicate if the condtion requies an amount and that  will be enfoced by the Integration Process.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:complexContent>
							<xs:extension base="ConditionMoneyType"/>
						</xs:complexContent>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
			<xs:attributeGroup ref="InitialReleaseConditionsAttributes"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="SpecifyInitialReleaseConditionsResponse">
		<xs:annotation>
			<xs:documentation>Response message resulting from an attempt to add an Interim Condition to a case. </xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="EFileID" type="EFileIDType">
					<xs:annotation>
						<xs:documentation>Passed in with submission.  Used to correlate response with submission.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="SubmittingAgencyORI" type="SubmittingAgencyORIType">
					<xs:annotation>
						<xs:documentation>ORI number for agency that submitted the message that this response message resulted from.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:choice>
					<xs:element name="AcceptedByCourt">
						<xs:complexType>
							<xs:choice>
								<xs:annotation>
									<xs:documentation>Value returned dpends on which was included in submission message.</xs:documentation>
								</xs:annotation>
								<xs:element name="CourtFileNumber" type="CourtFileNumberType">
									<xs:annotation>
										<xs:documentation>Case number for the court case that the interim condition was added to.</xs:documentation>
									</xs:annotation>
								</xs:element>
								<xs:element name="CorrelationEFileID" type="EFileIDType">
									<xs:annotation>
										<xs:documentation>EfileID from a prior message that this responses submission message was matched up with.</xs:documentation>
									</xs:annotation>
								</xs:element>
							</xs:choice>
						</xs:complexType>
					</xs:element>
					<xs:element name="PendingCourtReview">
						<xs:complexType>
							<xs:sequence>
								<xs:element name="ReasonText" type="EFileQueueReasonCodeTextType"/>
							</xs:sequence>
						</xs:complexType>
					</xs:element>
					<xs:element name="Rejected">
						<xs:complexType>
							<xs:sequence>
								<xs:element name="ReasonText" maxOccurs="unbounded">
									<xs:complexType>
										<xs:simpleContent>
											<xs:extension base="Text1to100Type">
												<xs:attribute name="code" type="xs:string">
													<xs:annotation>
														<xs:documentation>For future use to hold a unique identifier for rejection reason.</xs:documentation>
													</xs:annotation>
												</xs:attribute>
											</xs:extension>
										</xs:simpleContent>
									</xs:complexType>
								</xs:element>
								<xs:element name="CommentText" type="xs:string" minOccurs="0"/>
							</xs:sequence>
						</xs:complexType>
					</xs:element>
				</xs:choice>
			</xs:sequence>
			<xs:attributeGroup ref="InitialReleaseConditionsAttributes"/>
		</xs:complexType>
	</xs:element>
</xs:schema>
