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

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema xmlns="http://secure.newcropaccounts.com/interfaceV7"
  3.   targetNamespace="http://secure.newcropaccounts.com/interfaceV7" 
  4.   xmlns:NCStandard="http://secure.newcropaccounts.com/interfaceV7:NCStandard"
  5.   xmlns:xs="http://www.w3.org/2001/XMLSchema" 
  6.   attributeFormDefault="unqualified" elementFormDefault="qualified">
  7.     <xs:import namespace="http://secure.newcropaccounts.com/interfaceV7:NCStandard"
  8.             schemaLocation="NCStandard.xsd"/>
  9.     <!-- Composite elements -->
  10.     <xs:complexType name="AddressType">
  11.         <xs:sequence>
  12.             <xs:element name="address1" type="NCStandard:AlphaNumericRequired_35" minOccurs="1" maxOccurs="1"/>
  13.             <xs:element name="address2" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  14.             <xs:element name="city" type="NCStandard:AlphaNumericRequired_35" minOccurs="1" maxOccurs="1"/>
  15.             <xs:element name="state" type="NCStandard:StateCodes" minOccurs="1" maxOccurs="1"/>
  16.             <xs:element name="zip" type="NCStandard:ZipCode" minOccurs="1" maxOccurs="1"/>
  17.             <xs:element name="zip4" type="NCStandard:Zip4Code" minOccurs="0" maxOccurs="1"/>
  18.             <xs:element name="country" type="NCStandard:CountryCodes" minOccurs="1" maxOccurs="1"/>
  19.         </xs:sequence>
  20.     </xs:complexType>
  21.     <xs:complexType name="AddressOptionalType">
  22.         <xs:sequence>
  23.             <xs:element name="address1" type="NCStandard:AlphaNumericOptional_35" minOccurs="1" maxOccurs="1"/>
  24.             <xs:element name="address2" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  25.             <xs:element name="city" type="NCStandard:AlphaNumericOptional_35" minOccurs="1" maxOccurs="1"/>
  26.             <xs:element name="state" type="NCStandard:StateCodesOptional" minOccurs="0" maxOccurs="1"/>
  27.             <xs:element name="zip" type="NCStandard:ZipCodeOptional" minOccurs="0" maxOccurs="1"/>
  28.             <xs:element name="zip4" type="NCStandard:Zip4Code" minOccurs="0" maxOccurs="1"/>
  29.             <xs:element name="country" type="NCStandard:CountryCodes" minOccurs="1" maxOccurs="1"/>
  30.         </xs:sequence>
  31.     </xs:complexType>
  32.     <xs:complexType name="PersonNameType">
  33.         <xs:sequence>
  34.             <xs:element name="last" type="NCStandard:AlphaNumericRequired_35" minOccurs="1" maxOccurs="1"/>
  35.             <xs:element name="first" type="NCStandard:AlphaNumericRequired_35" minOccurs="1" maxOccurs="1"/>
  36.             <xs:element name="middle" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  37.             <xs:element name="prefix" type="NCStandard:PersonNamePrefix" minOccurs="0" maxOccurs="1"/>
  38.             <xs:element name="suffix" type="NCStandard:PersonNameSuffix" minOccurs="0" maxOccurs="1"/>
  39.         </xs:sequence>
  40.     </xs:complexType>
  41.     <xs:complexType name="ContactType">
  42.         <xs:sequence>
  43.             <xs:element name="homeTelephone" type="NCStandard:AlphaNumericOptional_80" minOccurs="0" maxOccurs="1"/>
  44.             <xs:element name="workTelephone" type="NCStandard:AlphaNumericOptional_80" minOccurs="0" maxOccurs="1"/>
  45.             <xs:element name="cellularTelephone" type="NCStandard:AlphaNumericOptional_80" minOccurs="0" maxOccurs="1"/>
  46.             <xs:element name="pagerTelephone" type="NCStandard:AlphaNumericOptional_80" minOccurs="0" maxOccurs="1"/>
  47.             <xs:element name="fax" type="NCStandard:AlphaNumericOptional_80" minOccurs="0" maxOccurs="1"/>
  48.             <xs:element name="email" type="NCStandard:AlphaNumericOptional_80" minOccurs="0" maxOccurs="1"/>
  49.             <xs:element name="backOfficeTelephone" type="NCStandard:AlphaNumericOptional_80" minOccurs="0" maxOccurs="1"/>
  50.             <xs:element name="backOfficeFax" type="NCStandard:AlphaNumericOptional_80" minOccurs="0" maxOccurs="1"/>
  51.         </xs:sequence>
  52.     </xs:complexType>
  53.     <xs:complexType name="PatientCharacteristicsType">
  54.         <xs:sequence>
  55.             <xs:element name="dob" type="NCStandard:DateFormatCCYYMMDD" minOccurs="0" maxOccurs="1"/>
  56.             <xs:element name="gender" type="NCStandard:GenderType" minOccurs="0" maxOccurs="1"/>
  57.             <xs:element name="height" type="NCStandard:NumericWithDecimalOptional" minOccurs="0" maxOccurs="1"/>
  58.             <xs:element name="heightUnits" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  59.             <xs:element name="weight" type="NCStandard:NumericWithDecimalOptional" minOccurs="0" maxOccurs="1"/>
  60.             <xs:element name="weightUnits" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  61.             <xs:element name="language" type="NCStandard:LanguageType" minOccurs="0" maxOccurs="1"/>
  62.         </xs:sequence>
  63.     </xs:complexType>
  64.     <xs:complexType name="PatientAllergyType">
  65.         <xs:sequence>
  66.             <xs:element name="allergyID" type="NCStandard:AlphaNumericOptional_10" minOccurs="1" maxOccurs="1"/>
  67.             <xs:element name="allergyTypeID" type="NCStandard:DrugDatabaseType" minOccurs="1" maxOccurs="1"/>
  68.       <xs:element name="allergySeverityTypeID" type="NCStandard:AllergySeverityType" minOccurs="0" maxOccurs="1"/>
  69.       <xs:element name="allergyComment" type="NCStandard:AlphaNumericOptional_200" minOccurs="0" maxOccurs="1"/>
  70.       <xs:element name="conceptID" type="NCStandard:AlphaNumericOptional_10" minOccurs="0" maxOccurs="1"/>
  71.       <xs:element name="conceptType" type="NCStandard:AlphaNumericOptional_10" minOccurs="0" maxOccurs="1"/>
  72.     </xs:sequence>
  73.     </xs:complexType>
  74.   <xs:complexType name="PatientAllergyFreeformType">
  75.     <xs:sequence>
  76.       <xs:element name="allergyName" type="NCStandard:AlphaNumericRequired_70" minOccurs="1" maxOccurs="1"/>
  77.       <xs:element name="allergySeverityTypeID" type="NCStandard:AllergySeverityType" minOccurs="0" maxOccurs="1"/>
  78.       <xs:element name="allergyComment" type="NCStandard:AlphaNumericOptional_200" minOccurs="0" maxOccurs="1"/>
  79.     </xs:sequence>
  80.     <xs:attribute name="ID" form="unqualified" type="xs:string"/>
  81.   </xs:complexType>
  82.   <xs:complexType name="PatientHealthplanType">
  83.         <xs:sequence>
  84.             <xs:element name="healthplanID" type="NCStandard:NumericOptional" minOccurs="1" maxOccurs="1"/>
  85.             <xs:element name="healthplanTypeID" type="NCStandard:HealthplanType" minOccurs="1" maxOccurs="1"/>
  86.             <xs:element name="group" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  87.         </xs:sequence>
  88.     </xs:complexType>
  89.   <xs:complexType name="PatientHealthplanFreeformType">
  90.     <xs:sequence>
  91.       <xs:element name="healthplanName" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  92.     </xs:sequence>
  93.   </xs:complexType>
  94.   <xs:complexType name="PatientDiagnosisType">
  95.         <xs:sequence>
  96.             <xs:element name="diagnosisID" type="NCStandard:AlphaNumericRequired_10" minOccurs="1" maxOccurs="1"/>
  97.             <xs:element name="diagnosisType" type="NCStandard:DiagnosisType" minOccurs="1" maxOccurs="1"/>
  98.             <xs:element name="onsetDate" type="NCStandard:DateFormatCCYYMMDD" minOccurs="0" maxOccurs="1"/>
  99.             <xs:element name="diagnosisName" type="NCStandard:AlphaNumericOptional_255" minOccurs="0" maxOccurs="1"/>
  100.       <xs:element name="recordedDate" type="NCStandard:DateFormatCCYYMMDD" minOccurs="0" maxOccurs="1"/>
  101.     </xs:sequence>
  102.     </xs:complexType>
  103.     <xs:complexType name="PatientIdentifierType">
  104.         <xs:sequence>
  105.             <xs:element name="patientID" type="NCStandard:AlphaNumericRequired_40" minOccurs="1" maxOccurs="1"/>
  106.             <xs:element name="patientIDType" type="NCStandard:AlphaNumericRequired_40" minOccurs="1" maxOccurs="1"/>
  107.         </xs:sequence>
  108.     </xs:complexType>
  109.     <!-- Top-level elements -->
  110.     <xs:complexType name="CredentialsType">
  111.         <xs:sequence>
  112.             <xs:element name="partnerName" type="NCStandard:AlphaNumericRequired_30" minOccurs="1" maxOccurs="1"/>
  113.             <xs:element name="name" type="NCStandard:AlphaNumericRequired_40" minOccurs="1" maxOccurs="1"/>
  114.             <xs:element name="password" type="NCStandard:AlphaNumericRequired_40" minOccurs="1" maxOccurs="1"/>
  115.             <xs:element name="productName" type="NCStandard:AlphaNumericRequired_40" minOccurs="1" maxOccurs="1"/>
  116.             <xs:element name="productVersion" type="NCStandard:AlphaNumericRequired_30" minOccurs="1" maxOccurs="1"/>
  117.         </xs:sequence>
  118.     </xs:complexType>
  119.   <xs:complexType name="CurrentFeatureType">
  120.     <xs:sequence>
  121.       <xs:element name="feature" type="NCStandard:FeatureType" minOccurs="1" maxOccurs="1"/>
  122.       <xs:element name="featureStatus" type="NCStandard:FeatureStatusType" minOccurs="1" maxOccurs="1"/>
  123.       <xs:element name="featureExpiration" type="NCStandard:FeatureExpirationType" minOccurs="0" maxOccurs="1"/>
  124.       <xs:element name="featureExpirationDate" type="NCStandard:DateFormatCCYYMMDD" minOccurs="0" maxOccurs="1"/>
  125.       <xs:element name="featureClientSpecified" type="NCStandard:AlphaNumericRequired_30" minOccurs="0" maxOccurs="1"/>
  126.     </xs:sequence>
  127.   </xs:complexType>
  128.     <xs:complexType name="UserRoleType">
  129.         <xs:sequence>
  130.             <xs:element name="user" type="NCStandard:UserType" minOccurs="1" maxOccurs="1"/>
  131.             <xs:element name="role" type="NCStandard:RoleType" minOccurs="1" maxOccurs="1"/>
  132.       <xs:element name="name" type="NCStandard:AlphaNumericRequired_40" minOccurs="0" maxOccurs="1"/>
  133.       <xs:element name="password" type="NCStandard:AlphaNumericEncryptedRequired_100" minOccurs="0" maxOccurs="1"/>
  134.       <xs:element name="Features" type="CurrentFeatureType" minOccurs="0" maxOccurs="5"/>
  135.     </xs:sequence>
  136.     </xs:complexType>
  137.     <xs:complexType name="DestinationType">
  138.         <xs:sequence>
  139.             <xs:element name="requestedPage" type="NCStandard:RequestedPageType" minOccurs="1" maxOccurs="1"/>
  140.             <xs:element name="logoutPage" type="NCStandard:URLRequired" minOccurs="0" maxOccurs="1"/>
  141.       <xs:element name="sessionTimeoutInMinutes" type="NCStandard:NumericOptional" minOccurs="0" maxOccurs="1"/>
  142.       <xs:element name="messageTransactionID" type="NCStandard:AlphaNumericRequired_70" minOccurs="0" maxOccurs="1"/>
  143.     </xs:sequence>
  144.     </xs:complexType>
  145.     <xs:complexType name="AccountType">
  146.         <xs:sequence>
  147.             <xs:element name="accountName" type="NCStandard:AlphaNumericRequired_50" minOccurs="1" maxOccurs="1"/>
  148.             <xs:element name="siteID" type="NCStandard:AlphaNumericRequired_50" minOccurs="1" maxOccurs="1"/>
  149.             <xs:element name="AccountAddress" type="AddressType" minOccurs="1" maxOccurs="1"/>
  150.             <xs:element name="accountPrimaryPhoneNumber" type="NCStandard:AlphaNumericRequired_50" minOccurs="1" maxOccurs="1"/>
  151.             <xs:element name="accountPrimaryFaxNumber" type="NCStandard:AlphaNumericRequired_50" minOccurs="1" maxOccurs="1"/>
  152.         </xs:sequence>
  153.         <xs:attribute name="ID" form="unqualified" type="xs:string"/>
  154.     </xs:complexType>
  155.     <xs:complexType name="LocationType">
  156.         <xs:sequence>
  157.             <xs:element name="locationName" type="NCStandard:AlphaNumericRequired_50" minOccurs="1" maxOccurs="1"/>
  158.             <xs:element name="locationShortName" type="NCStandard:AlphaNumericRequired_35" minOccurs="0" maxOccurs="1"/>
  159.             <xs:element name="LocationAddress" type="AddressType" minOccurs="1" maxOccurs="1"/>
  160.             <xs:element name="primaryPhoneNumber" type="NCStandard:AlphaNumericRequired_50" minOccurs="1" maxOccurs="1"/>
  161.             <xs:element name="primaryFaxNumber" type="NCStandard:AlphaNumericRequired_50" minOccurs="1" maxOccurs="1"/>
  162.             <xs:element name="pharmacyContactNumber" type="NCStandard:AlphaNumericRequired_50" minOccurs="1" maxOccurs="1"/>
  163.         </xs:sequence>
  164.         <xs:attribute name="ID" type="xs:string"/>
  165.     </xs:complexType>
  166.   <xs:complexType name="LocationTreeType">
  167.     <xs:sequence>
  168.       <xs:element name="locationName" type="NCStandard:AlphaNumericRequired_50" minOccurs="1" maxOccurs="1"/>
  169.       <xs:element name="locationShortName" type="NCStandard:AlphaNumericRequired_11" minOccurs="0" maxOccurs="1"/>
  170.       <xs:element name="level" type="NCStandard:NumericRequired" minOccurs="1" maxOccurs="1"/>
  171.     </xs:sequence>
  172.     <xs:attribute name="ID" type="xs:string"/>
  173.   </xs:complexType>
  174.   <xs:complexType name="LicensedPrescriberType">
  175.         <xs:sequence>
  176.             <xs:element name="LicensedPrescriberName" type="PersonNameType" minOccurs="1" maxOccurs="1"/>
  177.             <xs:element name="dea" type="NCStandard:AlphaNumericRequired_30" minOccurs="1" maxOccurs="1"/>
  178.             <xs:element name="prescriberStatus" type="NCStandard:PrescriberStatus" minOccurs="0" maxOccurs="1"/>
  179.             <xs:element name="upin" type="NCStandard:AlphaNumericOptional_10" minOccurs="0" maxOccurs="1"/>
  180.             <xs:element name="licenseState" type="NCStandard:StateCodes" minOccurs="0" maxOccurs="1"/>
  181.             <xs:element name="licenseNumber" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  182.       <xs:element name="prescriberNetwork" type="NCStandard:PrescriberNetwork" minOccurs="0" maxOccurs="1"/>
  183.       <xs:element name="prescriberStartDateTime" type="NCStandard:DateTimeFormatCCYYMMDDHHMM" minOccurs="0" maxOccurs="1"/>
  184.       <xs:element name="prescriberStopDateTime" type="NCStandard:DateTimeFormatCCYYMMDDHHMM" minOccurs="0" maxOccurs="1"/>
  185.       <xs:element name="npi" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  186.       <xs:element name="freeformCredentials" type="NCStandard:AlphaNumericOptional_10" minOccurs="0" maxOccurs="1"/>
  187.     </xs:sequence>
  188.         <xs:attribute name="ID" form="unqualified" type="xs:string"/>
  189.     </xs:complexType>
  190.   <xs:complexType name="MidlevelPrescriberType">
  191.     <xs:sequence>
  192.       <xs:element name="LicensedPrescriberName" type="PersonNameType" minOccurs="1" maxOccurs="1"/>
  193.       <xs:element name="dea" type="NCStandard:AlphaNumericRequired_30" minOccurs="0" maxOccurs="1"/>
  194.       <xs:element name="prescriberStatus" type="NCStandard:PrescriberStatus" minOccurs="0" maxOccurs="1"/>
  195.       <xs:element name="upin" type="NCStandard:AlphaNumericOptional_10" minOccurs="0" maxOccurs="1"/>
  196.       <xs:element name="licenseState" type="NCStandard:StateCodes" minOccurs="0" maxOccurs="1"/>
  197.       <xs:element name="licenseNumber" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  198.       <xs:element name="prescriberNetwork" type="NCStandard:PrescriberNetwork" minOccurs="0" maxOccurs="1"/>
  199.       <xs:element name="prescriberStartDateTime" type="NCStandard:DateTimeFormatCCYYMMDDHHMM" minOccurs="0" maxOccurs="1"/>
  200.       <xs:element name="prescriberStopDateTime" type="NCStandard:DateTimeFormatCCYYMMDDHHMM" minOccurs="0" maxOccurs="1"/>
  201.       <xs:element name="npi" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  202.       <xs:element name="freeformCredentials" type="NCStandard:AlphaNumericOptional_10" minOccurs="0" maxOccurs="1"/>
  203.     </xs:sequence>
  204.     <xs:attribute name="ID" form="unqualified" type="xs:string"/>
  205.   </xs:complexType>
  206.     <xs:complexType name="StaffType">
  207.         <xs:sequence>
  208.             <xs:element name="StaffName" type="PersonNameType" minOccurs="1" maxOccurs="1"/>
  209.             <xs:element name="license" type="NCStandard:AlphaNumericOptional_10" minOccurs="0" maxOccurs="1"/>
  210.       <xs:element name="npi" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  211.     </xs:sequence>
  212.         <xs:attribute name="ID" form="unqualified" type="xs:string"/>
  213.     </xs:complexType>
  214.     <xs:complexType name="InterestedPartyType">
  215.         <xs:sequence>
  216.             <xs:element name="InterestedPartyName" type="PersonNameType" minOccurs="0" maxOccurs="1"/>
  217.             <xs:element name="InterestedPartyAddress" type="AddressOptionalType" minOccurs="0" maxOccurs="1"/>
  218.             <xs:element name="InterestedPartyContact" type="ContactType" minOccurs="0" maxOccurs="1"/>
  219.             <xs:element name="dea" type="NCStandard:AlphaNumericOptional_10" minOccurs="0" maxOccurs="1"/>
  220.             <xs:element name="upin" type="NCStandard:AlphaNumericOptional_10" minOccurs="0" maxOccurs="1"/>
  221.             <xs:element name="licenseState" type="NCStandard:StateCodes" minOccurs="0" maxOccurs="1"/>
  222.             <xs:element name="licenseNumber" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  223.       <xs:element name="npi" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  224.     </xs:sequence>
  225.         <xs:attribute name="ID" form="unqualified" type="xs:string"/>
  226.     </xs:complexType>
  227.     <xs:complexType name="PatientType">
  228.         <xs:sequence>
  229.             <xs:element name="PatientName" type="PersonNameType" minOccurs="1" maxOccurs="1"/>
  230.             <xs:element name="medicalRecordNumber" type="NCStandard:AlphaNumericOptional_40" minOccurs="0" maxOccurs="1"/>
  231.             <xs:element name="socialSecurityNumber" type="NCStandard:SSNBasic" minOccurs="0" maxOccurs="1"/>
  232.             <xs:element name="memo" type="NCStandard:AlphaNumericOptional_210" minOccurs="0" maxOccurs="1"/>
  233.             <xs:element name="PatientAddress" type="AddressOptionalType" minOccurs="0" maxOccurs="1"/>
  234.             <xs:element name="PatientContact" type="ContactType" minOccurs="0" maxOccurs="1"/>
  235.             <xs:element name="PatientCharacteristics" type="PatientCharacteristicsType" minOccurs="1" maxOccurs="1"/>
  236.             <xs:element name="PatientAllergies" type="PatientAllergyType" minOccurs="0" maxOccurs="50"/>
  237.             <xs:element name="PatientHealthplans" type="PatientHealthplanType" minOccurs="0" maxOccurs="10"/>
  238.             <xs:element name="PatientDiagnosis" type="PatientDiagnosisType" minOccurs="0" maxOccurs="100"/>
  239.             <xs:element name="PatientDiagnosisSearch" type="NCStandard:AlphaNumericOptional" minOccurs="0" maxOccurs="1"/>
  240.             <xs:element name="PatientIdentifier" type="PatientIdentifierType" minOccurs="0" maxOccurs="10"/>
  241.       <xs:element name="PatientFreeformHealthplans" type="PatientHealthplanFreeformType" minOccurs="0" maxOccurs="5"/>
  242.       <xs:element name="EpisodeIdentifier" type="NCStandard:AlphaNumericOptional_40" minOccurs="0" maxOccurs="1"/>
  243.       <xs:element name="EncounterIdentifier" type="NCStandard:AlphaNumericOptional_40" minOccurs="0" maxOccurs="1"/>
  244.       <xs:element name="PatientFreeformAllergy" type="PatientAllergyFreeformType" minOccurs="0" maxOccurs="50" />
  245.       <xs:element name="PatientFormulary" type="PatientFormularyType" minOccurs="0" maxOccurs="1"/>
  246.       <xs:element name="PatientPharmacies" type="PatientPharmacyType" minOccurs="0" maxOccurs="5"/>
  247.       <xs:element name="DrugSetID" type="NCStandard:AlphaNumericOptional_40" minOccurs="0" maxOccurs="1"/>
  248.     </xs:sequence>
  249.         <xs:attribute name="ID" form="unqualified" type="xs:string"/>
  250.     </xs:complexType>
  251.   <xs:complexType name="ExternalDrugOverrideType">
  252.     <xs:sequence>
  253.       <xs:element name="externalDrugConcept" type="NCStandard:DrugInformationOptional_105" minOccurs="0" maxOccurs="1"/>
  254.       <xs:element name="externalDrugName" type="NCStandard:DrugInformationOptional_80" minOccurs="0" maxOccurs="1"/>
  255.       <xs:element name="externalDrugStrength" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  256.       <xs:element name="externalDrugStrengthUOM" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  257.       <xs:element name="externalDrugStrengthWithUOM" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  258.       <xs:element name="externalDrugDosageForm" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  259.       <xs:element name="externalDrugRoute" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  260.       <xs:element name="externalDrugIdentifier" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  261.       <xs:element name="externalDrugIdentifierType" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  262.       <xs:element name="externalDrugSchedule" type="NCStandard:DrugScheduleType" minOccurs="1" maxOccurs="1"/>      
  263.       <xs:element name="externalDrugOverTheCounter" type="NCStandard:DrugOTCType" minOccurs="0" maxOccurs="1"/>
  264.       <xs:element name="externalDrugNdc" type="NCStandard:AlphaNumericRequired_11" minOccurs="0" maxOccurs="1"/>
  265.     </xs:sequence>    
  266.   </xs:complexType>
  267.     <xs:complexType name="NewPrescriptionType">
  268.         <xs:sequence>
  269.             <xs:element name="pharmacyIdentifier" type="NCStandard:AlphaNumericRequired_10" minOccurs="1" maxOccurs="1"/>
  270.             <xs:element name="drugIdentifier" type="NCStandard:AlphaNumericRequired_11" minOccurs="1" maxOccurs="1"/>
  271.             <xs:element name="drugIdentifierType" type="NCStandard:DrugDatabaseType" minOccurs="1" maxOccurs="1"/>
  272.             <xs:element name="dispenseNumber" type="NCStandard:NumericWithDecimalRequired_15" minOccurs="1" maxOccurs="1"/>
  273.             <xs:element name="dosage" type="NCStandard:AlphaNumericRequired_140" minOccurs="1" maxOccurs="1"/>
  274.             <xs:element name="refillCount" type="NCStandard:NumericRequired" minOccurs="1" maxOccurs="1"/>
  275.             <xs:element name="substitution" type="NCStandard:DrugSubstitutionType" minOccurs="1" maxOccurs="1"/>
  276.             <xs:element name="pharmacistMessage" type="NCStandard:AlphaNumericOptional_210" minOccurs="0" maxOccurs="1"/>
  277.       <xs:element name="externalOverrideDrug" type="ExternalDrugOverrideType" minOccurs="0" maxOccurs="1"/>
  278.       <xs:element name="renewalRequestIdentifier" type="NCStandard:AlphaNumericOptional_40" minOccurs="0" maxOccurs="1"/>
  279.       <xs:element name="codifiedSigType" type="CodifiedSigType" minOccurs="0" maxOccurs="1"/>
  280.       <xs:element name="prn" type="NCStandard:DrugTakeAsNeededType" minOccurs="0" maxOccurs="1"/>
  281.       <xs:element name="dispenseNumberQualifier" type="NCStandard:AlphaNumericRequired_2" minOccurs="0" maxOccurs="1"/>
  282.       <xs:element name="daysSupply" type="NCStandard:NumericRequired_3" minOccurs="0" maxOccurs="1"/>
  283.       <xs:element name="prescriptionAuditDelivery" type="NCStandard:PrescriptionAuditDeliveryType" minOccurs="0" maxOccurs="1"/>
  284.       <xs:element name="refillQuantityQualifier" type="NCStandard:AlphaNumericRequired_10" minOccurs="0" maxOccurs="1"/>
  285.     </xs:sequence>
  286.         <xs:attribute name="ID" form="unqualified" type="xs:string"/>
  287.     </xs:complexType>
  288.     <xs:complexType name="NewPrescriptionImageType">
  289.         <xs:sequence>
  290.             <xs:element name="imageDataType" type="xs:string" minOccurs="1" maxOccurs="1"/>
  291.             <xs:element name="imageDataFormat" type="xs:string" minOccurs="1" maxOccurs="1"/>
  292.             <xs:element name="imageDataWidth" type="NCStandard:NumericRequired" minOccurs="1" maxOccurs="1"/>
  293.             <xs:element name="imageDataHeight" type="NCStandard:NumericRequired" minOccurs="1" maxOccurs="1"/>
  294.             <xs:element name="imageDataSize" type="NCStandard:NumericRequired" minOccurs="1" maxOccurs="1"/>
  295.             <xs:element name="imageData" type="xs:string" minOccurs="1" maxOccurs="1"/>
  296.         </xs:sequence>
  297.         <xs:attribute name="ID" form="unqualified" type="xs:string"/>
  298.     </xs:complexType>
  299.     <xs:complexType name="NewPrescriptionWithImagesType">
  300.         <xs:sequence>
  301.             <xs:element name="pharmacyIdentifier" type="NCStandard:AlphaNumericRequired_10" minOccurs="0" maxOccurs="1"/>
  302.             <xs:element name="drugName" type="NCStandard:AlphaNumericOptional_80" minOccurs="0" maxOccurs="1"/>
  303.             <xs:element name="drugStrength" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  304.             <xs:element name="drugStrengthUOM" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  305.             <xs:element name="drugRoute" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  306.             <xs:element name="drugForm" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  307.             <xs:element name="drugIdentifier" type="NCStandard:AlphaNumericOptional" minOccurs="0" maxOccurs="1"/>
  308.             <xs:element name="drugIdentifierType" type="NCStandard:DrugDatabaseType" minOccurs="0" maxOccurs="1"/>
  309.             <xs:element name="dispenseNumber" type="NCStandard:NumericOptional" minOccurs="0" maxOccurs="1"/>
  310.             <xs:element name="dosage" type="NCStandard:AlphaNumericOptional_140" minOccurs="0" maxOccurs="1"/>
  311.             <xs:element name="refillCount" type="NCStandard:NumericOptional" minOccurs="0" maxOccurs="1"/>
  312.             <xs:element name="substitution" type="NCStandard:DrugSubstitutionType" minOccurs="0" maxOccurs="1"/>
  313.             <xs:element name="pharmacistMessage" type="NCStandard:AlphaNumericOptional_210" minOccurs="0" maxOccurs="1"/>
  314.             <xs:element name="images" type="NewPrescriptionImageType" minOccurs="0" maxOccurs="4"/>
  315.         </xs:sequence>
  316.         <xs:attribute name="ID" form="unqualified" type="xs:string"/>
  317.     </xs:complexType>
  318.     <xs:complexType name="PrescriptionRenewalResponseType">
  319.         <xs:sequence>
  320.             <xs:element name="renewalRequestIdentifier" type="NCStandard:AlphaNumericRequired_40" minOccurs="1" maxOccurs="1"/>
  321.             <xs:element name="responseCode" type="NCStandard:ResponseCodeType" minOccurs="1" maxOccurs="1"/>
  322.       <xs:element name="refillCount" type="NCStandard:NumericOptional" minOccurs="0" maxOccurs="1"/>
  323.       <xs:element name="drugSchedule" type="NCStandard:DrugScheduleType" minOccurs="0" maxOccurs="1"/>
  324.       <xs:element name="responseDenyCode" type="NCStandard:ResponseDenyCodeType" minOccurs="0" maxOccurs="1"/>      
  325.       <xs:element name="messageToPharmacist" type="NCStandard:AlphaNumericOptional_70" minOccurs="0" maxOccurs="1"/>
  326.       <xs:element name="refillQuantityQualifier" type="NCStandard:AlphaNumericRequired_10" minOccurs="0" maxOccurs="1"/>
  327.     </xs:sequence>
  328.         <xs:attribute name="ID" form="unqualified" type="xs:string"/>
  329.     </xs:complexType>
  330.     <xs:complexType name="PrescriptionRenewalRequestType">
  331.         <xs:sequence>
  332.             <xs:element name="pharmacyIdentifier" type="NCStandard:AlphaNumericRequired_10" minOccurs="1" maxOccurs="1"/>
  333.             <xs:element name="drugNDC" type="NCStandard:NumericOptional" minOccurs="1" maxOccurs="1"/>
  334.             <xs:element name="drug" type="NCStandard:AlphaNumericRequired_70" minOccurs="1" maxOccurs="1"/>
  335.             <xs:element name="dispenseNumber" type="NCStandard:NumericRequired" minOccurs="1" maxOccurs="1"/>
  336.             <xs:element name="dosage" type="NCStandard:AlphaNumericOptional_140" minOccurs="1" maxOccurs="1"/>
  337.             <xs:element name="lastFillDate" type="NCStandard:DateFormatCCYYMMDD" minOccurs="0" maxOccurs="1"/>
  338.             <xs:element name="writtenDate" type="NCStandard:DateFormatCCYYMMDD" minOccurs="0" maxOccurs="1"/>
  339.             <xs:element name="daysSupply" type="NCStandard:NumericOptional" minOccurs="0" maxOccurs="1"/>
  340.             <xs:element name="substitution" type="NCStandard:DrugSubstitutionType" minOccurs="1" maxOccurs="1"/>
  341.             <xs:element name="refills" type="NCStandard:AlphaNumericOptional_10" minOccurs="1" maxOccurs="1"/>
  342.             <xs:element name="pharmacistMessage" type="NCStandard:AlphaNumericOptional_210" minOccurs="1" maxOccurs="1"/>
  343.         </xs:sequence>
  344.         <xs:attribute name="ID" type="NCStandard:AlphaNumericRequired_40"/>
  345.     </xs:complexType>
  346.   <xs:complexType name="CodifiedSigType">
  347.     <xs:sequence>
  348.       <xs:element name="ActionType" type="NCStandard:NumericRequired" minOccurs="1" maxOccurs="1"/>
  349.       <xs:element name="NumberType" type="NCStandard:NumericRequired" minOccurs="1" maxOccurs="1"/>
  350.       <xs:element name="FormType" type="NCStandard:NumericRequired" minOccurs="1" maxOccurs="1"/>
  351.       <xs:element name="RouteType" type="NCStandard:NumericRequired" minOccurs="1" maxOccurs="1"/>
  352.       <xs:element name="FrequencyType" type="NCStandard:NumericRequired" minOccurs="1" maxOccurs="1"/>
  353.     </xs:sequence>
  354.   </xs:complexType>
  355.   <xs:complexType name="PatientFormularyType">
  356.     <xs:sequence>
  357.       <xs:element name="eligibilityGuid" type="NCStandard:AlphaNumericRequired_40" minOccurs="0" maxOccurs="1"/>
  358.       <xs:element name="eligibilityIndex" type="NCStandard:NumericRequired" minOccurs="0" maxOccurs="1"/>
  359.       <xs:element name="drugIdentifier" type="NCStandard:AlphaNumericRequired_11" minOccurs="0" maxOccurs="1"/>
  360.       <xs:element name="drugIdentifierType" type="NCStandard:DrugDatabaseType" minOccurs="0" maxOccurs="1"/>
  361.       <xs:element name="statusDisplayed" type="NCStandard:AlphaNumericRequired_30" minOccurs="0" maxOccurs="1"/>
  362.     </xs:sequence>
  363.   </xs:complexType>
  364.   <xs:complexType name="PatientPharmacyType">
  365.     <xs:sequence>
  366.       <xs:element name="pharmacyIdentifier" type="NCStandard:AlphaNumericRequired_10" minOccurs="1" maxOccurs="1"/>
  367.     </xs:sequence>
  368.   </xs:complexType>
  369.   <xs:complexType name="DrugSetType">
  370.     <xs:sequence>
  371.       <xs:element name="drugSetName" type="NCStandard:AlphaNumericRequired_40" minOccurs="1" maxOccurs="1"/>
  372.       <xs:element name="drugSetType" type="NCStandard:DrugSetType" minOccurs="1" maxOccurs="1"/>
  373.       <xs:element name="drugSetStatus" type="NCStandard:DrugSetStatusType" minOccurs="1" maxOccurs="1"/>
  374.       <xs:element name="drug" type="NewPrescriptionType" minOccurs="0" maxOccurs="10"/>
  375.     </xs:sequence>
  376.     <xs:attribute name="ID" form="unqualified" type="xs:string"/>
  377.   </xs:complexType>
  378.   <xs:complexType name="OutsidePrescriptionType">
  379.         <xs:sequence>
  380.             <xs:element name="externalId" type="NCStandard:AlphaNumericOptional_40" minOccurs="0" maxOccurs="1"/>
  381.             <xs:element name="pharmacyIdentifier" type="NCStandard:AlphaNumericOptional_10" minOccurs="0" maxOccurs="1"/>
  382.             <xs:element name="pharmacyPhone" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  383.             <xs:element name="pharmacyFax" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  384.             <xs:element name="date" type="NCStandard:AlphaNumericOptional_35" minOccurs="0" maxOccurs="1"/>
  385.             <xs:element name="doctorName" type="NCStandard:AlphaNumericOptional_80" minOccurs="0" maxOccurs="1"/>
  386.             <xs:element name="drug" type="NCStandard:AlphaNumericOptional_80" minOccurs="0" maxOccurs="1"/>
  387.             <xs:element name="dosage" type="NCStandard:AlphaNumericOptional_80" minOccurs="0" maxOccurs="1"/>
  388.             <xs:element name="dispenseNumber" type="NCStandard:NumericWithDecimalOptional" minOccurs="0" maxOccurs="1"/>
  389.             <xs:element name="sig" type="NCStandard:AlphaNumericOptional_140" minOccurs="0" maxOccurs="1"/>
  390.             <xs:element name="refillCount" type="NCStandard:NumericOptional" minOccurs="0" maxOccurs="1"/>
  391.             <xs:element name="substitution" type="NCStandard:DrugSubstitutionType" minOccurs="0" maxOccurs="1"/>
  392.             <xs:element name="pharmacistMessage" type="NCStandard:AlphaNumericOptional_210" minOccurs="0" maxOccurs="1"/>
  393.       <xs:element name="drugIdentifier" type="NCStandard:AlphaNumericRequired_11" minOccurs="0" maxOccurs="1"/>
  394.       <xs:element name="drugIdentifierType" type="NCStandard:DrugDatabaseType" minOccurs="0" maxOccurs="1"/>
  395.       <xs:element name="prescriptionType" type="NCStandard:AlphaNumericRequired_30" minOccurs="0" maxOccurs="1"/>
  396.       <xs:element name="externalOverrideDrug" type="ExternalDrugOverrideType" minOccurs="0" maxOccurs="1"/>
  397.       <xs:element name="renewalRequestIdentifier" type="NCStandard:AlphaNumericOptional_40" minOccurs="0" maxOccurs="1"/>
  398.       <xs:element name="codifiedSigType" type="CodifiedSigType" minOccurs="0" maxOccurs="1"/>
  399.       <xs:element name="prn" type="NCStandard:DrugTakeAsNeededType" minOccurs="0" maxOccurs="1"/>
  400.       <xs:element name="prescriptionStatus" type="NCStandard:PrescriptionStatusType" minOccurs="0" maxOccurs="1" />
  401.       <xs:element name="prescriptionSubStatus" type="NCStandard:PrescriptionSubStatusType" minOccurs="0" maxOccurs="1" />
  402.       <xs:element name="prescriptionArchiveStatus" type="NCStandard:PrescriptionArchiveType" minOccurs="0" maxOccurs="1" />
  403.       <xs:element name="dispenseNumberQualifier" type="NCStandard:AlphaNumericRequired_2" minOccurs="0" maxOccurs="1"/>
  404.       <xs:element name="daysSupply" type="NCStandard:NumericRequired_3" minOccurs="0" maxOccurs="1"/>
  405.     </xs:sequence>
  406.         <xs:attribute name="ID" type="NCStandard:AlphaNumericOptional_40"/>
  407.     </xs:complexType>
  408.     <!--
  409.      NCScript Definition
  410.      -->
  411.     <xs:element name="NCScript">
  412.         <xs:complexType>
  413.             <xs:sequence>
  414.                 <xs:element name="Credentials" type="CredentialsType" minOccurs="1" maxOccurs="1"/>
  415.                 <xs:element name="UserRole" type="UserRoleType" minOccurs="1" maxOccurs="1"/>
  416.                 <xs:element name="Destination" type="DestinationType" minOccurs="1" maxOccurs="1"/>
  417.                 <xs:element name="Account" type="AccountType" minOccurs="1" maxOccurs="1"/>
  418.                 <xs:element name="Location" type="LocationType" minOccurs="0" maxOccurs="1"/>
  419.         <xs:element name="LocationTree" type="LocationTreeType" minOccurs="0" maxOccurs="10"/>
  420.         <xs:element name="LicensedPrescriber" type="LicensedPrescriberType" minOccurs="0" maxOccurs="1"/>
  421.                 <xs:element name="Staff" type="StaffType" minOccurs="0" maxOccurs="1"/>
  422.         <xs:element name="SupervisingDoctor" type="LicensedPrescriberType" minOccurs="0" maxOccurs="1"/>
  423.         <xs:element name="SupervisingDoctorLocation" type="LocationType" minOccurs="0" maxOccurs="1"/>
  424.         <xs:element name="MidlevelPrescriber" type="MidlevelPrescriberType" minOccurs="0" maxOccurs="1"/>
  425.         <xs:element name="Patient" type="PatientType" minOccurs="0" maxOccurs="1"/>
  426.                 <xs:element name="NewPrescription" type="NewPrescriptionType" minOccurs="0" maxOccurs="1"/>
  427.                 <xs:element name="PrescriptionRenewalResponse" type="PrescriptionRenewalResponseType" minOccurs="0" maxOccurs="1"/>
  428.                 <xs:element name="OutsidePrescription" type="OutsidePrescriptionType" minOccurs="0" maxOccurs="60"/>
  429.                 <xs:element name="NewPrescriptionWithImages" type="NewPrescriptionWithImagesType" minOccurs="0" maxOccurs="1"/>
  430.         <xs:element name="DrugSet" type="DrugSetType" minOccurs="0" maxOccurs="1"/>
  431.       </xs:sequence>
  432.         </xs:complexType>
  433.     </xs:element>
  434.     <!--
  435.      NCRenewal Definition
  436.      -->
  437.     <xs:element name="NCRenewal">
  438.         <xs:complexType>
  439.             <xs:sequence>
  440.                 <xs:element name="Credentials" type="CredentialsType" minOccurs="1" maxOccurs="1"/>
  441.                 <xs:element name="Account" type="AccountType" minOccurs="1" maxOccurs="1"/>
  442.                 <xs:element name="Location" type="LocationType" minOccurs="1" maxOccurs="1"/>
  443.                 <xs:element name="LicensedPrescriber" type="LicensedPrescriberType" minOccurs="1" maxOccurs="1"/>
  444.                 <xs:element name="Staff" type="StaffType" minOccurs="0" maxOccurs="1"/>
  445.                 <xs:element name="Patient" type="PatientType" minOccurs="1" maxOccurs="1"/>
  446.                 <xs:element name="PrescriptionRenewalRequest" type="PrescriptionRenewalRequestType" minOccurs="1" 
  447.  
  448. maxOccurs="1"/>
  449.             </xs:sequence>
  450.         </xs:complexType>
  451.     </xs:element>
  452.  
  453. </xs:schema>
  454.