-<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>Risk Schema.</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="Wellbore.xsd"/>
 <xs:element name="Risk" type="witsml:Risk" substitutionGroup="eml:AbstractDataObject"/>
-<xs:complexType name="Risk">
-<xs:annotation>
 <xs:documentation>Risk Schema. Used to provide a central location for capturing risk information about the well design and other well-related data objects.</xs:documentation>
 </xs:annotation>
-<xs:complexContent>
-<xs:extension base="eml:AbstractObject">
-<xs:sequence>
-<xs:element name="Type" type="witsml:RiskType" minOccurs="1" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>The type of risk.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="Category" type="witsml:RiskCategory" minOccurs="1" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>The category of risk.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="SubCategory" type="witsml:RiskSubCategory" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>The sub category of risk.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="ExtendCategory" type="eml:String64" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Custom string to further categorize the risk.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="AffectedPersonnel" type="witsml:RiskAffectedPersonnel" minOccurs="0" maxOccurs="unbounded">
-<xs:annotation>
 <xs:documentation>The personnel affected by the risk.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="DTimStart" type="eml:TimeStamp" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Date and time that activities (related to the risk) started.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="DTimEnd" type="eml:TimeStamp" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Date and time that activities (related to the risk) were completed.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="MdHoleStart" type="witsml:MeasuredDepthCoord" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Measured Depth at the start of the activity.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="MdHoleEnd" type="witsml:MeasuredDepthCoord" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Measured Depth at the end of the activity.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="TvdHoleStart" type="witsml:WellVerticalDepthCoord" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>True vertical depth at the start of the activity.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="TvdHoleEnd" type="witsml:WellVerticalDepthCoord" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>True vertical depth at the end of the activity.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="MdBitStart" type="witsml:MeasuredDepthCoord" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Measured depth of the bit at the start of the activity.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="MdBitEnd" type="witsml:MeasuredDepthCoord" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Measured depth of the bit at the end of the activity.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="DiaHole" type="eml:LengthMeasure" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Hole diameter.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="SeverityLevel" type="witsml:LevelIntegerCode" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Severity level of the risk. Values of 1 through 5, with 1 being the lowest risk level.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="ProbabilityLevel" type="witsml:LevelIntegerCode" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Probability level of the risk occurring. Values of 1 through 5, with 1 being the lowest probability.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="Summary" type="eml:String2000" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Summary description of the risk.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="Details" type="eml:String2000" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Complete description of the risk. </xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="Identification" type="eml:String2000" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Details for identifying the risk.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="Contingency" type="eml:String2000" minOccurs="0" maxOccurs="1">
-<xs:annotation>
 <xs:documentation>Plan of action if the risk materializes.</xs:documentation>
 </xs:annotation>
 </xs:element>
-<xs:element name="Mitigation" type="eml:String2000" minOccurs="0" maxOccurs="unbounded">
-<xs:annotation>
 <xs:documentation>Plan of action to ensure the risk does not materialize.</xs:documentation>
 </xs:annotation>
 </xs:element>
 <xs:element name="ObjectReference" type="eml:DataObjectReference" minOccurs="0" maxOccurs="unbounded"/>
 <xs:element name="Wellbore" type="eml:DataObjectReference" minOccurs="1" maxOccurs="1"/>
 </xs:sequence>
 </xs:extension>
 </xs:complexContent>
 </xs:complexType>
-<xs:simpleType name="RiskType">
-<xs:annotation>
 <xs:documentation>Specifies the type of risk. </xs:documentation>
 </xs:annotation>
-<xs:restriction base="eml:TypeEnum">
 <xs:enumeration value="risk"/>
 <xs:enumeration value="event"/>
 <xs:enumeration value="near miss"/>
 <xs:enumeration value="best practice"/>
 <xs:enumeration value="lessons learned"/>
 <xs:enumeration value="other"/>
 </xs:restriction>
 </xs:simpleType>
-<xs:simpleType name="RiskCategory">
-<xs:annotation>
 <xs:documentation>Specifies the category of risk. </xs:documentation>
 </xs:annotation>
-<xs:restriction base="eml:TypeEnum">
 <xs:enumeration value="hydraulics"/>
 <xs:enumeration value="mechanical"/>
-<xs:enumeration value="time related">
-<xs:annotation>
 <xs:documentation>Specifies the category of risk. </xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="wellbore stability"/>
 <xs:enumeration value="directional drilling"/>
 <xs:enumeration value="bit"/>
 <xs:enumeration value="equipment failure"/>
 <xs:enumeration value="completion"/>
 <xs:enumeration value="casing"/>
 <xs:enumeration value="other"/>
-<xs:enumeration value="HSE">
-<xs:annotation>
 <xs:documentation>health, safety and environmental</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 </xs:restriction>
 </xs:simpleType>
-<xs:simpleType name="RiskSubCategory">
-<xs:annotation>
 <xs:documentation>Specifies the sub-category of risk, in relation to value of Risk Category. </xs:documentation>
 </xs:annotation>
-<xs:restriction base="eml:TypeEnum">
 <xs:enumeration value="gas kick"/>
 <xs:enumeration value="shallow water influx"/>
 <xs:enumeration value="other influx or kicks"/>
 <xs:enumeration value="loss circulation"/>
 <xs:enumeration value="poor hole cleaning"/>
-<xs:enumeration value="good hole cleaning at high ROP">
-<xs:annotation>
 <xs:documentation>Rate of Penetration</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
-<xs:enumeration value="high mud weight">
-<xs:annotation>
 <xs:documentation>High mud weight (i.e., greater than 10 parts per US gallon).</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="special additives needed"/>
 <xs:enumeration value="gumbo problems"/>
 <xs:enumeration value="high ECD - rheology related"/>
-<xs:enumeration value="excessive circulation">
-<xs:annotation>
 <xs:documentation>Greater than 2 hours.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="performing a kill"/>
-<xs:enumeration value="mud weight change">
-<xs:annotation>
 <xs:documentation>Greater than 0.5 parts per US gallon.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="excessive pipe cement scaling"/>
-<xs:enumeration value="pit gain or loss">
-<xs:annotation>
 <xs:documentation>Greater than ten barrles.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="mud stability problems"/>
 <xs:enumeration value="shallow gas flow"/>
 <xs:enumeration value="twist off"/>
-<xs:enumeration value="stuck pipe">
-<xs:annotation>
 <xs:documentation>Greater than 30 minutes.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="wireline stuck in hole"/>
 <xs:enumeration value="stick and slip"/>
 <xs:enumeration value="vibration - axial"/>
 <xs:enumeration value="vibration - torsional"/>
 <xs:enumeration value="vibration - transverse"/>
 <xs:enumeration value="vibration unknown or rough drilling"/>
 <xs:enumeration value="uneven wear of BHA"/>
 <xs:enumeration value="uneven wear of drillstring"/>
 <xs:enumeration value="excessive torque"/>
 <xs:enumeration value="excessive drag"/>
-<xs:enumeration value="reaming greater than 2 hours">
-<xs:annotation>
 <xs:documentation>Greater than 2 hours.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="washouts"/>
 <xs:enumeration value="tight hole or overPull"/>
 <xs:enumeration value="failed inspections or fatigue wear"/>
 <xs:enumeration value="mechanical"/>
-<xs:enumeration value="drilling greater than 1000 feet/day">
-<xs:annotation>
 <xs:documentation>Greater than 1000 feet per day.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
-<xs:enumeration value="drilling greater than 2000 feet/day">
-<xs:annotation>
 <xs:documentation>Greater than 2000 feet per day.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
-<xs:enumeration value="drilling less than 20 feet/day">
-<xs:annotation>
 <xs:documentation>Less than 20 feet per day.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
-<xs:enumeration value="trips greater than 24 hours">
-<xs:annotation>
 <xs:documentation>Greater than 24 hours.</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
-<xs:enumeration value="excessive time for BHA makeup">
-<xs:annotation>
 <xs:documentation>Bottom Hole Assembly</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="waiting on decisions"/>
 <xs:enumeration value="waiting on weather"/>
 <xs:enumeration value="waiting on tools"/>
 <xs:enumeration value="sloughing or packoffs"/>
 <xs:enumeration value="ballooning"/>
 <xs:enumeration value="fracture problems"/>
 <xs:enumeration value="unstable zones"/>
 <xs:enumeration value="formation integrity test"/>
 <xs:enumeration value="leak-off test"/>
 <xs:enumeration value="tectonics"/>
 <xs:enumeration value="pore pressure"/>
 <xs:enumeration value="breakouts"/>
 <xs:enumeration value="bed parallel"/>
 <xs:enumeration value="wellbore stability"/>
 <xs:enumeration value="excessive doglegs"/>
 <xs:enumeration value="sidetrack"/>
-<xs:enumeration value="BHA change for directional">
-<xs:annotation>
 <xs:documentation>Bottom Hole Assembly</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="wrong total flow area"/>
 <xs:enumeration value="well collision - actual"/>
 <xs:enumeration value="well collision - technical"/>
 <xs:enumeration value="geosteering"/>
 <xs:enumeration value="abnormal tendency changes"/>
 <xs:enumeration value="resurveying"/>
 <xs:enumeration value="in-field referencing (IFR) actions"/>
-<xs:enumeration value="bit or BHA performance">
-<xs:annotation>
 <xs:documentation>Bottom Hole Assembly</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="drilling optimization"/>
 <xs:enumeration value="bit balling"/>
 <xs:enumeration value="lost cones or broken cutters"/>
 <xs:enumeration value="excessive bit wear or gauge"/>
 <xs:enumeration value="low rate of bit penetration"/>
 <xs:enumeration value="high rate of bit penetration"/>
 <xs:enumeration value="downhole tool"/>
 <xs:enumeration value="surface system"/>
 <xs:enumeration value="motor or rotary steerable system failure"/>
 <xs:enumeration value="topdrive failure"/>
 <xs:enumeration value="hoisting equipment failure"/>
 <xs:enumeration value="circulating equipment failure"/>
 <xs:enumeration value="electrical system failure"/>
 <xs:enumeration value="blow out preventer events"/>
 <xs:enumeration value="surface instrumentation problems"/>
 <xs:enumeration value="rig communications"/>
 <xs:enumeration value="completion equipment failure"/>
 <xs:enumeration value="miscellaneous rig equipment"/>
 <xs:enumeration value="tool or equipment failure"/>
 <xs:enumeration value="squeeze jobs"/>
 <xs:enumeration value="casing surge losses"/>
 <xs:enumeration value="stuck casing or completion"/>
 <xs:enumeration value="shoe failures"/>
 <xs:enumeration value="early cement setup"/>
 <xs:enumeration value="casing collapse"/>
 <xs:enumeration value="milling"/>
 <xs:enumeration value="excessive casing wear or cuttings"/>
 <xs:enumeration value="excessive formation damage or skin"/>
 <xs:enumeration value="casing rotation or reciprocation rqd"/>
 <xs:enumeration value="broaching"/>
 <xs:enumeration value="completion or casing"/>
 <xs:enumeration value="stratigraphy"/>
 <xs:enumeration value="fishing"/>
 <xs:enumeration value="junk in hole"/>
 <xs:enumeration value="delay due to political unrest"/>
 <xs:enumeration value="rig move"/>
 <xs:enumeration value="gas hydrates"/>
 <xs:enumeration value="pending analysis"/>
 <xs:enumeration value="riser disconnect"/>
 <xs:enumeration value="other"/>
 <xs:enumeration value="personnel"/>
 <xs:enumeration value="environmental"/>
 <xs:enumeration value="automotive"/>
 <xs:enumeration value="asset"/>
 <xs:enumeration value="information"/>
 <xs:enumeration value="time"/>
-<xs:enumeration value="HSE">
-<xs:annotation>
 <xs:documentation>health, safety and environmental</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 </xs:restriction>
 </xs:simpleType>
-<xs:simpleType name="RiskAffectedPersonnel">
-<xs:annotation>
 <xs:documentation>Personnel affected by a risk.</xs:documentation>
 </xs:annotation>
-<xs:restriction base="eml:TypeEnum">
 <xs:enumeration value="cementer"/>
 <xs:enumeration value="company man"/>
 <xs:enumeration value="contractor"/>
 <xs:enumeration value="directional driller"/>
 <xs:enumeration value="driller"/>
 <xs:enumeration value="drilling engineer"/>
 <xs:enumeration value="drilling superintendent"/>
 <xs:enumeration value="drilling team"/>
 <xs:enumeration value="facility engineer"/>
 <xs:enumeration value="field service manager"/>
 <xs:enumeration value="foreman"/>
 <xs:enumeration value="general service supervisor"/>
 <xs:enumeration value="geologist"/>
 <xs:enumeration value="member"/>
 <xs:enumeration value="mud engineer"/>
 <xs:enumeration value="mud logger"/>
-<xs:enumeration value="MWD or LWD engineer">
-<xs:annotation>
 <xs:documentation>measurement while drilling or logging while drilling</xs:documentation>
 </xs:annotation>
 </xs:enumeration>
 <xs:enumeration value="perform engineer"/>
 <xs:enumeration value="petrophysicist"/>
 <xs:enumeration value="production engineer"/>
 <xs:enumeration value="remotely operated vehicle engineer"/>
 <xs:enumeration value="safety manager"/>
 <xs:enumeration value="sales engineer"/>
 <xs:enumeration value="service supervisor"/>
 <xs:enumeration value="technical support"/>
 <xs:enumeration value="tool pusher"/>
 <xs:enumeration value="wireline engineer"/>
 </xs:restriction>
 </xs:simpleType>
-<xs:simpleType name="LevelIntegerCode">
-<xs:annotation>
 <xs:documentation>Integer level code from 1 through 8.</xs:documentation>
 </xs:annotation>
-<xs:restriction base="xs:short">
 <xs:pattern value=".+"/>
 <xs:maxInclusive value="8"/>
 <xs:minInclusive value="0"/>
 </xs:restriction>
 </xs:simpleType>
 </xs:schema>