<?xml version="1.0"?>
<!-- 
######################################################################
# Copyright (c) 2001-2005 Kalamazoo Community Mental Health Services,
#   John Holland <jholland@kazoocmh.org> <john@zoner.org>
# All rights reserved.
#
# This software is licensed as described in the file LICENSE.txt, which
# you should have received as part of this distribution.
#
######################################################################

#    $Id: codes.xsd,v 1.5 2004/12/12 20:58:08 johnholland Exp $
-->

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

  <xsd:element name="codesets" type="CodeSetsType"/>
 
  <xsd:complexType name="CodeSetsType">
    <xsd:sequence>
      <xsd:element name="codeset" type="CodeSetType" maxOccurs="unbounded"/>
    </xsd:sequence>
  </xsd:complexType>

  <xsd:complexType name="CodeSetType">
    <xsd:sequence>
      <xsd:element name="id" type="xsd:normalizedString"/>
      <xsd:element name="name" type="xsd:normalizedString"/>
      <xsd:element name="data_ele" type="xsd:normalizedString" minOccurs="0"/>
      <xsd:element name="version" type="VersionType" maxOccurs="unbounded"/>
    </xsd:sequence>
  </xsd:complexType>

  <xsd:complexType name="VersionType">
    <xsd:sequence>
      <xsd:element name="id" type="xsd:normalizedString" minOccurs="0"/>
      <xsd:element name="eff_dte" type="xsd:normalizedString" minOccurs="0"/>
      <xsd:element name="exp_dte" type="xsd:normalizedString" minOccurs="0"/>
      <xsd:element name="code" type="xsd:normalizedString" maxOccurs="unbounded"/>
    </xsd:sequence>
  </xsd:complexType>

</xsd:schema>
