Showing:

Annotations
Diagrams
Facets
Instances
Source
Used by
Imported schema drg.xsd
Namespace http://www.tnsaferoads.net/mvc/prsn/drg
Annotations
This schema validates an instance of a Drug Test.
Documentation for the Drug Test
MMUCC Data Element Reference ??

http://www.mmucc.us/guideline/criteria/c9.htm

This schema defines and validates an instance of Drug Test within the context
of a Collision report document.
The Person-Related Drug Conditions

http://www.gnu.org/licenses/gpl.html

<xi:include href="../XML/GPL.xhtml"/>
This software should be used in compliance with GNU GENERAL PUBLIC LICENSE            
Version 3, 29 June 2007 or later. TNSR™
Element drg:DrugTestType / drg:TestGiven
Namespace http://www.tnsaferoads.net/mvc/prsn/drg
Diagram
Diagram drv4.tmp#id63
Type drg:TestGivenType
Facets
length 2
enumeration 00
Not Tested For Drugs
enumeration 01
Blood Test
enumeration 02
Urine Test
enumeration 03
Both: Blood And Urine Test Performed
enumeration 07
Unknown Test Type
enumeration 08
Other Type Test
enumeration 09
Unknown if Tested For Drugs
pattern \d{2}
Source
<xsd:element name="TestGiven" type="drg:TestGivenType"/>
Element drg:ResultClass
Namespace http://www.tnsaferoads.net/mvc/prsn/drg
Annotations

http://www-fars.nhtsa.dot.gov/

Client Instructions: Choose one Drug Test Result Class and enter the appropriate value for the particular drug in that class.
Resultant Drug Class
Diagram
Diagram drv4.tmp#id71 drv4.tmp#id69 drv4.tmp#id66 drv4.tmp#id73 drv4.tmp#id74 drv4.tmp#id68 drv4.tmp#id72 drv4.tmp#id65 drv4.tmp#id70 drv4.tmp#id67
Used by
Complex Type drg:DrugTestType
Source
<xsd:element name="ResultClass" block="extension" final="" nillable="false" id="ResultClass">
  <xsd:annotation>
    <xsd:documentation source="http://www-fars.nhtsa.dot.gov/" xml:lang="en-US">Client Instructions: Choose one Drug Test Result Class and enter the appropriate value for the particular drug in that class.</xsd:documentation>
    <xsd:documentation>Resultant Drug Class</xsd:documentation>
  </xsd:annotation>
  <!--Resultant Drug Class-->
</xsd:element>
Element drg:DrugTestType / drg:TestKitID
Namespace http://www.tnsaferoads.net/mvc/prsn/drg
Annotations
Needs further definition
Diagram
Diagram
Type restriction of xsd:token
Facets
minLength 3
maxLength 35
Source
<xsd:element name="TestKitID" id="DrugTestKitID">
  <xsd:annotation>
    <xsd:documentation xml:lang="en-US">Needs further definition</xsd:documentation>
  </xsd:annotation>
  <xsd:simpleType>
    <xsd:restriction base="xsd:token">
      <xsd:minLength value="3"/>
      <xsd:maxLength value="35"/>
    </xsd:restriction>
  </xsd:simpleType>
</xsd:element>
Element drg:DrugTest
Namespace http://www.tnsaferoads.net/mvc/prsn/drg
Diagram
Diagram drv4.tmp#id62 drv4.tmp#id64 drv4.tmp#id75 drv4.tmp#id61
Type drg:DrugTestType
Model drg:TestGiven , drg:ResultClass , drg:TestKitID
Children drg:ResultClass, drg:TestGiven, drg:TestKitID
Instance
<drg:DrugTest>
  <drg:TestGiven>{1,1}</drg:TestGiven>
  <drg:ResultClass>{1,1}</drg:ResultClass>
  <drg:TestKitID>{1,1}</drg:TestKitID>
</drg:DrugTest>
Source
<xsd:element name="DrugTest" type="drg:DrugTestType"/>
Element drg:Narcotic
Namespace http://www.tnsaferoads.net/mvc/prsn/drg
Annotations
Narcotic Drug
Diagram
Diagram
Type restriction of xsd:positiveInteger
Facets
totalDigits 3
maxInclusive 295
minInclusive 100
pattern ([\-+]?[0-9]+) & (\d{3})
Source
<xsd:element name="Narcotic" substitutionGroup="drg:ResultClass" id="DrugClassNarcotic">
  <!--Narcotic Drug-->
  <xsd:annotation>
    <xsd:documentation>Narcotic Drug</xsd:documentation>
  </xsd:annotation>
  <xsd:simpleType>
    <xsd:restriction base="xsd:positiveInteger">
      <xsd:minInclusive value="100"/>
      <xsd:maxInclusive value="295"/>
      <xsd:totalDigits value="3"/>
      <xsd:pattern value="\d{3}"/>
    </xsd:restriction>
  </xsd:simpleType>
</xsd:element>
Element drg:Depressant
Namespace http://www.tnsaferoads.net/mvc/prsn/drg
Annotations
Depressant Drug
Diagram
Diagram
Type restriction of xsd:positiveInteger
Facets
totalDigits 3
maxInclusive 395
minInclusive 300
pattern ([\-+]?[0-9]+) & (\d{3})
Source
<xsd:element name="Depressant" substitutionGroup="drg:ResultClass" id="DrugClassDepressant">
  <!--Depressant Drug-->
  <xsd:annotation>
    <xsd:documentation>Depressant Drug</xsd:documentation>
  </xsd:annotation>
  <xsd:simpleType>
    <xsd:restriction base="xsd:positiveInteger">
      <xsd:minInclusive value="300"/>
      <xsd:maxInclusive value="395"/>
      <xsd:totalDigits value="3"/>
      <xsd:pattern value="\d{3}"/>
    </xsd:restriction>
  </xsd:simpleType>
</xsd:element>
Element drg:Stimulant
Namespace http://www.tnsaferoads.net/mvc/prsn/drg
Annotations
Stimulant Drug
Diagram
Diagram
Type restriction of xsd:positiveInteger
Facets
totalDigits 3
maxInclusive 495
minInclusive 400
pattern ([\-+]?[0-9]+) & (\d{3})
Source
<xsd:element name="Stimulant" substitutionGroup="drg:ResultClass" id="DrugClassStimulant">
  <!--Stimulant Drug-->
  <xsd:annotation>
    <xsd:documentation>Stimulant Drug</xsd:documentation>
  </xsd:annotation>
  <xsd:simpleType>
    <xsd:restriction base="xsd:positiveInteger">
      <xsd:minInclusive value="400"/>
      <xsd:maxInclusive value="495"/>
      <xsd:totalDigits value="3"/>
      <xsd:pattern value="\d{3}"/>
    </xsd:restriction>
  </xsd:simpleType>
</xsd:element>
Element drg:Hallucinogen
Namespace http://www.tnsaferoads.net/mvc/prsn/drg
Annotations
Hallucinogen Drug
Diagram
Diagram
Type restriction of xsd:positiveInteger
Facets
totalDigits 3
maxInclusive 595
minInclusive 500
pattern ([\-+]?[0-9]+) & (\d{3})
Source
<xsd:element name="Hallucinogen" substitutionGroup="drg:ResultClass" id="DrugClassHallucinogen">
  <!--Hallucinogen Drug-->
  <xsd:annotation>
    <xsd:documentation>Hallucinogen Drug</xsd:documentation>
  </xsd:annotation>
  <xsd:simpleType>
    <xsd:restriction base="xsd:positiveInteger">
      <xsd:minInclusive value="500"/>
      <xsd:maxInclusive value="595"/>
      <xsd:totalDigits value="3"/>
      <xsd:pattern value="\d{3}"/>
    </xsd:restriction>
  </xsd:simpleType>
</xsd:element>
Element drg:Cannabinoid
Namespace http://www.tnsaferoads.net/mvc/prsn/drg
Annotations
Cannabinoid Drug
Diagram
Diagram
Type restriction of xsd:positiveInteger
Facets
totalDigits 3
maxInclusive 695
minInclusive 600
pattern ([\-+]?[0-9]+) & (\d{3})
Source
<xsd:element name="Cannabinoid" substitutionGroup="drg:ResultClass" id="DrugClassCannabinoid">
  <!--Cannabinoid Drug-->
  <xsd:annotation>
    <xsd:documentation>Cannabinoid Drug</xsd:documentation>
  </xsd:annotation>
  <xsd:simpleType>
    <xsd:restriction base="xsd:positiveInteger">
      <xsd:minInclusive value="600"/>
      <xsd:maxInclusive value="695"/>
      <xsd:totalDigits value="3"/>
      <xsd:pattern value="\d{3}"/>
    </xsd:restriction>
  </xsd:simpleType>
</xsd:element>
Element drg:PhencyclidinePCP
Namespace http://www.tnsaferoads.net/mvc/prsn/drg
Annotations
Phencyclidine Drug
Diagram
Diagram
Type restriction of xsd:positiveInteger
Facets
totalDigits 3
maxInclusive 795
minInclusive 700
pattern ([\-+]?[0-9]+) & (\d{3})
Source
<xsd:element name="PhencyclidinePCP" substitutionGroup="drg:ResultClass" id="DrugClassPhencyclidine">
  <!--Phencyclidine Drug-->
  <xsd:annotation>
    <xsd:documentation>Phencyclidine Drug</xsd:documentation>
  </xsd:annotation>
  <xsd:simpleType>
    <xsd:restriction base="xsd:positiveInteger">
      <xsd:minInclusive value="700"/>
      <xsd:maxInclusive value="795"/>
      <xsd:totalDigits value="3"/>
      <xsd:pattern value="\d{3}"/>
    </xsd:restriction>
  </xsd:simpleType>
</xsd:element>
Element drg:AnabolicSteroid
Namespace http://www.tnsaferoads.net/mvc/prsn/drg
Annotations
Anabolic Steroid Drug
Diagram
Diagram
Type restriction of xsd:positiveInteger
Facets
totalDigits 3
maxInclusive 895
minInclusive 800
pattern ([\-+]?[0-9]+) & (\d{3})
Source
<xsd:element name="AnabolicSteroid" substitutionGroup="drg:ResultClass" id="DrugClassAnabolicSteroid">
  <!--Anabolic Steroid Drug-->
  <xsd:annotation>
    <xsd:documentation>Anabolic Steroid Drug</xsd:documentation>
  </xsd:annotation>
  <xsd:simpleType>
    <xsd:restriction base="xsd:positiveInteger">
      <xsd:minInclusive value="800"/>
      <xsd:maxInclusive value="895"/>
      <xsd:totalDigits value="3"/>
      <xsd:pattern value="\d{3}"/>
    </xsd:restriction>
  </xsd:simpleType>
</xsd:element>
Element drg:Inhalant
Namespace http://www.tnsaferoads.net/mvc/prsn/drg
Annotations
Inhalant Drug
Diagram
Diagram
Type restriction of xsd:positiveInteger
Facets
totalDigits 3
maxInclusive 995
minInclusive 900
pattern ([\-+]?[0-9]+) & (\d{3})
Source
<xsd:element name="Inhalant" substitutionGroup="drg:ResultClass" id="DrugClassInhalant">
  <xsd:annotation>
    <xsd:documentation>Inhalant Drug</xsd:documentation>
  </xsd:annotation>
  <!--Inhalant Drug-->
  <xsd:simpleType>
    <xsd:restriction base="xsd:positiveInteger">
      <xsd:minInclusive value="900"/>
      <xsd:maxInclusive value="995"/>
      <xsd:totalDigits value="3"/>
      <xsd:pattern value="\d{3}"/>
    </xsd:restriction>
  </xsd:simpleType>
</xsd:element>
Element drg:DrugClassOther
Namespace http://www.tnsaferoads.net/mvc/prsn/drg
Annotations
Other Drug
Diagram
Diagram
Type xsd:positiveInteger
Source
<xsd:element name="DrugClassOther" type="xsd:positiveInteger" substitutionGroup="drg:ResultClass" fixed="996" id="DrugClassOther">
  <xsd:annotation>
    <xsd:documentation>Other Drug</xsd:documentation>
  </xsd:annotation>
  <!--Other Drug-->
</xsd:element>
Element drg:DrugResultClassUnknown
Namespace http://www.tnsaferoads.net/mvc/prsn/drg
Annotations
Unknown Drug
Diagram
Diagram
Type restriction of xsd:positiveInteger
Facets
totalDigits 3
maxInclusive 999
minInclusive 997
pattern ([\-+]?[0-9]+) & (\d{3})
Source
<xsd:element name="DrugResultClassUnknown" substitutionGroup="drg:ResultClass" id="DrugClassUnknown">
  <xsd:annotation>
    <xsd:documentation>Unknown Drug</xsd:documentation>
  </xsd:annotation>
  <!--Unknown Drug-->
  <xsd:simpleType>
    <xsd:restriction base="xsd:positiveInteger">
      <xsd:minInclusive value="997"/>
      <xsd:maxInclusive value="999"/>
      <xsd:totalDigits value="3"/>
      <xsd:pattern value="\d{3}"/>
    </xsd:restriction>
  </xsd:simpleType>
</xsd:element>
Complex Type drg:DrugTestType
Namespace http://www.tnsaferoads.net/mvc/prsn/drg
Annotations
The type definition for the Drug Test Result.
Diagram
Diagram drv4.tmp#id62 drv4.tmp#id64 drv4.tmp#id75
Used by
Model drg:TestGiven , drg:ResultClass , drg:TestKitID
Children drg:ResultClass, drg:TestGiven, drg:TestKitID
Source
<xsd:complexType name="DrugTestType" block="#all" final="#all">
  <xsd:annotation>
    <xsd:documentation xml:lang="en-US">The type definition for the Drug Test Result.</xsd:documentation>
  </xsd:annotation>
  <xsd:sequence id="DrugTestSeq">
    <xsd:annotation>
      <xsd:documentation xml:lang="en-US">All of the following must be provided.</xsd:documentation>
    </xsd:annotation>
    <xsd:element name="TestGiven" type="drg:TestGivenType"/>
    <xsd:element ref="drg:ResultClass"/>
    <xsd:element name="TestKitID" id="DrugTestKitID">
      <xsd:annotation>
        <xsd:documentation xml:lang="en-US">Needs further definition</xsd:documentation>
      </xsd:annotation>
      <xsd:simpleType>
        <xsd:restriction base="xsd:token">
          <xsd:minLength value="3"/>
          <xsd:maxLength value="35"/>
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:element>
  </xsd:sequence>
</xsd:complexType>
Simple Type drg:TestGivenType
Namespace http://www.tnsaferoads.net/mvc/prsn/drg
Annotations
The type of or conditions about the drug test administered
Diagram
Diagram
Type restriction of xsd:token
Facets
length 2
enumeration 00
Not Tested For Drugs
enumeration 01
Blood Test
enumeration 02
Urine Test
enumeration 03
Both: Blood And Urine Test Performed
enumeration 07
Unknown Test Type
enumeration 08
Other Type Test
enumeration 09
Unknown if Tested For Drugs
pattern \d{2}
Used by
Source
<xsd:simpleType name="TestGivenType">
  <xsd:annotation>
    <xsd:documentation xml:lang="en-US">The type of or conditions about the drug test administered</xsd:documentation>
  </xsd:annotation>
  <xsd:restriction base="xsd:token">
    <xsd:length value="2"/>
    <xsd:pattern value="\d{2}"/>
    <xsd:enumeration value="00" id="NotTestedForDrugs">
      <xsd:annotation>
        <xsd:documentation>Not Tested For Drugs</xsd:documentation>
      </xsd:annotation>
      <!--Not Tested For Drugs-->
    </xsd:enumeration>
    <xsd:enumeration value="01" id="BloodTest">
      <xsd:annotation>
        <xsd:documentation>Blood Test</xsd:documentation>
      </xsd:annotation>
      <!--Blood Test-->
    </xsd:enumeration>
    <xsd:enumeration value="02" id="UrineTest">
      <!--Urine Test-->
      <xsd:annotation>
        <xsd:documentation>Urine Test</xsd:documentation>
      </xsd:annotation>
    </xsd:enumeration>
    <xsd:enumeration value="03" id="BloodAndUrineTestPerformed">
      <!--Both: Blood And Urine Test Performed-->
      <xsd:annotation>
        <xsd:documentation>Both: Blood And Urine Test Performed</xsd:documentation>
      </xsd:annotation>
    </xsd:enumeration>
    <xsd:enumeration value="07" id="UnknownTestType">
      <!--Unknown Test Type-->
      <xsd:annotation>
        <xsd:documentation>Unknown Test Type</xsd:documentation>
      </xsd:annotation>
    </xsd:enumeration>
    <xsd:enumeration value="08" id="OtherTypeTest">
      <!--Other Type Test-->
      <xsd:annotation>
        <xsd:documentation>Other Type Test</xsd:documentation>
      </xsd:annotation>
    </xsd:enumeration>
    <xsd:enumeration value="09" id="UnknownIfTestedForDrugs">
      <!--Unknown if Tested For Drugs-->
      <xsd:annotation>
        <xsd:documentation>Unknown if Tested For Drugs</xsd:documentation>
      </xsd:annotation>
    </xsd:enumeration>
  </xsd:restriction>
</xsd:simpleType>