-<xs:schema targetNamespace="http://www.energistics.org/energyml/data/witsmlv2" elementFormDefault="qualified" version="2.0">
<!--
														
 -->
<!--
 Energistics License Agreement
			This file is distributed under the Energistics Product License Agreement at
			http://www.energistics.org/product-license-agreement
			Use of this file constitutes agreement with the Energistics Product License Agreement.
			Copyright (c) 2016 Energistics. All rights reserved.
			Energistics, WITSML, PRODML and RESQML are trademarks or registered trademarks of Energistics.
			
 -->
<!--
														
 -->
-<xs:annotation>
 <xs:documentation>Wellbore Schema. To maximize operational efficiency and increase subsurface access, a well may contain multiple wellbores, which are the actual boreholes that comprise the well. A wellbore represents the path from surface to a unique bottomhole.</xs:documentation>
 </xs:annotation>
<!--
														
 -->
 <xs:import namespace="http://www.energistics.org/energyml/data/commonv2" schemaLocation="../../../common/v2.1/xsd_schemas/EmlAllObjects.xsd"/>
<!--
														
 -->
 <xs:include schemaLocation="WitsmlCommon.xsd"/>
 <xs:include schemaLocation="Well.xsd"/>
 <xs:element name="Wellbore" type="witsml:Wellbore" substitutionGroup="eml:AbstractDataObject"/>
-<xs:complexType name="Wellbore">
-<xs:annotation>
 <xs:documentation>Used to capture the general information about a wellbore. This information is sometimes called a "wellbore header". A wellbore represents the path from surface to a unique bottomhole location. The wellbore object is uniquely identified within the context of one well object.</xs:documentation>
 </xs:annotation>
-<xs:complexContent>
-<xs:extension base="eml:AbstractObject">
-<xs:sequence>
-<xs:element name="Number" type="eml:String64" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Operator borehole number.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="SuffixAPI" type="eml:String64" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>API suffix.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="NumGovt" type="eml:String64" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Government assigned number.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="StatusWellbore" type="eml:WellStatus" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>POSC wellbore status.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="IsActive" type="xs:boolean" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>True (="1" or "true") indicates that the wellbore is active. False (="0" or "false") indicates otherwise. It is the servers responsibility to set this value based on its available internal data (e.g., what objects are changing).</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="PurposeWellbore" type="witsml:WellPurpose" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>POSC wellbore purpose.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="TypeWellbore" type="witsml:WellboreType" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Type of wellbore.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="Shape" type="witsml:WellboreShape" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>POSC wellbore trajectory shape.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="DTimKickoff" type="eml:TimeStamp" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Date and time of wellbore kickoff.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="AchievedTD" type="xs:boolean" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>True ("true" of "1") indicates that the wellbore has acheieved total depth. That is, drilling has completed. False ("false" or "0") indicates otherwise. Not given indicates that it is not known whether total depth has been reached.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="Md" type="witsml:MeasuredDepthCoord" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>The measured depth of the borehole. If status is plugged, indicates the maximum depth reached before plugging. It is recommended that this value be updated about every 10 minutes by an assigned raw data provider at a site.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="Tvd" type="witsml:WellVerticalDepthCoord" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>The true vertical depth of the borehole. If status is plugged, indicates the maximum depth reached before plugging. It is recommended that this value be updated about every 10 minutes by an assigned raw data provider at a site.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="MdBit" type="witsml:MeasuredDepthCoord" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>The measured depth of the bit. If isActive=false then this value is not relevant. It is recommended that this value be updated about every 10 minutes by an assigned raw data provider at a site.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="TvdBit" type="witsml:WellVerticalDepthCoord" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>The true vertical depth of the bit. If isActive=false then this value is not relevant. It is recommended that this value be updated about every 10 minutes by an assigned raw data provider at a site.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="MdKickoff" type="witsml:MeasuredDepthCoord" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Kickoff measured depth of the wellbore.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="TvdKickoff" type="witsml:WellVerticalDepthCoord" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Kickoff true vertical depth of the wellbore.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="MdPlanned" type="witsml:MeasuredDepthCoord" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Planned measured depth for the wellbore total depth.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="TvdPlanned" type="witsml:WellVerticalDepthCoord" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Planned true vertical depth for the wellbore total depth.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="MdSubSeaPlanned" type="witsml:MeasuredDepthCoord" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Planned measured for the wellbore total depth - with respect to seabed.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="TvdSubSeaPlanned" type="witsml:WellVerticalDepthCoord" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Planned true vertical depth for the wellbore total depth - with respect to seabed.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="DayTarget" type="eml:TimeMeasure" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Target days for drilling wellbore.</xs:documentation>
 </xs:annotation>
 </xs:element>
 <xs:element name="Well" type="eml:DataObjectReference" minOccurs="1" maxOccurs="1"/>
 <xs:element name="ParentWellbore" type="eml:DataObjectReference" minOccurs="0" maxOccurs="1"/>
 </xs:sequence>
 </xs:extension>
 </xs:complexContent>
 </xs:complexType>
-<xs:simpleType name="WellboreType">
-<xs:annotation>
 <xs:documentation>Specifies the values for the classification of a wellbore with respect to its parent well/wellbore.</xs:documentation>
 </xs:annotation>
-<xs:restriction base="eml:TypeEnum">
-<xs:enumeration value="bypass">
-<xs:annotation>
 <xs:documentation>The original wellbore had to be abandoned before its final usage. This wellbore is being drilled as a different wellbore, but one which has the same target as the one that was abandoned.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
-<xs:enumeration value="initial">
-<xs:annotation>
 <xs:documentation>This is the first wellbore that has been drilled, or attempted, in a given well.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
-<xs:enumeration value="redrill">
-<xs:annotation>
 <xs:documentation>The wellbore is being redrilled.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
-<xs:enumeration value="reentry">
-<xs:annotation>
 <xs:documentation>The wellbore is being reentered after a period of abandonment.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
-<xs:enumeration value="respud">
-<xs:annotation>
 <xs:documentation>The wellbore is part of an existing regulatory well. The original borehole did not reach the target depth. This borehole required the well to be respudded (drilled from a different surface position).</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
-<xs:enumeration value="sidetrack">
-<xs:annotation>
 <xs:documentation>The wellbore is a deviation from a given wellbore that produces a different borehole from the others, and whose bottomhole differs from any previously existing wellbore bottomholes.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 </xs:restriction>
 </xs:simpleType>
-<xs:simpleType name="WellboreShape">
-<xs:annotation>
 <xs:documentation>Specifies values to represent the classification of a wellbore based on its shape. The source of the values and the descriptions is the POSC V2.2 "facility class" standard instance values in classification system "POSC wellbore trajectory shape".</xs:documentation>
 </xs:annotation>
-<xs:restriction base="eml:TypeEnum">
-<xs:enumeration value="build and hold">
-<xs:annotation>
 <xs:documentation>A wellbore configuration where the inclination is increased to some terminal angle of inclination and maintained at that angle to the specified target.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
-<xs:enumeration value="deviated">
-<xs:annotation>
 <xs:documentation>A wellbore that significantly departs from vertical with respect to the surface location.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
-<xs:enumeration value="double kickoff">
-<xs:annotation>
 <xs:documentation>Incorporates two tangential (constant, non-zero inclination) sections, the second of which must be at a higher inclination than the first.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
-<xs:enumeration value="horizontal">
-<xs:annotation>
 <xs:documentation>A wellbore whose path deviates from the vertical by at least 75 degrees.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
-<xs:enumeration value="S-shaped">
-<xs:annotation>
 <xs:documentation>A wellbore drilled with a vertical segment, a deviated segment, and a return toward a vertical segment.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
-<xs:enumeration value="vertical">
-<xs:annotation>
 <xs:documentation>A wellbore that is nearly vertical with respect to the surface location.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 </xs:restriction>
 </xs:simpleType>
 </xs:schema>