<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2009 sp1 (http://www.altova.com) by Richard Rowan (Minnesota Judicial Branch) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.courts.state.mn.us/CourtXML/3" targetNamespace="http://www.courts.state.mn.us/CourtXML/3" elementFormDefault="qualified" attributeFormDefault="unqualified" version="11">
	<xs:include schemaLocation="CourtXML_3.xsd"/>
<!--
 Copyright © 2009 by the State of Minnesota
	State Court Administrator’s Office
	All Rights Reserved
-->
<!--This schema is intended to be used by the Minnesota Judicial Branch to report court actions which might affect an individual's right to vote to the Office of Secretary of State
Modification History 
	Date					Version		Rev			Change
	06/07/2009		3:1			12			Added annotation that SSN will not be populated.
															Added currentDriverLicenseIndicator attribute to PersonDriverLicense. This indicates if an instance of the PersonDriverLicense is current according to Court records. 
-->
	<xs:element name="SecretaryOfStatesVotingRightsNotification">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="CourtFileNumber" type="CourtFileNumberType">
					<xs:annotation>
						<xs:documentation>CourtFileNumber is used by court staff to identify the case related to this transaction.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="CaseCountyNumber" type="CountyNumberType">
					<xs:annotation>
						<xs:documentation>Number of the county that owns the case.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="SubjectOfAction">
					<xs:annotation>
						<xs:documentation>The content of SubjectOfAction identifies the person whose voting rights are impacted by the court action.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:complexContent>
							<xs:extension base="PartyNameAddressPhoneEmailType">
								<xs:sequence>
									<xs:element name="PersonBirthDate" minOccurs="0" maxOccurs="unbounded">
										<xs:complexType>
											<xs:simpleContent>
												<xs:extension base="xs:date">
													<xs:attribute name="currentBirthdateIndicator" type="xs:boolean">
														<xs:annotation>
															<xs:documentation>If true, indicates that a given birthdate instance is considered by the Court to be the actual birth date.</xs:documentation>
														</xs:annotation>
													</xs:attribute>
												</xs:extension>
											</xs:simpleContent>
										</xs:complexType>
									</xs:element>
									<xs:element name="SocialSecurityLast4Digits" minOccurs="0" maxOccurs="unbounded">
										<xs:annotation>
											<xs:documentation>SocialSecurityLast4Digits is currently unavailable due to data policy retrictions. It will not be populated until those restrictions are resolved.</xs:documentation>
										</xs:annotation>
										<xs:complexType>
											<xs:simpleContent>
												<xs:extension base="xs:positiveInteger">
													<xs:attribute name="currentSocialSecurityIndicator" type="xs:boolean"/>
												</xs:extension>
											</xs:simpleContent>
										</xs:complexType>
									</xs:element>
									<xs:element name="PersonDriverLicenseID" minOccurs="0" maxOccurs="unbounded">
										<xs:complexType>
											<xs:complexContent>
												<xs:extension base="PersonDriverLicenseIDType">
													<xs:attribute name="currentDriverLicenseIndicator" type="xs:boolean"/>
												</xs:extension>
											</xs:complexContent>
										</xs:complexType>
									</xs:element>
								</xs:sequence>
							</xs:extension>
						</xs:complexContent>
					</xs:complexType>
				</xs:element>
				<xs:element name="VotingRightsStatusChangeText">
					<xs:annotation>
						<xs:documentation>Describes the action being reported that impacts the SubjectOfAction's right to vote. </xs:documentation>
					</xs:annotation>
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:enumeration value="Felony Conviction"/>
							<xs:enumeration value="Felony Conviction Discharge"/>
							<xs:enumeration value="Guardianship/Rights Removed (judgment event)"/>
							<xs:enumeration value="Commitment/Adjudge Legally Incompetent (judgment event)"/>
							<xs:enumeration value="Restoration of Rights (case event)"/>
							<xs:enumeration value="Rights Restored in Error (case event)"/>
							<xs:enumeration value="Rights Removed in Error (case event)"/>
							<xs:enumeration value="Name Change"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
				<xs:element name="VotingRightsStatusChangeDate" type="xs:date">
					<xs:annotation>
						<xs:documentation>Date the action occurred in court.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="VotingRightsStatusChangeCommentText" minOccurs="0">
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:maxLength value="100"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
			</xs:sequence>
			<xs:attribute name="schemaVersion" type="xs:string" use="required" fixed="3:1">
				<xs:annotation>
					<xs:documentation>Specifies the version of the schema that this message should be validated against.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="messageProducedDateTime" type="xs:dateTime" use="required">
				<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:attribute name="caseKey" type="xs:positiveInteger" use="required">
				<xs:annotation>
					<xs:documentation>This is an ID that is unique to this case and does not change, even if the Court File Number changes.  All transactions with the same caseKey can be linked to the same case.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
</xs:schema>
