<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Log: sp_simple_types.xsd,v $
    Revision 1.1.1.1  2003/07/22 14:26:28  richard
    initial import

    Revision 1.7  2002/07/08 18:46:01  richard
    Modified the medical assessment so that the "self_reprrted_ilness" and "documented_ilness" are now tok50Type(s).
    Added the "drug abuse" option to the disabilites picklist.
    Added CVS LOG keyword to all template files.

-->
<xsd:schema xmlns:xsd='http://www.w3.org/2001/XMLSchema'>

 <xsd:simpleType name="legacyIDType">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="36"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="md5">
  <xsd:restriction base="xsd:token">
   <xsd:pattern value="[A-Fa-f0-9]{32}"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="ssnDashed">
  <xsd:restriction base="xsd:token">
   <xsd:pattern value="\d{3}-\d{2}-\d{4}"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="tok1Type">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="1"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="tok2Type">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="2"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="tok16Type">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="16"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="tok20Type">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="20"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="tok25Type">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="25"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="tok30Type">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="30"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="tok35Type">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="35"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="tok50Type">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="50"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="tok60Type">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="60"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="tok100Type">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="100"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="tok250Type">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="250"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="str4096Type">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="4096"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="zipType">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="16"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="countyType">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="35"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="areaType">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="35"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="cityType">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="50"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="stateType">
  <xsd:restriction base="xsd:token">
   <xsd:maxLength value="100"/>
  </xsd:restriction>
 </xsd:simpleType>


 <xsd:simpleType name="realNumberType">
  <xsd:restriction base="xsd:decimal">
   <xsd:pattern value="\d+|\.\d+|\d+\.\d+"/>
  </xsd:restriction>
 </xsd:simpleType>

 <xsd:simpleType name="positiveDecimalType">
  <xsd:restriction base="realNumberType">
   <xsd:minInclusive value="0"/>
   <xsd:pattern value="\d+|\.\d+|\d+\.\d+"/>
  </xsd:restriction>
 </xsd:simpleType>

</xsd:schema>
