home *** CD-ROM | disk | FTP | other *** search
/ ftp.americansys.com / 2014.06.ftp.americansys.com.tar / ftp.americansys.com / plott / Practice.exe / 1033 / XSD / 1136 < prev    next >
Text File  |  2013-06-22  |  34KB  |  1,114 lines

  1. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.visionweb.com/vwservices/services/SPOrderService">
  2.  
  3. <xsd:element name="ORDER_MSG" type="ORDERMSGTYPE"/>
  4.  
  5. <xsd:complexType name="ORDERMSGTYPE">
  6.         <xsd:sequence>
  7.             <xsd:element name="HEADER" type="HEADERTYPE" minOccurs="1" maxOccurs="1" />
  8.             <xsd:element name="SP_ORDER" type="SPORDERTYPE" minOccurs="1" maxOccurs="1" />
  9.         </xsd:sequence>
  10. </xsd:complexType>
  11.  
  12. <!--********************************-->
  13. <!--*                 HEADER TYPE                 *-->
  14. <!--********************************-->
  15. <xsd:complexType name="HEADERTYPE">
  16. <xsd:sequence>
  17.     <xsd:element name="DELIVERY" type="DELIVERYTYPE" minOccurs="0" maxOccurs="1" />
  18. </xsd:sequence>
  19.         <xsd:attribute name="SubmitterId" use="required">
  20.             <xsd:simpleType>
  21.                 <xsd:restriction base="xsd:string">
  22.                         <xsd:maxLength value="20" />
  23.                 </xsd:restriction>
  24.             </xsd:simpleType>
  25.         </xsd:attribute>
  26.  
  27.         <xsd:attribute name="OrderType" use="required">
  28.             <xsd:simpleType>
  29.                     <xsd:restriction base="xsd:string">
  30.                         <xsd:enumeration value="SP" />
  31.                         <xsd:enumeration value="FR" />
  32.                         <xsd:enumeration value="SF" />
  33.                         <xsd:enumeration value="CP" />
  34.                         <xsd:enumeration value="CO" />
  35.                     </xsd:restriction>
  36.             </xsd:simpleType>
  37.         </xsd:attribute>
  38.  
  39.         <xsd:attribute name="Login" use="required">
  40.             <xsd:simpleType>
  41.                     <xsd:restriction base="xsd:string">
  42.                         <xsd:minLength value="4" />
  43.                         <xsd:maxLength value="20" />
  44.                     </xsd:restriction>
  45.                 </xsd:simpleType>
  46.      </xsd:attribute>
  47.  
  48.         <xsd:attribute name="Password" use="required">
  49.             <xsd:simpleType>
  50.                     <xsd:restriction base="xsd:string">
  51.                             <xsd:minLength value="4" />
  52.                             <xsd:maxLength value="36" />
  53.                     </xsd:restriction>
  54.             </xsd:simpleType>
  55.      </xsd:attribute>
  56.  
  57.         <xsd:attribute name="SubmitterOrderId" use="required">
  58.             <xsd:simpleType>
  59.                     <xsd:restriction base="xsd:string">
  60.                             <xsd:maxLength value="40" />
  61.                     </xsd:restriction>
  62.             </xsd:simpleType>
  63.      </xsd:attribute>
  64.  
  65.      <xsd:attribute name="VersionNum" use="required">
  66.             <xsd:simpleType>
  67.                     <xsd:restriction base="xsd:string">
  68.                             <xsd:minLength value="3" />
  69.                             <xsd:maxLength value="4" />
  70.                     </xsd:restriction>
  71.             </xsd:simpleType>
  72.      </xsd:attribute>
  73.  
  74.      <xsd:attribute name="SupplierId" use="required">
  75.             <xsd:simpleType>
  76.                     <xsd:restriction base="xsd:string">
  77.                             <xsd:minLength value="4" />
  78.                             <xsd:maxLength value="4" />
  79.                     </xsd:restriction>
  80.             </xsd:simpleType>
  81.      </xsd:attribute>
  82.  
  83.      <xsd:attribute name="SubmitterGuid" use="required">
  84.             <xsd:simpleType>
  85.                     <xsd:restriction base="xsd:string">
  86.                             <xsd:maxLength value="40" />
  87.                     </xsd:restriction>
  88.             </xsd:simpleType>
  89.      </xsd:attribute>
  90.  
  91.     <xsd:attribute name="SubmittedDate"  use="required">
  92.             <xsd:simpleType>
  93.                     <xsd:restriction base="xsd:dateTime">
  94.                 </xsd:restriction>
  95.             </xsd:simpleType>
  96.  </xsd:attribute>
  97.  
  98. </xsd:complexType>
  99.  
  100.     <!--********************************-->
  101.   <!--*                 DELIVERY TYPE           *-->
  102.   <!--********************************-->
  103.   <xsd:complexType name="DELIVERYTYPE">
  104.     <xsd:sequence>
  105.       <xsd:element name="DELIVERY_METHOD" type="DELIVERYMETHODTYPE" minOccurs="0" maxOccurs="1" />
  106.       <xsd:element name="ADDRESS" type="ADDRESSTYPE" minOccurs="0" maxOccurs="1" />
  107.     </xsd:sequence>
  108.     <xsd:attribute name="DeliveryTo">
  109.       <xsd:simpleType>
  110.         <xsd:restriction base="xsd:string">
  111.           <xsd:enumeration value="Default" />
  112.           <xsd:enumeration value="Patient" />
  113.           <xsd:enumeration value="Office" />
  114.           <xsd:enumeration value="Alternate" />
  115.           <xsd:enumeration value="Bureau" />
  116.         </xsd:restriction>
  117.       </xsd:simpleType>
  118.     </xsd:attribute>
  119.     <xsd:attribute name="AttentionTo">
  120.       <xsd:simpleType>
  121.         <xsd:restriction base="xsd:string">
  122.           <xsd:maxLength value="30" />
  123.         </xsd:restriction>
  124.       </xsd:simpleType>
  125.     </xsd:attribute>
  126.     <xsd:attribute name="RequestedDate">
  127.       <xsd:simpleType>
  128.         <xsd:restriction base="xsd:dateTime">
  129.         </xsd:restriction>
  130.       </xsd:simpleType>
  131.     </xsd:attribute>
  132.     <xsd:attribute name="PurchaseOrder">
  133.       <xsd:simpleType>
  134.         <xsd:restriction base="xsd:string">
  135.           <xsd:maxLength value="30" />
  136.         </xsd:restriction>
  137.       </xsd:simpleType>
  138.     </xsd:attribute>
  139.     <xsd:attribute name="Employee">
  140.       <xsd:simpleType>
  141.         <xsd:restriction base="xsd:string">
  142.           <xsd:maxLength value="30" />
  143.         </xsd:restriction>
  144.       </xsd:simpleType>
  145.     </xsd:attribute>
  146.     <xsd:attribute name="Department">
  147.       <xsd:simpleType>
  148.         <xsd:restriction base="xsd:string">
  149.           <xsd:maxLength value="30" />
  150.         </xsd:restriction>
  151.       </xsd:simpleType>
  152.     </xsd:attribute>
  153.     <xsd:attribute name="Requisition">
  154.       <xsd:simpleType>
  155.         <xsd:restriction base="xsd:string">
  156.           <xsd:maxLength value="15" />
  157.         </xsd:restriction>
  158.       </xsd:simpleType>
  159.     </xsd:attribute>
  160.   </xsd:complexType>
  161.  
  162.   <!--********************************-->
  163.   <!--*          DELIVERY METHOD TYPE       *-->
  164.   <!--********************************-->
  165.   <xsd:complexType name="DELIVERYMETHODTYPE">
  166.     <xsd:attribute name="Id" use="required">
  167.       <xsd:simpleType>
  168.         <xsd:restriction base="xsd:string">
  169.           <xsd:maxLength value="12" />
  170.         </xsd:restriction>
  171.       </xsd:simpleType>
  172.     </xsd:attribute>
  173.     <xsd:attribute name="Name" use="required">
  174.       <xsd:simpleType>
  175.         <xsd:restriction base="xsd:string">
  176.           <xsd:maxLength value="50" />
  177.         </xsd:restriction>
  178.       </xsd:simpleType>
  179.     </xsd:attribute>
  180.     <xsd:attribute name="Price" use="required">
  181.       <xsd:simpleType>
  182.         <xsd:restriction base="xsd:string">
  183.           <xsd:pattern value="([0-9]*\.[0-9]{2})" />
  184.         </xsd:restriction>
  185.       </xsd:simpleType>
  186.     </xsd:attribute>
  187.     <xsd:attribute name="Convert">
  188.       <xsd:simpleType>
  189.         <xsd:restriction base="xsd:string">
  190.           <xsd:maxLength value="20" />
  191.         </xsd:restriction>
  192.       </xsd:simpleType>
  193.     </xsd:attribute>
  194.   </xsd:complexType>
  195.  
  196.  
  197. <!--*******************************-->
  198. <!--*  SP ORDER     TYPE                         *-->
  199. <!--*******************************-->
  200.  
  201. <xsd:complexType name="SPORDERTYPE">
  202.         <xsd:sequence>
  203.             <xsd:element name="REDO_INFORMATION" type="REDOINFORMATIONTYPE" minOccurs="0" maxOccurs="1" />
  204.             <xsd:element name="ACCOUNT" type="ACCOUNTTYPE" minOccurs="1" maxOccurs="1" />
  205.             <xsd:element name="RX_DETAILS" type="RXDETAILSTYPE" minOccurs="1" maxOccurs="1" />
  206.         </xsd:sequence>
  207.  
  208.         <xsd:attribute name="CreationDate"   use="required">
  209.             <xsd:simpleType>
  210.                 <xsd:restriction base="xsd:dateTime">
  211.                         </xsd:restriction>
  212.                 </xsd:simpleType>
  213.              </xsd:attribute>
  214.  
  215.         <xsd:attribute name="PoNum">
  216.             <xsd:simpleType>
  217.                 <xsd:restriction base="xsd:string">
  218.                         <xsd:maxLength value="15" />
  219.                 </xsd:restriction>
  220.             </xsd:simpleType>
  221.         </xsd:attribute>
  222.  
  223.         <xsd:attribute name="Type"  use="optional">
  224.             <xsd:simpleType>
  225.                 <xsd:restriction base="xsd:string">
  226.                         <xsd:enumeration value="Redo" />
  227.                         <xsd:enumeration value="Resubmit" />
  228.                         <xsd:enumeration value="New" />
  229.                 </xsd:restriction>
  230.             </xsd:simpleType>
  231.         </xsd:attribute>
  232.  
  233.         <xsd:attribute name="Status"  use="optional">
  234.             <xsd:simpleType>
  235.                 <xsd:restriction base="xsd:string">
  236.                     <xsd:enumeration value="Pending" />
  237.                 </xsd:restriction>
  238.             </xsd:simpleType>
  239.     </xsd:attribute>
  240. </xsd:complexType>
  241.  
  242. <!--********************************-->
  243. <!--*  REDO_INFORMATION TYPE           *-->
  244. <!--********************************-->
  245.  
  246. <xsd:complexType name="REDOINFORMATIONTYPE">
  247.         <xsd:attribute name="OriginalOrderNumber" use="required">
  248.             <xsd:simpleType>
  249.                 <xsd:restriction base="xsd:string">
  250.                     <xsd:minLength value="1" />
  251.                     <xsd:maxLength value="8" />
  252.                 </xsd:restriction>
  253.             </xsd:simpleType>
  254.         </xsd:attribute>
  255.  
  256.         <xsd:attribute name="SupplierInvoiceNumber" use="required">
  257.             <xsd:simpleType>
  258.                 <xsd:restriction base="xsd:string">
  259.                     <xsd:minLength value="1" />
  260.                     <xsd:maxLength value="20" />
  261.                 </xsd:restriction>
  262.             </xsd:simpleType>
  263.         </xsd:attribute>
  264.  
  265.         <xsd:attribute name="Eye"  use="required">
  266.             <xsd:simpleType>
  267.                 <xsd:restriction base="xsd:string">
  268.                         <xsd:enumeration value="R" />
  269.                         <xsd:enumeration value="L" />
  270.                         <xsd:enumeration value="B" />
  271.                 </xsd:restriction>
  272.             </xsd:simpleType>
  273.         </xsd:attribute>
  274.  
  275.         <xsd:attribute name="LmsCode" use="required">
  276.                 <xsd:simpleType>
  277.                         <xsd:restriction base="xsd:string">
  278.                             <xsd:maxLength value="60" />
  279.                     </xsd:restriction>
  280.                 </xsd:simpleType>
  281.         </xsd:attribute>
  282.  
  283.         <xsd:attribute name="VwCode" use="required">
  284.                 <xsd:simpleType>
  285.                         <xsd:restriction base="xsd:string">
  286.                             <xsd:maxLength value="18" />
  287.                     </xsd:restriction>
  288.                 </xsd:simpleType>
  289.         </xsd:attribute>
  290. </xsd:complexType>
  291.  
  292. <!--*******************************-->
  293. <!--*  ACCOUNT TYPE                               *-->
  294. <!--*******************************-->
  295.  
  296. <xsd:complexType name="ACCOUNTTYPE">
  297.         <xsd:attribute name="CbsId"   use="required">
  298.             <xsd:simpleType>
  299.                     <xsd:restriction base="xsd:long"></xsd:restriction>
  300.             </xsd:simpleType>
  301.         </xsd:attribute>
  302.   <xsd:attribute name="DropShipAccountId"   use="optional">
  303.     <xsd:simpleType>
  304.       <xsd:restriction base="xsd:string">
  305.         <xsd:maxLength value="16" />
  306.       </xsd:restriction>
  307.     </xsd:simpleType>
  308.   </xsd:attribute>
  309. </xsd:complexType>
  310.  
  311. <!--*******************************-->
  312. <!--*  RX DETAIL TYPE                           *-->
  313. <!--*******************************-->
  314. <xsd:complexType name="RXDETAILSTYPE">
  315.         <xsd:sequence>
  316.             <xsd:element name="PATIENT" type="PATIENTTYPE" minOccurs="0" maxOccurs="1" />
  317.             <xsd:element name="JOB" type="JOBTYPE" minOccurs="1" maxOccurs="1" />
  318.             <xsd:element name="FRAME" type="FRAMETYPE" minOccurs="0" maxOccurs="1" />
  319.             <xsd:element name="POSITION" type="POSITIONTYPE" minOccurs="1" maxOccurs="unbounded" />
  320.             <xsd:element name="OTHER" type="OTHERTYPE" minOccurs="0" maxOccurs="1" />
  321.         </xsd:sequence>
  322.  
  323. </xsd:complexType>
  324.  
  325. <!--********************************-->
  326. <!--*                 PATIENT TYPE               *-->
  327. <!--********************************-->
  328. <xsd:complexType name="PATIENTTYPE">
  329.     <xsd:sequence>
  330.                 <xsd:element name="PERSONALIZED_DATA" type="PERSONALIZEDDATATYPE" minOccurs="0" maxOccurs="1" />
  331.                 <xsd:element name="ADDRESS" type="ADDRESSTYPE" minOccurs="0" maxOccurs="1" />
  332.     </xsd:sequence>
  333.     <xsd:attribute name="LastName"  use="required">
  334.         <xsd:simpleType>
  335.                 <xsd:restriction base="xsd:string">
  336.                     <xsd:maxLength value="30" />
  337.                     <xsd:minLength value="1" />
  338.             </xsd:restriction>
  339.         </xsd:simpleType>
  340.     </xsd:attribute>
  341.  
  342.     <xsd:attribute name="FirstName" use="optional">
  343.         <xsd:simpleType>
  344.                 <xsd:restriction base="xsd:string">
  345.                     <xsd:maxLength value="30" />
  346.             </xsd:restriction>
  347.         </xsd:simpleType>
  348.     </xsd:attribute>
  349.  
  350. </xsd:complexType>
  351.  
  352. <!--********************************-->
  353. <!--*     PERSONALIZED_DATA TYPE           *-->
  354. <!--********************************-->
  355. <xsd:complexType name="PERSONALIZEDDATATYPE">
  356.          <xsd:attribute name="Patient_initials"  use="required">
  357.            <xsd:simpleType>
  358.               <xsd:restriction base="xsd:string">
  359.                       <xsd:minLength value="1" />
  360.                 <xsd:maxLength value="4" />
  361.               </xsd:restriction>
  362.            </xsd:simpleType>
  363.          </xsd:attribute>
  364.  
  365.          <xsd:attribute name="HE_coeff"  use="optional">
  366.             <xsd:simpleType>            
  367.               <xsd:restriction base="xsd:float">
  368.               <xsd:minInclusive value="0.01"/>
  369.               <xsd:maxInclusive value="0.99"/>
  370.             </xsd:restriction>
  371.                  </xsd:simpleType>
  372.          </xsd:attribute>
  373.  
  374.          <xsd:attribute name="ST_coeff"  use="optional">
  375.             <xsd:simpleType>            
  376.              <xsd:restriction base="xsd:float">
  377.                 <xsd:minInclusive value="0.01"/>
  378.                   <xsd:maxInclusive value="0.99"/>
  379.               </xsd:restriction>
  380.             </xsd:simpleType>
  381.          </xsd:attribute>
  382.  
  383.          <xsd:attribute name="Progression_Length" use="optional">
  384.             <xsd:simpleType>
  385.                 <xsd:restriction base="xsd:integer">
  386.                         <xsd:enumeration value="14" />
  387.                         <xsd:enumeration value="16" />
  388.                         <xsd:enumeration value="18" />
  389.                 </xsd:restriction>
  390.             </xsd:simpleType>
  391.       </xsd:attribute>
  392.  
  393. </xsd:complexType>
  394.  
  395.  
  396. <!--*********************************-->
  397. <!--*                 JOB TYPE                            *-->
  398. <!--*********************************-->
  399. <xsd:complexType name="JOBTYPE">
  400.         <xsd:attribute name="Type"  use="required">
  401.             <xsd:simpleType>
  402.                 <xsd:restriction base="xsd:string">
  403.                         <xsd:enumeration value="FTC" />
  404.                         <xsd:enumeration value="UNC" />
  405.                         <xsd:enumeration value="FUN" />
  406.                         <xsd:enumeration value="RED" />
  407.                         <xsd:enumeration value="PAC" />
  408.                         <xsd:enumeration value="SPA" />
  409.                         <xsd:enumeration value="TBP" />
  410.                 </xsd:restriction>
  411.             </xsd:simpleType>
  412.         </xsd:attribute>
  413.  
  414.         <xsd:attribute name="SpecialInstructions" use="optional">
  415.             <xsd:simpleType>
  416.                     <xsd:restriction base="xsd:string">
  417.                         <xsd:maxLength value="255" />
  418.                 </xsd:restriction>
  419.             </xsd:simpleType>
  420.         </xsd:attribute>
  421.  
  422. </xsd:complexType>
  423.  
  424.  
  425. <!--*****************************-->
  426. <!--*             FRAME TYPE                    *-->
  427. <!--*****************************-->
  428. <xsd:complexType name="FRAMETYPE">
  429.     <xsd:sequence>
  430.         <xsd:element name="FRAME_SUPPLIER" type="FRAMESUPPLIERTYPE" minOccurs="0" maxOccurs="1" />
  431.         <xsd:element name="PACKAGE" type="PACKAGETYPE" minOccurs="0" maxOccurs="1" />
  432.     </xsd:sequence>
  433.  
  434. <xsd:attribute name="Number" use="required">
  435.     <xsd:simpleType>
  436.             <xsd:restriction base="xsd:string">
  437.                     <xsd:minLength value="1" />
  438.                     <xsd:maxLength value="2" />                    
  439.             </xsd:restriction>
  440.     </xsd:simpleType>
  441. </xsd:attribute>
  442.  
  443. <xsd:attribute name="Brand" use="optional">
  444.         <xsd:simpleType>
  445.                 <xsd:restriction base="xsd:string">
  446.                     <xsd:maxLength value="20" />
  447.             </xsd:restriction>
  448.         </xsd:simpleType>
  449. </xsd:attribute>
  450.  
  451. <xsd:attribute name="Model" use="optional">
  452.         <xsd:simpleType>
  453.                 <xsd:restriction base="xsd:string">
  454.                     <xsd:maxLength value="50" />
  455.             </xsd:restriction>
  456.         </xsd:simpleType>
  457. </xsd:attribute>
  458.  
  459. <xsd:attribute name="Color" use="optional">
  460.         <xsd:simpleType>
  461.                 <xsd:restriction base="xsd:string">
  462.                     <xsd:maxLength value="50" />
  463.             </xsd:restriction>
  464.         </xsd:simpleType>
  465. </xsd:attribute>
  466.  
  467. <xsd:attribute name="EyeSize" use="optional">
  468.     <xsd:simpleType>
  469.             <xsd:restriction base="xsd:integer" />
  470.     </xsd:simpleType>
  471. </xsd:attribute>
  472.  
  473. <xsd:attribute name="SKU" use="optional">
  474.         <xsd:simpleType>
  475.                 <xsd:restriction base="xsd:string">
  476.                     <xsd:maxLength value="15" />
  477.             </xsd:restriction>
  478.         </xsd:simpleType>
  479. </xsd:attribute>
  480.  
  481. <xsd:attribute name="TempleTypeName" use="optional">
  482.     <xsd:simpleType>
  483.         <xsd:restriction base="xsd:string" />
  484.     </xsd:simpleType>
  485. </xsd:attribute>
  486.  
  487. <xsd:attribute name="TempleType" use="optional">
  488.         <xsd:simpleType>
  489.                 <xsd:restriction base="xsd:string">
  490.                     <xsd:maxLength value="10" />
  491.             </xsd:restriction>
  492.         </xsd:simpleType>
  493. </xsd:attribute>
  494.  
  495. <xsd:attribute name="TempleLength" use="optional">
  496.     <xsd:simpleType>
  497.         <xsd:restriction base="xsd:integer" />
  498.     </xsd:simpleType>
  499. </xsd:attribute>
  500.  
  501. <xsd:attribute name="LmsCode" use="optional">
  502.         <xsd:simpleType>
  503.                 <xsd:restriction base="xsd:string">
  504.                     <xsd:maxLength value="60" />
  505.             </xsd:restriction>
  506.         </xsd:simpleType>
  507. </xsd:attribute>
  508.  
  509. <xsd:attribute name="VwCode" use="required">
  510.         <xsd:simpleType>
  511.                 <xsd:restriction base="xsd:string">
  512.                     <xsd:maxLength value="18" />
  513.             </xsd:restriction>
  514.         </xsd:simpleType>
  515. </xsd:attribute>
  516. </xsd:complexType>
  517.  
  518.  
  519. <!--********************************-->
  520. <!--*     FRAME SUPPLIER TYPE               *-->
  521. <!--********************************-->
  522. <xsd:complexType name="FRAMESUPPLIERTYPE">
  523.  
  524.         <xsd:attribute name="Name"  use="required">
  525.            <xsd:simpleType>
  526.               <xsd:restriction base="xsd:string">
  527.                 <xsd:length value="10" />
  528.               </xsd:restriction>
  529.            </xsd:simpleType>
  530.          </xsd:attribute>
  531.  
  532.          <xsd:attribute name="Code"  use="required">
  533.                  <xsd:simpleType>
  534.                    <xsd:restriction base="xsd:string">
  535.                          <xsd:length value="30" />
  536.                    </xsd:restriction>
  537.                  </xsd:simpleType>
  538.          </xsd:attribute>
  539.  
  540. </xsd:complexType>
  541.  
  542.  
  543. <!--********************************-->
  544. <!--*     PACKAGE TYPE                            *-->
  545. <!--********************************-->
  546. <xsd:complexType name="PACKAGETYPE">
  547.  
  548.         <xsd:attribute name="Name"  use="required">
  549.            <xsd:simpleType>
  550.               <xsd:restriction base="xsd:string">
  551.                 <xsd:length value="50" />
  552.               </xsd:restriction>
  553.            </xsd:simpleType>
  554.          </xsd:attribute>
  555.  
  556.          <xsd:attribute name="Code"  use="required">
  557.                  <xsd:simpleType>
  558.                    <xsd:restriction base="xsd:string">
  559.                          <xsd:maxLength value="15" />
  560.                    </xsd:restriction>
  561.                  </xsd:simpleType>
  562.          </xsd:attribute>
  563.  
  564.          <xsd:attribute name="Safety">
  565.              <xsd:simpleType>
  566.                     <xsd:restriction base="xsd:string">
  567.                         <xsd:enumeration value="0" />
  568.                         <xsd:enumeration value="1" />
  569.                     </xsd:restriction>
  570.              </xsd:simpleType>
  571.          </xsd:attribute>
  572.  
  573. </xsd:complexType>
  574.  
  575.  
  576.  
  577. <!--*****************************-->
  578. <!--*     POSITION TYPE                        *-->
  579. <!--    ***************************-->
  580. <xsd:complexType name="POSITIONTYPE">
  581.         <xsd:sequence>
  582.             <xsd:element name="PRESCRIPTION" type="PRESCRIPTIONTYPE" minOccurs="1" maxOccurs="1" />
  583.             <xsd:element name="BASECURVE" type="BASECURVETYPE" minOccurs="0" maxOccurs="1" />
  584.             <xsd:element name="EQUITHIN" type="EQUITHINTYPE" minOccurs="0" maxOccurs="1" />
  585.             <xsd:element name="CRIBBING" type="CRIBBINGTYPE" minOccurs="0" maxOccurs="1" />
  586.             <xsd:element name="LENS" type="LENSTYPE" minOccurs="1" maxOccurs="1" />
  587.             <xsd:element name="SHAPE" type="SHAPETYPE" minOccurs="1" maxOccurs="1" />
  588.         </xsd:sequence>
  589.  
  590.         <xsd:attribute name="Eye"   use="required">
  591.              <xsd:simpleType>
  592.                     <xsd:restriction base="xsd:string">
  593.                         <xsd:enumeration value="R" />
  594.                         <xsd:enumeration value="L" />
  595.                     </xsd:restriction>
  596.              </xsd:simpleType>
  597.          </xsd:attribute>
  598.  
  599.          <xsd:attribute name="FarHalfPd" use="required">
  600.                  <xsd:simpleType>
  601.                      <xsd:restriction base="xsd:string" />
  602.                 </xsd:simpleType>
  603.           </xsd:attribute>
  604.  
  605.          <xsd:attribute name="NearHalfPd">
  606.              <xsd:simpleType>
  607.                     <xsd:restriction base="xsd:string" />
  608.             </xsd:simpleType>
  609.          </xsd:attribute>
  610.  
  611.           <xsd:attribute name="SegHeight">
  612.                 <xsd:simpleType>
  613.                         <xsd:restriction base="xsd:string" />
  614.                 </xsd:simpleType>
  615.          </xsd:attribute>
  616.  
  617.          <xsd:attribute name="OpticalCenter" use="optional">
  618.                     <xsd:simpleType>
  619.                             <xsd:restriction base="xsd:string" />
  620.                     </xsd:simpleType>
  621.          </xsd:attribute>
  622.  
  623. </xsd:complexType>
  624.  
  625.  
  626. <!--******************************-->
  627. <!--*     PRESCRIPTION TYPE               *-->
  628. <!--******************************-->
  629. <xsd:complexType name="PRESCRIPTIONTYPE">
  630.         <xsd:sequence>
  631.             <xsd:element name="CYLINDER" type="CYLINDERTYPE" minOccurs="0" maxOccurs="1" />
  632.             <xsd:element name="ADDITION" type="ADDITIONTYPE" minOccurs="0" maxOccurs="1" />
  633.             <xsd:element name="PRISM" type="PRISMTYPE" minOccurs="0" maxOccurs="unbounded" />
  634.         </xsd:sequence>
  635.  
  636.         <xsd:attribute name="Sphere" use="required"> <!-- Sphere power in dioptries / -99.75 to +99.75 by 0.25 dioptry step -->
  637.             <xsd:simpleType>
  638.                 <xsd:restriction base="xsd:float">
  639.                         <xsd:minInclusive value="-99.75"/>
  640.                         <xsd:maxInclusive value="99.75"/>
  641.                 </xsd:restriction>
  642.         </xsd:simpleType>
  643.      </xsd:attribute>
  644.  
  645. </xsd:complexType>
  646.  
  647. <!--*****************************-->
  648. <!--*     BASECURVE TYPE                       *-->
  649. <!--*****************************-->
  650. <xsd:complexType name="BASECURVETYPE">
  651.         <xsd:attribute name="Value" use="optional">
  652.             <xsd:simpleType>
  653.                 <xsd:restriction base="xsd:float">
  654.                     <xsd:minInclusive value='0.0'/>
  655.                     <xsd:maxInclusive value='40.0'/> <!-- Min value: greater than 0; Max value: less than or equal to 20 -->
  656.                 </xsd:restriction>
  657.         </xsd:simpleType>
  658.      </xsd:attribute>
  659.  
  660. </xsd:complexType>
  661.  
  662.  
  663. <!--***************************-->
  664. <!--*     EQUITHIN TYPE                   *-->
  665. <!--***************************-->
  666. <xsd:complexType name="EQUITHINTYPE">
  667.         <xsd:attribute name="Value" use="required">
  668.             <xsd:simpleType>
  669.                 <xsd:restriction base="xsd:float">
  670.                     <xsd:minExclusive value='0.00'/>
  671.                     <xsd:maxInclusive value='10.0'/> <!-- Min value: greater than 0; Max value: less than or equal to 10 -->
  672.                 </xsd:restriction>
  673.         </xsd:simpleType>
  674.      </xsd:attribute>
  675.  
  676. </xsd:complexType>
  677.  
  678.  
  679. <!--***************************-->
  680. <!--*     CRIBBING TYPE                   *-->
  681. <!--***************************-->
  682. <xsd:complexType name="CRIBBINGTYPE">
  683.         <xsd:attribute name="Value" use="required">
  684.             <xsd:simpleType>
  685.                 <xsd:restriction base="xsd:string">
  686.                     <xsd:enumeration value="Yes" />
  687.                     <xsd:enumeration value="No" />
  688.                 </xsd:restriction>
  689.         </xsd:simpleType>
  690.      </xsd:attribute>
  691.  
  692. </xsd:complexType>
  693.  
  694. <!--*********************************-->
  695. <!--*                 CYLINDER TYPE           *-->
  696. <!--*********************************-->
  697. <xsd:complexType name="CYLINDERTYPE">
  698.  
  699.         <xsd:attribute name="Value" use="required"> <!-- Cylinder power in dioptries / -99.75 to +99.75 by 0.25 dioptry step -->
  700.             <xsd:simpleType>
  701.                 <xsd:restriction base="xsd:float">
  702.                         <xsd:minInclusive value="-99.75"/>
  703.                         <xsd:maxInclusive value="99.75"/>
  704.                 </xsd:restriction>
  705.             </xsd:simpleType>
  706.      </xsd:attribute>
  707.  
  708.         <xsd:attribute name="Axis" use="required"> <!-- Orientation of the sphere power within the TABO method / 0 to 180 by 1 degre radius step -->
  709.             <xsd:simpleType>
  710.                 <xsd:restriction base="xsd:integer">
  711.                             <xsd:minInclusive value="0"/>
  712.                             <xsd:maxInclusive value="180"/>
  713.                 </xsd:restriction>
  714.             </xsd:simpleType>
  715.      </xsd:attribute>
  716.  
  717. </xsd:complexType>
  718.  
  719. <!--********************************-->
  720. <!--*                 ADDITION TYPE           *-->
  721. <!--********************************-->
  722. <xsd:complexType name="ADDITIONTYPE">
  723.  
  724.         <xsd:attribute name="Value" use="required"> <!-- Addition power in dioptries / +0.00 to +99.75 by 0.25 dioptry step -->
  725.             <xsd:simpleType>
  726.                 <xsd:restriction base="xsd:float">
  727.                     <xsd:minInclusive value="0"/>
  728.                     <xsd:maxInclusive value="99.75"/>
  729.                 </xsd:restriction>
  730.              </xsd:simpleType>
  731.      </xsd:attribute>
  732.  
  733. </xsd:complexType>
  734.  
  735. <!--******************************-->
  736. <!--*                 PRISM TYPE               *-->
  737. <!--******************************-->
  738. <xsd:complexType name="PRISMTYPE">
  739.  
  740.         <xsd:attribute name="Value" use="required"> <!-- Decentration1 value in mm / +0.00 to +99.75 by 0.1 mm step -->
  741.             <xsd:simpleType>
  742.                 <xsd:restriction base="xsd:float">
  743.                     <xsd:minInclusive value="0"/>
  744.                     <xsd:maxInclusive value="99.75"/>
  745.                 </xsd:restriction>
  746.              </xsd:simpleType>
  747.      </xsd:attribute>
  748.  
  749.         <xsd:attribute name="Axis" use="required"> <!-- Orientation of the sphere power within the TABO method / 0 to 359 by 1 degre radius step -->
  750.             <xsd:simpleType>
  751.                 <xsd:restriction base="xsd:integer">
  752.                         <xsd:minInclusive value="0"/>
  753.                         <xsd:maxInclusive value="359"/>
  754.                 </xsd:restriction>
  755.             </xsd:simpleType>
  756.      </xsd:attribute>
  757.  
  758.         <xsd:attribute name="AxisStr"> <!-- String value of the Axis: Angle value or IN/OUT/UP/DOWN -->
  759.             <xsd:simpleType>
  760.                 <xsd:restriction base="xsd:string" />
  761.             </xsd:simpleType>
  762.      </xsd:attribute>
  763.  
  764. </xsd:complexType>
  765.  
  766. <!--*******************************-->
  767. <!--    * LENS TYPE                                 *-->
  768. <!--    *****************************-->
  769. <xsd:complexType name="LENSTYPE">
  770.         <xsd:sequence>
  771.             <xsd:element name="DIAMETER" type="DIAMETERTYPE" minOccurs="0" maxOccurs="1" />
  772.             <xsd:element name="DESIGN" type="DESIGNTYPE" minOccurs="1" maxOccurs="1" />
  773.             <xsd:element name="MATERIAL" type="MATERIALTYPE" minOccurs="1" maxOccurs="1" />
  774.             <xsd:element name="SEGMENT" type="SEGMENTTYPE" minOccurs="0" maxOccurs="1" />
  775.             <xsd:element name="TREATMENTS" type="TREATMENTSTYPE" minOccurs="0" maxOccurs="1" />
  776.             <xsd:element name="THICKNESS" type="THICKNESSTYPE" minOccurs="0" maxOccurs="unbounded" />
  777.         </xsd:sequence>
  778.  
  779.     <xsd:attribute name="Name">
  780.         <xsd:simpleType>
  781.                 <xsd:restriction base="xsd:string">
  782.                     <xsd:maxLength value="80" />
  783.             </xsd:restriction>
  784.         </xsd:simpleType>
  785.     </xsd:attribute>
  786.  
  787. </xsd:complexType>
  788.  
  789. <!--*****************************-->
  790. <!--    *  DIAMETER TYPE                     *-->
  791. <!--*****************************-->
  792. <xsd:complexType name="DIAMETERTYPE">
  793.  
  794.     <xsd:attribute name="Commercial" use="required">
  795.         <xsd:simpleType>
  796.                 <xsd:restriction base="xsd:string">
  797.                     <xsd:maxLength value="20" />
  798.             </xsd:restriction>
  799.         </xsd:simpleType>
  800.     </xsd:attribute>
  801.  
  802.         <xsd:attribute name="Physical" use="required">
  803.             <xsd:simpleType>
  804.                 <xsd:restriction base="xsd:float" />
  805.             </xsd:simpleType>
  806.      </xsd:attribute>
  807.  
  808. </xsd:complexType>
  809.  
  810. <!--*****************************-->
  811. <!--    * DESIGN TYPE                         *-->
  812. <!--*****************************-->
  813. <xsd:complexType name="DESIGNTYPE">
  814.     <xsd:attribute name="LmsCode" use="optional">
  815.         <xsd:simpleType>
  816.                 <xsd:restriction base="xsd:string">
  817.                     <xsd:maxLength value="60" />
  818.             </xsd:restriction>
  819.         </xsd:simpleType>
  820.      </xsd:attribute>
  821.  
  822.      <xsd:attribute name="VwCode" use="required">
  823.              <xsd:simpleType>
  824.                      <xsd:restriction base="xsd:string">
  825.                         <xsd:maxLength value="18" />
  826.                     </xsd:restriction>
  827.              </xsd:simpleType>
  828.      </xsd:attribute>
  829.  
  830. </xsd:complexType>
  831.  
  832. <!--*******************************-->
  833. <!--*  MATERIAL TYPE                             *-->
  834. <!--*******************************-->
  835. <xsd:complexType name="MATERIALTYPE">
  836.     <xsd:attribute name="LmsCode" use="optional">
  837.             <xsd:simpleType>
  838.                 <xsd:restriction base="xsd:string">
  839.                     <xsd:maxLength value="60" />
  840.                 </xsd:restriction>
  841.             </xsd:simpleType>
  842.     </xsd:attribute>
  843.  
  844.     <xsd:attribute name="VwCode" use="required" >
  845.         <xsd:simpleType>
  846.             <xsd:restriction base="xsd:string">
  847.                 <xsd:maxLength value="18" />
  848.             </xsd:restriction>
  849.         </xsd:simpleType>
  850.     </xsd:attribute>
  851. </xsd:complexType>
  852.  
  853. <!--*********************************-->
  854. <!--*                 SEGMENT TYPE           *-->
  855. <!--*********************************-->
  856. <xsd:complexType name="SEGMENTTYPE">
  857.  
  858.     <xsd:attribute name="X" type="xsd:integer" use="required"/>
  859.  
  860.     <xsd:attribute name="Y" type="xsd:integer" use="required"/>
  861.  
  862. </xsd:complexType>
  863.  
  864. <!--*********************************-->
  865. <!--*                 TREATMENTS TYPE           *-->
  866. <!--*********************************-->
  867. <xsd:complexType name="TREATMENTSTYPE">
  868.  
  869.     <xsd:sequence>
  870.         <xsd:element name="TREATMENT" type="TREATMENTTYPE" minOccurs="0" maxOccurs="unbounded" />
  871.     </xsd:sequence>
  872.  
  873.     <xsd:attribute name="Comment" type="xsd:string"/>
  874.  
  875. </xsd:complexType>
  876.  
  877.  
  878. <!--*********************************-->
  879.     <!-- *TREATMENT TYPE *-->
  880.     <!--********************************-->
  881. <xsd:complexType name="TREATMENTTYPE">
  882.     <xsd:attribute name="LmsCode" use="optional">
  883.             <xsd:simpleType>
  884.                 <xsd:restriction base="xsd:string">
  885.                     <xsd:maxLength value="60" />
  886.                 </xsd:restriction>
  887.             </xsd:simpleType>
  888.     </xsd:attribute>
  889.  
  890.     <xsd:attribute name="VwCode" use="required" >
  891.             <xsd:simpleType>
  892.                 <xsd:restriction base="xsd:string">
  893.                     <xsd:maxLength value="18" />
  894.                 </xsd:restriction>
  895.             </xsd:simpleType>
  896.     </xsd:attribute>
  897.  
  898.     <xsd:attribute name="Value" use="optional" >
  899.                 <xsd:simpleType>
  900.                     <xsd:restriction base="xsd:float">
  901.                         <xsd:minExclusive value='0.01'/>
  902.                         <xsd:maxInclusive value='9.99'/> <!-- Need to decide the value limits -->
  903.                     </xsd:restriction>
  904.                 </xsd:simpleType>
  905.     </xsd:attribute>
  906.  
  907. </xsd:complexType>
  908.  
  909. <!--*********************************-->
  910. <!--*                 THICKNESS TYPE           *-->
  911. <!--*********************************-->
  912. <xsd:complexType name="THICKNESSTYPE">
  913. <xsd:attribute name="Value" use="required">
  914.             <xsd:simpleType>
  915.                 <xsd:restriction base="xsd:float">
  916.                       <xsd:minInclusive value="0.1"/>
  917.                       <xsd:maxInclusive value="9.9"/>
  918.                 </xsd:restriction>
  919.             </xsd:simpleType>
  920.     </xsd:attribute>
  921.     <xsd:attribute name="Type" use="required"> <!-- DRS: Dress (defaul without selection), CTR:Center ,DRL:Drilling point thickness, SFY: Safety -->
  922.         <xsd:simpleType>
  923.                 <xsd:restriction base="xsd:string">
  924.                         <xsd:enumeration value="DRS" />
  925.                         <xsd:enumeration value="CTR" />
  926.                         <xsd:enumeration value="DRL" />
  927.                         <xsd:enumeration value="SFY" />
  928.                 </xsd:restriction >
  929.         </xsd:simpleType>
  930.     </xsd:attribute>
  931.  
  932. </xsd:complexType>
  933.  
  934. <!--*********************************-->
  935. <!--*                 SHAPE TYPE       *-->
  936. <!--*********************************-->
  937. <xsd:complexType name="SHAPETYPE">
  938.  
  939.     <xsd:attribute name="A" type="xsd:float" use="required"/>
  940.  
  941.     <xsd:attribute name="B" type="xsd:float" use="required"/>
  942.  
  943.     <xsd:attribute name="HalfDbl" use="required">
  944.             <xsd:simpleType>
  945.                 <xsd:restriction base="xsd:float">
  946.                     <xsd:minExclusive value='0'/>
  947.                     <xsd:maxInclusive value='20.0'/>
  948.                 </xsd:restriction>
  949.             </xsd:simpleType>
  950.     </xsd:attribute>
  951.  
  952.     <xsd:attribute name="ED" type="xsd:float" use="optional"/>
  953.  
  954.     <xsd:attribute name="Points" use="optional">
  955.                 <xsd:simpleType>
  956.                         <xsd:restriction base="xsd:string">
  957.                             <xsd:maxLength value="252" />
  958.                             <xsd:minLength value="252" />
  959.                     </xsd:restriction>
  960.                 </xsd:simpleType>
  961.     </xsd:attribute>
  962.  
  963.     <xsd:attribute name="TracerID" use="optional">
  964.             <xsd:simpleType>
  965.                     <xsd:restriction base="xsd:string">
  966.                             <xsd:enumeration value="PHI" />
  967.                             <xsd:enumeration value="OMA" />
  968.                     </xsd:restriction >
  969.             </xsd:simpleType>
  970.     </xsd:attribute>
  971.  
  972. </xsd:complexType>
  973.  
  974. <!--*********************************-->
  975. <!--*                 OTHER TYPE                               *-->
  976. <!--*********************************-->
  977. <xsd:complexType name="OTHERTYPE">
  978.         <xsd:sequence>
  979.             <xsd:element name="PCCOM" type="xsd:string" minOccurs="0" maxOccurs="1" />
  980.             <xsd:element name="OMA" type="OMATYPE" minOccurs="0" maxOccurs="1" />
  981.             <xsd:element name="XYPOINTS" type="XYPOINTSTYPE" minOccurs="0" maxOccurs="1" />
  982.         </xsd:sequence>
  983. </xsd:complexType>
  984.  
  985.  
  986. <!--*********************************-->
  987. <!--*                 XYPOINTS TYPE  *-->
  988. <!--*********************************-->
  989. <xsd:complexType name="XYPOINTSTYPE">
  990.     <xsd:sequence>
  991.                 <xsd:element name="XYPOINT" type="XYPOINTTYPE" minOccurs="1" maxOccurs="unbounded" />
  992.     </xsd:sequence>
  993.  
  994. </xsd:complexType>
  995.  
  996. <!--*********************************-->
  997. <!--*                 XYPOINT TYPE   *-->
  998. <!--*********************************-->
  999. <xsd:complexType name="XYPOINTTYPE">
  1000.  
  1001.     <xsd:attribute name="X" type="xsd:integer" use="required" />
  1002.  
  1003.     <xsd:attribute name="Y" type="xsd:integer" use="required" />
  1004.  
  1005.     <xsd:attribute name="Z" type="xsd:integer" use="optional"/>
  1006.  
  1007. </xsd:complexType>
  1008.  
  1009.  
  1010. <!--*********************************-->
  1011. <!--*                 OMA TYPE  *-->
  1012. <!--*********************************-->
  1013. <xsd:complexType name="OMATYPE">
  1014.     <xsd:sequence>
  1015.                 <xsd:element name="DATA" type="xsd:string" minOccurs="1" maxOccurs="1" />
  1016.     </xsd:sequence>
  1017.  
  1018.     <xsd:attribute name="Reading" type="xsd:integer" use="required" />
  1019.  
  1020. </xsd:complexType>
  1021.  
  1022. <!--*********************************-->
  1023. <!--*                 ADDRESS TYPE                               *-->
  1024. <!--*********************************-->
  1025.  
  1026. <xsd:complexType name="ADDRESSTYPE">
  1027.  
  1028.     <xsd:attribute name="Street_Number">
  1029.              <xsd:simpleType>
  1030.                     <xsd:restriction base="xsd:string">
  1031.                         <xsd:maxLength value="6" />
  1032.                     </xsd:restriction>
  1033.              </xsd:simpleType>
  1034.     </xsd:attribute>
  1035.  
  1036.     <xsd:attribute name="Street_Name" use="required">
  1037.                  <xsd:simpleType>
  1038.                         <xsd:restriction base="xsd:string">
  1039.                     <xsd:maxLength value="30" />
  1040.                         </xsd:restriction>
  1041.                  </xsd:simpleType>
  1042.     </xsd:attribute>
  1043.  
  1044.     <xsd:attribute name="Other">
  1045.                      <xsd:simpleType>
  1046.                             <xsd:restriction base="xsd:string">
  1047.                         <xsd:maxLength value="30" />
  1048.                             </xsd:restriction>
  1049.                      </xsd:simpleType>
  1050.     </xsd:attribute>
  1051.  
  1052.     <xsd:attribute name="Suite">
  1053.                          <xsd:simpleType>
  1054.                                 <xsd:restriction base="xsd:string">
  1055.                             <xsd:maxLength value="10" />
  1056.                                 </xsd:restriction>
  1057.                          </xsd:simpleType>
  1058.     </xsd:attribute>
  1059.  
  1060.     <xsd:attribute name="Zipcode" use="required">
  1061.          <xsd:simpleType>
  1062.                 <xsd:restriction base="xsd:string">
  1063.                         <xsd:maxLength value="10" />
  1064.                 </xsd:restriction>
  1065.          </xsd:simpleType>
  1066.     </xsd:attribute>
  1067.  
  1068.     <xsd:attribute name="City" use="required">
  1069.                          <xsd:simpleType>
  1070.                                 <xsd:restriction base="xsd:string">
  1071.                             <xsd:maxLength value="30" />
  1072.                                 </xsd:restriction>
  1073.                          </xsd:simpleType>
  1074.     </xsd:attribute>
  1075.  
  1076.     <xsd:attribute name="State" use="required">
  1077.                              <xsd:simpleType>
  1078.                                     <xsd:restriction base="xsd:string">
  1079.                                 <xsd:maxLength value="2" />
  1080.                                     </xsd:restriction>
  1081.                              </xsd:simpleType>
  1082.     </xsd:attribute>
  1083.  
  1084.     <xsd:attribute name="Country" use="required">
  1085.                                  <xsd:simpleType>
  1086.                                         <xsd:restriction base="xsd:string">
  1087.                                     <xsd:maxLength value="2" />
  1088.                                         </xsd:restriction>
  1089.                                  </xsd:simpleType>
  1090.     </xsd:attribute>
  1091.  
  1092.     <xsd:attribute name="Tel" use="required">
  1093.                                      <xsd:simpleType>
  1094.                                             <xsd:restriction base="xsd:string">
  1095.                                         <xsd:maxLength value="20" />
  1096.                                             </xsd:restriction>
  1097.                                      </xsd:simpleType>
  1098.     </xsd:attribute>
  1099.  
  1100.     <xsd:attribute name="Extension">
  1101.                                      <xsd:simpleType>
  1102.                                             <xsd:restriction base="xsd:string">
  1103.                                         <xsd:maxLength value="10" />
  1104.                                             </xsd:restriction>
  1105.                                      </xsd:simpleType>
  1106.     </xsd:attribute>
  1107. </xsd:complexType>
  1108.  
  1109.  
  1110.  
  1111. </xsd:schema>
  1112.  
  1113.  
  1114.