<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 rel. 3 U (http://www.xmlspy.com) by Michael Smith (EDS - Wisconsin Medicaid) -->
<xsd:schema targetNamespace="http://www.wisconsinedi.org" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.wisconsinedi.org" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<!--restrictive types for defining other types-->
	<xsd:simpleType name="alphabeticType">
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="[a-zA-Z]*"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="alphanumericType">
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="[a-zA-Z0-9]*"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="numericType">
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="[0-9]*"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="anycharacterType">
		<xsd:restriction base="xsd:string"/>
	</xsd:simpleType>
	<xsd:simpleType name="alphanumericdecimalpointType">
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="[a-zA-Z0-9\.]*"/>
		</xsd:restriction>
	</xsd:simpleType>
	<!--Element types using restrictive types above-->
	<xsd:simpleType name="anychar6maxType">
		<xsd:restriction base="anycharacterType">
			<xsd:maxLength value="6"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="cmoReasonCodeType">-->
	</xsd:simpleType>
	<xsd:simpleType name="anychar25maxType">
		<xsd:restriction base="anycharacterType">
			<xsd:maxLength value="25"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="fnameType">-->
		<!--<xsd:simpleType name="mnameType">-->
	</xsd:simpleType>
	<xsd:simpleType name="anychar35maxType">
		<xsd:restriction base="anycharacterType">
			<xsd:maxLength value="35"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="lnameType">-->
	</xsd:simpleType>
	<xsd:simpleType name="anychar55maxType">
		<xsd:restriction base="anycharacterType">
			<xsd:maxLength value="55"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="anychar80maxType">
		<xsd:restriction base="anycharacterType">
			<xsd:maxLength value="80"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="provIDType">-->
		<!--<xsd:simpleType name="cmoIDType">-->
	</xsd:simpleType>
	<xsd:simpleType name="alpha1fixedType">
		<xsd:restriction base="alphabeticType">
			<xsd:length value="1"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="adjustmentType">-->
		<!--<xsd:simpleType name="claimstatusType">-->
		<!--<xsd:simpleType name="supportindicatorType">-->
		<!--<xsd:simpleType name="recordType">-->
		<!--<xsd:simpleType name="membershareType">-->
	</xsd:simpleType>
	<xsd:simpleType name="alpha2fixedType">
		<xsd:restriction base="alphabeticType">
			<xsd:length value="2"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="adjustdetailType">-->
		<!--<xsd:simpleType name="serviceDeliveryType">-->
	</xsd:simpleType>
	<xsd:simpleType name="alpha2maxType">
		<xsd:restriction base="alphabeticType">
			<xsd:maxLength value="2"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="alpha4maxType">
		<xsd:restriction base="alphabeticType">
			<xsd:maxLength value="4"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="alphanumeric1fixedType">
		<xsd:restriction base="alphanumericType">
			<xsd:length value="1"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="alphanumeric2fixedType">
		<xsd:restriction base="alphanumericType">
			<xsd:length value="2"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="spcsubprogramType">-->
	</xsd:simpleType>
	<xsd:simpleType name="alphanumeric2maxType">
		<xsd:restriction base="alphanumericType">
			<xsd:maxLength value="2"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="cmomodifiercodeType">-->
		<!--<xsd:simpleType name="idqualifierType">-->
		<!--<xsd:simpleType name="serviceType">-->
		<!--<xsd:simpleType name="measurementType">-->
	</xsd:simpleType>
	<xsd:simpleType name="alphanumeric3fixedType">
		<xsd:restriction base="alphanumericType">
			<xsd:length value="3"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="spccodeType">-->
	</xsd:simpleType>
	<xsd:simpleType name="alphanumeric3maxType">
		<xsd:restriction base="alphanumericType">
			<xsd:maxLength value="3"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="ansicodeType">-->
	</xsd:simpleType>
	<xsd:simpleType name="alphanumeric4maxType">
		<xsd:restriction base="alphanumericType">
			<xsd:maxLength value="4"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="revenuecodeType">-->
	</xsd:simpleType>
	<xsd:simpleType name="alphanumeric6maxType">
		<xsd:restriction base="alphanumericType">
			<xsd:maxLength value="6"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="alphanumeric8maxType">
		<xsd:restriction base="alphanumericType">
			<xsd:maxLength value="8"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="alphanumeric9maxType">
		<xsd:restriction base="alphanumericType">
			<xsd:maxLength value="9"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="alphanumeric30maxType">
		<xsd:restriction base="alphanumericType">
			<xsd:maxLength value="30"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="alphanumeric48maxType">
		<xsd:restriction base="alphanumericType">
			<xsd:maxLength value="48"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="procedurecodeType">-->
	</xsd:simpleType>
	<xsd:simpleType name="alphanumeric80maxType">
		<xsd:restriction base="alphanumericType">
			<xsd:maxLength value="80"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="nationalIDType">-->
	</xsd:simpleType>
	<xsd:simpleType name="alphanumdecpt30maxType">
		<xsd:restriction base="alphanumericdecimalpointType">
			<xsd:maxLength value="30"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="cmodiagnosisType">-->
	</xsd:simpleType>
	<xsd:simpleType name="countType">
		<xsd:restriction base="xsd:nonNegativeInteger">
			<xsd:maxInclusive value="99999999"/>
		</xsd:restriction>
	</xsd:simpleType>
	<!-- Bug 2210 create encountercurrency18Type for HIPAA compliance: -->
	<!-- NOTE 18 is 15 digits plus "." plus 2 decimal digits (15+1+2=18) -->
	<!-- replace max 15 digits with max 17 digits for currency types -->
	<!-- <xsd:simpleType name="encountercurrency15Type"> -->
	<!-- 	<xsd:restriction base="xsd:decimal"> -->
	<!-- 		<xsd:totalDigits value="15"/> -->
	<!-- 		<xsd:fractionDigits value="2"/> -->
	<!-- 	</xsd:restriction> -->
	<!-- </xsd:simpleType> -->
	<!-- end Bug 2210 changes -->
	<xsd:simpleType name="encountercurrency18Type">
		<xsd:restriction base="xsd:decimal">
			<xsd:totalDigits value="17"/>
			<xsd:fractionDigits value="2"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="encounterdateType">
		<xsd:restriction base="xsd:date">
			<xsd:maxExclusive value="10000-01-01Z"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="cmodateType">-->
	</xsd:simpleType>
	<xsd:simpleType name="encountermonthyearType">
		<xsd:restriction base="xsd:gYearMonth">
			<xsd:maxInclusive value="9999-12"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="encounterquantity15Type">
		<xsd:restriction base="xsd:decimal">
			<xsd:totalDigits value="15"/>
			<xsd:fractionDigits value="3"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="quantityType">-->
	</xsd:simpleType>
	<xsd:simpleType name="numeric2fixedType">
		<xsd:restriction base="numericType">
			<xsd:length value="2"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="datasourceType">-->
	</xsd:simpleType>
	<xsd:simpleType name="numeric3maxType">
		<xsd:restriction base="numericType">
			<xsd:maxLength value="3"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="drgType">-->
	</xsd:simpleType>
	<xsd:simpleType name="numeric8fixedType">
		<xsd:restriction base="numericType">
			<xsd:length value="8"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="maprovidType">-->
		<!--<xsd:simpleType name="cmo_ma_idType">-->
	</xsd:simpleType>
	<xsd:simpleType name="numeric10fixedType">
		<xsd:restriction base="numericType">
			<xsd:length value="10"/>
		</xsd:restriction>
		<!--<xsd:simpleType name="recipientIDType">-->
	</xsd:simpleType>
	<xsd:simpleType name="obsoleteType">
		<xsd:restriction base="anycharacterType"/>
	</xsd:simpleType>
	<xsd:simpleType name="spcType">
		<xsd:restriction base="alphanumericdecimalpointType">
			<xsd:maxLength value="6"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="recordIdType">
		<xsd:restriction base="xsd:string">
			<xsd:maxLength value="80"/>
			<xsd:minLength value="1"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="adjTypeDetailType">
		<xsd:restriction base="alpha2fixedType">
			<xsd:enumeration value="FC"/>
			<xsd:enumeration value="NC"/>
			<xsd:enumeration value="PC"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="emptyType">
		<xsd:restriction base="xsd:string">
			<xsd:length value="0"/>
		</xsd:restriction>
	</xsd:simpleType>
	<!--xsd:simpleType name="medicare_cobType">
		<xsd:restriction base="alphanumeric2fixedType">
			<xsd:enumeration value="MA"/>
			<xsd:enumeration value="ML"/>
			<xsd:enumeration value="MX"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="other_payer_cob_type">
		<xsd:restriction base="alpha2fixedType">
			<xsd:enumeration value="SB"/>
			<xsd:enumeration value="WC"/>
			<xsd:enumeration value="VA"/>
			<xsd:enumeration value="OP"/>
			<xsd:enumeration value="MP"/>
		</xsd:restriction>
	</xsd:simpleType-->
	<xsd:simpleType name="contact_disability_type">
		<xsd:restriction base="alpha2maxType">
			<xsd:enumeration value="DD"/>
			<xsd:enumeration value="E"/>
			<xsd:enumeration value="MH"/>
			<xsd:enumeration value="PD"/>
			<xsd:enumeration value="SU"/>
			<xsd:enumeration value="U"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="yes_no_type">
		<xsd:restriction base="alpha1fixedType">
			<xsd:enumeration value="Y"/>
			<xsd:enumeration value="N"/>
		</xsd:restriction>
	</xsd:simpleType>
</xsd:schema>
