<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema version="5.0"
            xmlns:nwis="http://water.usgs.gov/XML/NWIS/5.0" 
            xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
            elementFormDefault="qualified">

  <xsd:include schemaLocation="LocationSensor.xsd"/>
  <xsd:include schemaLocation="SensorReading.xsd"/>
  <xsd:include schemaLocation="../shared/ReferenceListCodeType.xsd"/>
  <xsd:include schemaLocation="../shared/IEEE754FloatValue.xsd"/>
  <xsd:include schemaLocation="../shared/DateTimeWithDatum.xsd"/>
  <xsd:include schemaLocation="../shared/Equipment.xsd"/>

  <xsd:element name="BubbleGageInspection">
    <xsd:annotation>
      <xsd:documentation>
        <Definition>The inspection of a bubble gage that measures the water level.</Definition>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="LocationSensor" type="LocationSensor"/>
        <xsd:element name="GasSystemTypeCode" type="ReferenceListCodeType">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code indicating the type of gas system of the bubble gage.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="OrificeServicedCode" type="ReferenceListCodeType">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code indicating the type of servicing performed on the orifice of the bubble gage.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="OrificeServicedDateTime" type="DateTimeWithDatum" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The date and time that the orifice of the bubble gage was serviced.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="DesiccantConditionCode" type="ReferenceListCodeType">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code indicating the the condition of the desiccant of the bubble gage.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="DesiccantChangedIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Was the desiccant changed during this site visit (true or false)?</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="DesiccantComment" type="xsd:string" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Comments on the condition of the desiccant</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
       	<xsd:element name="GasTankChangedIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Was the gas tank changed during this site visit (true or false)?</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="TankPressureBeforeMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The pressure of the nitrogen tank of the bubble gage before servicing. The default units are pounds per square inch.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="LinePressureBeforeMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The pressure of the bubbler line before servicing. The default units are pounds per square inch.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="BubbleRateBeforeMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The bubble rate of the bubble gage before servicing. The default units are in bubbles per minute.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="TankPressureAfterMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The pressure of the nitrogen tank of the bubble gage after servicing. The default units are pounds per square inch.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="LinePressureAfterMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The pressure of the bubbler line after servicing. The default units are pounds per square inch.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="BubbleRateAfterMeasure" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The bubble rate of the bubble gage after servicing, in bubbles per minute.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element ref="SensorReading" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>
