<?xml version="1.0" encoding="UTF-8"?>
<!-- 
 
The FIFA Data Exchange Standard document (“Document”) including all images and text therein (the "Content") is exclusively owned by FIFA.
 
FIFA asks any interested user to sign an Authorisation Letter in order to be authorised to implement the Content (“Permitted Users”). In the implementation Permitted Users are allowed to modify, amend, extend, enhance and/or adjust the Contents provided that the respective Permitted User submits to FIFA any suggested change it has made to the Contents. For the avoidance of doubt, Permitted Users are not allowed to copy, modify, change, distribute and/or display the Document itself in any way.

For more information, consult your copyright attorney.
 
Non-permitted users who are interested to receive the Document and/or implement or use the Content should contact FIFA directly.
FIFA takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to the implementation or use of the Document described in the Content or to the extent to which any licence under such rights might not be available; neither does it represent that it has made any effort to identify such rights.

FIFA invites any interested parties to bring to its attention any copyright works, patents or patent applications, or other proprietary rights which may cover technology that may be required to practise or implement the FIFA Data Exchange Standard. 

© 2020 FIFA. All Rights Reserved.
 
 
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:fc="http://fifa.com/fc" xmlns:altova="http://www.altova.com/xml-schema-extensions" targetNamespace="http://fifa.com/fc" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.1">
	<!-- ======================== Imports  ============================ -->
	<xsd:include schemaLocation="generic.xsd"/>
	<xsd:include schemaLocation="registration.xsd"/>
	<xsd:include schemaLocation="competition.xsd"/>
	<!--====================== Elements ===========================-->
	<xsd:element name="Case" type="fc:CaseType">
		<xsd:annotation>
			<xsd:documentation>Envelope element</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!-- ===================== Simple Types =======================-->
	<xsd:simpleType name="OffenderNatureType">
		<xsd:annotation>
			<xsd:documentation>Type of the offender. It can be natural person (person) or legal person (organisation)</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="fc:String">
			<xsd:enumeration value="Person"/>
			<xsd:enumeration value="Organisation"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="PersonSanctionNatureType">
		<xsd:annotation>
			<xsd:documentation>Types of sanctions that can be issued to a person</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="fc:String">
			<xsd:enumeration value="Warning"/>
			<xsd:enumeration value="Reprimand"/>
			<xsd:enumeration value="Fine"/>
			<xsd:enumeration value="ReturnOfAwards"/>
			<xsd:enumeration value="Caution"/>
			<xsd:enumeration value="Expulsion"/>
			<xsd:enumeration value="MatchSuspension"/>
			<xsd:enumeration value="BanFromDressingRooms">
				<xsd:annotation>
					<xsd:documentation>ban from dressing rooms and/or substitutes’ bench</xsd:documentation>
				</xsd:annotation>
			</xsd:enumeration>
			<xsd:enumeration value="BanFromStadium">
				<xsd:annotation>
					<xsd:documentation>ban from entering a stadium</xsd:documentation>
				</xsd:annotation>
			</xsd:enumeration>
			<xsd:enumeration value="BanFromFootball">
				<xsd:annotation>
					<xsd:documentation>ban on taking part in any football-related activity</xsd:documentation>
				</xsd:annotation>
			</xsd:enumeration>
			<xsd:enumeration value="Other"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="OrganisationSanctionNatureType">
		<xsd:annotation>
			<xsd:documentation>Types of sanctions that can be issued to an organisation</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="fc:String">
			<xsd:enumeration value="Warning"/>
			<xsd:enumeration value="Reprimand"/>
			<xsd:enumeration value="Fine"/>
			<xsd:enumeration value="ReturnOfAwards"/>
			<xsd:enumeration value="TransferBan"/>
			<xsd:enumeration value="PlayingWithoutSpectators">
				<xsd:annotation>
					<xsd:documentation>playing a match without spectators</xsd:documentation>
				</xsd:annotation>
			</xsd:enumeration>
			<xsd:enumeration value="PlayingNeutralTeritory">
				<xsd:annotation>
					<xsd:documentation>playing a match on neutral territory</xsd:documentation>
				</xsd:annotation>
			</xsd:enumeration>
			<xsd:enumeration value="BanStadium">
				<xsd:annotation>
					<xsd:documentation>ban on playing in a particular stadium</xsd:documentation>
				</xsd:annotation>
			</xsd:enumeration>
			<xsd:enumeration value="AnnulmentOfMatch">
				<xsd:annotation>
					<xsd:documentation>annulment of the result of a match</xsd:documentation>
				</xsd:annotation>
			</xsd:enumeration>
			<xsd:enumeration value="Expulsion"/>
			<xsd:enumeration value="Forfeit"/>
			<xsd:enumeration value="DeductionOfPoints"/>
			<xsd:enumeration value="RelegationToLowerDivision"/>
			<xsd:enumeration value="Other"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="SanctionMeasureType">
		<xsd:restriction base="fc:String">
			<xsd:enumeration value="MonetaryUnit"/>
			<xsd:enumeration value="Months"/>
			<xsd:enumeration value="Matches"/>
			<xsd:enumeration value="Points"/>
			<xsd:enumeration value="Goals"/>
		</xsd:restriction>
	</xsd:simpleType>
	<!-- ===================== Complex Types ======================-->
	<xsd:complexType name="CaseType">
		<xsd:annotation>
			<xsd:documentation>The type contains all the information about a disciplinary case against person or organisation.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:choice minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Role of the offender.</xsd:documentation>
				</xsd:annotation>
				<xsd:element name="TeamOfficialNature" type="fc:TeamOfficialRoleNatureType">
					<xsd:annotation>
						<xsd:documentation>Team official role type.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="MatchOfficialNature" type="fc:MatchOfficialRoleNatureType">
					<xsd:annotation>
						<xsd:documentation>Match official role type.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="OrganisationOfficialNature" type="fc:OrganisationOfficialRoleType">
					<xsd:annotation>
						<xsd:documentation>Organisation official role type.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
			</xsd:choice>
			<xsd:element name="MatchEvent" type="fc:MatchEventType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Match event that was the reason for the disciplinary case to be opened.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Sanction" type="fc:SanctionType" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>List of sanctions issued to the offender in this disciplinary case.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
		<xsd:attribute name="CaseFIFAId" type="fc:FIFAIdentifier" use="required">
			<xsd:annotation>
				<xsd:documentation>Worldwide uniquer identifier of the disciplinary case</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="OrganisationFIFAId" type="fc:FIFAIdentifier" use="required">
			<xsd:annotation>
				<xsd:documentation>Unique FIFA identifier of the organisation that opened a disciplinary case</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="CaseDate" type="fc:Date" use="required">
			<xsd:annotation>
				<xsd:documentation>Date and time when the disciplinary case was opened. </xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="OffenderNature" type="fc:OffenderNatureType" use="required">
			<xsd:annotation>
				<xsd:documentation>Defines if the offender is person or organisation. (Natural or legal person)</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="OffenderOrganisationFIFAId" type="fc:FIFAIdentifier">
			<xsd:annotation>
				<xsd:documentation>Unique worldwide ID of the offender (if the OffenderNature is Organisation) or offender's organisation (i.e. Player's Club)</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="OffenderPersonFIFAId" type="fc:FIFAIdentifier">
			<xsd:annotation>
				<xsd:documentation>Unique worldwide ID of the offender when OffenderNature is Person.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="OffenderPersonNature" type="fc:PersonNatureType">
			<xsd:annotation>
				<xsd:documentation>Role of the person.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="Description" type="fc:String" use="required">
			<xsd:annotation>
				<xsd:documentation>Description of the infringement that was the reason why this disciplinary case was opened.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="Status" type="fc:SimpleStatusType" use="required">
			<xsd:annotation>
				<xsd:documentation>Status of the disciplinary case.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="CompetitionFIFAId" type="fc:FIFAIdentifier">
			<xsd:annotation>
				<xsd:documentation>Unique worldwide ID of the competition.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="MatchFIFAId" type="fc:FIFAIdentifier">
			<xsd:annotation>
				<xsd:documentation>Unique worldwide ID of the match</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
	</xsd:complexType>
	<xsd:complexType name="SanctionType">
		<xsd:annotation>
			<xsd:documentation>The type contains all the information about a sanction against person or organisation.</xsd:documentation>
		</xsd:annotation>
		<xsd:choice>
			<xsd:annotation>
				<xsd:documentation>It can be or person or organisation sanction type</xsd:documentation>
			</xsd:annotation>
			<xsd:element name="PersonSanctionNature" type="fc:PersonSanctionNatureType">
				<xsd:annotation>
					<xsd:documentation>Type of sanction for person</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="OrganisationSanctionNature" type="fc:OrganisationSanctionNatureType">
				<xsd:annotation>
					<xsd:documentation>Type of sanction for organisation</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:choice>
		<xsd:attribute name="Status" type="fc:SimpleStatusType" use="required">
			<xsd:annotation>
				<xsd:documentation>Status of the sanction. Most important is if it is active.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="Value" type="xsd:double">
			<xsd:annotation>
				<xsd:documentation>A number value of the sanction. (Number of matches, number of months, amount...)</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="Measure" type="fc:SanctionMeasureType">
			<xsd:annotation>
				<xsd:documentation>Measure of the sanction.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="Currency" type="fc:ISO4217CurrencyCode">
			<xsd:annotation>
				<xsd:documentation>If the sanction is monetary, than the currency needs to be specified</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="ValueServed" type="xsd:double">
			<xsd:annotation>
				<xsd:documentation>Value already served of the initial sanction.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="DateFrom" type="fc:Date">
			<xsd:annotation>
				<xsd:documentation>Date from which the sanction is active.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attribute name="DateTo" type="fc:Date">
			<xsd:annotation>
				<xsd:documentation>Date until which the sanction is active</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
	</xsd:complexType>
</xsd:schema>
