Showing:

Annotations
Diagrams
Facets
Instances
Source
Used by
Imported schema alchl.xsd
Namespace http://www.tnsaferoads.net/mvc/prsn/alchl
Annotations
Documentation for the Alcohol Test
MMUCC Data Element Reference ??

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

This schema defines and validates an instance of Alcohol Test within the context
of a Collision report document.

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 alchl:AlcoholTestType / alchl:TestResultValue
Namespace http://www.tnsaferoads.net/mvc/prsn/alchl
Annotations
The actual value of the test given. Values greater that 0.94 will not be accepted.
Diagram
Diagram
Type restriction of xsd:decimal
Facets
totalDigits 3
fractionDigits 2
maxInclusive 0.94
minInclusive 0.00
Source
<xsd:element name="TestResultValue" block="#all" form="qualified" id="TestResultValue">
  <xsd:annotation>
    <xsd:documentation xml:lang="en-US">The actual value of the test given. Values greater that 0.94 will not be accepted.</xsd:documentation>
  </xsd:annotation>
  <!--BAC Test Value-->
  <xsd:simpleType>
    <xsd:annotation>
      <xsd:documentation xml:lang="en-US">The type definition for the Alcohol Test Result.</xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:decimal">
      <xsd:minInclusive value="0.00"/>
      <xsd:maxInclusive value="0.94"/>
      <xsd:totalDigits value="3"/>
      <xsd:fractionDigits value="2"/>
    </xsd:restriction>
  </xsd:simpleType>
</xsd:element>
Element alchl:AlcoholTestType / alchl:TestGiven
Namespace http://www.tnsaferoads.net/mvc/prsn/alchl
Annotations
The type of BAC test administered to the Person.  A Person may have up to three different test administered and recorded.
Diagram
Diagram
Type restriction of xsd:token
Facets
length 2
enumeration 00
Not Tested For Alcohol
enumeration 01
Whole Blood
enumeration 02
Breathalyzer "BAC"
enumeration 10
Preliminary Breath Test (PBY)
enumeration 03
Urine
enumeration 04
Vitreous
enumeration 05
Blood Plasma/Serum
enumeration 06
Blood Clot
enumeration 07
Liver
enumeration 08
Other Test Type
enumeration 95
Test Refused
enumeration 96
None Given
enumeration 97
BAC Test Performed, Results Unknown
enumeration 98
PBT Positive Reading With No Actual Value
enumeration 99
Unknown/Not Reported
pattern \d{2}
Source
<xsd:element name="TestGiven" block="#all" form="qualified" id="TestGiven">
  <xsd:annotation>
    <xsd:documentation xml:lang="en-US">The type of BAC test administered to the Person. A Person may have up to three different test administered and recorded.</xsd:documentation>
  </xsd:annotation>
  <xsd:simpleType>
    <xsd:restriction base="xsd:token">
      <xsd:length value="2"/>
      <xsd:pattern value="\d{2}"/>
      <xsd:enumeration value="00" id="NotTestedForAlcohol">
        <xsd:annotation>
          <xsd:documentation>Not Tested For Alcohol</xsd:documentation>
        </xsd:annotation>
        <!--Not Tested For Alcohol-->
      </xsd:enumeration>
      <xsd:enumeration value="01" id="WholeBlood">
        <xsd:annotation>
          <xsd:documentation>Whole Blood</xsd:documentation>
        </xsd:annotation>
        <!--Whole Blood-->
      </xsd:enumeration>
      <xsd:enumeration value="02" id="BreathalyzerBAC">
        <xsd:annotation>
          <xsd:documentation>Breathalyzer "BAC"</xsd:documentation>
        </xsd:annotation>
        <!--Breathalyzer "BAC"-->
      </xsd:enumeration>
      <xsd:enumeration value="10" id="PreliminaryBreathTest">
        <xsd:annotation>
          <xsd:documentation>Preliminary Breath Test (PBY)</xsd:documentation>
        </xsd:annotation>
        <!--Preliminary Breath Test (PBY)-->
      </xsd:enumeration>
      <xsd:enumeration value="03" id="Urine">
        <xsd:annotation>
          <xsd:documentation>Urine</xsd:documentation>
        </xsd:annotation>
        <!--Urine-->
      </xsd:enumeration>
      <xsd:enumeration value="04" id="Vitreous">
        <xsd:annotation>
          <xsd:documentation>Vitreous</xsd:documentation>
        </xsd:annotation>
        <!--Vitreous-->
      </xsd:enumeration>
      <xsd:enumeration value="05" id="BloodPlasmaSerum">
        <xsd:annotation>
          <xsd:documentation>Blood Plasma/Serum</xsd:documentation>
        </xsd:annotation>
        <!--Blood Plasma/Serum-->
      </xsd:enumeration>
      <xsd:enumeration value="06" id="BloodClot">
        <xsd:annotation>
          <xsd:documentation>Blood Clot</xsd:documentation>
        </xsd:annotation>
        <!--Blood Clot-->
      </xsd:enumeration>
      <xsd:enumeration value="07" id="Liver">
        <xsd:annotation>
          <xsd:documentation>Liver</xsd:documentation>
        </xsd:annotation>
        <!--Liver-->
      </xsd:enumeration>
      <xsd:enumeration value="08" id="OtherTestType">
        <xsd:annotation>
          <xsd:documentation>Other Test Type</xsd:documentation>
        </xsd:annotation>
        <!--Other Test Type-->
      </xsd:enumeration>
      <xsd:enumeration value="95" id="TestRefused">
        <xsd:annotation>
          <xsd:documentation>Test Refused</xsd:documentation>
        </xsd:annotation>
        <!--Test Refused-->
      </xsd:enumeration>
      <xsd:enumeration value="96" id="NoneGiven">
        <xsd:annotation>
          <xsd:documentation>None Given</xsd:documentation>
        </xsd:annotation>
        <!--None Given-->
      </xsd:enumeration>
      <xsd:enumeration value="97" id="BACTestPerformedResultsUnknown">
        <xsd:annotation>
          <xsd:documentation>BAC Test Performed, Results Unknown</xsd:documentation>
        </xsd:annotation>
        <!--BAC Test Performed, Results Unknown-->
      </xsd:enumeration>
      <xsd:enumeration value="98" id="PBTPositiveReadingWithNoActualValue">
        <xsd:annotation>
          <xsd:documentation>PBT Positive Reading With No Actual Value</xsd:documentation>
        </xsd:annotation>
        <!--PBT Positive Reading With No Actual Value-->
      </xsd:enumeration>
      <xsd:enumeration value="99" id="UnknownNotReported">
        <xsd:annotation>
          <xsd:documentation>Unknown/Not Reported</xsd:documentation>
        </xsd:annotation>
        <!--Unknown/Not Reported-->
      </xsd:enumeration>
    </xsd:restriction>
  </xsd:simpleType>
</xsd:element>
Element alchl:AlcoholTestType / alchl:TestKitID
Namespace http://www.tnsaferoads.net/mvc/prsn/alchl
Annotations
BAC Test Kit ID Number - Needs further Definition
Diagram
Diagram
Type restriction of xsd:token
Facets
minLength 3
maxLength 35
Source
<xsd:element name="TestKitID" block="#all" form="qualified" id="TestKitID">
  <xsd:annotation>
    <xsd:documentation xml:lang="en-US">BAC Test Kit ID Number - Needs further Definition</xsd:documentation>
  </xsd:annotation>
  <xsd:simpleType>
    <xsd:restriction base="xsd:token">
      <xsd:maxLength value="35"/>
      <xsd:minLength value="3"/>
    </xsd:restriction>
  </xsd:simpleType>
  <!--BAC Test Kit ID Number-->
</xsd:element>
Element alchl:AlcoholTest
Namespace http://www.tnsaferoads.net/mvc/prsn/alchl
Annotations
The type definition for the Alcohol Test type Result.
Diagram
Diagram drv15.tmp#id57 drv15.tmp#id58 drv15.tmp#id59 drv15.tmp#id56
Type alchl:AlcoholTestType
Model ALL(alchl:TestResultValue alchl:TestGiven alchl:TestKitID)
Children alchl:TestGiven, alchl:TestKitID, alchl:TestResultValue
Instance
<alchl:AlcoholTest>
  <alchl:TestResultValue>{1,1}</alchl:TestResultValue>
  <alchl:TestGiven>{1,1}</alchl:TestGiven>
  <alchl:TestKitID>{1,1}</alchl:TestKitID>
</alchl:AlcoholTest>
Source
<xsd:element name="AlcoholTest" type="alchl:AlcoholTestType">
  <xsd:annotation>
    <xsd:documentation xml:lang="en-US">The type definition for the Alcohol Test type Result.</xsd:documentation>
  </xsd:annotation>
  <!--Blood Alcohol Test Type-->
</xsd:element>
Complex Type alchl:AlcoholTestType
Namespace http://www.tnsaferoads.net/mvc/prsn/alchl
Annotations
The type definition for the Alcohol Test type Result.
Diagram
Diagram drv15.tmp#id57 drv15.tmp#id58 drv15.tmp#id59
Used by
Model ALL(alchl:TestResultValue alchl:TestGiven alchl:TestKitID)
Children alchl:TestGiven, alchl:TestKitID, alchl:TestResultValue
Source
<xsd:complexType name="AlcoholTestType">
  <xsd:annotation>
    <xsd:documentation xml:lang="en-US">The type definition for the Alcohol Test type Result.</xsd:documentation>
  </xsd:annotation>
  <xsd:all id="AlcoholTest">
    <xsd:annotation>
      <xsd:documentation xml:lang="en-US">All of the following must be provided.</xsd:documentation>
    </xsd:annotation>
    <xsd:element name="TestResultValue" block="#all" form="qualified" id="TestResultValue">
      <xsd:annotation>
        <xsd:documentation xml:lang="en-US">The actual value of the test given. Values greater that 0.94 will not be accepted.</xsd:documentation>
      </xsd:annotation>
      <!--BAC Test Value-->
      <xsd:simpleType>
        <xsd:annotation>
          <xsd:documentation xml:lang="en-US">The type definition for the Alcohol Test Result.</xsd:documentation>
        </xsd:annotation>
        <xsd:restriction base="xsd:decimal">
          <xsd:minInclusive value="0.00"/>
          <xsd:maxInclusive value="0.94"/>
          <xsd:totalDigits value="3"/>
          <xsd:fractionDigits value="2"/>
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:element>
    <xsd:element name="TestGiven" block="#all" form="qualified" id="TestGiven">
      <xsd:annotation>
        <xsd:documentation xml:lang="en-US">The type of BAC test administered to the Person. A Person may have up to three different test administered and recorded.</xsd:documentation>
      </xsd:annotation>
      <xsd:simpleType>
        <xsd:restriction base="xsd:token">
          <xsd:length value="2"/>
          <xsd:pattern value="\d{2}"/>
          <xsd:enumeration value="00" id="NotTestedForAlcohol">
            <xsd:annotation>
              <xsd:documentation>Not Tested For Alcohol</xsd:documentation>
            </xsd:annotation>
            <!--Not Tested For Alcohol-->
          </xsd:enumeration>
          <xsd:enumeration value="01" id="WholeBlood">
            <xsd:annotation>
              <xsd:documentation>Whole Blood</xsd:documentation>
            </xsd:annotation>
            <!--Whole Blood-->
          </xsd:enumeration>
          <xsd:enumeration value="02" id="BreathalyzerBAC">
            <xsd:annotation>
              <xsd:documentation>Breathalyzer "BAC"</xsd:documentation>
            </xsd:annotation>
            <!--Breathalyzer "BAC"-->
          </xsd:enumeration>
          <xsd:enumeration value="10" id="PreliminaryBreathTest">
            <xsd:annotation>
              <xsd:documentation>Preliminary Breath Test (PBY)</xsd:documentation>
            </xsd:annotation>
            <!--Preliminary Breath Test (PBY)-->
          </xsd:enumeration>
          <xsd:enumeration value="03" id="Urine">
            <xsd:annotation>
              <xsd:documentation>Urine</xsd:documentation>
            </xsd:annotation>
            <!--Urine-->
          </xsd:enumeration>
          <xsd:enumeration value="04" id="Vitreous">
            <xsd:annotation>
              <xsd:documentation>Vitreous</xsd:documentation>
            </xsd:annotation>
            <!--Vitreous-->
          </xsd:enumeration>
          <xsd:enumeration value="05" id="BloodPlasmaSerum">
            <xsd:annotation>
              <xsd:documentation>Blood Plasma/Serum</xsd:documentation>
            </xsd:annotation>
            <!--Blood Plasma/Serum-->
          </xsd:enumeration>
          <xsd:enumeration value="06" id="BloodClot">
            <xsd:annotation>
              <xsd:documentation>Blood Clot</xsd:documentation>
            </xsd:annotation>
            <!--Blood Clot-->
          </xsd:enumeration>
          <xsd:enumeration value="07" id="Liver">
            <xsd:annotation>
              <xsd:documentation>Liver</xsd:documentation>
            </xsd:annotation>
            <!--Liver-->
          </xsd:enumeration>
          <xsd:enumeration value="08" id="OtherTestType">
            <xsd:annotation>
              <xsd:documentation>Other Test Type</xsd:documentation>
            </xsd:annotation>
            <!--Other Test Type-->
          </xsd:enumeration>
          <xsd:enumeration value="95" id="TestRefused">
            <xsd:annotation>
              <xsd:documentation>Test Refused</xsd:documentation>
            </xsd:annotation>
            <!--Test Refused-->
          </xsd:enumeration>
          <xsd:enumeration value="96" id="NoneGiven">
            <xsd:annotation>
              <xsd:documentation>None Given</xsd:documentation>
            </xsd:annotation>
            <!--None Given-->
          </xsd:enumeration>
          <xsd:enumeration value="97" id="BACTestPerformedResultsUnknown">
            <xsd:annotation>
              <xsd:documentation>BAC Test Performed, Results Unknown</xsd:documentation>
            </xsd:annotation>
            <!--BAC Test Performed, Results Unknown-->
          </xsd:enumeration>
          <xsd:enumeration value="98" id="PBTPositiveReadingWithNoActualValue">
            <xsd:annotation>
              <xsd:documentation>PBT Positive Reading With No Actual Value</xsd:documentation>
            </xsd:annotation>
            <!--PBT Positive Reading With No Actual Value-->
          </xsd:enumeration>
          <xsd:enumeration value="99" id="UnknownNotReported">
            <xsd:annotation>
              <xsd:documentation>Unknown/Not Reported</xsd:documentation>
            </xsd:annotation>
            <!--Unknown/Not Reported-->
          </xsd:enumeration>
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:element>
    <xsd:element name="TestKitID" block="#all" form="qualified" id="TestKitID">
      <xsd:annotation>
        <xsd:documentation xml:lang="en-US">BAC Test Kit ID Number - Needs further Definition</xsd:documentation>
      </xsd:annotation>
      <xsd:simpleType>
        <xsd:restriction base="xsd:token">
          <xsd:maxLength value="35"/>
          <xsd:minLength value="3"/>
        </xsd:restriction>
      </xsd:simpleType>
      <!--BAC Test Kit ID Number-->
    </xsd:element>
  </xsd:all>
</xsd:complexType>