<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2006 rel. 3 U (http://www.altova.com) by Tim Buchholz (State of Minnesota-Supreme Court) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.courts.state.mn.us/CourtXML/2.0.0" targetNamespace="http://www.courts.state.mn.us/CourtXML/2.0.0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.0.0">
	<xs:include schemaLocation="CourtXML_2.0.0.xsd"/>
	<xs:element name="CaseSearchByPartyRequest">
		<xs:annotation>
			<xs:documentation>Request message for searching for cases by party.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Selection">
					<xs:annotation>
						<xs:documentation>Specify identifying party information to be used to search for cases on.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:choice>
							<xs:element name="PersonDriverLicenseID">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="ID" type="xs:string"/>
										<xs:element name="IDJurisdictionText" type="xs:string" default="MN">
											<xs:annotation>
												<xs:documentation>Drivers License State </xs:documentation>
											</xs:annotation>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="PersonFBIID">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="ID" type="xs:string"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="PersonSSNID">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="ID" type="xs:string"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="PersonStateID">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="ID" type="xs:string"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="PersonOtherID">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="ID" type="xs:string"/>
										<xs:element name="IDTypeDescriptionText">
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:enumeration value="TCIS Youth ID"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="PersonID" type="xs:string"/>
							<xs:element name="StandardNameBirthAndDeathDate">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="PersonGivenName" type="xs:string"/>
										<xs:element name="PersonMiddleName" type="xs:string" minOccurs="0"/>
										<xs:element name="PersonSurName" type="xs:string"/>
										<xs:element name="PartyBirthDate" type="xs:date" minOccurs="0"/>
										<xs:element name="PartyDeathDate" type="xs:date" minOccurs="0"/>
									</xs:sequence>
									<xs:attribute name="useSoundexIndicator" type="xs:boolean"/>
								</xs:complexType>
							</xs:element>
							<xs:element name="NickNameBirthAndDeathDate">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="NickName" type="xs:string"/>
										<xs:element name="PartyBirthDate" type="xs:date" minOccurs="0"/>
										<xs:element name="PartyDeathDate" type="xs:date" minOccurs="0"/>
									</xs:sequence>
									<xs:attribute name="useSoundexIndicator" type="xs:boolean"/>
								</xs:complexType>
							</xs:element>
							<xs:element name="BusinessName">
								<xs:complexType>
									<xs:simpleContent>
										<xs:extension base="xs:string">
											<xs:attribute name="useSoundexIndicator" type="xs:boolean"/>
										</xs:extension>
									</xs:simpleContent>
								</xs:complexType>
							</xs:element>
							<xs:element name="PartyIdentifier">
								<xs:annotation>
									<xs:documentation>Numeric (system) identifier assigned to party.</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="partyKey" type="xs:positiveInteger" use="required"/>
								</xs:complexType>
							</xs:element>
							<xs:element name="Group">
								<xs:annotation>
									<xs:documentation>Currently unavailable for search.  Will result in error if specified.</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="groupIdentifier" type="xs:nonNegativeInteger" use="required"/>
								</xs:complexType>
							</xs:element>
						</xs:choice>
					</xs:complexType>
				</xs:element>
				<xs:element name="Restriction" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Specify information to restrict the list of cases that matched the selection criteria.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="CaseTypes" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Only include matching cases that are one of these case types.</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="CaseTypeText" type="CaseTypeType" maxOccurs="unbounded"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="CaseLocations" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Only include matching cases that are from one of these court locations.</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="CaseLocationText" type="CourtLocationTextType" maxOccurs="unbounded"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="IncludeInactiveIndicator" type="xs:boolean" default="false" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Specifies whether the service should return matches for cases that are inactive (not open).  By default they are not included.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="CaseMatchLimit" type="xs:int" default="100" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Allows the requestor to specify a limit to the number of cases that could be returned that is less than the default of 100.</xs:documentation>
								</xs:annotation>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
			<xs:attribute name="documentVersion" type="xs:string" fixed="2.0.0:2"/>
			<xs:attribute name="effectiveDate" type="xs:date" fixed="2005-12-15"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="CaseSearchByPartyReply">
		<xs:annotation>
			<xs:documentation>Response message to a case search by party request</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="PartyMatch" minOccurs="0" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>Represents parties that matched the requests selection criteria, that had cases that passed the restriction criteria.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="PersonID" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
							<xs:element ref="Group" minOccurs="0" maxOccurs="unbounded"/>
							<xs:element name="PartyName" type="PartyNameType" maxOccurs="unbounded"/>
							<xs:element name="PartyBirthDate" type="xs:date" minOccurs="0" maxOccurs="unbounded"/>
							<xs:element name="PartyDeathDate" type="xs:date" minOccurs="0"/>
							<xs:element ref="PersonAssignedIDDetails" minOccurs="0"/>
							<xs:element name="ActiveWarrantCount" type="xs:int"/>
							<xs:element name="CaseMatch" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Represents cases that passed the restriction criteria</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element ref="PartyCaseAssociationText"/>
										<xs:element ref="CourtCaseNumber"/>
										<xs:element ref="CaseCountyIdentifier"/>
										<xs:element ref="CaseLocationText"/>
										<xs:element ref="BaseCaseTypeText"/>
										<xs:element ref="CaseCategoryText"/>
										<xs:element name="CaseTitle" type="xs:string" minOccurs="0"/>
										<xs:element name="CaseTypeText" type="CaseTypeType"/>
										<xs:element name="CaseSubTypeText" type="CaseSubType" minOccurs="0"/>
										<xs:element name="CaseFiledDateTime" type="xs:dateTime"/>
										<xs:element name="CaseIsConfidential" type="xs:boolean"/>
										<xs:element name="CaseIsSealed" type="xs:boolean"/>
										<xs:element name="CaseIsRestricted" type="xs:boolean" minOccurs="0"/>
										<xs:element ref="Group" minOccurs="0"/>
										<xs:element name="CaseStatus">
											<xs:annotation>
												<xs:documentation>The current case status</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:complexContent>
													<xs:extension base="CourtCaseStatusType">
														<xs:attribute name="currentStatusIndicator" type="xs:boolean" fixed="true"/>
													</xs:extension>
												</xs:complexContent>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
						<xs:attribute name="partyKey" type="xs:positiveInteger">
							<xs:annotation>
								<xs:documentation>Numeric (system) identifier assigned to party.</xs:documentation>
							</xs:annotation>
						</xs:attribute>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
			<xs:attribute name="partyMatchCount" type="xs:int" use="required"/>
			<xs:attribute name="caseMatchCount" type="xs:int" use="required"/>
			<xs:attribute name="caseMatchLimitExceededIndicator" type="xs:boolean" use="required">
				<xs:annotation>
					<xs:documentation>If true there were more than100 case matches (or more than the specified MatchLimit) that wern't included in the reply message.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="documentVersion" type="xs:string" fixed="2.0.0:2"/>
			<xs:attribute name="effectiveDate" type="xs:date" fixed="2005-12-15"/>
		</xs:complexType>
	</xs:element>
</xs:schema>
