<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gal="http://www.goodinassociates.com/notes"
	
xmlns="http://www.goodinassociates.com/schema/court_data_transfer_file" targetNamespace="http://www.goodinassociates.com/schema/court_data_transfer_file" version="2"
    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" vc:minVersion="1.1">

<!--OPEN INTERNAL ISSUES

ITEMS MISSING FROM THE SCHEMA BUT ALREADY IN JIMS OR JUDICI
-Adjustment- once added, annotate per http://sites.google.com/a/judici.com/datadefinitions/adjustment.
-Collections and audit/journal stuff (ReclassDate, CollectionsFeeDistribution, JournalType, JournalDate, JournalTime, JournalBalance, JournalTotalDue and JournalTotalPaid)  Annotate whatever is added, per https://sites.google.com/a/judici.com/datadefinitions/900
-ModificationType- if it survives in schema, add a general explanation here
-TODO TG: Revisit what data is nonretainable

-->

<xs:annotation>
	<xs:documentation gal:preformatted="html">

<br/>General notes on this schema:

<br/><b>EXTERNAL SPEC REFERENCES</b>
		<br/>The e-citation spec contains a data element listing which identifies a DDN number.  This corresponds to the data elements in the ADR spec (<a href="https://drive.google.com/file/d/0Bzzl1oCgBYTKZEtMc2M5bkxxS2c/view?usp=sharing">6/18/2013 version of ADR spec</a>).  This can be used to locate data items in this schema: to find ADR data element #60, search for 'DDN 60'

<br/>All e-citation spec/std. references herein are from the 5/14/2014 version of the <a href="https://drive.google.com/file/d/0Bzzl1oCgBYTKcGdYNk1mQl9vTlU/view?usp=sharing">e-citation spec</a>

<br/>NOT ALL SCHEMA DATA IS NECESSARILY IN USE
<br/>The presence of a data element in the this schema doesn't necessarily mean that it is used by Judici.com.

<br/>DATA SECRITY AND PRIVACY RESTRICTIONS
<br/>Judici courts implement a variety of restrictions on what data is shown to the public.  Some of these restrictions are required and others are at the court's discretion.  For a list of all data subject to possible restriction as Secure Data or Private Data, see https://www.judici.com/agreements/Exhibit_D_to_Web_Service_Subscriber_Agreement

<br/>NOTICE: DERIVED DATA VALUES
<br/>All data defined herein as "Derived Data" is set by court, and is for internal Judici.com use only.  It is derived by the court from one or more underlying case data elements, which can be quite complex.  Derived Data may control restrictions on whether case data will be made public under the data security and privacy restrictions (see previous note) and/or applicable statutes or regulations such as the federal Fair Credit Reporting Act (FCRA) requirements on reporting past  non-convictions.  Derived Data might not, at any given time, be calculated in accordance with applicable statutes and regulations and it is subject to change.  Derived Data is shown on an "as is" basis, given the relevant underlying case data.  In the event of any conflict between such data and the underlying data, the latter shall govern and the conflict should be brought to the attention of the court. 

<br/>Retention in Compiled Index Record not allowed for any Derived Data.  

<br/>CODE, DESCRIPTION AND TEXT ATTRIBUTES

<br/>Enumerations are used when the code/value list is modest in size and fairly static.  If the code is meaningful text (e.g. BLK, BLU...) it will be used as the enumeration Otherwise, the enum will contain the VALUE.  This is because most codes are sequence/ordinal numbers which can be effectively be derived from the ordinal position in the enum (and even when the number sequences have GAPS, the right code can still be derived).  

<br/>When there is no enum:
<br/>-Code can be required
<br/>-Value should be optional (unless there is a write-in value such as with 999999 offenses)

<br/>-Schema may include enumerations, if the codes meaningless numerics and the list of values is not long.

<br/>MORE ON CODES
<br/>- Courts often use "standard" codes in different ways (e.g. indicating modified judgments using a different sequence of dispositions). So while Service Provider may provide guidance on interpreting court offense data, it is recommended that any user of this data work directly with the court for a full, complete and correct interpretation of that court's data.

<br/>BOOLEAN
<br/>In order to be able to convey explicit "Unknown" value, the schema uses an enumeration (Yes/No/Unknown) rather than Boolean.  

<br/>DATE FORMAT  
		<br/>Producers have to supply Date type attributes (omitting any of the optional time zone info), while Consumer schemas will continue to be text.

<br/>CODES FOR STATES, PROVINCES, TERRITORIAL POSSESSIONS AND COUNTRIES
<br/>Wherever the schema calls for a state/province code for the U.S., Canada or Mexico, use one of the applicable two-character codes in Appendix A in ADR spec. Note that the state/province codes for Mexico and Canada used by the AOIC don't always match international standards.
<br/>Wherever the schema calls for a country code, only the following countries need be indicated: US = United States, MX = Mexico, CA = Canada.

<br/>

	</xs:documentation>
</xs:annotation>

<xs:annotation>
	<xs:documentation gal:Direction="Consumer" >
		<br/>For most data values associated with table lookups, Judici can OUTPUT any combination of the following:
<br/>- An attribute containing "Code" contains the code value (e.g. a value of "405" for the &lt;CriminalDisposition> Code attribute)
<br/>- An attribute containing "Name", or "Description" holds the exact text corresponding to the code (e.g. "Withhold Judgment/720 ILCS 5/12-4.3"). 
<br/>- An optional third attribute containing "Text"- this exists to give courts the option to provide more human-readable content.  But practically speaking, courts rarely do this.  So this last attribute is typically just a concatenation of teh other two.
	</xs:documentation>
</xs:annotation>

	<xs:element name="Actor" gal:Service="e_citation" >
		<xs:annotation>
			<xs:documentation>
				Each civil case litigant or criminal defendant is represented by an Actor element.  Otherr individuals, including judges and law enforcement officers, use the RelatedActor element
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Identity" maxOccurs="unbounded" gal:Service="e_citation"  gal:cardinality="e_citation:1-1" />
				<xs:element ref="LitigantDetails" minOccurs="0" gal:Service="e_citation" gal:cardinality="e_citation:1-1"/>
			</xs:sequence>
			<xs:attribute name="ID" type="xs:string" use="required" gal:removedForService="e_citation">
				<xs:annotation>
					<xs:documentation>
						Producers only need provide this when referencing an existing actor.  Example of "IL016025JL2012CF18D1" illustrates the structure:
- NCIC from Court element
- L This is a delimiter to indicate Litigant (required, for performance reasons)
- Number from Case element
- RoleCode from LitigantDetails element
- RoleSequence from LitigantDetails element
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="XID" type="xs:string" gal:direction="Producer" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						The data producer's ID for this Actor, which  Judici may or may not retain/use.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Role" use="required" gal:Service="e_citation">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Judge" gal:removedForService="e_citation"/>
						<xs:enumeration value="Attorney" gal:removedForService="e_citation"/>
						<xs:enumeration value="ProsecutingAttorney" gal:removedForService="e_citation"/>
						<xs:enumeration value="LawEnforcementAgent" gal:removedForService="e_citation"/>
						<xs:enumeration value="Litigant"/>
						<xs:enumeration value="CourtReporter" gal:removedForService="e_citation"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="ActorRelationship">
		<xs:complexType>
			<xs:attribute name="RelatedActorID" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation>
						This references a RelatedActor, which could be an arresting officer on the CourtDataTransfer element or a judge on a Court element. 
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Type" use="required">
				<xs:annotation>
					<xs:documentation>
						Indicates the nature of the relationship
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="ProsecutingAttorney"/>
						<xs:enumeration value="DefenseAttorney"/>
						<xs:enumeration value="Attorney"/>
						<xs:enumeration value="ArrestingOfficer"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="Address" gal:Service="e_citation">
		<xs:complexType>
			<xs:sequence>
				<xs:annotation>
					<xs:documentation>You can have any number of these (e.g. one for home address and another for work address.)  Not required for e-citations, beccause a traffic voiolator may be unlicensed.
					</xs:documentation>
				</xs:annotation>
				<xs:element ref="AddressLine" minOccurs="0" maxOccurs="2" gal:cardinality="e_citation:1-2"/>
			</xs:sequence>  
			<xs:attribute name="ID" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation>
						Sequence/ordinal or other descriminator for multiple addresses (e.g. 1 or 2, eg. Home or Work) 
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="City" type="xs:string" gal:Service="e_citation" gal:requiredForService="e_citation">
				<xs:annotation>
    					<xs:documentation>
            				Per ADR spec (DDN 31), this is 20 char.  CMS will truncate.
    					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="State" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						Ref. ADR spec (DDN 32). See note on state/province codes, in comments at top of schema
						'empty string' = Other/Unknown
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="2"/>
						<xs:minLength value="0"/>
						<xs:pattern value="([A-Z]{2})?"/>
					</xs:restriction>
				</xs:simpleType>				
			</xs:attribute>
			<xs:attribute name="PostalCode" type="xs:string" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>Ref. ADR spec (DDN 33). In in U.S. addresses, this is zip code.</xs:documentation>
				</xs:annotation>
<!--				Data type: Per ADR spec (DDN 33): A/N-15.  -->
			</xs:attribute>
			<xs:attribute name="Country" gal:Service="e_citation" gal:requiredForService="e_citation" >				
				<xs:annotation>
					<xs:documentation>						
						Ref. ADR spec (DDN 32 and DDN 327). See note on state/province/country codes, in comments at top of schema 
					</xs:documentation>
					<xs:documentation gal:direction="Producer">
						Producers are required to always include a two letter country code.
						US = United States
						MX = Mexico
						CA = Canada
						'empty string' = Other/Unknown Non-US
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="2"/>
						<xs:minLength value="0"/>
						<xs:pattern value="([A-Z0-9]{2})?"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Type" type="xs:string" gal:Service="e_citation">
				<xs:annotation>
    					<xs:documentation>
            				Distinguishes home address from work, etc.   
    					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="AddressLine" gal:Service="e_citation">	
		<xs:complexType>
			<xs:attribute name="Number" type="xs:int" use="required" gal:Service="e_citation">
				<xs:annotation>
    					<xs:documentation>
            				An ordinal number for each street address segment provided.  
    					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Line" type="xs:string" use="required" gal:Service="e_citation">
				<xs:annotation>
			    		<xs:documentation>
            				The street address text segment.  Per ADR spec (DDN 29/30), this is A/N 60.  CMS will truncate.  
    					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="ArrestData" gal:Service="e_citation" >
		<xs:annotation>
			<xs:documentation>
				It is possible to have more than one &lt;ArrestData> because a defendant MIGHT get arrested more than once on the case (e.g. after jumping bail).  That said. there is no reason for an E-CITATION to have more than one.
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:attribute name="ArrestingOfficer" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						An ActorID which references an arresting officer  &lt;RelatedActor> record on the Court element. 
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="DocumentControlNumber" gal:Service="e_citation">	
				<xs:annotation>
    					<xs:documentation>
            				Ref. ADR spec (DDN 42). The ID associated with the fingerprint card from the booking process.  If the violator actually gets BOOKED, this is critical to connecting them to their case so that their criminal history is accurate.
    					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:length value="9"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>		
			<xs:attribute name="BondAmount" gal:Service="e_citation" type="xs:int" gal:xpath="exists(../[@CashBondType = 'Cash-100%' or @CashBondType = 'Cash-10%'])">
				<xs:annotation>
					<xs:documentation>
						Ref. ADR spec (DDN 48). This is what was SET by law or by a judge.  What (if anything) is actually PAID is in a Payment.  This is always full face value, never 10%
						This is required if CashBondType exists.  This cannot be enforced by schema, so it is checked in pre-processing.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="CashBondType"  use="required" gal:Service="e_citation" gal:xpath=".[(. = 'Cash-100%' and exists(../@BondAmount)) or (. = 'Cash-10%' and exists(../@BondAmount)) or (. = 'Unknown') or  or (. = 'None')]"> 
				<xs:annotation>
    					<xs:documentation>
            				One of the monetary bond options in Section (4)l of the e-citation since that is a subset of the values in the ADR spec (DDN 46). Can be used to indicate 10% bonds vs. 100% bonds.  "Unknown" is an option, so this can be required.  
						If this element exists, then the BondAmount attribute must be non-zero and a Payment element must exist.  This cannot be enforced by schema, so it is checked in pre-processing.
    					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<!--Enum added in April 2015.  TODO JJ: Implement.  The numeric codes contain gaps, so they don't align with enum ordinals.  But you shouldn't have to convert to a numeric because the JIMS UI wants the DESCRIPTION -->
					<xs:restriction base="xs:string">
        				<xs:enumeration value="Unknown"/>
						<xs:enumeration value="None"/>
        				<xs:enumeration value="Cash-100%"/>
						<xs:enumeration value="Cash-10%"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="NonCashBondType"  use="required" gal:Service="e_citation">
				<xs:annotation>
    					<xs:documentation>
            				"None" is an option, so this can be required
    			
            				Use one of the non-monetary bond options in Section (4)l of the e-citation standard, since that is a subset of the values in the ADR spec (DDN 47).
    					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>  
					<!--New in April 2015, so it's string instead of NMTOKEN.  TODO JJ: Implement.  The numeric codes contain gaps, so they don't align with enum ordinals.-->

					<xs:restriction base="xs:string">
  				      	<xs:enumeration value="Unknown" gal:removedForService="e_citation"/>
						<xs:enumeration value="None"/>
  				      	<xs:enumeration value="License"/>
						<xs:enumeration value="IBond/Recog"/>
  				      	<xs:enumeration value="Bond Card"/>
						<xs:enumeration value="DUI Bond"/>
  				      	<xs:enumeration value="Real Estate" gal:removedForService="e_citation"/>
						<xs:enumeration value="Securities" gal:removedForService="e_citation"/>
  				      	<xs:enumeration value="Other Case" gal:removedForService="e_citation"> 
							<xs:annotation>
    								<xs:documentation>
            							Not used in e-sitation, becuase we ArrestData is on the INCIDENT, not the case (as in the court's CMS).
    								</xs:documentation>
							</xs:annotation>
  				      	</xs:enumeration>
						<xs:enumeration value="Appeal Bond" gal:removedForService="e_citation"/>
						<xs:enumeration value="BondTransfer" gal:removedForService="e_citation"/>
						<xs:enumeration value="Notice/Appear"/>
						<xs:enumeration value="Promise/Cmply">
							<xs:annotation gal:Service="e_citation">
								<xs:documentation>
									The e-citation spec allows a value of E-Bond, which isn't in any non-draft ADR spec.  So that bond type should be mapped to "Other", a type allowed by ADR but not be the e-citation spec.  
								</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
						<xs:enumeration value="Detained"/>
						<xs:enumeration value="NTA: May Appr"/>
						<xs:enumeration value="NTA: Must Appr"/>
						<xs:enumeration value="Other"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="ArrestDate" type="xs:string" gal:direction="Consumer" />
			<xs:attribute name="ArrestDateTyped" type="xs:date" gal:Service="e_citation" gal:requiredForService="e_citation">
				<xs:annotation>
					<xs:documentation>
						See ADR spec (DDN 40) for further info.
					</xs:documentation>
				</xs:annotation> 
			</xs:attribute> 
			<xs:attribute name="WarrantDate" type="xs:string"/>
			<xs:attribute name="WarrantDateTyped" type="xs:string"/>
			<xs:attribute name="ViolationType" type="xs:string"/>
			<xs:attribute name="ViolationTypeCode" type="xs:string"/>
			<xs:attribute name="ActionType" type="xs:string"/>
			<xs:attribute name="ActionTypeCode" type="xs:string"/>
			<xs:attribute name="Comment" type="xs:string"/>
			<xs:attribute name="UserDate" type="xs:string"/>
			<xs:attribute name="User" type="xs:string"/>
			<xs:attribute name="Number" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="AttendeeActor">
		<xs:complexType>
			<xs:attribute name="ActorID" type="xs:string" use="required">
				<xs:annotation>
    					<xs:documentation>
            				Ties an actor to an Event. If case/litigant don't already exist at the court, this can't be done because the ActorID isn't knowable.
    					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="BMVInfo" gal:Service="e_citation">
		<xs:complexType>
			<xs:attribute name="BloodAlcoholContent" type="xs:decimal"/>
			<xs:attribute name="DriverSpeed" type="xs:integer"/> 
			<xs:attribute name="DrugFlag">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>
						<xs:enumeration value="No"/>
						<xs:enumeration value="Unknown"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="HazardousMaterialsFlag" gal:Service="e_citation">
				<xs:annotation gal:Service="e_citation">
   					 <xs:documentation>
            				Ref. ADR spec (DDN 145).  Not required, since the citation might not even concern a vehicle.  But if it IS provided, the e-citation spec requires a definitve answer.  That is why the Unknown option isn't allowed for e-citation.
   					 </xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>
						<xs:enumeration value="No"/>
						<xs:enumeration value="Unknown" gal:removedForService="e_citation"/> 
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="SpeedLimit" type="xs:integer"/>
			<xs:attribute name="CommercialVehicleFlag" gal:Service="e_citation">
				<xs:annotation gal:Service="e_citation">
   					 <xs:documentation>
            				Not required, since the citation might not even concern a vehicle.  But if it IS provided, the e-citation spec requires a definitve answer.  That is why the Unknown option isn't allowed for e-citation.
   					 </xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>
						<xs:enumeration value="No"/>
						<xs:enumeration value="Unknown" gal:removedForService="e_citation"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="VehicleClassCode" type="xs:string"/> 
			<xs:attribute name="VehicleTypeCode" type="xs:string"> 
				<xs:annotation>
   					<xs:documentation>
            				Per the list in the e-citation spec (ADR spec DDN 192 will eventually be aligned with this).  Will not be used on e-citation service until it is in JIMS.  No enumeration will be provided, because the list is long, and may well change over time.  So, the code and description will BOTH be used.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="VehicleTypeDescription" type="xs:string"/> 
			<xs:attribute name="CommercialDLFlag" gal:Service="e_citation">
				<xs:annotation gal:Service="e_citation">
   					<xs:documentation>
            				Per ADR spec DDN 143.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>
						<xs:enumeration value="No"/>
						<xs:enumeration value="Unknown"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="VehicleMake" type="xs:string" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						See ADR spec (DDN 150).  This is just text, as there are no Illinois standard codes for vehicle make
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="VehicleYear" type="xs:gYear" gal:Service="e_citation">
				<xs:annotation>
    					<xs:documentation>
            				See ADR spc, DDN 151
    					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="PlateNumber" gal:Service="e_citation" >
				<xs:annotation>
    					<xs:documentation>
            				Per ADR spec (DDN 148)
    					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="9"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>			
			<xs:attribute name="PlateYear" type="xs:gYear" gal:Service="e_citation">
				<xs:annotation>
    					<xs:documentation>
            				Per ADR spec (DDN 147)
    					</xs:documentation>
				</xs:annotation>				
			</xs:attribute>
			<xs:attribute name="PlateState" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						Per ADR spec, DDN 149.  See note on state/province codes, in comments at top of schema
						'empty string' = Other/Unknown
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="2"/>
						<xs:minLength value="0"/>
						<xs:pattern value="([A-Z]{2})?"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="DriverPassenger" gal:Service="e_citation">					
				<xs:annotation gal:Service="e_citation">
					<xs:documentation>
						Per ADR spec (DDN 146).  Indicates whether the violator was a driver or passenger.  ADR-allowed values don't quite match e-citation spec, so some values may have to be mapped to U (Unknown).  Not required, because the offense may not even involve a vehicle.
					</xs:documentation>
				</xs:annotation>	
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:enumeration value="D"/>
						<xs:enumeration value="P"/>
						<xs:enumeration value="U"/>
					</xs:restriction>
				</xs:simpleType>	
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	
	<!-- Case data root lement -->
	<xs:element name="Case">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Actor" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="Complaint" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="Entry" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="Event" minOccurs="0" maxOccurs="unbounded" gal:cardinality="e_citation:0-1"/>
				<xs:element ref="Document" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="Action" default="Replace" gal:Service="court_interface">
				<xs:annotation>
					<xs:documentation>A hint as to what to do with the data.  Delete should be used when the case has been removed from the court's system
					</xs:documentation>
				</xs:annotation> 
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Replace"/>
						<xs:enumeration value="Insert"/>
						<xs:enumeration value="Update"/>
						<xs:enumeration value="Delete"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="ModificationType" default="None" gal:Service="court_interface" >
				<xs:annotation>
					<xs:documentation> 
						Why this case data was created
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="None"/>
						<xs:enumeration value="Insert"/>
						<xs:enumeration value="Update"/>
						<xs:enumeration value="Delete"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="LastUpdateDate" type="xs:string" use="required">
				<xs:annotation gal:Service="court_interface">
					<xs:documentation>
						Indicates the date on which the data was last updated at Judici. Some Providers give Judici cases when the data has not necessarily changed, so this date may not correspond to action on the case by the court.  For this reason, the md5 attribute in the search results is a better choice for use in determining whether a case has changed.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="LastUpdateBy" use="required" gal:direction="Consumer" gal:DerivedData="Yes" >
				<xs:annotation>
					<xs:documentation>
						The Court user to make the last chnage to this case. 
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Number" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						This is the full case number.  No zero-padding in the case sequence portion (i.e. 2014TR123, not 2014TR000123).
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="XID" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						External ID. Judici.com internal use only.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="TypeCode" use="required">
				<xs:annotation>
					<xs:documentation>
						Note that this is not always indicative of the severity of the offense currently charged in a criminal case. See Charge element for more on charge severity.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
        				<xs:enumeration value="AD"/>
						<xs:enumeration value="AR" />
        				<xs:enumeration value="CC" />
        				<xs:enumeration value="CF" />
						<xs:enumeration value="CH" />
						<xs:enumeration value="CM"/>
        				<xs:enumeration value="CV"/>
						<xs:enumeration value="D" />
						<xs:enumeration value="DT"/>
        				<xs:enumeration value="ED" />
						<xs:enumeration value="F" />
						<xs:enumeration value="J" gal:direction="Consumer" />
        				<xs:enumeration value="JA"  />
						<xs:enumeration value="JD" />
						<xs:enumeration value="L" />
        				<xs:enumeration value="LM" />
						<xs:enumeration value="MC" />
						<xs:enumeration value="MH" />
        				<xs:enumeration value="MR" />
						<xs:enumeration value="OP" />
						<xs:enumeration value="OV"/>
        				<xs:enumeration value="P" />
						<xs:enumeration value="SC" />
						<xs:enumeration value="T" gal:direction="Consumer" />
        				<xs:enumeration value="TR"/>
						<xs:enumeration value="TX"/>
						<xs:enumeration value="DN" />
						<xs:enumeration value="DC" />
						<xs:enumeration value="EV" />
						<xs:enumeration value="FA" />
						<xs:enumeration value="FC" />
						<xs:enumeration value="GC" />
						<xs:enumeration value="GR" />
						<xs:enumeration value="LA" />
						<xs:enumeration value="MX" />
						<xs:enumeration value="PR" />
						<xs:enumeration value="DV" />
						<xs:enumeration value="JV" />
						<xs:enumeration value="QC" />
						<xs:enumeration value="MT" />
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="CategoryCode">
				<xs:annotation>
					<xs:documentation>
						The court's CMS code for the category that this case type belongs to.  
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:enumeration value="CRM"/>
						<xs:enumeration value="FAM" />
						<xs:enumeration value="CIV" />
						<xs:enumeration value="OTH" />
						<xs:enumeration value="JUV" />
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="SubtypeCode" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						The court's CMS code for any subdivision of case type.  Typically used only in civil cases.  
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="TypeSubtypeText" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation>
						Descriptive name of the subtype code 
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Year" type="xs:integer">
				<xs:annotation>
					<xs:documentation>
						Case year 
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Sequence" type="xs:integer">
				<xs:annotation>
					<xs:documentation>
						Sequence/ordinal number within year and case type
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Category" use="required" gal:direction="Consumer" gal:DerivedData="Yes" >
				<xs:annotation>
					<xs:documentation>
						Indicates the broader type of case (e.g. Criminal, Civil).  
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Civil"/>
						<xs:enumeration value="Criminal"/>
						<xs:enumeration value="Other"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="title" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						Case title.  e.g. "People vs. John Dillinger" or "Smith Inc. vs. Jones LLP" 
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			
		</xs:complexType>
	</xs:element>
	
	<xs:element name="Charge" gal:Service="e_citation">
		<xs:annotation>
			<xs:documentation  gal:Service="e_citation">
				For any traffic stop that results in multiple offenses including OVs, vendors are required to split these OV charges out onto separate cases/XML files, as AOIC rules do not permit OVs to be put onto any case that isn't an OV.
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Offense" minOccurs="1" maxOccurs="1"/>
				<xs:element ref="CriminalDisposition" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="Conviction" use="required" gal:DerivedData="Yes" gal:removeForDirection="Producer">
				<!-- JJ: Surely this can't be required, given that it's derived.-->
				<xs:annotation>
					<xs:documentation>
						Derived Data.  During an appeal, this data often remain unchanged, though a change may be in order upon recording the outcome of the appeal.  
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>
						<xs:enumeration value="No"/>						
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="ModificationType" default="None">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="None"/>
						<xs:enumeration value="Insert"/>
						<xs:enumeration value="Update"/>
						<xs:enumeration value="Delete"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Type" use="required" gal:direction="Consumer">
				<xs:annotation>
					<xs:documentation>
						The "typical" general type of case for the charge (e.g. Felony or Misdemeanor).
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Felony"/>
						<xs:enumeration value="Misdemeanor"/>
						<xs:enumeration value="Other"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="OffenseType" use="required" gal:removedForService="e_citation">
				<xs:annotation>
					<xs:documentation>
						The "typical" case type (TR, DT, CF, etc.) for the charge.  Also in &lt;Offense&gt;, used in e-citation schema.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="AD" gal:removedForService="e_citation" />
						<xs:enumeration value="AR" gal:removedForService="e_citation"/>
						<xs:enumeration value="CC" gal:removedForService="e_citation" />
						<xs:enumeration value="CF" gal:removedForService="e_citation" />
						<xs:enumeration value="CH" gal:removedForService="e_citation" />
						<xs:enumeration value="CM"/>
						<xs:enumeration value="CV"/>
						<xs:enumeration value="D" gal:removedForService="e_citation" />
						<xs:enumeration value="DT"/>
						<xs:enumeration value="ED" gal:removedForService="e_citation" />
						<xs:enumeration value="F" gal:removedForService="e_citation" />
						<xs:enumeration value="J" gal:direction="Consumer" />
						<xs:enumeration value="JA" gal:removedForService="e_citation"  />
						<xs:enumeration value="JD" gal:removedForService="e_citation" />
						<xs:enumeration value="JV" gal:removedForService="e_citation" />
						<xs:enumeration value="L" gal:removedForService="e_citation" />
						<xs:enumeration value="LM" gal:removedForService="e_citation" />
						<xs:enumeration value="MC" gal:removedForService="e_citation" />
						<xs:enumeration value="MH" gal:removedForService="e_citation" />
						<xs:enumeration value="MR" gal:removedForService="e_citation" />
						<xs:enumeration value="MT"/>
						<xs:enumeration value="OP" gal:removedForService="e_citation" />
						<xs:enumeration value="OV"/>
						<xs:enumeration value="P" gal:removedForService="e_citation" />
						<xs:enumeration value="SC" gal:removedForService="e_citation" />
						<xs:enumeration value="T" gal:direction="Consumer" />
						<xs:enumeration value="TR"/>
						<xs:enumeration value="TX" gal:removedForService="e_citation"/>
						
						<xs:enumeration value="DN" gal:removedForService="e_citation"/>
						<xs:enumeration value="DC" gal:removedForService="e_citation"/>
						<xs:enumeration value="EV" gal:removedForService="e_citation"/>
						<xs:enumeration value="FA" gal:removedForService="e_citation"/>
						<xs:enumeration value="FC" gal:removedForService="e_citation"/>
						<xs:enumeration value="GC" gal:removedForService="e_citation"/>
						<xs:enumeration value="GR" gal:removedForService="e_citation"/>
						<xs:enumeration value="LA" gal:removedForService="e_citation"/>
						<xs:enumeration value="MX" gal:removedForService="e_citation"/>
						<xs:enumeration value="PR" gal:removedForService="e_citation"/>
						<xs:enumeration value="DV" gal:removedForService="e_citation"/>
						
						<xs:enumeration value="QC" gal:removedForService="e_citation"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>	
			
			<xs:attribute name="Number" type="xs:string" use="required" gal:direction="Consumer" gal:removedForService="e_citation">
				<xs:annotation>
					<xs:documentation>
						Ordinal/sequence number representing the "nth charge record on the count".  
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="XID" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						Judici internal use only
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Status" use="required">
				<xs:annotation>
					<xs:documentation>
						For a given Count, the Charge to which the disposition refers may not necessarily be the first Charge. The Status attribute tells this story. Watch for charges whose Status is "Amended", since they supersede the one whose status is "Original" on the same count. 	The Original charge will also often have a disposition indicating that the charge was not carried forward.  For more, see notes on Charge Status in ADR User's Guide.  
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:token" >
						<xs:enumeration value="Original"/>
						<xs:enumeration value="Added"/>
						<xs:enumeration value="Amended"/>
						<xs:enumeration value="Lesser and Included"/>
						<xs:enumeration value="None"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Date" type="xs:string"/>
			<xs:attribute name="Code" use="required" gal:Service="e_citation" gal:requiredForService="e_citation" gal:xpath="(. = '0000000' and @StatuteReferenceSource = 'Local') or (. = '9999999' and @StatuteReferenceSource != 'Local') or (. != '0000000' and . != '9999999') ">
				<xs:annotation>
					<xs:documentation>
						Per ADR spec (DDN 55): N-7. Indicates the relevant criminal offense, based on the standards used in the court. In Illinois, these standard values are mandated by, and distributed by, the Administrative Office of the Illinois Courts.  
						Must be zero padded.
						Retention in Compiled Index Record not allowed.
					</xs:documentation>
					<xs:documentation gal:direction="Producer">
						If the offense is a non-traffic local ordinance, for which there is no offense code, provide a value of 0000000.  Though this can't be enforced by schema, a code of 0000000 will be rejected in pre-processing if the StatuteReferenceSource is not "Local" (which indicates a non-traffic local ordinance).
						No code, 9999999 or otherwise, shall be used when the a citation is written for an offense not in AOIC's standard list of offenses.  A code of 9999999 cannot be prevented by schema, but will be rejected in pre-processing.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:pattern value="\d\d\d\d\d\d\d"/>							 
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Description" type="xs:string" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						Reference ADR spec (DDN 56).  
					</xs:documentation>
					<xs:documentation gal:direction="Producer">
						This should be used to convey descriptions on non-traffic ordinance violations, which have no offense code.  When a data Producer provides this WITH an offense code, the court's CMS will ignore it and rely SOLELY upon the Code attribute- the description will not be checked against the AOIC offense table.  This is for a variety of reasons, including the fact that the AOIC is requiring e-citation vendors to use verbose descriptions which aren't even IN the offense table).
					</xs:documentation>
				</xs:annotation> 
			</xs:attribute>
			<xs:attribute name="Text" type="xs:string" use="required" gal:direction="Consumer"/>
			<xs:attribute name="Qualifier" gal:Service="e_citation" gal:requiredForService="e_citation">
				<xs:annotation>
    					<xs:documentation>
            				Distinguishes committed offenses from "attempted", or "conspiracy".
    					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:token">
						<xs:enumeration value="Attempted"/>
						<xs:enumeration value="Conspired"/>
						<xs:enumeration value="Solicited"/>
						<xs:enumeration value="Conspired-Drug" gal:removedForService="e_citation"/>
						<xs:enumeration value="Conspired-Synth" gal:removedForService="e_citation" />
						<xs:enumeration value="Conspired-Meth" gal:removedForService="e_citation" />            
						<xs:enumeration value="Committed"/>
						<xs:enumeration value="None"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="StatuteReference" type="xs:string" gal:direction="Consumer">
				<xs:annotation>
    					<xs:documentation>
            				See ADR spec (DDN 54) 
    					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="StatuteReferenceSource"  use="required" gal:Service="e_citation" gal:requiredForService="e_citation">
				<xs:annotation>
    					<xs:documentation>
            				Judici uses a list of values matching the requirements of ADR spec (DDN 53), but the values are shortened.  IRS is no longer in effect, so Producers cannnot use those. 
    					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="StateIRS" gal:direction="Consumer"/>
							<!-- "State-IRS" in JIMS-->
						<xs:enumeration value="LocalIRS" gal:direction="Consumer"/>
							<!-- "Local-IRS" in JIMS-->
						<xs:enumeration value="StateILCS">
							<xs:annotation>
    								<xs:documentation gal:Service="e_citation">
            							This is for regular state statute violations. 					 
    								</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
						<!-- "State-ILCS" in JIMS-->
						<xs:enumeration value="LocalILCS">
							<xs:annotation>
								<xs:documentation gal:Service="e_citation">
									This is for local ordinance which are equivalent to state statute violations.  Typically, these are traffic violations which have been adopted into local ordinances.					 
								</xs:documentation>
							</xs:annotation>
							<!-- "Local-ILCS" in JIMS-->
						</xs:enumeration>
						<xs:enumeration value="Local">
							<xs:annotation>
    								<xs:documentation gal:Service="e_citation">
            							This is for local ordinance which are NOT equivalent to state statute violations.  For example: Failure to Mow Property.					 
    								</xs:documentation>
							</xs:annotation>					
							<!-- Corresponds to a null value in JIMS.-->
						</xs:enumeration>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Class" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation>
						Class attribute- this is the only consistent indicator of the severity (the level of felony or misdemeanor, etc.) of the charge. The TypeCode attribute of the Case might indicate Criminal Felony, but when a charge is amended, the actual charges on the case may be a misdemeanor. Even the OffenseType and Type attributes of the Charge only indicate the "typical" case type for the charge- the charge's Class attribute will reflect any change to this based on any qualifiers such as "Attempt".
					</xs:documentation>
				</xs:annotation>	
			</xs:attribute>
			<xs:attribute name="PleaCode" type="xs:string"/>
			<xs:attribute name="PleaDescription" type="xs:string"/>
			<xs:attribute name="PleaText" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="CivilCount">
		<!--JJ: Same as Complaint in jims?-->
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="CivilDisposition" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="Number" type="xs:string" use="required"/>
			<xs:attribute name="Text" type="xs:string" gal:direction="Producer"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="CivilDisposition">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Finding" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="Remedy" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="Satisfied" use="required">
				<xs:annotation>
					<xs:documentation>
						An indicator of whether the court-ordered remedy been fulfilled.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>
						<xs:enumeration value="No"/>
						<xs:enumeration value="Unknown"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="ModificationType" default="None">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="None"/>
						<xs:enumeration value="Insert"/>
						<xs:enumeration value="Update"/>
						<xs:enumeration value="Delete"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Number" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation>
						Ordinal/sequence number indicating the nth disposition record on the CivilCount
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="XID" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						External ID. Internal Judici use only
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Code" type="xs:string"/>
			<xs:attribute name="Description" type="xs:string"/>
			<xs:attribute name="Text" type="xs:string" use="required"/>
			<xs:attribute name="Type">
				<xs:annotation>
					<xs:documentation>  
						Inchoate type 
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:enumeration value="Attempted"/>
						<xs:enumeration value="Conspired"/>
						<xs:enumeration value="Conspired-Drug"/>
						<xs:enumeration value="Conspired-Synth"/>
						<xs:enumeration value="Conspired-Meth"/>
						<xs:enumeration value="Committed"/>
						<xs:enumeration value="Solicited"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Date" type="xs:string" use="required"/>
			<xs:attribute name="RecordedDate" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						The date on which the court was advised that the court's judgment was satisfied
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="CivilDispositionText" type="xs:string"/>
	<xs:element name="Complaint">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="CivilCount" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="Number" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation>
						An ordinal indicating the nth count on a civil case
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Type" type="xs:string" use="required">
				<!--JJ: Make this an enum?-->
				<xs:annotation>
					<xs:documentation>
						e.g. Original, Amending, cross-claim.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Text" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						Can be used for a summary of the complaint.  Most Judici courts do not use this.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<!--<xs:element name="ComplaintText" type="xs:string"/>-->
		<!--JJ: IS this actually used?  It seems like a duplicate of Complaint@Text-->
	<xs:element name="Count" gal:Service="e_citation">
		<xs:annotation>
			<xs:documentation gal:Service="e_citation">
				The most severe charge must be first in the e-citation xml, as that will determine which traffic case the bond goes on if there is more than one offense. This should be no problem because officers have to be aware which charge is most severe to set bond [see SCR 503(a)(2)] and they typically input the most severe charge first. It is best if multiple offenses in the e-citation xml are in descending class order.
			</xs:documentation>
		</xs:annotation>
		<!--TODO JJ: Add something to transmit an image of the ticket and a document name-->
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Charge" maxOccurs="unbounded" gal:Service="e_citation" gal:cardinality="e_citation:1-1"/>
			</xs:sequence>
			<xs:attribute name="Number" type="xs:string" use="required"  gal:direction="Consumer">
				<xs:annotation>
					<xs:documentation>
						 Ordinal/sequence number indicating the nth criminal count on a case/litigant.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="XID" type="xs:string" gal:direction="Producer" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						The data producer's ID for this charge, which  Judici may or may not retain/use.  Optional, for diagnostic purposes.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="TicketNumber" gal:Service="e_citation" gal:requiredForService="e_citation">
				<!--Pending action on FB13423, this value has to be numeric-->				
				<xs:annotation>
					<xs:documentation>
						The Administrative Office of the Illinois Courts has indicated that the ticket numbers should not contain the officer's badge ID.  So if the badge ID is a part of the  ticket number, it should be removed before e-citation data is reported.  When the ticket number is too long, the presence of the badge ID is often the reason.  So the AOIC's restriction may prove helpful in meeting the maximum length constraint as well.
						A/N 10, per ADR spec, DDN 64.  In traffic cases, this will be the ticket number issued by law enforcement. In non-traffic cases, some courts might use it for other kinds of data.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="10"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="PersonalInjury" gal:Service="e_citation">	
				<xs:annotation>
					<xs:documentation>
						Per ADR spec (DDN 60): A-1, with allowed values which essentially match those in the e-citation std.	Indicates whether injury, death or damages occurred.  
					</xs:documentation>
				</xs:annotation>	
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
        					<xs:enumeration value="I"/>
						<xs:enumeration value="P"/>
        					<xs:enumeration value="D"/>
						<xs:enumeration value="V"/>
					</xs:restriction>
				</xs:simpleType>	
			</xs:attribute>
			<xs:attribute name="MotorVehicleInvolvment">
				<xs:annotation>
					<xs:documentation>
						Courts are not always good about recording this.  Vehicle-related data is also found in BMVInfo
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>
						<xs:enumeration value="No"/>
						<xs:enumeration value="Unknown"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="OffenseDate" gal:direction="Consumer">
				<xs:annotation>
					<xs:documentation>
						The date on which the criminal offense occurred, in text form.  See OffenseDateTyped for the format used by Producers.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:pattern value="\d\d/\d\d/\d\d\d\d"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="OffenseDateTyped" type="xs:date" gal:direction="Producer" gal:Service="e_citation" gal:requiredForService="e_citation">
				<!--Added in April 2015.  TODO JJ: Implement-->
				<xs:annotation>
					<xs:documentation>
						The date on which the criminal offense occurred.  Apparently, this is not required in many participating Judici courts.  See also ADR spec, DDN 41.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>					
			<xs:attribute name="UrbanDistrict" gal:Service="e_citation">	
				<xs:annotation>
					<xs:documentation>
						There is no ADR Per ADR spec for this, but the courts use it and it is required by the e-citation spec.  The e-citation spec only asks for it when it is affirmative, so this is another situation where booleans won't work (see note above on Booleans)
					</xs:documentation>
				</xs:annotation>	
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>
						<xs:enumeration value="No"/>
						<xs:enumeration value="Unknown"/>			
					</xs:restriction>
				</xs:simpleType>	
			</xs:attribute>
		</xs:complexType>
	</xs:element>

	<xs:element name="Court" gal:Service="e_citation">
		<xs:annotation>
    			<xs:documentation>
            		This is the root element for any data that is associated with a court (e.g. Judges, Cases, Incidents, Holiday events)
	    		</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Case" minOccurs="0"/>
				<xs:element ref="Incident" minOccurs="0" gal:cardinality="e_citation:1-1"> 
					<xs:annotation gal:Service="e_citation">
						<xs:documentation>
							The file contains only one Court/Incident in order to minimize the amount of data hug up in the event of a validation error.
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element ref="Event" minOccurs="0" maxOccurs="unbounded" gal:removedForService="e_citation"/>
				<xs:element ref="RelatedActor" minOccurs="0" maxOccurs="unbounded" gal:removedForService="e_citation">
					<!--JJ: The following annotation text has been around forever, but I think it refers to something quite different than an attorney or an arresting officer.  Is it a web service result data item?  If so, should it have a different name, such as SearchResultLitigantRelatedActor?
						this can't be chnaged
					-->
					<xs:annotation gal:Service="CriminalCasesB1">
						<xs:documentation>
							This corresponds to the LITIGANTID on any associated "get" web service call
						</xs:documentation>
					</xs:annotation>				
				</xs:element>
			</xs:sequence>
			<xs:attribute name="NCIC" use="required" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						Per ADR spec (DDN 4): A/N 9.  The ORI number for the court, as issued by the federal government.  Follow ADR std.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:ID">
						<xs:pattern value="IL\d{6}J"></xs:pattern>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Name" type="xs:string" use="optional" gal:Service="e_citation" gal:requiredForService="e_citation">
				<xs:annotation>
					<xs:documentation>
						Common name of the court.  Required, for diagnostic reasons.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>

	<xs:element name="CourtDataTransferFile" gal:Service="e_citation">
		<xs:annotation>
			<xs:documentation>
				This is the main root element.  Among other things, it results from a "get" call  to obtain the details on a case in the search results
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Provider" gal:Service="e_citation" gal:cardinality="e_citation:1-1"/>
				<xs:element ref="Court" gal:Service="e_citation" gal:cardinality="e_citation:1-1">
					<xs:annotation>
						<xs:documentation gal:Service="e_citation" >
							Limited the file to just one court/incident in order to minimize how much data is hung up in the event of a validation error.
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element ref="RelatedActor" minOccurs="0" maxOccurs="unbounded"  gal:cardinality="e_citation:1-1"/>
				<xs:element ref="ErrorLog" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="FileCreationDateTime" type="xs:string" use="required" gal:direction="Consumer" >
				<xs:annotation>
					<xs:documentation>
						A timestamp corresponding to when the case was extracted from the court. For various reasons, this may or may not represent an actual change in the underlying court data. For this reason, the MD5 attribute on each case and in each case in any search results is a better way to spot changes when comparing results from different searches.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="FileCreationDateTimeTyped" type="xs:dateTime" use="optional" gal:Service="e_citation" gal:requiredForService="e_citation">
				<xs:annotation>
					<xs:documentation>
						A timestamp corresponding to when the data transfer file was created.  Used only for diagnostic purposes.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="md5" type="xs:string" use="optional" gal:Service="e_citation" gal:optionalForService="e_citation">
				<xs:annotation>
					<xs:documentation>
						Can be used to check data integrity by verifying whether data has been tampered with in transit. 
						This is an md5 of the serialized xml.  jdom's pretty format is the serialization engine that is used.  Any of the following transient data, if present, should be removed:
						- FileCreationDateTime or FileCreationDateTimeTyped attribute of CourtDataTransferFile element
						- ErrorLog atttribute of CourtDataTransferFile element
						- md5 attribute
						Provider element
						- //Case/@LastUpdateDate attribute removed
						This is a unique ID for the case, reflecting its precise data state at the time when it was obtained.
					</xs:documentation>
					<xs:documentation gal:Service="e_citation" >
						Can be used to spot duplicate data in the same batch of incidents/tickets downloaded for processing by Clerk staff
					</xs:documentation>
					<xs:documentation gal:direction="Consumer" >
						If the transfer file was in response to a GETCASE, this will correspond to the CASEMD5 parameter used in the GETCASE.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Version" default="3" gal:Service="e_citation"> 
				<xs:annotation>
					<xs:documentation>
						The version of the schema used in creating the file
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="3"/>
						<xs:enumeration value="2"/>							
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="CriminalDisposition">
		<xs:annotation>
			<xs:documentation gal:direction="Consumer">
				Warning: There are many different ways, both correct and incorrect, that courts can record dispositions and sentences.  This calls for a couple of important approaches to Judici's court data:
- Do not interpret the data.  Even trying to do something as simple as determining whether or not someone was convicted on a given count can be difficult when the initial charge on the count has been amended or otherwise superseded.
- When in doubt, call the court.  To help them answer your question, look up the same case on the court's free public-access site (using the search available at www.judici.com) and provide them the link.  Or just ask them to do the same search. 
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Sentence" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="ModificationType" default="None">
				<!--JJ: Is this really used?  Should we mark it as "Internal Judici use only"?--> 
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="None"/>
						<xs:enumeration value="Insert"/>
						<xs:enumeration value="Update"/>
						<xs:enumeration value="Delete"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Number" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation>
				 		Ordinal/sequence number which represents the sequence in which the dispositions were recorded by the court.  If dispositions are recorded out of order, this may not necessarily reflect the date-ordered sequence of multiple dispositions (see Date attribute)
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="XID" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						External ID. Presently for Judici.com internal use only.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Code" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						Indicates the disposition, based on the standards used in the court. For more on the standard codes used in Illinois, see notes on Disposition Code in the ADR User's Guide.  Watch out for secondary dispositions which vacate or otherwise modify a previous disposition or sentence- in Illinois courts, these have Code values between 600 and 699, generally speaking. 
					</xs:documentation>
				</xs:annotation>  
			</xs:attribute>
			<xs:attribute name="Description" type="xs:string"/>
			<xs:attribute name="Text" type="xs:string" use="required"/>
			<xs:attribute name="Type" type="xs:string"/>
				<!--JJ: This isn't in the C service... does it really exist?  My notes on this (https://sites.google.com/a/judici.com/datadefinitions/criminaldisposition) seem odd.-->
			<xs:attribute name="Mode" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						e.g. Bench, Jury, Guilty Plea
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Date" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation>
						Represents the date on which the judgment was handed down. It is possible that Date will not indicate the same sequence as Number. 
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	
	<xs:element name="DocumentData"  gal:Service="e_citation">
		<xs:complexType>
			<xs:annotation>
				<xs:documentation>
					Inline data of the document itself
				</xs:documentation>
			</xs:annotation>
			<xs:simpleContent>
				<xs:extension base="xs:base64Binary">
					<xs:attribute name="encoding" use="required" gal:Service="e_citation">
						<xs:annotation>
							<xs:documentation>
								The encoding format of the documnent data
							</xs:documentation>
						</xs:annotation>
						<xs:simpleType>
							<xs:restriction base="xs:string">
								<xs:enumeration value="BASE64"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:attribute>
					<xs:attribute name="mimeType" use="required" gal:Service="e_citation">
						<xs:annotation>
							<xs:documentation>
								The encoding format of the documnent data
							</xs:documentation>
						</xs:annotation>
						<xs:simpleType>
							<xs:restriction base="xs:string">
								<xs:enumeration value="application/pdf"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:attribute>
				</xs:extension>
			</xs:simpleContent>						
		</xs:complexType>
	</xs:element>
	
	<xs:element name="Document"  gal:Service="e_citation" >
		<xs:annotation>
			<xs:documentation>
				 This element contains any information about actual documents associated with this case. The actual documents may be inlined using the data element.
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="DocumentData" minOccurs="0" maxOccurs="1"></xs:element>
			</xs:sequence>
			<xs:attribute name="Checksum" use="required">
				<xs:annotation>
					<xs:documentation>
						MD5 checksum of the document
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="DocID" type="xs:integer">
				<xs:annotation>
					<xs:documentation>
						An Id representing the document
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Description" use="required" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						Title or Descrption of document
					</xs:documentation>
					<xs:documentation  gal:Service="e_citation" >
						Description should have "Ticket #" in front of it, to be more descriptive in the court's Imaging system.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Date" gal:Service="e_citation" >
				<xs:annotation>
					<xs:documentation>
						Date the document was created.
						If provided, format should be mm/dd/yyyy
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType >
					<xs:restriction base="xs:string">
						<xs:pattern value="(0[1-9]|1[0-2])/(0[1-9]|[12][0-9]|3[01])/\d{4}" />
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Secured" use="required" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						N = NO
						Y = yes
						D = deleted/removed
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:enumeration value="Y"/>
						<xs:enumeration value="N"/>
						<xs:enumeration value="D"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="UDT" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						Latest user modification date
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="USR" type="xs:string" >
				<xs:annotation>
					<xs:documentation>
						Latest user who modified
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="ActorID" type="xs:string" use="required" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						A reference to the associated litigant in this xml. On submission, this can be the result of ../Actor/position()  
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="EntryID" type="xs:string" use="optional">
				<xs:annotation>
					<xs:documentation>
						A reference to the associated entry in this xml  
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="CountNumber"  use="optional" gal:requiredForService="e_citation" gal:Service="e_citation" >
				<xs:annotation>
					<xs:documentation>
						A reference to the associated Count element index in this litigant/ActorID. It should always be a number greater than 0.   
					</xs:documentation>
					<xs:documentation  gal:Service="e_citation">
						On submission, this should be result of ../Actor/LitigantDetails/Count/position()     
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:integer">
						<xs:minInclusive value="1"/>
					</xs:restriction>
				</xs:simpleType>				
			</xs:attribute>
			<xs:attribute name="ComplaintNumber" type="xs:integer" use="optional">
				<xs:annotation>
					<xs:documentation>
						A reference to the associated Complaint in this xml  
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>			
		</xs:complexType>
	</xs:element>
	
	<xs:element name="Email">
		<xs:complexType>
			<xs:attribute name="Type" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation>
						e.g. "Home", "Work", "h", "W"
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Address" type="xs:string" use="required">
				<xs:annotation>
    					<xs:documentation>
            				The actual e-mail address.
    					</xs:documentation>
			</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="Entry">
		<xs:annotation>
			<xs:documentation>
				These are the individual records in the docket sheet notes.
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="EntryActor" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="ID" type="xs:string" use="required"/>
			<xs:attribute name="NoticeSentFlag">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>
						<xs:enumeration value="No"/>
						<xs:enumeration value="Unknown"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="OrderOnFileFlag">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>
						<xs:enumeration value="No"/>
						<xs:enumeration value="Unknown"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="HardCopyEntryFlag">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>
						<xs:enumeration value="No"/>
						<xs:enumeration value="Unknown"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="ModificationType" default="None">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="None"/>
						<xs:enumeration value="Insert"/>
						<xs:enumeration value="Update"/>
						<xs:enumeration value="Delete"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Code" type="xs:string"/>
			<xs:attribute name="Description" type="xs:string"/>
			<xs:attribute name="Text" type="xs:string" use="required">
				<xs:annotation>
    					<xs:documentation>
            				The actual text of a the docket entry 
    					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Date" type="xs:string" use="required"/>
			<xs:attribute name="Number" type="xs:string" use="required"/>
			<xs:attribute name="HardCopyEntryDate" type="xs:string"/>
			<xs:attribute name="HardCopyEntryBook" type="xs:string"/>
			<xs:attribute name="HardCopyEntryPage" type="xs:string"/>
			<xs:attribute name="HardCopyPhysicalLocation" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="EntryActor">
		<xs:annotation>
			<xs:documentation>
				A reference to a RelatedActor on the Court, such as a judge at the time.  
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:attribute name="ActorID" type="xs:string" use="required" gal:direction="Consumer">
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="Error">
		<xs:complexType>
			<xs:simpleContent>
				<xs:extension base="xs:string">
					<xs:attribute name="Severity" use="required">
						<xs:simpleType>
							<xs:restriction base="xs:NMTOKEN">
								<xs:enumeration value="Error"/>
								<xs:enumeration value="Warning"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:attribute>
					<xs:attribute name="Category" type="xs:string" use="required"/>
					<xs:attribute name="ID" type="xs:string"/>
				</xs:extension>
			</xs:simpleContent>
		</xs:complexType>
	</xs:element>
	<xs:element name="ErrorLog">
		<xs:annotation>
			<xs:documentation>
				Judici internal use only
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Error" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="Event" gal:Service="e_citation">
		<xs:annotation>
			<xs:documentation>
				These can be on cases (e.g. a hearing), or on a court (e.g. a court holiday). 
Notice: While courts may have event data indicating past dates, it isn't possible to know whether an event actually occured or not.
			</xs:documentation>
		
			<xs:documentation gal:Service="e_citation">
           		E-citation will provide the hearing date and time indicated on the ticket.  E-citation standard does allow for this to be determined later, so this cannot be required for e-citations. 
    			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="AttendeeActor" minOccurs="0" maxOccurs="unbounded" gal:direction="Consumer">
				</xs:element>
			</xs:sequence>
			<xs:attribute name="UID" type="xs:string" use="required" gal:direction="Consumer">
				<xs:annotation>
					<xs:documentation>
						Unique identifier, per the standard described in Internet Calendaring and Scheduling Core Object Specification (iCalendar), RFC4545, Internet Engineering Task Force (IETF).  Judici internal use only
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Type" use="required" gal:removedForService="e_citation">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Hearing"/>
						<xs:enumeration value="Holiday"/>
						<xs:enumeration value="Conflict"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="ModificationType" default="None" >
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="None"/>
						<xs:enumeration value="Insert"/>
						<xs:enumeration value="Update"/>
						<xs:enumeration value="Delete"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="StartDateTime" type="xs:string" use="required"/>
			<xs:attribute name="StartDateTimeTyped" type="xs:dateTime" gal:Service="e_citation" gal:requiredForService="e_citation">
				<xs:annotation>
					<xs:documentation>
						Ref. ADR spec (DDN 218 and DDN 219)
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Duration" type="xs:duration"/>
			<xs:attribute name="Location" type="xs:string" gal:Service="e_citation">
				<xs:annotation>
    					<xs:documentation>
            				One of the courtroom numbers used by the court (e.g. 2, or B).  Because it is court-specific, no enum is available.  But incoming data from Producers, if any, will be validated by JIMS. 
    					</xs:documentation>				
    					<xs:documentation gal:Service="e_citation">
            				E-citation spec says to provide courtroom, "where available".  No ADR DDN provided.
    					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Code" type="xs:string" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						There may be a Code/Description pair, if the event is table-driven.
					</xs:documentation>				
					<xs:documentation gal:Service="e_citation">
						The hearing type is not required in e-citation, but will be accepted if known.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Description" type="xs:string"/>
			<xs:attribute name="Text" type="xs:string" use="required" gal:direction="Consumer"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="Finding" gal:direction="Consumer">
		<xs:annotation>
			<xs:documentation>
				A case can have more than one finding, but each finding applies to only one actor per disposition
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:attribute name="ActorID" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation>
					 	Must reference an Actor on the Case.   
					</xs:documentation>
				</xs:annotation>	
			</xs:attribute>	
			<xs:attribute name="Text" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="FOR"/>
						<xs:enumeration value="AGAINST"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="Identity" gal:Service="e_citation">
		<xs:annotation>
			<xs:documentation gal:Service="e_citation" >
			 	Provide the real (not alias identity information) for the violator.   
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Phone" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="Address" minOccurs="0"  maxOccurs="unbounded" gal:cardinality="e_citation:0-1" />		
				<xs:element ref="Email" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="PersonIdentifier" minOccurs="0" maxOccurs="unbounded" gal:cardinality="e_citation:0-1" />
			</xs:sequence>
			<xs:attribute name="ID" type="xs:string" use="required" gal:direction="Consumer">
				<xs:annotation>
					<xs:documentation>
						Internal Judici key- not required on NEW data elements from Producers.  A sequence/ordinal number for each identity, real name or alias).  For performance reasons, this has a composite value with a required structure using special delimiters:
- I (Identity)
- a zero-base sequence/ordinal
The "real" identity should always be the Identity whose ID is "I0"
					</xs:documentation>				
					<xs:documentation gal:direction="Consumer">
						If more than one identity/name is to be retained, this should be used as the key for each.  
					</xs:documentation>
				</xs:annotation> 
			</xs:attribute>
			<xs:attribute name="Type" use="required" >
				<xs:annotation>
					<xs:documentation>
						Indicates Real or Alias. Name-based queries may find a case based on an alias name, so this attribute helps distinguish such "hits".
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Alias"/>
						<xs:enumeration value="Real"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="FullName" type="xs:string" use="required" gal:Service="e_citation">
<!--				JJ TODO: I believe you said you'de enforce the same character set as PCJ (numbers, letters, hyphen, quote, comma, and space.) 
				not in the schema-->
				<xs:annotation>
					<xs:documentation>
						The format for a PERSON's name is: LastName, FirstName [MiddleInitialOrMiddleName] [Suffix].  Follow all requirements on ADR spec (DDN 11, 12, 13, and 14).  Example: SMITH, JAMES M JR
						The name of an ENITITY, such as for the landlord who received the ordinance violation, is also acceptable (e.g. ACME RENTALS INC).
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="EntityAcronym" type="xs:string"/>
			<xs:attribute name="EntityType" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						While there is also an entiry type on LitigantDetails, THIS one allows for the possibility of an alias such as "Johnson Vaccum sales, Inc" 
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
				<!--JJ: Add enum?-->
			<xs:attribute name="Gender" gal:Service="e_citation" gal:requiredForService="e_citation">
				<xs:annotation>
					<xs:documentation>
						Per ADR spec (DDN 19).  Often provided to help confirm identity on name-only searches.  Due to ADR constraints, this is required even when the litigant is an entity.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
        					<xs:enumeration value="M"/>
						<xs:enumeration value="Male"  gal:removedForService="e_citation" gal:direction="Consumer">
							<xs:annotation>
								<xs:documentation  gal:direction="Consumer">Produced by JIMS</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
							<!-- "Male" in JIMS-->
						<xs:enumeration value="F"/>
						<xs:enumeration value="Female"  gal:removedForService="e_citation" gal:direction="Consumer">
							<xs:annotation>
								<xs:documentation  gal:direction="Consumer">Produced by JIMS</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
							<!-- "Female in JIMS-->
						<xs:enumeration value="X"/>
						<xs:enumeration value="Unknown" gal:removedForService="e_citation" gal:direction="Consumer">
							<xs:annotation>
								<xs:documentation  gal:direction="Consumer">Produced by JIMS</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
					</xs:restriction>
				</xs:simpleType>
				
			</xs:attribute>
			<xs:attribute name="Height" type="xs:int" gal:Service="e_citation">				
				<xs:annotation>
					<xs:documentation>
						Height in inches, even though e-citation spec stays ft and inches.   ADR spec (DDN 21) is silent on units.  Required by JIMS only for warrants.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
<!--				???TG Check this against PCJ: Do we really need the following attribute, given that you want (at least for Producers) INCHES?  Make this Consumer-only?  Also, this enum is not NMTOKEN, FWIW. -->
			<xs:attribute name="HeightMeasurementUnit" default="Inches" gal:Service="e_citation">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:enumeration value="Centimeters" gal:removedForService="e_citation"/>
						<xs:enumeration value="Meters" gal:removedForService="e_citation"/>
						<xs:enumeration value="Inches"/>
						<xs:enumeration value="Feet" gal:removedForService="e_citation"/>
						<xs:enumeration value="ft. in." gal:removedForService="e_citation"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
				
			<xs:attribute name="Weight" type="xs:int" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						E-citation spec calls for weights to be in pounds.  ADR spec (DDN 22) is silent on data type.  
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="WeightMeasurementUnit" default="Pounds" gal:Service="e_citation">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Pounds"/>
						<xs:enumeration value="Kilograms" gal:removedForService="e_citation"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="EyeColor" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						Per ADR spec (DDN 23) and Appendix E of the e-citation spec.  Maroon, Pink and Unknown values are missing because they aren't in the court's CMS yet.  Without Unknown, this can't be required.  Needed for warrants.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
        					<xs:enumeration value="Black"/>
						<xs:enumeration value="Blue"/>
        					<xs:enumeration value="Brown"/>
						<xs:enumeration value="Grey"/>
        					<xs:enumeration value="Green"/>
						<xs:enumeration value="Hazel"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="HairColor" gal:Service="e_citation" gal:requiredForService="e_citation">
				<xs:annotation>
					<xs:documentation>
						Hair color, per Appendix F of the e-citation standards (a subset of the ADR standard list in DDN 24).  Required from Producers, since there is a code for Unknown.  Needed for warrants.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Brown"/>
						<xs:enumeration value="Black"/>
        				<xs:enumeration value="Blonde"/>
						<xs:enumeration value="Red"/>
        				<xs:enumeration value="Grey"/>
        				<xs:enumeration value="Bald"/>
						<xs:enumeration value="White"/>
        				<xs:enumeration value="Sandy"/>
						<xs:enumeration value="Blue"/>
        				<xs:enumeration value="Green"/>
        				<xs:enumeration value="Orange"/>
        				<xs:enumeration value="Purple"/>
        				<xs:enumeration value="Pink"/>
						<xs:enumeration value="Unknown"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="ScarsMarksTattoos" type="xs:string"/>
			
			<xs:attribute name="DateOfBirth" gal:direction="Consumer">
				<xs:simpleType>
					<xs:restriction base="xs:string">
				    	<xs:pattern value="\d\d/\d\d/\d\d\d\d"/>
					</xs:restriction>
				</xs:simpleType>				
			</xs:attribute>
			<xs:attribute name="DateOfBirthTyped" type="xs:date" gal:direction="Producer" gal:Service="e_citation" >
				<xs:annotation>
					<xs:documentation>
						See ADR spec, DDN 27.  Reqd. by MANY agencies in ADR, but not reqd in all courts participating in Judici, because the offender might be unlicensed or uncooperative.  
					</xs:documentation>
				<!--JJ: Please confirm the following: If a search was based on date of birth, search hits will contain at least one identity with that DOB.
				well, yeah...-->
				</xs:annotation>
			</xs:attribute>

			<xs:attribute name="PlaceOfBirth" type="xs:string"/>
			<xs:attribute name="Ethnicity" gal:requiredForService="e_citation">
				<xs:annotation>
					<xs:documentation  gal:Service="e_citation">
            				AOIC indicated in Mar. 2015 e-mails that race is part of the LAW ENFORCEMENT e-citation interface, not than the COURT side. They included ILCS citations.
					</xs:documentation>
					<xs:documentation>
						Single-character code per ADR spec (DDN 20).
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
        					<xs:enumeration value="W"/>
						<xs:enumeration value="B"/>
        					<xs:enumeration value="A"/>
						<xs:enumeration value="I"/>
        					<xs:enumeration value="U"/>
					</xs:restriction>
				</xs:simpleType>				
				
			</xs:attribute>
			<xs:attribute name="Citizenship" type="xs:string"/>
			<xs:attribute name="MaritalStatus" type="xs:string"/>
			<xs:attribute name="Religion" type="xs:string"/>
		</xs:complexType>
	</xs:element>

	<xs:element name="Incident" gal:Service="e_citation"> 
		<!--Added in April 2015.-->
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Actor" minOccurs="1" maxOccurs="unbounded" />		
				<xs:element ref="Event" minOccurs="0" maxOccurs="unbounded" gal:cardinality="e_citation:0-1" >
					<xs:annotation>
						<xs:documentation  gal:Service="e_citation">
            					Cannot be required, because E-citation spec  calls for a court date, but notes that some agencies can just use a blurb indicating that court will advise later.
    						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element ref="Document" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="NCIC" use="required" gal:Service="e_citation"> 
				<xs:annotation>
					<xs:documentation>
						This is the NCIC ORI code for the law enforcement agency which is reporting the incident.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:pattern value="IL\d{7}"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="ID" use="required" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						This is the incident ID or police report number for the incident.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="XID" type="xs:string" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						A Producer's internal ID (e.g. compound database key) for this data item.  Judici may not use this for anything other than diagnostic purposes
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="TownshipRoadFlag" gal:Service="e_citation" gal:xpath=". = 'No' or . = 'Unknown' or (. = 'Yes' and  string-length(../@TownshipCode)!=0)">
				<xs:annotation gal:Service="e_citation">
   					<xs:documentation>
            				Per ADR spec DDN 174.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>
						<xs:enumeration value="No"/>
						<xs:enumeration value="Unknown"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="TownshipName" type="xs:string" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						Per ADR spec DDN 175.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="TownshipCode" type="xs:int" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						There is no universal standard (such as NCIC code) for townships.  So this code is assigned by the Clerk their arresting agency table in their case management system.  The only time that a township NEEDS to be set up in this way is when the township is supposed to get some money from the ticket.  Not all townships have this deal with local law enforcement.  But in those that do, the TownshipRoadFlag should be set and TownshipName/TownshipCode should be provided.  
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	
	</xs:element>


	<xs:element name="LitigantDetails" gal:Service="e_citation" >
		<xs:annotation>
			<xs:documentation>
				This provides much of the details, on the defendant/violator actors.
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="ActorRelationship" minOccurs="0" maxOccurs="unbounded" gal:removedForService="e_citation">
					<xs:annotation>
						<xs:documentation>
							This associates a related actor with the litigant.
						</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element ref="BMVInfo" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="ArrestData" minOccurs="0" gal:cardinality="e_citation:1-1" />
				<xs:element ref="Receivables" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="Payment" minOccurs="0" maxOccurs="unbounded" gal:cardinality="e_citation:0-1" gal:xpath=" req. if CashBondType is not null">
					<xs:annotation>
						<xs:documentation>
							Must have one of these elements if CashBondType exists.  This cannot be enforced by schema, so it is checked in pre-processing.
						</xs:documentation>
					</xs:annotation>	
				</xs:element>
				<xs:element ref="Count" minOccurs="0" maxOccurs="unbounded" gal:cardinality="e_citation:1-unbounded"/>
			</xs:sequence>
			<xs:attribute name="Conviction" default="No" gal:DerivedData="Yes">
				<xs:annotation>
					<xs:documentation>
						Derived Data.  See warning in CriminalDisposition portion of schema.
					</xs:documentation>
				</xs:annotation> 
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>
						<xs:enumeration value="No"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="RoleCode">
				<xs:annotation>
					<xs:documentation>
						Optional, since Role (a corresponding enum of "values") is required.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="P"/>
						<xs:enumeration value="D"/>
						<xs:enumeration value="CC"/>
						<xs:enumeration value="CP"/>
						<xs:enumeration value="CD"/>
						<xs:enumeration value="TL"/>
						<xs:enumeration value="TP"/>
						<xs:enumeration value="TD"/>
						<xs:enumeration value="FP"/>
						<xs:enumeration value="FD"/>
						<xs:enumeration value="IP"/>
						<xs:enumeration value="ID"/>
						<xs:enumeration value="E"/>
						<xs:enumeration value="M"/>
						<xs:enumeration value="W"/>
						<xs:enumeration value="A"/>
						<xs:enumeration value="AP"/>
						<xs:enumeration value="BP"/>
						<xs:enumeration value="PF"/>
						<xs:enumeration value="LF"/>
						<xs:enumeration value="X"/>
						<xs:enumeration value="G"/>
						<xs:enumeration value="O"/>
						<xs:enumeration value="PA"/>
						<xs:enumeration value="GL"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="RoleSequence" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						Indicates the nth person having that role on the case
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="RoleDescription" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						 On civil cases, these might indicate Plaintiff or Respondent, but on non-juvenile criminal cases they often indicate Defendant.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Role" use="required">
				<xs:annotation>
					<xs:documentation>
						Of the role-related attributes, this is the only one with a Judici-defined enumeration of allowed values.   All other values follow the court's formats.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">				
						<xs:enumeration value="PlaintiffOrPetitioner" gal:removedForService="e_citation"/>
							<!-- "Plaintiff/Petitioner" in JIMS-->
						<xs:enumeration value="DefendantOrRespondent"/>
							<!-- "Defendant/Respondent" in JIMS-->
						<xs:enumeration value="CounterClaimant" gal:removedForService="e_citation"/>
							<!-- "Counter-claimant" in JIMS-->
						<xs:enumeration value="CounterPlaintiffOrPetitioner" gal:removedForService="e_citation"/>
							<!-- "Counter-plaintiff/petitioner" in JIMS-->
						<xs:enumeration value="CounterDefendantOrRespondent" gal:removedForService="e_citation"/>
							<!-- "Counter-defendant/respondent" in JIMS-->
						<xs:enumeration value="ThirdPartyLitigant" gal:removedForService="e_citation"/>
							<!-- "Third-party litigant" in JIMS-->
						<xs:enumeration value="ThirdPartyPlaintiff" gal:removedForService="e_citation"/>
							<!-- "Third-party plaintiff" in JIMS-->
						<xs:enumeration value="ThirdPartyDefendant" gal:removedForService="e_citation"/>
							<!-- "Third-party defendant" in JIMS-->
						<xs:enumeration value="FourthPartyPlaintiff" gal:removedForService="e_citation"/>
							<!-- "Fourth-party plaintiff" in JIMS-->
						<xs:enumeration value="FourthPartyDefendant" gal:removedForService="e_citation"/>
							<!-- "Fourth-party defendant" in JIMS-->
						<xs:enumeration value="IntervenerPlaintiff" gal:removedForService="e_citation"/>
							<!-- "Intervener-plaintiff" in JIMS-->
						<xs:enumeration value="IntervenerDefendant" gal:removedForService="e_citation"/>
							<!-- "Intervener-defendant" in JIMS-->
						<xs:enumeration value="Decedent" gal:removedForService="e_citation"/>
						<xs:enumeration value="Minor"/>
						<xs:enumeration value="Ward"/>
						<xs:enumeration value="AdoptiveChild" gal:removedForService="e_citation"/>
							<!-- "Adoptive child" in JIMS-->
						<xs:enumeration value="AdoptiveParent" gal:removedForService="e_citation"/>
							<!-- "Adoptive parent" in JIMS-->
						<xs:enumeration value="BiologicalParent" gal:removedForService="e_citation"/>
							<!-- "Biological parent" in JIMS-->
						<xs:enumeration value="PutativeFather" gal:removedForService="e_citation"/>
							<!-- "Putative Father" in JIMS-->
						<xs:enumeration value="LegalFather" gal:removedForService="e_citation"/>
							<!-- "Legal Father" in JIMS-->
						<xs:enumeration value="Executor" gal:removedForService="e_citation"/>
						<xs:enumeration value="Guardian" gal:removedForService="e_citation"/>
						<xs:enumeration value="OtherParticipant" gal:removedForService="e_citation"/>
							<!-- "Other" in JIMS-->
						<xs:enumeration value="Administrator" gal:removedForService="e_citation"/>
						<xs:enumeration value="GuardianAdLitem" gal:removedForService="e_citation"/>
							<!-- "Guardian ad litem" in JIMS-->
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Type" use="required" gal:direction="Consumer">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Person"/>
						<xs:enumeration value="Entity"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="ActiveWarrant" use="required" gal:DerivedData="Yes" gal:direction="Consumer">
				<xs:annotation>
					<xs:documentation>
						Derived Data
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>				
						<xs:enumeration value="No"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="SOSReportable" use="required" gal:DerivedData="Yes" gal:Service="Collections" gal:direction="Consumer">
				<xs:annotation>
					<xs:documentation>
						Derived Data.  Indicates that at least one offense on the case is reportable to the Illinois Secretary of State's office
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>				
						<xs:enumeration value="No"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="AppearanceCode" gal:Service="e_citation"  gal:DerivedData="Yes">
				<xs:annotation>
					<xs:documentation>
						Derived Data, based on hearing data.  Indicates whether or not the litigant must appear in court, based on the charge(s) involved.  Used in determining eligibility to plead online in a case.  Per draft ADR Spec DDN 221.
					</xs:documentation>
					<xs:documentation gal:Service="e_citation">
						AOIC advised (see e-mails from early April 2015) that the COURT is ultimately responsible for the correct determination of whether court appearance is required.  So this data is being provided only for diagnostic purposes.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="MUSTAPPEAR"/>			
						<xs:enumeration value="MAYAPPEAR"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="OffenseCode" type="xs:string" use="required" gal:DerivedData="Yes" gal:direction="Consumer">
				<xs:annotation>
					<xs:documentation>
						Derived Data- a comma separated list of the offense codes on this litigant.  
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Minor" use="required" gal:DerivedData="Yes" gal:direction="Consumer">
				<xs:annotation>
					<xs:documentation>
						Derived Data.  Initially, this was derived based on the defendant's age as of the date the case was filed, though this definition is subject to change.  This ensures that a case/litigant who is a minor but is on a non-juvenile case type is secured in accordance with the notes on data security at the beginning of this schema.  
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>				
						<xs:enumeration value="No"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>			
			<xs:attribute name="Sentenced" use="required" gal:direction="Consumer">
				<xs:annotation>
					<xs:documentation>
						Derived Data, based on underlying disposition/sentence data
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>				
						<xs:enumeration value="No"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>			
			<xs:attribute name="DispositionState" use="required" gal:DerivedData="Yes" gal:direction="Consumer">
				<!-- JJ: Can't really require of Producers, since it is derived, can we?-->
				<xs:annotation>
					<xs:documentation>
						Derived Data, based on underlying disposition data.  "Interim" dispositions do not prevent a case from being eligible to be pled on Judici E-Pay/E-Plea.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="NONE"/>				
						<xs:enumeration value="OTHER"/>
						<xs:enumeration value="INTERIM"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Impounded" use="required"  gal:direction="Consumer" gal:DerivedData="Yes">
				<xs:annotation>
					<xs:documentation>
						Set by court.  Controls restrictions on whether data will be made public under the data security and privacy restrictions (see note on data security and privacy at beginning of schema). 
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<!--JJ: Add "Warrant"-->
						<xs:enumeration value="Yes">
							<xs:annotation>
								<xs:documentation>
									The case/litigant will show up in search results, but no case details are then available.  
								</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
						<xs:enumeration value="Sealed">
							<xs:annotation>
								<xs:documentation>
									A case/litigant secured in this manner will appear non-existent, not even appearing in search results.
								</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
						<xs:enumeration value="No"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="SuppressMinutes">
				<!--JJ: Consumer-only?-->
				<xs:annotation>
					<xs:documentation>
						Set by court, to make all of the judge's docket sheet entries (see &lt;Entry> elements) non-public.  Setting this flag is what cues Judici to secure  the case minutes, as described in the relevant section at the beginning of the schema.  
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Yes"/>
						<xs:enumeration value="No"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="ModificationType" default="None" gal:Service="court_interface">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="None"/>
						<xs:enumeration value="Insert"/>
						<xs:enumeration value="Update"/>
						<xs:enumeration value="Delete"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Balance" use="optional" type="xs:float" gal:DerivedData="Yes" gal:Service="Collections" gal:direction="Consumer">
				<xs:annotation>
					<xs:documentation>
						Required for epay/eplea and collections.  Assumes that pending bonds (if any) will not be applied to the case.  If all bonds have been applied, and no payments are made between referral and the creation of the CourtDataTransferFile,  this is the same as the InitialCollectionsBalance above. 
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<!--JJ: Added in April 2015, so make sure it's right.-->
			<xs:attribute name="InitialCollectionsBalance" use="optional" type="xs:float" gal:DerivedData="Yes" gal:Service="Collections" gal:direction="Consumer">
				<xs:annotation>
					<xs:documentation>
						Represents the balance on the day the case was most recently referred to collections.  Unlike Balance attribute, this attribute is calculated assuming that pending bonds will be applied. 
Because the agency's fee should be based on the balance at referral, payments made after the case is referred to collections are not included in this balance.  In such situations, this balance will not be just TotalDue-TotalPaid.
This will include the agency's fee, if the court is adding such fees prior to referral in order to ensure that they are collected if the litigant comes to court to make a payment.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="CollectionsDate" gal:DerivedData="Yes" use="optional" gal:direction="Consumer" gal:Service="Collections" >
				<xs:annotation>
					<xs:documentation>
						This represents the last time the case was changed ways of interest a collection agency.  As long as the CollectionsState remains REFERRED, the CollectionsDate is also updated whenever there is a change to the records regarding the debt:
A) Referral to collections
B) Withdrawal from collections
C) Payment record was created or modified. Modification may be necessary due to an error, or when a bond is partially transferred to another case.  
- JJ: Is the following still true?  Note that if a payment record is modified only with respect to how it was distributed to various fees, the CollectionsDate will update even though the web service doesn't provide any details on the distribution change. 
D) Account receivable record created or modified. A/R modifications can be categorized as:
- a change to the amount owed.  This will be reflected in the balance on the case
- a change to the due date. 
- payment or A/R record changes which are of no interest to a collections agency (e.g. a change to the breakdown of the A/R or payment amount by the court's internal fine/fee accounts).

Changes to other data, such as litigant demographics (address), do NOT affect the CollectionsDate
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:pattern value="\d\d/\d\d/\d\d\d\d"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			
			<xs:attribute name="CollectionsState" gal:DerivedData="Yes" gal:direction="Consumer" gal:Service="Collections" >
				<xs:annotation>
					<xs:documentation>
						Derived Data- indicate the most recent state of the case with regard to referral of the case to a collection agency by the court.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="NONE"/>
						<xs:enumeration value="REFERRED"/>
						<xs:enumeration value="WITHDRAWN"/>									
						<xs:enumeration value="PENDING_BOND">	
							<xs:annotation>
								<xs:documentation>
									PENDING_BOND should be the value if a bond is unapplied at referral, or gets unapplied (un-reclassed) AFTER referral. Since the Balance attribute (see LitigantDetails) on the case will include pending bonds, on whether or not to continuing poursuing the case. In any event, the agency should advise the Clerk of the pending bond. Unless it is due to e re-offense on a probation case, the court will want to go ahead and apply such bonds.  Otherwise,  the case balance will never get to zero.
								</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			
			<xs:attribute name="InitialOpenDate" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation>
						The date the case was filed/opened
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="InitialCloseDate" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						On criminal cases, this is often the date on which the case is both disposed and sentenced, but some courts may not close the case until any fines and fees are paid in full.
A case which has a close date may actually be open -this happens if there is a reopen date prior to any reclose date, indicating post-termination activity such as an appeal.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="ReopenDate" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						Iif a litigant has a re-open date which is prior to their re-close date, they are in some sort of post-termination proceedings, such as appeal or a re-offense, which may very well resulting in changes to charges, dispositions, sentences and and/or the amount/balance due on the case.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="RecloseDate" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						The date on which the most recent post-termination proceedings were closed
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="CaseStatusCode" type="xs:string">
				<!--JJ- Is this Derived and Consumer-only?-->
				<xs:annotation>
					<xs:documentation>
						This and CaseStatusDescription indicate whether the case is in original proceedings, on appeal, etc.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="CaseStatusDescription" type="xs:string"/>
			<xs:attribute name="PhysicalFileLocation" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	
	<xs:element name="Offense" gal:Service="e_citation" >
		<xs:annotation>
			<xs:documentation>
				In order to determine what case type(s) to make from the charges, each charge shall be accompanied by the case type associated with it in the official AOIC offense table which e-sitation vendors are supposed to use as the basis for the offense code they're reporting.
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:attribute name="Id" type="xs:integer" use="required"/>
			<xs:attribute name="Key" type="xs:integer" use="required" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						This is the code which identifies a particular offense in the AOIC offense table.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Class" type="xs:string" use="required"/>
			<xs:attribute name="Statute" type="xs:string" use="required"/>
			<xs:attribute name="Version" type="xs:string" use="required"/>
			<xs:attribute name="Description" type="xs:string" use="required"/>
			
			<xs:attribute name="EffectiveDate" type="xs:integer" use="required"/>
			<xs:attribute name="InactiveDate" type="xs:integer" use="required"/>
			<xs:attribute name="MayAppearFlag" use="required">
				<xs:annotation>
					<xs:documentation>
						This is missnamed, and should not be used externally for any gal producer or consumer. If you're seeing this, chances are that it's a mistake.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:enumeration value="">
							<xs:annotation>
								<xs:documentation>'Empty String' indicates N/A or MayAppear</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
						<xs:enumeration value="X">
							<xs:annotation>
								<xs:documentation>'X' indicates Must Appear</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="MustAppearFlag" gal:requiredForService="e_citation" gal:Service="e_citation" gal:direction="Producer" type="xs:boolean"/>
			<xs:attribute name="SecretaryOfStateReportable" type="xs:string" use="required"/>
			<xs:attribute name="BureauOfIdentificationReportable" type="xs:string" use="required"/>
			
			<xs:attribute name="Type" use="required" gal:Service="e_citation"> 
				<xs:annotation>
					<xs:documentation>
						This is the case type under which the charge offense would be filed if it were the only offense on the case. This is drawn from the AOIC offense table, and should be "OV" on non-traffic ordinance violations.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
        				<xs:enumeration value="AD" gal:removedForService="e_citation" />
						<xs:enumeration value="AR" gal:removedForService="e_citation"/>
        				<xs:enumeration value="CC" gal:removedForService="e_citation" />
        				<xs:enumeration value="CF" gal:removedForService="e_citation" />
						<xs:enumeration value="CH" gal:removedForService="e_citation" />
						<xs:enumeration value="CM"/>
        				<xs:enumeration value="CV"/>
						<xs:enumeration value="D" gal:removedForService="e_citation" />
						<xs:enumeration value="DT"/>
        				<xs:enumeration value="ED" gal:removedForService="e_citation" />
						<xs:enumeration value="F" gal:removedForService="e_citation" />
						<xs:enumeration value="J" gal:direction="Consumer" />
        				<xs:enumeration value="JA" gal:removedForService="e_citation"  />
						<xs:enumeration value="JD" gal:removedForService="e_citation" />
						<xs:enumeration value="JV" gal:removedForService="e_citation" />
						<xs:enumeration value="L" gal:removedForService="e_citation" />
        				<xs:enumeration value="LM" gal:removedForService="e_citation" />
						<xs:enumeration value="MC" gal:removedForService="e_citation" />
						<xs:enumeration value="MH" gal:removedForService="e_citation" />
        				<xs:enumeration value="MR" gal:removedForService="e_citation" />
						<xs:enumeration value="MT"/>
						<xs:enumeration value="OP" gal:removedForService="e_citation" />
						<xs:enumeration value="OV"/>
        				<xs:enumeration value="P" gal:removedForService="e_citation" />
						<xs:enumeration value="SC" gal:removedForService="e_citation" />
						<xs:enumeration value="T" gal:direction="Consumer" />
        				<xs:enumeration value="TR"/>
						<xs:enumeration value="TX" gal:removedForService="e_citation"/>
						
						<xs:enumeration value="DN" gal:removedForService="e_citation"/>
						<xs:enumeration value="DC" gal:removedForService="e_citation"/>
						<xs:enumeration value="EV" gal:removedForService="e_citation"/>
						<xs:enumeration value="FA" gal:removedForService="e_citation"/>
						<xs:enumeration value="FC" gal:removedForService="e_citation"/>
						<xs:enumeration value="GC" gal:removedForService="e_citation"/>
						<xs:enumeration value="GR" gal:removedForService="e_citation"/>
						<xs:enumeration value="LA" gal:removedForService="e_citation"/>
						<xs:enumeration value="MX" gal:removedForService="e_citation"/>
						<xs:enumeration value="PR" gal:removedForService="e_citation"/>
						<xs:enumeration value="DV" gal:removedForService="e_citation"/>
																	
						<xs:enumeration value="QC" gal:removedForService="e_citation"/>
																			
						
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Remarks" type="xs:string" use="required"/>
			<xs:attribute name="LastUpdateDate" type="xs:integer" use="required"/>
			<xs:attribute name="CookCountySuffix" type="xs:string" use="required"/>
			<xs:attribute name="IllinoisCompiledStatutesSequence" type="xs:integer" use="required"/>
			
			<xs:attribute name="Chapter" type="xs:integer" use="required"/>
			<xs:attribute name="Act" type="xs:integer" use="required"/>
			<xs:attribute name="Section" type="xs:string" use="required"/>
			<xs:attribute name="MandatoryRevireDate" type="xs:integer" use="required"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="Payment" gal:Service="e_citation">
		<xs:complexType>
			<!--JJ: How should we reflect elements added only to identify things in a "flattened" Payments file (ID, LitigantNumber, CaseNumber, FullName used in Collections)?  Or should we re-name such elements (e.g. CompiledPayment)?  If added, make annotations from text at https://sites.google.com/a/judici.com/datadefinitions/payment -->
			<xs:sequence>
				<xs:element ref="PaymentDistribution" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="TransactionType" use="required">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="Bond"/>
						<xs:enumeration value="Voucher" gal:Service="e_citation" />
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="TransactionTypeCode">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="B"/>
						<xs:enumeration value="V"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="ModificationType" default="None">  
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="None"/>
						<xs:enumeration value="Insert"/>
						<xs:enumeration value="Update"/>
						<xs:enumeration value="Delete"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Amount" type="xs:int" use="required" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation gal:Service="e_citation">
            				This is the amount of cash bond paid, if any. Corresponds to ADR spec, DDN 49.
   					</xs:documentation>				
					<xs:documentation gal:Service="Collections">
						Reflects the entire payment, without regard to whether a bond has been applied or is still pending. On records with Type=Audit, it represents the incremental amount by which the payment was changed.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Applied" type="xs:string" use="required"/>
			<xs:attribute name="Number" type="xs:string" use="required" gal:direction="Consumer">
				<xs:annotation>
					<xs:documentation>
						Ordinal/sequence ID for the bonds and vouchers (the nth bond or the nth voucher on the case). Since courts sometimes delete payments, these are occasionally re-used and should not be relied upon as the sole ID for a transaction. 
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Reference" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						Used for the check number or EFT transaction ID for the incoming payment from a litigant or collection agency.  
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="ReceiptDate" type="xs:string" use="required"  gal:RemovedForService="e_citation"> 
				<xs:annotation>
					<xs:documentation>
						 Only for initial payment records, not Audit records provided due to the change/deletion of a payment.  Note: because the court can't "back date" a payment into a month which closed the previous day, the ReceiptDate must always represent the day the court got its money. So in the case of payment receipted by a collection agency or law enforcement, this may not match the agency's receipt date.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Type" use="required" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						The Audit value is used on records which correspond to the change/deletion of a previous payment.  NOTE: In courts using the JIMS case management system- payments originally receipted by a collection agency will have a Type value of "Collect agn chk" or "Collect agn EFT", depending upon how the funds were conveyed to the court by the agency.
					</xs:documentation>
					<xs:documentation gal:Service="e_citation">
						Becuase it takes a couple of days to actually have the money "in hand", Clerk staff would have trouble knowing whether to input th ebond or not.  So for now, the Clerk's interface won't all credit card payments.   
					</xs:documentation>
				</xs:annotation>
				<!--Added in April 2015.--> 
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:enumeration value="Audit" gal:Service="Collections" gal:direction="Consumer"/>
						<!--This is only in Judici- it has no corresponding value in JIMS.-->
						<xs:enumeration value="Cash"/>
						<xs:enumeration value="Certified Check" gal:removedForService="e_citation" />
						<xs:enumeration value="Money Order" gal:removedForService="e_citation"/>
						<xs:enumeration value="Personal Check" gal:removedForService="e_citation"/>
						<xs:enumeration value="Credit Card" gal:removedForService="e_citation" />
						<xs:enumeration value="Company Check" gal:removedForService="e_citation"/>
						<xs:enumeration value="Bond" gal:removedForService="e_citation"/>
						<xs:enumeration value="Fund Transfer" gal:removedForService="e_citation"/>
						<xs:enumeration value="Court Payment" gal:removedForService="e_citation"/>
						<xs:enumeration value="Online Payment" gal:removedForService="e_citation"/>
						<xs:enumeration value="EPay 1" gal:removedForService="e_citation"/>
						<xs:enumeration value="EPay 2" gal:removedForService="e_citation"/>
						<xs:enumeration value="Collect agn EFT" gal:removedForService="e_citation"/>
						<!-- "Collect agn EFT" in JIMS-->
						<xs:enumeration value="Collect agn chk" gal:removedForService="e_citation"/>
						<xs:enumeration value="SDU" gal:removedForService="e_citation"/>
						<xs:enumeration value="NSF" gal:removedForService="e_citation"/>
						<xs:enumeration value="Direct" gal:removedForService="e_citation"/>
						<xs:enumeration value="Other" gal:removedForService="e_citation"/>
						<xs:enumeration value="IDPA" gal:removedForService="e_citation"/>
						<xs:enumeration value="Arrears Settled" gal:removedForService="e_citation"/>
						<xs:enumeration value="Current amt chg" gal:removedForService="e_citation"/>
						<xs:enumeration value="Data error" gal:removedForService="e_citation"/>
						<xs:enumeration value="Frequency error" gal:removedForService="e_citation"/>
						<xs:enumeration value="Balance error" gal:removedForService="e_citation"/>
						<xs:enumeration value="Amount err" gal:removedForService="e_citation"/>
						<xs:enumeration value="Order stayed" gal:removedForService="e_citation"/>
						<xs:enumeration value="Terms error" gal:removedForService="e_citation"/>
						<xs:enumeration value="RR deceased" gal:removedForService="e_citation"/>
						<xs:enumeration value="Vacated" gal:removedForService="e_citation"/>
						<xs:enumeration value="Prepaid" gal:removedForService="e_citation"/>
						<xs:enumeration value="NSF" gal:removedForService="e_citation"/>
						<xs:enumeration value="Misapplied 1" gal:removedForService="e_citation"/>
						<xs:enumeration value="Misapplied 2" gal:removedForService="e_citation"/>
						<xs:enumeration value="Terms chg pre" gal:removedForService="e_citation"/>
						<xs:enumeration value="Terms chg post" gal:removedForService="e_citation"/>
						<xs:enumeration value="Interstate pmt" gal:removedForService="e_citation"/>
						<xs:enumeration value="RR deceased-GRF" gal:removedForService="e_citation"/>
						<xs:enumeration value="Synch adj" gal:removedForService="e_citation"/>						
						<xs:enumeration value="Problem payor" gal:direction="Consumer" gal:removedForService="e_citation"/>
						<xs:enumeration value="UNKNOWN" gal:removedForService="e_citation"/>
						<!--This isn't actual used on payment records.-->
					</xs:restriction>
				</xs:simpleType>
				
			</xs:attribute>
			
			<xs:attribute name="TypeCode" type="xs:int">
				<xs:annotation>
					<xs:documentation>
						TONY?
					</xs:documentation>					
				</xs:annotation>				
			</xs:attribute>
			
			
			
			<xs:attribute name="PayorName" type="xs:string" >
				<xs:annotation>
					<xs:documentation>
						TONY? PAYNAM
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			
			
			<xs:attribute name="Receipt" type="xs:string" gal:direction="Consumer">
				<xs:annotation>
					<xs:documentation>
						The court's receipt ID, which should never change.  In some of Judici's larger courts, this cannot be guaranteed to be unique because their receipt numbers "roll over" occasionally.
						Not available on Audit records due to change/deletion of underlaying data
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			
			
			<xs:attribute name="ReceivedTime" type="xs:int" >
				<xs:annotation>
					<xs:documentation>
						TONY? PAYRCVTIM
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			
			
			<xs:attribute name="ReceivedDate" type="xs:date" >
				<xs:annotation>
					<xs:documentation>
						TONY? PAYRCVDAT
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			
			
			<xs:attribute name="PayToAgencyNumber" type="xs:int" >
				<xs:annotation>
					<xs:documentation>
						TONY? PAYAGN
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			
			
			<xs:attribute name="PayToAgency" type="xs:string" >
				<xs:annotation>
					<xs:documentation>
						TONY? PAYAGN
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			
			
			<xs:attribute name="JournalDate" type="xs:string" >
				<xs:annotation>
					<xs:documentation>
						TONY? 
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			
			<xs:attribute name="JournalTime" type="xs:int" >
				<xs:annotation>
					<xs:documentation>
						TONY? 
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			
			
			<xs:attribute name="JournalType" >				
				<xs:annotation>
					<xs:documentation>
						TONY? 
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:enumeration value="Original" gal:Service="Collections" gal:direction="Consumer"/>
						<xs:enumeration value="Refund" gal:Service="Collections" gal:direction="Consumer"/>
						<xs:enumeration value="Overpayment" gal:Service="Collections" gal:direction="Consumer"/>
						<!-- select '<xs:enumeration value="'||trim(AUDACTDSC)||'" gal:Service="Collections" gal:direction="Consumer"/>' from galcrt.aryaudact; -->
						<xs:enumeration value="Changed" gal:Service="Collections" gal:direction="Consumer"/>
						<xs:enumeration value="Deleted" gal:Service="Collections" gal:direction="Consumer"/>
						<xs:enumeration value="Remaindered" gal:Service="Collections" gal:direction="Consumer"/>
						<xs:enumeration value="Transferred" gal:Service="Collections" gal:direction="Consumer"/>
						<xs:enumeration value="Re-opened" gal:Service="Collections" gal:direction="Consumer"/>
						<xs:enumeration value="Filed/Previous" gal:Service="Collections" gal:direction="Consumer"/>
						<xs:enumeration value="Case Reinstated" gal:Service="Collections" gal:direction="Consumer"/>
						<xs:enumeration value="Closed/Previous" gal:Service="Collections" gal:direction="Consumer"/>
						<xs:enumeration value="Dropped/Prv Qtr" gal:Service="Collections" gal:direction="Consumer"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			
			<xs:attribute name="RefundAmount" type="xs:float" gal:Service="e_Collections">
				<xs:annotation>							
					<xs:documentation gal:Service="Collections">
						TONY?
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			
			<xs:attribute name="OverpaymentAmount" type="xs:float" gal:Service="e_Collections">
				<xs:annotation>							
					<xs:documentation gal:Service="Collections">
						TONY?
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			
			<xs:attribute name="ReclassDate" type="xs:date" >
				<xs:annotation>
					<xs:documentation>
						TONY? PAYRDT
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			
			<xs:attribute name="Comment" type="xs:string" >
				<xs:annotation>
					<xs:documentation>
						TONY? PAYCMT
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			
		</xs:complexType>
	</xs:element>
	
	<xs:element name="PaymentDistribution">
		<xs:annotation>
			<xs:documentation>
				These elements indicate how a payment was distributed to various fee accounts, such as collections fees.
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:attribute name="AccountName" use="required" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						 e.g. The fine/fee account for the portion of a payment which is to be disbursed to the State's Attorney or a collection agency as collection fee.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="AccountCode" use="required" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						 The code correponding to the AccountName.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="AccountNumber" use="required" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						The actual non-zero code+1 correponding to the AccountName.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Amount" use="required" type="xs:float">
				<xs:annotation>
					<xs:documentation>
						 The portion of the payment distributed to the particular fine/fee account.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	
	
	
	<xs:element name="PersonIdentifier" gal:Service="e_citation">
		<xs:complexType>
			<xs:attribute name="Type" use="required" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						Indicates the type of ID (e.g. SID code, state/DLN).
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="SSN" gal:removedForService="e_citation" />
						<xs:enumeration value="StateAndDriversLicense">
							<xs:annotation>
								<xs:documentation>
									A concetantation of the issuing state code (see note on state/province codes, in comments at top of schema) and the driver's license number.  Ref. ADR spec (DDN 37 and DDN 36) 
									If not supplying a US state, Mexican state or Canadian province, use blanks for the first two characters in the DLN.
								</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
						<xs:enumeration value="NCICSID" gal:removedForService="e_citation">
							<xs:annotation>
								<xs:documentation>
									Not in court's CMS.  Ref. ADR spec (DDN 39): A/N-10.
								</xs:documentation>
							</xs:annotation>							
						</xs:enumeration>
						<xs:enumeration value="AttorneyRegistrationNumber" gal:removedForService="e_citation"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="ID" type="xs:string" use="required" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						The actual identifier.  Driver's licenses are represented as a concatenation of a "state" code (if any) and the driver's license number. Ref. ADR spec (DDN 37/36).  For Illinois data, the non-U.S. "state" codes are based on a standard set by the Administrative Office of the Illinois Courts.	 ID shall never have punctuation in it (e.g. dashes in a DLN or SSN)					
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="Phone">
		<xs:complexType>
			<xs:attribute name="Type" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						e.g. "Home", "Work", "h", "W"
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Number" type="xs:string" use="required"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="PhysicalFileLocation" type="xs:string"/>
	<xs:element name="Provider" gal:Service="e_citation">
		<xs:annotation>
			<xs:documentation>
				Assigned by the entity producing the CourtDataTransferFile as they see fit, for debugging purposes.
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:attribute name="ProducerID" type="xs:string" use="required" gal:Service="e_citation">
				<xs:annotation>
					<xs:documentation>
						Indicates the software tool which produced the data.  For example: "Tickets R Us, Bulk Ticket Export Engine"
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="version" type="xs:string" use="required" gal:Service="e_citation">
				<xs:annotation>					
					<xs:documentation>
						The version of the software tool that produced the data.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="ID" type="xs:ID" use="required" gal:Service="e_citation">
				<xs:annotation>					
					<xs:documentation>
						Indicates the entity that produced the data (e.g. Tickets R Us).
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>	
	<xs:element name="Receivables">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Receivable" maxOccurs="unbounded" minOccurs="1"/>
			</xs:sequence>
			<xs:attribute name="ProhibitedPaymentTypeCode" use="optional" type="xs:string"/>
			<xs:attribute name="ProhibitedPaymentTypeDesc" use="optional" type="xs:string"/>
			<xs:attribute name="LastUpdate" use="optional">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:pattern value="\d\d/\d\d/\d\d\d\d"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="User" use="optional" type="xs:string"/>
			<xs:attribute name="DueDate" use="required" gal:direction="Consumer">
				<!--JJ: Change to Date type?-->
				<xs:annotation>
					<xs:documentation>
						It is possible that this might change to a future date (due to a defendant getting relief from a judge).  If this happens, a case referred to collections should be considered for withdrawal.
					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:pattern value="\d\d/\d\d/\d\d\d\d"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="TotalDue" use="required" type="xs:float">
				<xs:annotation>
					<xs:documentation>
						This only changes if the judge lowers or increases the total amount ordered.  This is not a balance.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="TotalPaid" use="required" type="xs:float" gal:DerivedData="Yes" gal:direction="Consumer">
				<xs:annotation>
					<xs:documentation>
						Unlike the court's records, this includes pending bonds.  This is a running total, which may include payments made after referral to a collection agency.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="TotalApplied" use="required" type="xs:float" gal:DerivedData="Yes" gal:direction="Consumer">
				<xs:annotation>
					<xs:documentation>
						Represents payments and bonds explicitly applied to the account by the court.  Collections-related data may be different, as it assumes that unapplied bonds will eventually be applied to the case/account.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="Receivable">
		<xs:complexType>
			<xs:attribute name="ModificationType" default="None">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="None"/>
						<xs:enumeration value="Insert"/>
						<xs:enumeration value="Update"/>
						<xs:enumeration value="Delete"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="AccountName" type="xs:string" use="required"/>
			<xs:attribute name="AccountCode" type="xs:string" use="optional"/>
			<xs:attribute name="AccountNumber" type="xs:string" use="optional">
				<xs:annotation>
					<xs:documentation>
						Code +1
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="DueDate" type="xs:string" use="optional"/>
			<xs:attribute name="AmountDue" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation>
						The total ordered by the court for a particular fine/fee.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="AmountPaid" type="xs:string" use="required">
				<!-- TODO JJ: Convert to INTEGER type?-->
				<xs:annotation>
					<xs:documentation>
						The total amount applied to the particular fine/fee account for all payments.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			
			<xs:attribute name="AccountType" type="xs:string" use="optional">
			
				<xs:annotation>
					<xs:documentation>
						TONY FEETYPDES
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			
			<xs:attribute name="AccountTypeCode" type="xs:string" use="optional">
				
				<xs:annotation>
					<xs:documentation>
						TONY FEETYP
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			
		</xs:complexType>
	</xs:element>
	<xs:element name="RelatedActor" gal:Service="e_citation">
		<xs:annotation>
			<xs:documentation gal:Service="e_citation">
				Each arresting officer is represented by a RelatedActor associated with the court data transfer file.  For more on how to represent an ArrestingOfficer, see general notes following.
			</xs:documentation>
		
			<xs:documentation>
				These are individuals not associated with cases.  Some are associated with a Court (e.g. judges), while others are even higher-level (e.g. law enforcement agents).  Since the attributes used depend on what role the individual plays, and because the structure of some attributes is dictated for performance reasons, a few examples will best illustrate what is required:
			</xs:documentation>
		
			<xs:documentation>
Examples:
INDIVIDUALS DIRECTLY ASSOCIATED WITH THE COURT
Judge- &lt;RelatedActor Type="Judge" ActorId="IL001025JWAPNER" Name="WAPNER" Id="IL001025JWAPNER" OrganizationCode="IL001025J"/>
Court reporter- &lt;RelatedActor Type="CourtReporter" ActorId="IL001025JCRLP" Name="LP" Id="IL001025JLP" OrganizationCode="IL001025J"/>

OrganizationCode- NCIC from Court
ID- a composite value with a required structure using special delimiters
NCIC from Court
The court's internal ID for the individual
ActorID- a composite value with a required structure using special delimiters
- NCIC from Court
- If it is a court reporter, add CR
- The court's internal ID for the individual

INDIVIDUALS NOT DIRECTLY ASSOCIATED WITH THE COURT
Arresting officer- &lt;RelatedActor Type="LawEnforcementAgent" ActorId="IL001025JO9N791" Name="GUNDERSON" Id="791" OrganizationCode="9" OrganizationName="MAPLETON PD" NCIC="IL001013A"/>
ID- the officer's badge number  
NCIC- the ORI code assigned to the law enforcement agency with whom the officer is associated.
OrganizationCode-the court's internal ID for the officer's agency 
OrganizationName- if OrganizationCode is provided 
ActorID is a composite value with a required structure using special delimiters
- NCIC code for the officer
- O (Officer)
- OrganizationCode
- N (Number)
- ID (badge number)
Attorney- &lt;RelatedActor Type="Attorney" ActorId="IL001025JA1234567" Name="DARROW, CLARENCE" Id="1234567" OrganizationCode="123"/>
ID- ideally, courts use the attorney registration number under which the attorney practices in the court
OrganizationCode-the court's internal ID for the firm with which the attorney is associated.  If attorney is a solo practitioner, use the court's internal ID for the attorney, or attorney registration number again. 
OrganizationName- if OrganizationCode is provided 
ActorID is a composite value with a required structure using special delimiters
- NCIC from Court
- A (Attorney)
- ID (attorney registration number)
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:attribute name="ActorId" type="xs:ID" use="required" gal:direction="Consumer"/>
				<!--Until proven necessary for some service, Producers will not be required to compose the ActorID-->
			<xs:attribute name="Id" type="xs:string" use="required" gal:Service="e_citation">
				<xs:annotation gal:Service="e_citation">
    					<xs:documentation>
            				Among other things, this attribute is used for an officer's badge number (ADR spec DDN 142).  For badge numbers, the value should be numeric, up to five digits.  Letters (if any) probably represent the jurisdiction, and should be stripped.  
    					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="OrganizationCode" type="xs:string" use="required" gal:direction="Consumer">
            		<!--Consumer-only, since this is an internal JIMS ID.-->  
    			
			</xs:attribute>
			<xs:attribute name="OrganizationName" type="xs:string" gal:requiredForService="e_citation"/>			
			<xs:attribute name="NCIC" gal:Service="e_citation" gal:requiredForService="e_citation">				
				<xs:annotation>
    					<xs:documentation>
            				Ref. ADR spec (DDN 59).  This is the NCIC ORI code for the arresting officer's agency.
            				There are other valid NCIC codes as well, and this field should be to indicate them, if available.   
   					</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:pattern value="[A-Z]{2}\d{6,7}[A-Z]?"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Name" type="xs:string" use="required" gal:Service="e_citation">
				<xs:annotation gal:Service="e_citation">
    					<xs:documentation>
            				Ref. ADR spec (DDN 323), though CMS requires "Lastname, Firstname" format.  Warning: This feature means that failure to match EXACTLY the value in the court's CMS will result in the creation of a duplicate officer in the CMS.  The same thing will occur if you provide the wrong agency NCIC code for an officer.
    					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Type" use="required" gal:Service="e_citation">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="ProsecutingAttorney" gal:removedForService="e_citation"/>
						<xs:enumeration value="DefenseAttorney" gal:removedForService="e_citation"/>
						<xs:enumeration value="Attorney" gal:removedForService="e_citation"/>
						<xs:enumeration value="ArrestingOfficer" gal:removedForService="e_citation"/>
						<xs:enumeration value="Judge" gal:removedForService="e_citation"/>
						<xs:enumeration value="CourtReporter" gal:removedForService="e_citation"/>
						<xs:enumeration value="LawEnforcementAgent"/>							
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<!--JJ: Is schema missing the email attribute?-->
		</xs:complexType>
	</xs:element>
	<xs:element name="Remedy">
		<xs:annotation>
			<xs:documentation>
				The most common kind of Remedy is a monetary damage award, as indicated by an Amount
			</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:attribute name="Number" type="xs:string" use="required"/>
			<xs:attribute name="Code" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						<!--JJ: Add documentation.  I presume this  distiguishes Judgment, Costs, Atty fees etc?-->
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Description" type="xs:string"/>
			<xs:attribute name="Text" type="xs:string" use="required"/>
			<xs:attribute name="Amount" type="xs:string" use="required"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="Sentence">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="SentenceLength" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="ModificationType" default="None">
				<xs:simpleType>
					<xs:restriction base="xs:NMTOKEN">
						<xs:enumeration value="None"/>
						<xs:enumeration value="Insert"/>
						<xs:enumeration value="Update"/>
						<xs:enumeration value="Delete"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="Number" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation>
						Ordinal/sequence number indicating "the nth sentence on the disposition"
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="XID" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						External ID. Judici.com internal use only.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Code" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						Indicates the type of sentence, based on the standards used in the court. For more on the sentence codes used in Illinois, see ADR User's Guide
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Description" type="xs:string"/>
			<xs:attribute name="Text" type="xs:string" use="required"/>
			<xs:attribute name="Date" type="xs:string" use="required"/>
			<xs:attribute name="StatusCode" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						StatusCode/Description/Text may indicate that a sentence is waived, suspended, stayed or otherwise not in force.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="StatusDescription" type="xs:string"/>
			<xs:attribute name="StatusText" type="xs:string" use="required"/>
			<xs:attribute name="LengthText" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						There may be more than one sentence length.  See note on SentenceLength@Qualifier
					<!--JJ: Why isn't this part of <SentenceLength>?-->
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:element name="SentenceLength">
		<xs:complexType>
			<xs:attribute name="XID" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						External ID. Judici.com internal use only.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="Qualifier" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation  gal:Service="e_citation">
						E-citation producers should probably always set this to ?Committed?.
					</xs:documentation>				
					<xs:documentation>
						If there is more than one SentenceLength, this attribute will distinguish the "maximum" sentence from the "minimum" sentence. Or, use the LengthText, which reflects whatever minimum and maximums exist.
					</xs:documentation>
				</xs:annotation>
				
			</xs:attribute>
			<xs:attribute name="Years" type="xs:string" use="required"/>
			<xs:attribute name="Months" type="xs:string" use="required"/>
			<xs:attribute name="Days" type="xs:string" use="required"/>
			<xs:attribute name="Hours" type="xs:string" use="required"/>
		</xs:complexType>
	</xs:element>
</xs:schema>
