home *** CD-ROM | disk | FTP | other *** search
/ ftp.americansys.com / 2014.06.ftp.americansys.com.tar / ftp.americansys.com / plott / Practice.exe / 1033 / XSD / 1105 next >
Extensible Markup Language  |  2013-06-22  |  21KB  |  540 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema xmlns:NCStandard="http://secure.newcropaccounts.com/interfaceV7:NCStandard"
  3.  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  4.   targetNamespace="http://secure.newcropaccounts.com/interfaceV7:NCStandard"
  5.   elementFormDefault="qualified" attributeFormDefault="unqualified">
  6.     <!-- Standard datatypes that do not have a minimum length -->
  7.     <xs:simpleType name="AlphaNumericOptional">
  8.         <xs:restriction base="xs:string">
  9.             <xs:pattern value="[a-zA-Z0-9#(]*[a-zA-Z0-9 '.,()#:/\-@_%\r\n]*"/>
  10.         </xs:restriction>
  11.     </xs:simpleType>
  12.   <xs:simpleType name="DrugInformationOptional">
  13.     <xs:restriction base="xs:string">
  14.       <xs:pattern value="[a-zA-Z0-9 '.,\[\]()#:;/\-%+!=&<>"]*"/>
  15.     </xs:restriction>
  16.   </xs:simpleType>
  17.     <xs:simpleType name="NumericOptional">
  18.         <xs:restriction base="xs:string">
  19.             <xs:pattern value="[0-9]*"/>
  20.         </xs:restriction>
  21.     </xs:simpleType>
  22.     <xs:simpleType name="NumericWithDecimalOptional">
  23.         <xs:restriction base="xs:string">
  24.             <xs:pattern value="[0-9.]*"/>
  25.         </xs:restriction>
  26.     </xs:simpleType>
  27.   <!-- Standard datatypes that are required (i.e. minimum length of 1 letter or number) -->
  28.     <xs:simpleType name="AlphaNumericRequired">
  29.         <xs:restriction base="xs:string">
  30.             <xs:minLength value="1" fixed="true"/>
  31.             <xs:pattern value="[a-zA-Z0-9#(][a-zA-Z0-9 '().,#:/\-@_%]*"/>      
  32.         </xs:restriction>
  33.     </xs:simpleType>
  34.     <xs:simpleType name="NumericRequired">
  35.         <xs:restriction base="xs:string">
  36.             <xs:minLength value="1" fixed="true"/>
  37.             <xs:pattern value="[0-9]*"/>
  38.         </xs:restriction>
  39.     </xs:simpleType>
  40.     <xs:simpleType name="NumericWithDecimalRequired">
  41.         <xs:restriction base="xs:string">
  42.             <xs:minLength value="1" fixed="true"/>
  43.             <xs:pattern value="[0-9.]*"/>
  44.         </xs:restriction>
  45.     </xs:simpleType>
  46.   <!-- Standard datatypes that are required and encrypted (i.e. minimum length of 1 letter or number) -->
  47.   <xs:simpleType name="AlphaNumericEncryptedRequired">
  48.     <xs:restriction base="xs:string">
  49.       <xs:minLength value="1" fixed="true"/>
  50.       <xs:pattern value="[a-zA-Z0-9+= /]*"/>
  51.     </xs:restriction>
  52.   </xs:simpleType>
  53.   <!-- Standard datatypes that support URLs -->
  54.   <xs:simpleType name="URLRequired">
  55.     <xs:restriction base="xs:string">
  56.       <xs:minLength value="10" fixed="true"/>
  57.       <xs:maxLength value="1200"/>
  58.       <xs:pattern value="[a-zA-Z0-9:/.\-_?#@%]*"/>
  59.     </xs:restriction>
  60.   </xs:simpleType>
  61.   <!-- Derived Datatypes - Required -->
  62.   <xs:simpleType name="AlphaNumericRequired_2">
  63.     <xs:restriction base="NCStandard:AlphaNumericRequired">
  64.       <xs:maxLength value="2"/>
  65.     </xs:restriction>
  66.   </xs:simpleType>
  67.   <xs:simpleType name="AlphaNumericRequired_10">
  68.         <xs:restriction base="NCStandard:AlphaNumericRequired">
  69.             <xs:maxLength value="10"/>
  70.         </xs:restriction>
  71.     </xs:simpleType>
  72.   <xs:simpleType name="AlphaNumericRequired_11">
  73.         <xs:restriction base="NCStandard:AlphaNumericRequired">
  74.             <xs:maxLength value="11"/>
  75.         </xs:restriction>
  76.     </xs:simpleType>
  77.     <xs:simpleType name="AlphaNumericRequired_30">
  78.         <xs:restriction base="NCStandard:AlphaNumericRequired">
  79.             <xs:maxLength value="30"/>
  80.         </xs:restriction>
  81.     </xs:simpleType>
  82.     <xs:simpleType name="AlphaNumericRequired_35">
  83.         <xs:restriction base="NCStandard:AlphaNumericRequired">
  84.             <xs:maxLength value="35"/>
  85.         </xs:restriction>
  86.     </xs:simpleType>
  87.     <xs:simpleType name="AlphaNumericRequired_40">
  88.         <xs:restriction base="NCStandard:AlphaNumericRequired">
  89.             <xs:maxLength value="40"/>
  90.         </xs:restriction>
  91.     </xs:simpleType>
  92.     <xs:simpleType name="AlphaNumericRequired_50">
  93.         <xs:restriction base="NCStandard:AlphaNumericRequired">
  94.             <xs:maxLength value="50"/>
  95.         </xs:restriction>
  96.     </xs:simpleType>
  97.     <xs:simpleType name="AlphaNumericRequired_70">
  98.         <xs:restriction base="NCStandard:AlphaNumericRequired">
  99.             <xs:maxLength value="70"/>
  100.         </xs:restriction>
  101.     </xs:simpleType>
  102.     <xs:simpleType name="AlphaNumericRequired_140">
  103.         <xs:restriction base="NCStandard:AlphaNumericRequired">
  104.             <xs:maxLength value="140"/>
  105.         </xs:restriction>
  106.     </xs:simpleType>
  107.   <xs:simpleType name="NumericWithDecimalRequired_15">
  108.     <xs:restriction base="NCStandard:NumericWithDecimalRequired">
  109.       <xs:maxLength value="15"/>
  110.     </xs:restriction>
  111.   </xs:simpleType>
  112.   <xs:simpleType name="NumericRequired_3">
  113.     <xs:restriction base="NCStandard:NumericRequired">
  114.       <xs:maxLength value="3"/>
  115.     </xs:restriction>
  116.   </xs:simpleType>
  117.   <!-- Derived Datatypes - Optional -->
  118.     <xs:simpleType name="AlphaNumericOptional_10">
  119.         <xs:restriction base="NCStandard:AlphaNumericOptional">
  120.             <xs:maxLength value="10"/>
  121.         </xs:restriction>
  122.     </xs:simpleType>
  123.     <xs:simpleType name="AlphaNumericOptional_35">
  124.         <xs:restriction base="NCStandard:AlphaNumericOptional">
  125.             <xs:maxLength value="35"/>
  126.         </xs:restriction>
  127.     </xs:simpleType>
  128.     <xs:simpleType name="AlphaNumericOptional_40">
  129.         <xs:restriction base="NCStandard:AlphaNumericOptional">
  130.             <xs:maxLength value="40"/>
  131.         </xs:restriction>
  132.     </xs:simpleType>
  133.   <xs:simpleType name="AlphaNumericOptional_70">
  134.     <xs:restriction base="NCStandard:AlphaNumericOptional">
  135.       <xs:maxLength value="70"/>
  136.     </xs:restriction>
  137.   </xs:simpleType>
  138.   <xs:simpleType name="AlphaNumericOptional_80">
  139.         <xs:restriction base="NCStandard:AlphaNumericOptional">
  140.             <xs:maxLength value="80"/>
  141.         </xs:restriction>
  142.     </xs:simpleType>
  143.   <xs:simpleType name="AlphaNumericOptional_105">
  144.     <xs:restriction base="NCStandard:AlphaNumericOptional">
  145.       <xs:maxLength value="105"/>
  146.     </xs:restriction>
  147.   </xs:simpleType>
  148.   <xs:simpleType name="DrugInformationOptional_80">
  149.     <xs:restriction base="NCStandard:DrugInformationOptional">
  150.       <xs:maxLength value="80"/>
  151.     </xs:restriction>
  152.   </xs:simpleType>
  153.   <xs:simpleType name="DrugInformationOptional_105">
  154.     <xs:restriction base="NCStandard:DrugInformationOptional">
  155.       <xs:maxLength value="105"/>
  156.     </xs:restriction>
  157.   </xs:simpleType>  
  158.   <xs:simpleType name="AlphaNumericOptional_140">
  159.         <xs:restriction base="NCStandard:AlphaNumericOptional">
  160.             <xs:maxLength value="140"/>
  161.         </xs:restriction>
  162.     </xs:simpleType>
  163.   <xs:simpleType name="AlphaNumericOptional_200">
  164.     <xs:restriction base="NCStandard:AlphaNumericOptional">
  165.       <xs:maxLength value="200"/>
  166.     </xs:restriction>
  167.   </xs:simpleType>
  168.     <xs:simpleType name="AlphaNumericOptional_210">
  169.         <xs:restriction base="NCStandard:AlphaNumericOptional">
  170.             <xs:maxLength value="210"/>
  171.         </xs:restriction>
  172.     </xs:simpleType>
  173.   <xs:simpleType name="AlphaNumericOptional_255">
  174.     <xs:restriction base="NCStandard:AlphaNumericOptional">
  175.       <xs:maxLength value="255"/>
  176.     </xs:restriction>
  177.   </xs:simpleType>
  178.   <!-- Derived Datatypes - Required -->
  179.   <xs:simpleType name="AlphaNumericEncryptedRequired_100">
  180.     <xs:restriction base="NCStandard:AlphaNumericEncryptedRequired">
  181.       <xs:maxLength value="100"/>
  182.     </xs:restriction>
  183.   </xs:simpleType>
  184.   <!-- Date/Time Datatypes -->
  185.     <xs:simpleType name="DateFormatCCYYMMDD">
  186.         <xs:restriction base="xs:string">
  187.             <xs:pattern value="((((18|19|20)\d{2}((0[13578]|1[02])(0[1-9]|[12]\d|3[01])|(0[13456789]|1[012])(0[1-9]|[12]\d|30)|02(0[1-9]|1\d|2[0-8])))|((\d{2}[02468][048]|\d{2}[13579][26]))0229)){0,8}"/>
  188.         </xs:restriction>
  189.     </xs:simpleType>
  190.   <xs:simpleType name="DateTimeFormatCCYYMMDDHHMM"> <!-- CCYYMMDD:HH:MM -->
  191.     <xs:restriction base="xs:string">
  192.       <xs:pattern value="(((((19|20)\d{2}((0[13578]|1[02])(0[1-9]|[12]\d|3[01])|(0[13456789]|1[012])(0[1-9]|[12]\d|30)|02(0[1-9]|1\d|2[0-8])))|((\d{2}[02468][048]|\d{2}[13579][26]))0229)):(([0-1][0-9])|([1-2][0-3])):([0-5][0-9])){0,12}"/>
  193.     </xs:restriction>
  194.   </xs:simpleType>
  195.   <!-- State/Country Validation -->
  196.     <xs:simpleType name="StateCodes">
  197.         <xs:restriction base="xs:string">
  198.             <xs:pattern value="(A[ELKSZRAP]|C[AOT]|D[EC]|F[LM]|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEHINOPST]|N[CDEHJMVY]|O[HKR]|P[ARW]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])"/>
  199.         </xs:restriction>
  200.     </xs:simpleType>
  201.     <xs:simpleType name="StateCodesOptional">
  202.         <xs:restriction base="xs:string">
  203.             <xs:pattern value="(A[ELKSZRAP]|C[AOT]|D[EC]|F[LM]|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEHINOPST]|N[CDEHJMVY]|O[HKR]|P[ARW]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])|()"/>
  204.         </xs:restriction>
  205.     </xs:simpleType>
  206.     <xs:simpleType name="CountryCodes">
  207.         <xs:restriction base="xs:string">
  208.             <xs:pattern value="((US)|(CA)|(MX))"/>
  209.         </xs:restriction>
  210.     </xs:simpleType>
  211.     <!-- Zip/Postal Code Validation -->
  212.     <xs:simpleType name="SSNBasic">
  213.         <xs:restriction base="xs:string">
  214.             <xs:pattern value="\d{9}"/>
  215.         </xs:restriction>
  216.     </xs:simpleType>
  217.     <!-- Zip/Postal Code Validation -->
  218.     <xs:simpleType name="ZipCode">
  219.         <xs:restriction base="xs:string">
  220.             <xs:pattern value="\d{5}"/>
  221.         </xs:restriction>
  222.     </xs:simpleType>
  223.     <!-- Zip/Postal Code Validation -->
  224.     <xs:simpleType name="ZipCodeOptional">
  225.         <xs:restriction base="xs:string">
  226.             <xs:pattern value="\d{5}|()"/>
  227.         </xs:restriction>
  228.     </xs:simpleType>
  229.     <xs:simpleType name="Zip4Code">
  230.         <xs:restriction base="xs:string">
  231.             <xs:pattern value="\d{4}"/>
  232.         </xs:restriction>
  233.     </xs:simpleType>
  234.     <!-- Enumeration Datatypes -->
  235.     <xs:simpleType name="UserType">
  236.         <xs:restriction base="xs:string">
  237.             <xs:enumeration value="LicensedPrescriber"/>
  238.             <xs:enumeration value="Staff"/>
  239.             <xs:enumeration value="InterestedParty"/>
  240.             <xs:enumeration value="SupervisingDoctor"/>
  241.             <xs:enumeration value="MidlevelPrescriber"/>
  242.         </xs:restriction>
  243.     </xs:simpleType>
  244.     <xs:simpleType name="RoleType">
  245.         <xs:restriction base="xs:string">
  246.             <xs:enumeration value="doctor"/>
  247.             <xs:enumeration value="nurse"/>
  248.             <xs:enumeration value="admin"/>
  249.             <xs:enumeration value="manager"/>
  250.             <xs:enumeration value="nurseNoRx"/>
  251.             <xs:enumeration value="doctorNoRx"/>
  252.             <xs:enumeration value="doctorReadOnly"/>
  253.             <xs:enumeration value="nurseReadOnly"/>
  254.             <xs:enumeration value="interestedPartyReadOnly"/>
  255.             <xs:enumeration value="supervisingDoctor"/>
  256.             <xs:enumeration value="midlevelPrescriber"/>
  257.     </xs:restriction>
  258.     </xs:simpleType>
  259.     <xs:simpleType name="RequestedPageType">
  260.         <xs:restriction base="xs:string">
  261.             <xs:enumeration value="compose"/>
  262.             <xs:enumeration value="admin"/>
  263.             <xs:enumeration value="manager"/>
  264.             <xs:enumeration value="status"/>
  265.             <xs:enumeration value="ws-rx-send"/>
  266.             <xs:enumeration value="ws-rx-bulk"/>
  267.             <xs:enumeration value="ws-rx-bulk-no-match"/>
  268.             <xs:enumeration value="ws-renewal-send"/>
  269.       <xs:enumeration value="ws-register-licensedPrescriber"/>
  270.             <xs:enumeration value="ws-image-rx-send"/>
  271.             <xs:enumeration value="ws-pbm-eligibility"/>
  272.       <xs:enumeration value="medentry"/>
  273.       <xs:enumeration value="patientDetail"/>
  274.       <xs:enumeration value="transmit"/>      
  275.       <xs:enumeration value="resource"/>
  276.       <xs:enumeration value="maintainHealthplans"/>
  277.       <xs:enumeration value="ws-register"/>
  278.       <xs:enumeration value="route"/>
  279.       <xs:enumeration value="rxhistory-external"/>
  280.       <xs:enumeration value="renewal-confirmation"/>
  281.       <xs:enumeration value="ws-process-renewal"/>
  282.       <xs:enumeration value="rxdetail"/>
  283.       <xs:enumeration value="renewal"/>
  284.       <xs:enumeration value="ws-gen-test-renewal"/>
  285.       <xs:enumeration value="dosing"/>
  286.       <xs:enumeration value="formulary-coverage-detail"/>
  287.       <xs:enumeration value="ws-patient-bulk"/>
  288.       <xs:enumeration value="ws-rx-audit"/>
  289.       <xs:enumeration value="user-agreement"/>
  290.       <xs:enumeration value="reports-rx-daily"/>
  291.       <xs:enumeration value="staywell"/>
  292.       <xs:enumeration value="lab-orders"/>
  293.       <xs:enumeration value="lab-results"/>
  294.     </xs:restriction>
  295.     </xs:simpleType>
  296.     <xs:simpleType name="DrugSubstitutionType">
  297.         <xs:restriction base="xs:string">
  298.             <xs:enumeration value="DispenseAsWritten"/>
  299.             <xs:enumeration value="SubstitutionAllowed"/>
  300.         </xs:restriction>
  301.     </xs:simpleType>
  302.     <xs:simpleType name="PersonNamePrefix">
  303.         <xs:restriction base="xs:string">
  304.             <xs:enumeration value="Ms."/>
  305.             <xs:enumeration value="Ms"/>
  306.             <xs:enumeration value="Miss"/>
  307.             <xs:enumeration value="Mr."/>
  308.             <xs:enumeration value="Mr"/>
  309.             <xs:enumeration value="Mrs."/>
  310.             <xs:enumeration value="Mrs"/>
  311.             <xs:enumeration value="Dr."/>
  312.             <xs:enumeration value="Dr"/>
  313.       <xs:enumeration value="Sr."/>
  314.       <xs:enumeration value="Sr"/>
  315.       <xs:enumeration value="Sra."/>
  316.       <xs:enumeration value="Sra"/>
  317.       <xs:enumeration value="Fr"/>
  318.       <xs:enumeration value="Rev"/>
  319.     </xs:restriction>
  320.     </xs:simpleType>
  321.     <xs:simpleType name="PersonNameSuffix">
  322.         <xs:restriction base="xs:string">
  323.             <xs:enumeration value="DDS"/>
  324.             <xs:enumeration value="DO"/>
  325.             <xs:enumeration value="Jr"/>
  326.             <xs:enumeration value="LVN"/>
  327.             <xs:enumeration value="MD"/>
  328.             <xs:enumeration value="NP"/>
  329.             <xs:enumeration value="PA"/>
  330.             <xs:enumeration value="RN"/>
  331.             <xs:enumeration value="Sr"/>
  332.             <xs:enumeration value="I"/>
  333.             <xs:enumeration value="II"/>
  334.             <xs:enumeration value="III"/>
  335.             <xs:enumeration value="PhD"/>
  336.             <xs:enumeration value="PharmD"/>
  337.             <xs:enumeration value="RPh"/>
  338.       <xs:enumeration value="MA"/>
  339.       <xs:enumeration value="OD"/>
  340.       <xs:enumeration value="CNP"/>
  341.       <xs:enumeration value="CNM"/>
  342.       <xs:enumeration value="RPAC"/>
  343.       <xs:enumeration value="FACC"/>
  344.       <xs:enumeration value="FACP"/>
  345.       <xs:enumeration value="LPN"/>
  346.       <xs:enumeration value="Jr."/>
  347.       <xs:enumeration value="Sr."/>
  348.       <xs:enumeration value="Esq."/>
  349.       <xs:enumeration value="Esq"/>
  350.       <xs:enumeration value="IV"/>
  351.       <xs:enumeration value="DPM"/>
  352.       <xs:enumeration value="PAC"/>
  353.       <xs:enumeration value="CNS"/>
  354.       <xs:enumeration value="RD"/>
  355.     </xs:restriction>
  356.     </xs:simpleType>
  357.     <xs:simpleType name="GenderType">
  358.         <xs:restriction base="xs:string">
  359.             <xs:enumeration value="M"/>
  360.             <xs:enumeration value="F"/>
  361.             <xs:enumeration value="U"/>
  362.         </xs:restriction>
  363.     </xs:simpleType>
  364.     <xs:simpleType name="LanguageType">
  365.         <xs:restriction base="xs:string">
  366.             <xs:enumeration value="Arabic"/>
  367.             <xs:enumeration value="Chinese"/>
  368.             <xs:enumeration value="Chinese (Simplified)"/>
  369.             <xs:enumeration value="Creole"/>
  370.             <xs:enumeration value="English"/>
  371.             <xs:enumeration value="French"/>
  372.             <xs:enumeration value="German"/>
  373.             <xs:enumeration value="Greek"/>
  374.             <xs:enumeration value="Italian"/>
  375.             <xs:enumeration value="Japanese"/>
  376.             <xs:enumeration value="Korean"/>
  377.             <xs:enumeration value="Polish"/>
  378.             <xs:enumeration value="Portuguese"/>
  379.             <xs:enumeration value="Russian"/>
  380.             <xs:enumeration value="Spanish"/>
  381.             <xs:enumeration value="Tagalog"/>
  382.             <xs:enumeration value="Turkish"/>
  383.             <xs:enumeration value="Vietnamese"/>
  384.         </xs:restriction>
  385.     </xs:simpleType>
  386.     <xs:simpleType name="DrugDatabaseType">
  387.         <xs:restriction base="xs:string">
  388.             <xs:enumeration value="FDA"/>
  389.             <xs:enumeration value="FDB"/>
  390.             <xs:enumeration value="RXNORM"/>
  391.       <xs:enumeration value="Z"/>
  392.       <xs:enumeration value="Y"/>
  393.       <xs:enumeration value="MULTUM"/>
  394.     </xs:restriction>
  395.     </xs:simpleType>
  396.     <xs:simpleType name="HealthplanType">
  397.         <xs:restriction base="xs:string">
  398.             <xs:enumeration value="Summary"/>
  399.             <xs:enumeration value="Detail"/>
  400.         </xs:restriction>
  401.     </xs:simpleType>
  402.     <xs:simpleType name="DiagnosisType">
  403.         <xs:restriction base="xs:string">
  404.             <xs:enumeration value="ICD9"/>
  405.             <xs:enumeration value="ICD9CM"/>
  406.             <xs:enumeration value="ICD10"/>
  407.         </xs:restriction>
  408.     </xs:simpleType>
  409.     <xs:simpleType name="PrescriberStatus">
  410.         <xs:restriction base="xs:string">
  411.             <xs:enumeration value="Active"/>
  412.             <xs:enumeration value="Inactive"/>
  413.         </xs:restriction>
  414.     </xs:simpleType>
  415.   <xs:simpleType name="PrescriberNetwork">
  416.     <xs:restriction base="xs:string">
  417.       <xs:enumeration value="SureScripts"/>
  418.       <xs:enumeration value="RxHub"/>
  419.     </xs:restriction>
  420.   </xs:simpleType>
  421.   <xs:simpleType name="AllergySeverityType">
  422.     <xs:restriction base="xs:string">
  423.       <xs:enumeration value="Unspecified"/>
  424.       <xs:enumeration value="Mild"/>
  425.       <xs:enumeration value="Moderate"/>
  426.       <xs:enumeration value="Severe"/>
  427.     </xs:restriction>
  428.   </xs:simpleType>
  429.   <xs:simpleType name="FeatureType">
  430.     <xs:restriction base="xs:string">
  431.       <xs:enumeration value="Connect"/>
  432.       <xs:enumeration value="Advanced"/>
  433.       <xs:enumeration value="Formulary"/>
  434.       <xs:enumeration value="Fax"/>
  435.       <xs:enumeration value="ClientSpecified"/>
  436.     </xs:restriction>
  437.   </xs:simpleType>
  438.   <xs:simpleType name="FeatureStatusType">
  439.     <xs:restriction base="xs:string">
  440.       <xs:enumeration value="Active"/>
  441.       <xs:enumeration value="Inactive"/>
  442.     </xs:restriction>
  443.   </xs:simpleType>
  444.   <xs:simpleType name="FeatureExpirationType">
  445.     <xs:restriction base="xs:string">
  446.       <xs:enumeration value="ExpirationDate"/>
  447.       <xs:enumeration value="Recurring"/>
  448.     </xs:restriction>
  449.   </xs:simpleType>
  450.   <xs:simpleType name="DrugOTCType">
  451.     <xs:restriction base="xs:string">
  452.       <xs:enumeration value="Yes"/>
  453.       <xs:enumeration value="No"/>
  454.       <xs:enumeration value="Both"/>
  455.     </xs:restriction>
  456.   </xs:simpleType>
  457.   <xs:simpleType name="DrugScheduleType">
  458.     <xs:restriction base="xs:string">
  459.       <xs:enumeration value="1"/>
  460.       <xs:enumeration value="2"/>
  461.       <xs:enumeration value="3"/>
  462.       <xs:enumeration value="4"/>
  463.       <xs:enumeration value="5"/>
  464.       <xs:enumeration value="None"/>
  465.       <xs:enumeration value="Unknown"/>
  466.     </xs:restriction>
  467.   </xs:simpleType>
  468.   <xs:simpleType name="ResponseCodeType">
  469.     <xs:restriction base="xs:string">
  470.       <xs:enumeration value="Accept"/>
  471.       <xs:enumeration value="Deny"/>
  472.       <xs:enumeration value="UnableToProcess"/>
  473.       <xs:enumeration value="Undetermined"/>
  474.     </xs:restriction>
  475.   </xs:simpleType>
  476.   <xs:simpleType name="ResponseDenyCodeType">
  477.     <xs:restriction base="xs:string">
  478.       <xs:enumeration value="PatientUnknownToThePrescriber"/>
  479.       <xs:enumeration value="PatientNeverUnderPrescriberCare"/>
  480.       <xs:enumeration value="PatientNoLongerUnderPrescriberCare"/>
  481.       <xs:enumeration value="PatientHasRequestedRefillTooSoon"/>
  482.       <xs:enumeration value="MedicationNeverPrescribedForThePatient"/>
  483.       <xs:enumeration value="PatientShouldContactPrescriberFirst"/>
  484.       <xs:enumeration value="RefillNotAppropriate"/>
  485.       <xs:enumeration value="PatientHasPickedUpPrescription"/>
  486.       <xs:enumeration value="PatientHasPickedUpPartialFillOfPrescription"/>
  487.       <xs:enumeration value="PatientHasNotPickedUpPrescriptionDrugReturnedToStock"/>
  488.       <xs:enumeration value="ChangeNotAppropriate"/>
  489.       <xs:enumeration value="PatientNeedsAppointment"/>
  490.       <xs:enumeration value="PrescriberNotAssociatedWithThisPracticeOrLocation"/>
  491.       <xs:enumeration value="NoAttemptWillBeMadeToObtainPriorAuthorization"/>      
  492.       <xs:enumeration value="DeniedNewPrescriptionToFollow"/>
  493.       <xs:enumeration value="RequestAlreadyRespondedToByOtherMeans"/>
  494.     </xs:restriction>
  495.   </xs:simpleType>
  496.   <xs:simpleType name="DrugTakeAsNeededType">
  497.     <xs:restriction base="xs:string">
  498.       <xs:enumeration value="Yes"/>
  499.       <xs:enumeration value="No"/>
  500.     </xs:restriction>
  501.   </xs:simpleType>
  502.   <xs:simpleType name="PrescriptionStatusType">
  503.     <xs:restriction base="xs:string">
  504.       <xs:enumeration value="Current"/>
  505.       <xs:enumeration value="Pending"/>
  506.     </xs:restriction>
  507.   </xs:simpleType>
  508.   <xs:simpleType name="PrescriptionSubStatusType">
  509.     <xs:restriction base="xs:string">
  510.       <xs:enumeration value="InProcess"/>
  511.       <xs:enumeration value="NeedsDoctorReview"/>
  512.       <xs:enumeration value="NeedsStaffReview"/>
  513.     </xs:restriction>
  514.   </xs:simpleType>
  515.   <xs:simpleType name="PrescriptionArchiveType">
  516.     <xs:restriction base="xs:string">
  517.       <xs:enumeration value="Yes"/>
  518.       <xs:enumeration value="No"/>
  519.     </xs:restriction>
  520.   </xs:simpleType>
  521.   <xs:simpleType name="PrescriptionAuditDeliveryType">
  522.     <xs:restriction base="xs:string">
  523.       <xs:enumeration value="Print"/>
  524.       <xs:enumeration value="Fax"/>
  525.       <xs:enumeration value="ElectronicRetail"/>
  526.       <xs:enumeration value="ElectronicMailOrder"/>
  527.     </xs:restriction>
  528.   </xs:simpleType>
  529.   <xs:simpleType name="DrugSetType">
  530.     <xs:restriction base="xs:string">
  531.       <xs:enumeration value="CPOE"/>
  532.     </xs:restriction>
  533.   </xs:simpleType>
  534.   <xs:simpleType name="DrugSetStatusType">
  535.     <xs:restriction base="xs:string">
  536.       <xs:enumeration value="Active"/>
  537.       <xs:enumeration value="Inactive"/>
  538.     </xs:restriction>
  539.   </xs:simpleType>
  540. </xs:schema>