<?xml version="1.0"?>
<schema targetNamespace="http://dcis.psc.gov/DCIS" xmlns:DCIS="http://dcis.psc.gov/DCIS" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1.0">
	<!--History
	* Removed vendorID from vendorHeader		06/12/2003
	* listOfVendorsType inherits listOfSearchResults		06/12/2003
    * DUNSNumber element added as a key                     07/10/2003
	-->
	<!-- import the required XSDs-->
	<include schemaLocation="https://dcis03.psc.gov/dcis/schema/common/1.0/Common.xsd"/>
	<include schemaLocation="https://dcis03.psc.gov/dcis/schema/DataCollection/locations/1.0/Place.xsd"/>
	<include schemaLocation="https://dcis03.psc.gov/dcis/schema/DataCollection/locations/1.0/CongressionalDistrict.xsd"/>
	<!-- simple types -->
	<simpleType name="vendorNameType">
		<restriction base="string">
			<maxLength value="80"/>
		</restriction>
	</simpleType>
	<simpleType name="vendorDoingAsBusinessNameType">
		<restriction base="string">
			<maxLength value="60"/>
		</restriction>
	</simpleType>
	<simpleType name="vendorSiteCodeType">
		<restriction base="string">
			<maxLength value="15"/>
		</restriction>
	</simpleType>
	<simpleType name="divisionNameType">
		<restriction base="string">
			<maxLength value="60"/>
		</restriction>
	</simpleType>
	<simpleType name="divisionNumberOrOfficeCodeType">
		<restriction base="string">
			<maxLength value="60"/>
		</restriction>
	</simpleType>
	<simpleType name="DUNSNumberType">
		<restriction base="string">
			<maxLength value="13"/>
		</restriction>
	</simpleType>
	<simpleType name="contractorNameType">
		<restriction base="string">
			<maxLength value="80"/>
		</restriction>
	</simpleType>
	<simpleType name="organizationalTypeType">
		<restriction base="string">
			<maxLength value="2"/>
		</restriction>
	</simpleType>
	<!-- vendor header -->
	<complexType name="vendorHeaderType">
		<sequence>
			<element name="vendorName" type="DCIS:vendorNameType" nillable="true" minOccurs="0"/>
			<element name="vendorAlternateName" type="string" nillable="true" minOccurs="0"/>
			<element name="vendorLegalOrganizationName" type="string" nillable="true" minOccurs="0"/>
			<element name="vendorDoingAsBusinessName" type="DCIS:vendorDoingAsBusinessNameType" nillable="true" minOccurs="0"/>
			<element name="vendorEnabled" type="boolean" default="false" minOccurs="0"/>
		</sequence>
	</complexType>
	<!-- vendor socio economic indicator type -->
	<complexType name="vendorSocioEconomicIndicatorsType">
		<sequence>
			<element name="smallBusinessFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="firm8AFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="HUBZoneFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="SDBFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="shelteredWorkshopFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="HBCUFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="educationalInstitiutionFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="womenOwnedFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="veteranOwnedFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="SRDVOBFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="localGovernmentFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="minorityInstitutionFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="AIOBFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="stateGovernmentFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="federalGovernmentFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="minorityOwnedBusinessFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="APAOBFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="tribalGovernmentFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="BAOBFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="NAOBFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="SAAOBFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="nonprofitOrganizationFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="HAOBFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="verySmallBusinessFlag" type="boolean" default="false" minOccurs="0"/>
			<element name="numberOfEmployees" type="positiveInteger" nillable="true" minOccurs="0"/>
			<element name="annualRevenue" type="positiveInteger" nillable="true" minOccurs="0"/>
			<element name="organizationalType" type="DCIS:organizationalTypeType" nillable="true" minOccurs="0"/>
		</sequence>
	</complexType>
	<!-- vendor location type -->
	<complexType name="vendorLocationType">
		<complexContent>
			<extension base="DCIS:addressType">
				<sequence>
					<element name="vendorSiteCode" type="DCIS:vendorSiteCodeType" nillable="true" minOccurs="0"/>
					<element name="vendorAlternateSiteCode" type="DCIS:vendorSiteCodeType" nillable="true" minOccurs="0"/>
 					<element name="DUNSNumber" type="DCIS:DUNSNumberType" nillable="true" minOccurs="0"/>
					<element name="parentDUNSNumber" type="DCIS:DUNSNumberType" minOccurs="0"/>
					<element name="phoneNo" type="DCIS:phoneNoType" nillable="true" minOccurs="0"/>
					<element name="faxNo" type="DCIS:phoneNoType" nillable="true" minOccurs="0"/>
					<element name="divisionName" type="DCIS:divisionNameType" nillable="true" minOccurs="0"/>
					<element name="divisionNumberOrOfficeCode" type="DCIS:divisionNumberOrOfficeCodeType" nillable="true" minOccurs="0"/>
					<element name="congressionalDistrict" type="DCIS:congressionalDistrictCodeType" nillable="true" minOccurs="0"/>
					<element name="registrationDate" type="DCIS:FPDSDateType" nillable="true" minOccurs="0"/>
					<element name="renewalDate" type="DCIS:FPDSDateType" nillable="true" minOccurs="0"/>
					<element name="vendorLocationDisabledFlag" type="boolean" default="false" minOccurs="0"/>
				</sequence>
			</extension>
		</complexContent>
	</complexType>
	<complexType name="listOfVendorLocationsType">
		<sequence>
			<element name="vendorLocation" type="DCIS:vendorLocationType" minOccurs="0" maxOccurs="unbounded"/>
		</sequence>
	</complexType>
	<!-- Vendor Type -->
	<complexType name="vendorType">
		<sequence>
			<element name="vendorHeader" type="DCIS:vendorHeaderType" nillable="true" minOccurs="0"/>
			<element name="vendorSocioEconomicIndicators" type="DCIS:vendorSocioEconomicIndicatorsType" nillable="true" minOccurs="0"/>
			<element name="listOfVendorLocations" type="DCIS:listOfVendorLocationsType" nillable="true" minOccurs="0"/>
		</sequence>
	</complexType>
	<element name="vendor" type="DCIS:vendorType"/>
	<!-- Vendor Key -->
	<element name="DUNSNumber" type="DCIS:DUNSNumberType"/>
	<complexType name="vendorInstanceType">
		<sequence>
			<element name="vendorHeader" type="DCIS:vendorHeaderType" minOccurs="0"/>
			<element name="vendorSocioEconomicIndicators" type="DCIS:vendorSocioEconomicIndicatorsType" minOccurs="0"/>
			<element name="vendorLocation" type="DCIS:vendorLocationType" minOccurs="0"/>
		</sequence>
	</complexType>
	<!-- listOfVendor Type   -->
	<complexType name="listOfVendorsType">
		<complexContent>
			<extension base="DCIS:listOfSearchResults">
				<sequence>
					<element name="vendor" type="DCIS:vendorType" minOccurs="0" maxOccurs="unbounded"/>
				</sequence>
			</extension>
		</complexContent>
	</complexType>
	<element name="listOfVendors" type="DCIS:listOfVendorsType"/>
	<!-- vendor search criteria -->
	<complexType name="vendorSearchCriteriaType">
		<sequence>
			<element name="vendorName" type="DCIS:vendorNameType"/>
			<element name="vendorDoingAsBusinessName" type="DCIS:vendorDoingAsBusinessNameType" nillable="true" minOccurs="0"/>
			<element name="DUNSNumber" type="DCIS:DUNSNumberType" nillable="true" minOccurs="0"/>
			<element name="city" type="DCIS:cityType" nillable="true" minOccurs="0"/>
			<element name="state" type="DCIS:stateType" nillable="true" minOccurs="0"/>
			<element name="ZIPCode" type="DCIS:ZIPCodeType" nillable="true" minOccurs="0"/>
			<element name="countryCode" type="DCIS:countryCodeType" default="USA" minOccurs="0"/>
			<element name="vendorSocioEconomicIndicators" type="DCIS:vendorSocioEconomicIndicatorsType" nillable="true" minOccurs="0"/>
		</sequence>
	</complexType>
	<element name="vendorSearchCriteria" type="DCIS:vendorSearchCriteriaType"/>
	<!-- end of vendor related definitions -->
</schema>
