Schema Name AQISchema.xsd
Target Namespace https://www.aqihq.org/AQIXMLResources/AQISchema.xsd
Documentation
      Anesthesia Quality Institute (AQI) National Anesthesia Clinical Outcomes Registry (NACOR) License

      The AQI NACOR XML Schema provides structure for data submission to NACOR.
      Copyright (C) 2018. Anesthesia Quality Institute. All Rights Reserved.

      This XML Schema is subject to AQI's terms and conditions available at: https://www.aqihq.org/terms.aspx

      Anesthesia Quality Institute
      1061 American Lane
      Schaumburg, IL 60173
      Email: AQI_Tech@asahq.org

      Vendor Contracting:
      As of July 1, 2017, AQI will require all data submitters, either vendors or anesthesia practices
      preparing and submitting their own data, to sign a contractual agreement for data summation. In
      order for a vendor to submit data to AQI’s data warehouse, we need a Vendor Agreement in place.
      AQI wanted a more formal relationship with vendors, moving forward we will be entering into
      a contractual relationship with each vendor.  In the Agreement, the vendor agrees to submit data in
      accordance with the AQI Data Specifications.  The Vendor Agreement clarifies the relationship between
      AQI and the vendor and also outlines each party’s responsibilities.
      If you have not yet signed or obtained a Vendor Contract, please contact:

      Gerard Tarafa, MBA
      AQI Senior Compliance Manager
      Anesthesia Quality Institute (AQI)
      G.Tarafa@asahq.org

    
Complex Types AirwayManagementSetType
AirwayManagementType
AnesthesiaCaseType
AnesthesiaDetailsDataType
AnesthesiaDetailsSetType
AnesthesiaDetailsType
AnesthesiaMethodSetType
AnesthesiaMethodType
AnesthesiaRecordsType
AnesthesiaRecordType
AnesthesiaStaffSetType
AnesthesiaStaffType
CPTAnesSetType
CPTAnesType
CPTSetType
CPTType
DemographicType
EmailNotificationSetType
EmailSetType
ICDSetType
ICDType
ICEventSetType
ICEventType
IntakeOutputSetType
IntakeOutputTotalType
IntraOpType
IntubationDetailsPropertiesType
IntubationDetailsPropertyType
IntubationDetailsType
LabDataType
MedicationsSetType
MedicationsTotalSetType
MedicationType
MixtureMedicationType
MonitoringPhysiologicSetType
MonitoringPhysiologicType
MonitoringSetType
OutcomeCodeType
OutcomeSetSetType
OutcomesEventsType
OutputEventType
OutputsSetType
PaymentMethodType
PostOpLabSetType
PostOpType
PreLabDataSetType
PreOpType
ProcedureLocationType
ProcedureType
QCDRSetType
QCDRSetTypeSet
RecordHeaderType
SetVendorSetType
TimingMilestonesSetType
TimingMilestoneType
Vendors
VendorSetType
Elements AnesthesiaRecords
Simple Types AdmissionStatusCodeType
AirwayManagementMethodCodeType
AirwayManagementMethodCodeTypeExampleList
AirwayManagementSubMethodCodeType
AirwayManagementSubMethodCodeTypeExampleList
AnesthesiaCategoryCodeType
AnesthesiaDetailsCategoryCodeType
AnesthesiaInductionCodeType
AnesthesiaInductionCodeTypeExampleList
AnesthesiaMaintenanceCodeType
AnesthesiaMaintenanceCodeTypeExampleList
AnesthesiaSubCategoryCodeType
AnyString
AQIXMLVersionType
ASAClassCodeType
CommonUnit
CommonUnitExample
CoverageCodeType
CPTModifierType
CPTModifierTypeList
CPTValueType
DateRangeType
emailAddressType
ICCategoryCodeType
ICDValueType
ICDValueType10CM
ICDValueType10SG
ICDValueType9CM
ICDValueType9SG
ICDVersionType
IntakeOutputDirectionCodeType
IntubationApproachCodeType
LabDataCategoryCodeType
LabDataNameCodeType
LabDataNameCodeTypeExampleList
LocationTypeCodeType
MedicalSpeciaityCodeType
MedicationTypeCodeType
MedicationTypeCodeTypeExampleList
MonitorCodeType
MonitorCodeTypeExampleList
MonitoringNameCodeType
MonitoringNameCodeTypeExampleList
MonitoringSourceCodeType
NacorRegistryCodeType
npiType
OutcomeIDType
OutcomeSeverityCodeType
OutcomeTimeFrameCodeType
OutputCodeType
OutputCodeTypeExampleList
PatientSexCodeType
PaymentMethodCodeType
PosInt
PositiveIntegerType
PostOpDischargeCodeType
PostOpDispositionCodeType
PostOpDispositionCodeTypeExampleList
PracticeIdType
PreAnesthStatusCodeType
ProcStatusCodeType
ProviderCredentialsCodeType
QCDRCodeValueType
QCDRMeasureType
QCDRModifierType
RaceCodeType
RouteCodeType
RouteCodeTypeExampleList
StaffResponsibilityCodeType
taxIdType
TimingMilestoneCodeType
TimingMilestoneCodeTypeExampleList
TransferStatusCodeType
TypeVendorType
USStateCodeType
VendorIDType
ZipCodeType
XSD Schema Code
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mstns="https://www.aqihq.org/AQIXMLResources/AQISchema.xsd" elementFormDefault="qualified" targetNamespace="https://www.aqihq.org/AQIXMLResources/AQISchema.xsd" >
  <xs:annotation>
    <xs:documentation>
      Anesthesia Quality Institute (AQI) National Anesthesia Clinical Outcomes Registry (NACOR) License

      The AQI NACOR XML Schema provides structure for data submission to NACOR.
      Copyright (C) 2018. Anesthesia Quality Institute. All Rights Reserved.

      This XML Schema is subject to AQI's terms and conditions available at: https://www.aqihq.org/terms.aspx

      Anesthesia Quality Institute
      1061 American Lane
      Schaumburg, IL 60173
      Email: AQI_Tech@asahq.org

      Vendor Contracting:
      As of July 1, 2017, AQI will require all data submitters, either vendors or anesthesia practices
      preparing and submitting their own data, to sign a contractual agreement for data summation. In
      order for a vendor to submit data to AQI’s data warehouse, we need a Vendor Agreement in place.
      AQI wanted a more formal relationship with vendors, moving forward we will be entering into
      a contractual relationship with each vendor.  In the Agreement, the vendor agrees to submit data in
      accordance with the AQI Data Specifications.  The Vendor Agreement clarifies the relationship between
      AQI and the vendor and also outlines each party’s responsibilities.
      If you have not yet signed or obtained a Vendor Contract, please contact:

      Gerard Tarafa, MBA
      AQI Senior Compliance Manager
      Anesthesia Quality Institute (AQI)
      G.Tarafa@asahq.org

    
</xs:documentation>
  </xs:annotation>
<!-- Anesthesia Records Root -->
  <xs:element name="AnesthesiaRecords" type="AnesthesiaRecordsType"/><!-- Anesthesia Record List -->
  <xs:complexType name="AnesthesiaRecordsType">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" name="RecordHeader" type="RecordHeaderType"/>
      <xs:element minOccurs="1" maxOccurs="unbounded" name="AnesthesiaRecord" type="AnesthesiaRecordType"/>
    </xs:sequence>

  </xs:complexType>
<!-- definition of complex elements --><!-- ############################### -->
  <xs:complexType name="RecordHeaderType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="PracticeID" type="PracticeIdType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="CreatedBy" type="AnyString"/>
      <xs:element minOccurs="1" maxOccurs="1" name="CreateDate" type="DateRangeType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="EmailSet" type="EmailSetType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="AQIXMLVersion" type="AQIXMLVersionType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="VendorSet" type="VendorSetType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="EmailSetType">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="unbounded" name="EmailNotificationSet" type="EmailNotificationSetType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="EmailNotificationSetType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="EmailNotificationFirstName" type="AnyString"/>
      <xs:element minOccurs="1" maxOccurs="1" name="EmailNotificationLastName" type="AnyString"/>
      <xs:element minOccurs="1" maxOccurs="1" name="EmailNotificationAddress" type="emailAddressType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="VendorSetType">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="unbounded" name="Vendor" type="Vendors"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="Vendors">
    <xs:all>
      <xs:element minOccurs="0" maxOccurs="1" name="VendorID" type="VendorIDType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="VendorSetType" type="SetVendorSetType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="VendorName" type="AnyString"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="SetVendorSetType">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="unbounded" name="VendorType" type="TypeVendorType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="AnesthesiaRecordType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="Demographic" type="DemographicType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="Procedure" type="ProcedureType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="AnesthesiaCase" type="AnesthesiaCaseType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="PreOp" type="PreOpType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="IntraOp" type="IntraOpType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="PostOp" type="PostOpType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="TimingMilestones" nillable="true" type="TimingMilestonesSetType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="OutcomesEvents" nillable="true" type="OutcomesEventsType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="AnesthesiaDetails" nillable="true" type="AnesthesiaDetailsType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="DemographicType">
    <xs:all>
      <xs:element minOccurs="0" maxOccurs="1" name="PatientID" nillable="true" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="1" name="DOB" nillable="true" type="xs:date"/>
      <xs:element minOccurs="0" maxOccurs="1" name="HomeZip" nillable="true" type="ZipCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="HomeState" nillable="true" type="USStateCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="HomeCity" nillable="true" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="1" name="Race" nillable="true" type="RaceCodeType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="PatientSex" type="PatientSexCodeType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="ProcedureType">
    <xs:all>
      <xs:element minOccurs="0" maxOccurs="1" name="ProcedureID" nillable="true" type="AnyString"/>
      <xs:element minOccurs="1" maxOccurs="1" name="FacilityID" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="1" name="ProcedureLocation" nillable="true" type="ProcedureLocationType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="ProcStartTime" nillable="true" type="DateRangeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="ProcEndTime" nillable="true" type="DateRangeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="AdmissionStatus" nillable="true" type="AdmissionStatusCodeType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="ProcStatus" type="ProcStatusCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="TransferStatus" nillable="true" type="TransferStatusCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="AdmissionDate" nillable="true" type="DateRangeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="ProcedureNotes" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="1" name="CPTSet" nillable="true" type="CPTSetType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="ProcedureLocationType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="LocationType" type="LocationTypeCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="LocationDetails" nillable="true" type="AnyString"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="CPTSetType">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="unbounded" name="CPT" type="CPTType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="CPTType">
    <xs:all>
      <xs:element minOccurs="0" maxOccurs="1" name="CPTRank" nillable="true" type="AnyString"/>
      <xs:element minOccurs="1" maxOccurs="1" name="CPTValue" type="CPTValueType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="CPTModifier" nillable="true" type="CPTModifierType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="AnesthesiaCaseType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="AnesthesiaRecordID" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="1" name="AnesthesiaCoverage" nillable="true" type="CoverageCodeType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="AnesthesiaStaffSet" type="AnesthesiaStaffSetType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="MonitoringSet" nillable="true" type="MonitoringSetType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="AnesthesiaMethodSet" type="AnesthesiaMethodSetType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="AirwayManagementSet" nillable="true" type="AirwayManagementSetType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="CPTAnesSet" nillable="true" type="CPTAnesSetType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="AnesthesiaStaffSetType">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="unbounded" name="AnesthesiaStaff" type="AnesthesiaStaffType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="AnesthesiaStaffType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="TaxID" type="taxIdType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="NPI" type="npiType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="StaffResponsibility" nillable="true" type="StaffResponsibilityCodeType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="ProviderCredentials" type="ProviderCredentialsCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="StaffSignIn" nillable="true" type="DateRangeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="StaffSignOut" nillable="true" type="DateRangeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="StaffNotes" nillable="true" type="AnyString"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="MonitoringSetType">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="unbounded" name="Monitor" type="MonitorCodeType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="AnesthesiaMethodSetType">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="unbounded" name="AnesthesiaMethod" type="AnesthesiaMethodType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="AnesthesiaMethodType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="AnesthesiaCategory" type="AnesthesiaCategoryCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="AnesthesiaSubCategory" nillable="true" type="AnesthesiaSubCategoryCodeType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="AnesthesiaStartTime" type="DateRangeType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="AnesthesiaEndTime" type="DateRangeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="AnesthesiaInduction" nillable="true" type="AnesthesiaInductionCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="AnesthesiaInductionStartTime" nillable="true" type="DateRangeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="AnesthesiaMaintenance" nillable="true" type="AnesthesiaMaintenanceCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="AnesthesiaNotes" nillable="true" type="AnyString"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="AirwayManagementSetType">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="unbounded" name="AirwayManagement" type="AirwayManagementType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="AirwayManagementType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="AirwayManagementMethod" type="AirwayManagementMethodCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="AirwaySubManagementMethod" nillable="true" type="AirwayManagementSubMethodCodeType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="CPTAnesSetType">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="unbounded" name="CPTAnes" type="CPTAnesType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="CPTAnesType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="CPTAnesValue" type="CPTValueType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="CPTAnesModifier" nillable="true" type="CPTModifierType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="CPTAnesDescription" nillable="true" type="AnyString"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="PreOpType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="Age" type="PosInt"/>
      <xs:element minOccurs="0" maxOccurs="1" name="Weight" nillable="true" type="PosInt"/>
      <xs:element minOccurs="0" maxOccurs="1" name="WeightInKg" nillable="true" type="PosInt"/>
      <xs:element minOccurs="0" maxOccurs="1" name="Height" nillable="true" type="PosInt"/>
      <xs:element minOccurs="0" maxOccurs="1" name="HeightInCm" nillable="true" type="PosInt"/>
      <xs:element minOccurs="1" maxOccurs="1" name="ASAClass" type="ASAClassCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="PreAnesthStatus" nillable="true" type="PreAnesthStatusCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="ICDSet" nillable="true" type="ICDSetType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="PreLabSet" nillable="true" type="PreLabDataSetType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="ICDSetType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="ICD" type="ICDType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="ICDType">
    <xs:all>
      <xs:element minOccurs="0" maxOccurs="1" name="ICDRank" nillable="true" type="PosInt"/>
      <xs:element minOccurs="1" maxOccurs="1" name="ICDValue" type="ICDValueType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="ICDVersion" type="ICDVersionType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="PreLabDataSetType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="PreLabData" nillable="true" type="LabDataType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="LabDataType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="LabName" type="LabDataNameCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="LabCategoryName" nillable="true" type="LabDataCategoryCodeType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="LabUnit" type="CommonUnit"/>
      <xs:element minOccurs="1" maxOccurs="1" name="LabValue" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="1" name="LabValueText" nillable="true" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="1" name="LabRangeHigh" nillable="true" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="1" name="LabRangeLow" nillable="true" type="AnyString"/>
      <xs:element minOccurs="1" maxOccurs="1" name="LabDateTime" type="DateRangeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="LabComments" nillable="true" type="AnyString"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="IntraOpType">
    <xs:all>
      <xs:element minOccurs="0" maxOccurs="1" name="MedicationsSet" nillable="true" type="MedicationsSetType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="MonitoringPhysiologicSet" nillable="true" type="MonitoringPhysiologicSetType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="OutputsSet" nillable="true" type="OutputsSetType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="MedicationsSetType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Medication" nillable="true" type="MedicationType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="MedicationType">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" name="MedicationName" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MedicationType" nillable="true" type="MedicationTypeCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="MedDose" nillable="true" type="PosInt"/>
      <xs:element minOccurs="0" maxOccurs="1" name="DoseUnits" nillable="true" type="CommonUnit"/>
      <xs:element minOccurs="0" maxOccurs="1" name="DoseStart" nillable="true" type="DateRangeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="DoseEnd" nillable="true" type="DateRangeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="MedConcentration" nillable="true" type="PosInt"/>
      <xs:element minOccurs="0" maxOccurs="1" name="MedConcentrationUnit" nillable="true" type="CommonUnit"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MedicationRoute" nillable="true" type="RouteCodeType"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MixtureMedications" nillable="true" type="MixtureMedicationType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="MixtureMedicationType">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" name="MixtureMedicationName" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MixtureMedicationType" nillable="true" type="MedicationTypeCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="MixtureMedDose" nillable="true" type="PosInt"/>
      <xs:element minOccurs="0" maxOccurs="1" name="MixtureDoseUnits" nillable="true" type="CommonUnit"/>
      <xs:element minOccurs="0" maxOccurs="1" name="MixtureMedConcentration" nillable="true" type="PosInt"/>
      <xs:element minOccurs="0" maxOccurs="1" name="MixtureMedConcentrationUnit" nillable="true" type="CommonUnit"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="MonitoringPhysiologicSetType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Monitoring" nillable="true" type="MonitoringPhysiologicType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="MonitoringPhysiologicType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="MonitoringName" type="MonitoringNameCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="MonitoringTime" nillable="true" type="DateRangeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="MonitoringUnits" nillable="true" type="CommonUnit"/>
      <xs:element minOccurs="0" maxOccurs="1" name="MonitoringValueNumeric" nillable="true" type="PosInt"/>
      <xs:element minOccurs="0" maxOccurs="1" name="MonitoringValueText" nillable="true" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="1" name="MonitoringSource" nillable="true" type="MonitoringSourceCodeType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="OutputsSetType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="OutputEvent" nillable="true" type="OutputEventType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="OutputEventType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="OutputEventName" type="OutputCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="OutputUnits" nillable="true" type="CommonUnit"/>
      <xs:element minOccurs="0" maxOccurs="1" name="OutputValueNumeric" nillable="true" type="PosInt"/>
      <xs:element minOccurs="0" maxOccurs="1" name="OutputValueText" nillable="true" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="1" name="OutputStartDateTime" nillable="true" type="DateRangeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="OutputEndDateTime" nillable="true" type="DateRangeType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="PostOpType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="PostOpDisposition" nillable="true" type="PostOpDispositionCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="PostOpDispDateTime" nillable="true" type="DateRangeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="PostOpDischarge" nillable="true" type="PostOpDischargeCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="PostOpDischargeDateTime" nillable="true" type="DateRangeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="LengthOfHospitalStay" nillable="true" type="PosInt"/>
      <xs:element minOccurs="1" maxOccurs="unbounded" name="PaymentMethod" type="PaymentMethodType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="PostOpLabSet" nillable="true" type="PostOpLabSetType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="ICDSet" nillable="true" type="ICDSetType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="PaymentMethodType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="PaymentCode" type="PaymentMethodCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="PaymentDescription" nillable="true" type="PaymentMethodCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="PaymentDescriptionSec" nillable="true" type="PaymentMethodCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="PaymentDescriptionTh" nillable="true" type="PaymentMethodCodeType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="PostOpLabSetType">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="unbounded" name="PostLabData" nillable="true" type="LabDataType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="TimingMilestonesSetType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="TimingMilestone" nillable="true" type="TimingMilestoneType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="TimingMilestoneType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="TMType" type="TimingMilestoneCodeType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="TMStartTime" type="DateRangeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="TMEndTime" nillable="true" type="DateRangeType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="OutcomesEventsType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="ICEventSet" nillable="true" type="ICEventSetType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="OutcomeSet" nillable="true" type="OutcomeSetSetType"/><!-- THIS NODE SET WILL NOT BE REQUIRED UNTIL JAN 1 2016, THIS NODE SET MAY BE IMPLEMENTED AS OF AUG 1 2015 -->
      <xs:element minOccurs="0" maxOccurs="1" name="QCDRSet" nillable="true" type="QCDRSetTypeSet"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="ICEventSetType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="ICEvent" nillable="true" type="ICEventType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="ICEventType">
    <xs:all>
      <xs:element minOccurs="0" maxOccurs="1" name="ICEventTimeDate" nillable="true" type="DateRangeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="ICCategory" nillable="true" type="ICCategoryCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="ICSeverity" nillable="true" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="1" name="ICName" nillable="true" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="1" name="ICDescription" nillable="true" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="1" name="ICValue" nillable="true" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="1" name="ICNotes" nillable="true" type="AnyString"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="OutcomeSetSetType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Outcome" nillable="true" type="OutcomeCodeType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="OutcomeCodeType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="OutcomeID" type="OutcomeIDType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="OutcomeOccurred" type="xs:boolean"/>
      <xs:element minOccurs="0" maxOccurs="1" name="OutcomeTimeStamp" nillable="true" type="DateRangeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="OutcomeSeverity" nillable="true" type="OutcomeSeverityCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="OutcomeTimeFrame" nillable="true" type="OutcomeTimeFrameCodeType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="QCDRSetTypeSet">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="unbounded" name="QCDR" nillable="true" type="QCDRSetType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="QCDRSetType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="QCDRMeasure" type="QCDRMeasureType"/>
      <xs:element minOccurs="1" maxOccurs="1" name="QCDRCodeValue" type="QCDRCodeValueType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="QCDRModifier" nillable="true" type="QCDRModifierType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="AnesthesiaDetailsType">
    <xs:all>
      <xs:element minOccurs="0" maxOccurs="1" name="IntakeOutputSet" nillable="true" type="IntakeOutputSetType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="IntubationDetails" nillable="true" type="IntubationDetailsType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="AnesthesiaDetailsSet" nillable="true" type="AnesthesiaDetailsSetType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="MedicationsTotalSet" nillable="true" type="MedicationsTotalSetType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="IntakeOutputSetType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="IntakeOutputTotal" nillable="true" type="IntakeOutputTotalType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="IntakeOutputTotalType">
    <xs:all>
      <xs:element minOccurs="0" maxOccurs="1" name="IntakeOutputDirection" nillable="true" type="IntakeOutputDirectionCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="InputOutputName" nillable="true" type="OutputCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="OutputUnits" nillable="true" type="CommonUnit"/>
      <xs:element minOccurs="0" maxOccurs="1" name="InputOutputTotal" nillable="true" type="PosInt"/>
      <xs:element minOccurs="0" maxOccurs="1" name="InputOutputRoute" nillable="true" type="RouteCodeType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="IntubationDetailsType">
    <xs:all>
      <xs:element minOccurs="0" maxOccurs="1" name="IntubationApproach" nillable="true" type="IntubationApproachCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="IntubationAttempts" nillable="true" type="PosInt"/>
      <xs:element minOccurs="0" maxOccurs="1" name="TubeSize" nillable="true" type="PosInt"/>
      <xs:element minOccurs="0" maxOccurs="1" name="TubeType" nillable="true" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="1" name="IntubationDetailsPropertiesSet" nillable="true" type="IntubationDetailsPropertiesType"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="IntubationDetailsPropertiesType">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="unbounded" name="IntubationDetailsProperties" nillable="true" type="IntubationDetailsPropertyType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="IntubationDetailsPropertyType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="IntubationPropery" type="AnyString"/>
      <xs:element minOccurs="0" maxOccurs="1" name="IntubationDetailsPropertyValue" nillable="true" type="AnyString"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="AnesthesiaDetailsSetType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="AnesthesiaDetailsData" nillable="true" type="AnesthesiaDetailsDataType"/>
    </xs:sequence>

  </xs:complexType>

  <xs:complexType name="AnesthesiaDetailsDataType">
    <xs:all>
      <xs:element minOccurs="1" maxOccurs="1" name="AnesthesiaDetailsCategory" type="AnesthesiaDetailsCategoryCodeType"/>
      <xs:element minOccurs="0" maxOccurs="1" name="AnesthesiaDetailsValue" nillable="true" type="AnyString"/>
    </xs:all>

  </xs:complexType>

  <xs:complexType name="MedicationsTotalSetType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MedicationsTotals" nillable="true" type="MedicationType"/>
    </xs:sequence>

  </xs:complexType>
<!-- definition of simple elements --><!-- ############################### -->
  <xs:simpleType name="PosInt">
    <xs:union memberTypes="PositiveIntegerType AnyString"/>
  </xs:simpleType>

  <xs:simpleType name="AnyString">
    <xs:restriction base="xs:token">
      <xs:minLength value="1"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="PositiveIntegerType">
    <xs:restriction base="xs:positiveInteger"/>
  </xs:simpleType>
<!-- Demographic -->
  <xs:simpleType name="ZipCodeType">
    <xs:restriction base="xs:string">
      <xs:pattern value="[0-9]{5}(-[0-9]{4})?"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="USStateCodeType">
    <xs:restriction base="xs:string">
      <xs:minLength value="2"/>
      <xs:maxLength value="2"/><!-- ALABAMA -->
      <xs:enumeration value="AL"/><!-- ALASKA -->
      <xs:enumeration value="AK"/><!-- AMERICAN SAMOA -->
      <xs:enumeration value="AS"/><!-- ARIZONA -->
      <xs:enumeration value="AZ"/><!-- ARKANSAS -->
      <xs:enumeration value="AR"/><!-- CALIFORNIA -->
      <xs:enumeration value="CA"/><!-- COLORADO -->
      <xs:enumeration value="CO"/><!-- CONNECTICUT -->
      <xs:enumeration value="CT"/><!-- DELAWARE -->
      <xs:enumeration value="DE"/><!-- DISTRICT OF COLUMBIA -->
      <xs:enumeration value="DC"/><!-- FEDERATED STATES OF MICRONESIA -->
      <xs:enumeration value="FM"/><!-- FLORIDA -->
      <xs:enumeration value="FL"/><!-- GEORGIA -->
      <xs:enumeration value="GA"/><!-- GUAM -->
      <xs:enumeration value="GU"/><!-- HAWAII -->
      <xs:enumeration value="HI"/><!-- IDAHO -->
      <xs:enumeration value="ID"/><!-- ILLINOIS -->
      <xs:enumeration value="IL"/><!-- INDIANA -->
      <xs:enumeration value="IN"/><!-- IOWA -->
      <xs:enumeration value="IA"/><!-- KANSAS -->
      <xs:enumeration value="KS"/><!-- KENTUCKY -->
      <xs:enumeration value="KY"/><!-- LOUISIANA -->
      <xs:enumeration value="LA"/><!-- MAINE -->
      <xs:enumeration value="ME"/><!-- MARSHALL ISLANDS -->
      <xs:enumeration value="MH"/><!-- MARYLAND -->
      <xs:enumeration value="MD"/><!-- MASSACHUSETTS -->
      <xs:enumeration value="MA"/><!-- MICHIGAN -->
      <xs:enumeration value="MI"/><!-- MINNESOTA -->
      <xs:enumeration value="MN"/><!-- MISSISSIPPI -->
      <xs:enumeration value="MS"/><!-- MISSOURI -->
      <xs:enumeration value="MO"/><!-- MONTANA -->
      <xs:enumeration value="MT"/><!-- NEBRASKA -->
      <xs:enumeration value="NE"/><!-- NEVADA -->
      <xs:enumeration value="NV"/><!-- NEW HAMPSHIRE -->
      <xs:enumeration value="NH"/><!-- NEW JERSEY -->
      <xs:enumeration value="NJ"/><!-- NEW MEXICO -->
      <xs:enumeration value="NM"/><!-- NEW YORK -->
      <xs:enumeration value="NY"/><!-- NORTH CAROLINA -->
      <xs:enumeration value="NC"/><!-- NORTH DAKOTA -->
      <xs:enumeration value="ND"/><!-- NORTHERN MARIANA ISLANDS -->
      <xs:enumeration value="MP"/><!-- OHIO -->
      <xs:enumeration value="OH"/><!-- OKLAHOMA -->
      <xs:enumeration value="OK"/><!-- OREGON -->
      <xs:enumeration value="OR"/><!-- PALAU -->
      <xs:enumeration value="PW"/><!-- PENNSYLVANIA -->
      <xs:enumeration value="PA"/><!-- PUERTO RICO -->
      <xs:enumeration value="PR"/><!-- RHODE ISLAND -->
      <xs:enumeration value="RI"/><!-- SOUTH CAROLINA -->
      <xs:enumeration value="SC"/><!-- SOUTH DAKOTA -->
      <xs:enumeration value="SD"/><!-- TENNESSEE -->
      <xs:enumeration value="TN"/><!-- TEXAS -->
      <xs:enumeration value="TX"/><!-- UTAH -->
      <xs:enumeration value="UT"/><!-- VERMONT -->
      <xs:enumeration value="VT"/><!-- VIRGIN ISLANDS -->
      <xs:enumeration value="VI"/><!-- VIRGINIA -->
      <xs:enumeration value="VA"/><!-- WASHINGTON -->
      <xs:enumeration value="WA"/><!-- WEST VIRGINIA -->
      <xs:enumeration value="WV"/><!-- WISCONSIN -->
      <xs:enumeration value="WI"/><!-- WYOMING -->
      <xs:enumeration value="WY"/><!-- ARMED FORCES AFRICA, CANADA, EUROPE, MIDDLE EAST -->
      <xs:enumeration value="AE"/><!-- ARMED FORCES AMERICAS -->
      <xs:enumeration value="AA"/><!-- ARMED FORCES PACIFIC -->
      <xs:enumeration value="AP"/><!-- UNKNOWN -->
      <xs:enumeration value="UK"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="RaceCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="American Indian or Alaska Native"/>
      <xs:enumeration value="Asian or Pacific Islander"/>
      <xs:enumeration value="Bi or Multi Racial"/>
      <xs:enumeration value="Black, not of Hispanic Origin"/>
      <xs:enumeration value="Hispanic, Black"/>
      <xs:enumeration value="Hispanic, Color Unknown"/>
      <xs:enumeration value="Hispanic, White"/>
      <xs:enumeration value="Middle Eastern"/>
      <xs:enumeration value="White, not of Hispanic Origin"/>
      <xs:enumeration value="OTHER"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="PatientSexCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Male"/>
      <xs:enumeration value="Female"/>
      <xs:enumeration value="Missing"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>
<!-- Procedure -->
  <xs:simpleType name="LocationTypeCodeType">
    <xs:annotation>
      <xs:documentation>
        Location Type uses CMS's Place of Service Codes for Professional Claims Database (Updated November 2016) for its values. A mapping and definitions are listed here for convenience.
        Source: https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set.html

        1 = Pharmacy = A facility or location where drugs and other medically related items and services are sold, dispensed, or otherwise provided directly to patients.
        2 = Telehealth = The location where health services and health related services are provided or received, through a telecommunication system. (Effective January 1, 2017)
        3 = School = A facility whose primary purpose is education.
        4 = Homeless Shelter = A facility or location whose primary purpose is to provide temporary housing to homeless individuals (e.g., emergency shelters, individual or family shelters).
        5 = Indian Health Service Free-standing Facility = A facility or location, owned and operated by the Indian Health Service, which provides diagnostic, therapeutic (surgical and non-surgical), and rehabilitation services to American Indians and Alaska Natives who do not require hospitalization.  (Effective January 1, 2003)
        6 = Indian Health Service Provider-based Facility = A facility or location, owned and operated by the Indian Health Service, which provides diagnostic, therapeutic (surgical and non-surgical), and rehabilitation services rendered by, or under the supervision of, physicians to American Indians and Alaska Natives admitted as inpatients or outpatients.
        7 = Tribal 638 Free-standing Facility = A facility or location owned and operated by a federally recognized American Indian or Alaska Native tribe or tribal organization under a 638 agreement, which provides diagnostic, therapeutic (surgical and non-surgical), and rehabilitation services to tribal members who do not require hospitalization.  (Effective January 1, 2003)
        8 = Tribal 638 Provider-based Facility = A facility or location owned and operated by a federally recognized American Indian or Alaska Native tribe or tribal organization under a 638 agreement, which provides diagnostic, therapeutic (surgical and non-surgical), and rehabilitation services to tribal members admitted as inpatients or outpatients.
        9 = Prison / Correctional Facility = A prison, jail, reformatory, work farm, detention center, or any other similar facility maintained by either Federal, State or local authorities for the purpose of confinement or rehabilitation of adult or juvenile criminal offenders.
        11 = Office = Location, other than a hospital, skilled nursing facility (SNF), military treatment facility, community health center, State or local public health clinic, or intermediate care facility (ICF), where the health professional routinely provides health examinations, diagnosis, and treatment of illness or injury on an ambulatory basis.
        12 = Home = Location, other than a hospital or other facility, where the patient receives care in a private residence.
        13 = Assisted Living Facility = Congregate residential facility with self-contained living units providing assessment of each resident's needs and on-site support 24 hours a day, 7 days a week, with the capacity to deliver or arrange for services including some health care and other services.
        14 = Group Home = A residence, with shared living areas, where clients receive supervision and other services such as social and/or behavioral services, custodial service, and minimal services (e.g., medication administration).
        15 = Mobile Unit = A facility/unit that moves from place-to-place equipped to provide preventive, screening, diagnostic, and/or treatment services.
        16 = Temporary Lodging = A short term accommodation such as a hotel, camp ground, hostel, cruise ship or resort where the patient receives care, and which is not identified by any other POS code.
        17 = Walk-in Retail Health Clinic = A walk-in health clinic, other than an office, urgent care facility, pharmacy or independent clinic and not described by any other Place of Service code, that is located within a retail operation and provides, on an ambulatory basis, preventive and primary care services. (This code is available for use immediately with a final effective date of May 1, 2010)
        18 = Place of Employment-Worksite = A location, not described by any other POS code, owned or operated by a public or private entity where the patient is employed, and where a health professional provides on-going or episodic occupational medical, therapeutic or rehabilitative services to the individual. (This code is available for use effective January 1, 2013 but no later than May 1, 2013)
        19 = Off Campus-Outpatient Hospital = A portion of an off-campus hospital provider based department which provides diagnostic, therapeutic (both surgical and nonsurgical), and rehabilitation services to sick or injured persons who do not require hospitalization or institutionalization.  (Effective January 1, 2016)
        20 = Urgent Care Facility = Location, distinct from a hospital emergency room, an office, or a clinic, whose purpose is to diagnose and treat illness or injury for unscheduled, ambulatory patients seeking immediate medical attention.
        21 = Inpatient Hospital = A facility, other than psychiatric, which primarily provides diagnostic, therapeutic (both surgical and nonsurgical), and rehabilitation services by, or under, the supervision of physicians to patients admitted for a variety of medical conditions.
        22 = On Campus-Outpatient Hospital = A portion of a hospital’s main campus which provides diagnostic, therapeutic (both surgical and nonsurgical), and rehabilitation services to sick or injured persons who do not require hospitalization or institutionalization.  (Description change effective January 1, 2016)
        23 = Emergency Room – Hospital = A portion of a hospital where emergency diagnosis and treatment of illness or injury is provided.
        24 = Ambulatory Surgical Center = A freestanding facility, other than a physician's office, where surgical and diagnostic services are provided on an ambulatory basis.
        25 = Birthing Center = A facility, other than a hospital's maternity facilities or a physician's office, which provides a setting for labor, delivery, and immediate post-partum care as well as immediate care of new born infants.
        26 = Military Treatment Facility = A medical facility operated by one or more of the Uniformed Services. Military Treatment Facility (MTF) also refers to certain former U.S. Public Health Service (USPHS) facilities now designated as Uniformed Service Treatment Facilities (USTF).
        31 = Skilled Nursing Facility = A facility which primarily provides inpatient skilled nursing care and related services to patients who require medical, nursing, or rehabilitative services but does not provide the level of care or treatment available in a hospital.
        32 = Nursing Facility = A facility which primarily provides to residents skilled nursing care and related services for the rehabilitation of injured, disabled, or sick persons, or, on a regular basis, health-related care services above the level of custodial care too other than individuals with intellectual disabilities.
        33 = Custodial Care Facility = A facility which provides room, board and other personal assistance services, generally on a long-term basis, and which does not include a medical component.
        34 = Hospice = A facility, other than a patient's home, in which palliative and supportive care for terminally ill patients and their families are provided.
        41 = Ambulance - Land = A land vehicle specifically designed, equipped and staffed for lifesaving and transporting the sick or injured.
        42 = Ambulance – Air or Water = An air or water vehicle specifically designed, equipped and staffed for lifesaving and transporting the sick or injured.
        49 = Independent Clinic = A location, not part of a hospital and not described by any other Place of Service code, that is organized and operated to provide preventive, diagnostic, therapeutic, rehabilitative, or palliative services to outpatients only.
        50 = Federally Qualified Health Center = A facility located in a medically underserved area that provides Medicare beneficiaries preventive primary medical care under the general direction of a physician.
        51 = Inpatient Psychiatric Facility = A facility that provides inpatient psychiatric services for the diagnosis and treatment of mental illness on a 24-hour basis, by or under the supervision of a physician.
        52 = Psychiatric Facility-Partial Hospitalization = A facility for the diagnosis and treatment of mental illness that provides a planned therapeutic program for patients who do not require full time hospitalization, but who need broader programs than are possible from outpatient visits to a hospital-based or hospital-affiliated facility.
        53 = Community Mental Health Center = A facility that provides the following services: outpatient services, including specialized outpatient services for children, the elderly, individuals who are chronically ill, and residents of the CMHC's mental health services area who have been discharged from inpatient treatment at a mental health facility; 24 hour a day emergency care services; day treatment, other partial hospitalization services, or psychosocial rehabilitation services; screening for patients being considered for admission to State mental health facilities to determine the appropriateness of such admission; and consultation and education services.
        54 = Intermediate Care Facility / Individuals with Intellectual Disabilities = A facility which primarily provides health-related care and services above the level of custodial care to individuals but does not provide the level of care or treatment available in a hospital or SNF.
        55 = Residential Substance Abuse Treatment Facility = A facility which provides treatment for substance (alcohol and drug) abuse to live-in residents who do not require acute medical care. Services include individual and group therapy and counseling, family counseling, laboratory tests, drugs and supplies, psychological testing, and room and board.
        56 = Psychiatric Residential Treatment Center = A facility or distinct part of a facility for psychiatric care which provides a total 24-hour therapeutically planned and professionally staffed group living and learning environment.
        57 = Non-residential Substance Abuse Treatment Facility = A location which provides treatment for substance (alcohol and drug) abuse on an ambulatory basis.  Services include individual and group therapy and counseling, family counseling, laboratory tests, drugs and supplies, and psychological testing.
        60 = Mass Immunization Center = A location where providers administer pneumococcal pneumonia and influenza virus vaccinations and submit these services as electronic media claims, paper claims, or using the roster billing method. This generally takes place in a mass immunization setting, such as, a public health center, pharmacy, or mall but may include a physician office setting.
        61 = Comprehensive Inpatient Rehabilitation Facility = A facility that provides comprehensive rehabilitation services under the supervision of a physician to inpatients with physical disabilities. Services include physical therapy, occupational therapy, speech pathology, social or psychological services, and orthotics and prosthetics services.
        62 = Comprehensive Outpatient Rehabilitation Facility = A facility that provides comprehensive rehabilitation services under the supervision of a physician to outpatients with physical disabilities. Services include physical therapy, occupational therapy, and speech pathology services.
        65 = End-Stage Renal Disease Treatment Facility = A facility other than a hospital, which provides dialysis treatment, maintenance, and/or training to patients or caregivers on an ambulatory or home-care basis.
        71 = Public Health Clinic = A facility maintained by either State or local health departments that provides ambulatory primary medical care under the general direction of a physician.
        72 = Rural Health Clinic = A certified facility which is located in a rural medically underserved area that provides ambulatory primary medical care under the general direction of a physician.
        81 = Independent Laboratory = A laboratory certified to perform diagnostic and/or clinical tests independent of an institution or a physician's office.
        99 = Other Place of Service = Other place of service not identified above.
      
</xs:documentation>
    </xs:annotation>

    <xs:restriction base="xs:int">
      <xs:enumeration value="1"/>
      <xs:enumeration value="2"/>
      <xs:enumeration value="3"/>
      <xs:enumeration value="4"/>
      <xs:enumeration value="5"/>
      <xs:enumeration value="6"/>
      <xs:enumeration value="7"/>
      <xs:enumeration value="8"/>
      <xs:enumeration value="9"/>
      <xs:enumeration value="11"/>
      <xs:enumeration value="12"/>
      <xs:enumeration value="13"/>
      <xs:enumeration value="14"/>
      <xs:enumeration value="15"/>
      <xs:enumeration value="16"/>
      <xs:enumeration value="17"/>
      <xs:enumeration value="18"/>
      <xs:enumeration value="19"/>
      <xs:enumeration value="20"/>
      <xs:enumeration value="21"/>
      <xs:enumeration value="22"/>
      <xs:enumeration value="23"/>
      <xs:enumeration value="24"/>
      <xs:enumeration value="25"/>
      <xs:enumeration value="26"/>
      <xs:enumeration value="31"/>
      <xs:enumeration value="32"/>
      <xs:enumeration value="33"/>
      <xs:enumeration value="34"/>
      <xs:enumeration value="41"/>
      <xs:enumeration value="42"/>
      <xs:enumeration value="49"/>
      <xs:enumeration value="50"/>
      <xs:enumeration value="51"/>
      <xs:enumeration value="52"/>
      <xs:enumeration value="53"/>
      <xs:enumeration value="54"/>
      <xs:enumeration value="55"/>
      <xs:enumeration value="56"/>
      <xs:enumeration value="57"/>
      <xs:enumeration value="60"/>
      <xs:enumeration value="61"/>
      <xs:enumeration value="62"/>
      <xs:enumeration value="65"/>
      <xs:enumeration value="71"/>
      <xs:enumeration value="72"/>
      <xs:enumeration value="81"/>
      <xs:enumeration value="99"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="AdmissionStatusCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Inpatient"/>
      <xs:enumeration value="Ambulatory"/>
      <xs:enumeration value="Observation"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="ProcStatusCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Emergency"/>
      <xs:enumeration value="Urgent"/>
      <xs:enumeration value="Elective"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="TransferStatusCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Ambulatory Surgical Center"/>
      <xs:enumeration value="Clinic Physician Office"/>
      <xs:enumeration value="Died"/>
      <xs:enumeration value="Extended Care Facility"/>
      <xs:enumeration value="Floor bed"/>
      <xs:enumeration value="Health Care Facility"/>
      <xs:enumeration value="Home without services"/>
      <xs:enumeration value="Home with services"/>
      <xs:enumeration value="Hospice"/>
      <xs:enumeration value="Hospital"/>
      <xs:enumeration value="Intensive Care Unit"/>
      <xs:enumeration value="Left against medical advice"/>
      <xs:enumeration value="Observation unit"/>
      <xs:enumeration value="Operating Room"/>
      <xs:enumeration value="Physician Referral"/>
      <xs:enumeration value="Same Facility"/>
      <xs:enumeration value="Telemetry/step-down unit"/>
      <xs:enumeration value="Transferred to another hospital"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="CPTValueType">
    <xs:restriction base="xs:string">
      <xs:minLength value="5"/>
      <xs:maxLength value="5"/>
      <xs:pattern value="[a-zA-Z0-9][0-9][0-9][0-9][a-zA-Z0-9]"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="CPTModifierType">
    <xs:list itemType="CPTModifierTypeList"/>
  </xs:simpleType>

  <xs:simpleType name="CPTModifierTypeList">
    <xs:restriction base="xs:string">
      <xs:maxLength value="2"/>
      <xs:pattern value="[a-zA-Z0-9]{2}"/>
    </xs:restriction>

  </xs:simpleType>
<!-- AnesthesiaCase -->
  <xs:simpleType name="CoverageCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="MD-ALONE"/>
      <xs:enumeration value="MD-DIRECTING"/>
      <xs:enumeration value="CRNA-DIRECTED"/>
      <xs:enumeration value="CRNA-ALONE"/>
      <xs:enumeration value="CRNA-SUPERVISED"/>
      <xs:enumeration value="MD-SUPERVISING"/>
      <xs:enumeration value="CRNA-DIRECTING"/>
      <xs:enumeration value="MD-MD"/>
      <xs:enumeration value="MD-PRESENT BUT NOT DIRECTING"/>
      <xs:enumeration value="CAA-DIRECTED"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="taxIdType">
    <xs:restriction base="xs:string">
      <xs:length value="9" fixed="true"/>
      <xs:pattern value="[0-9]{9}"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="npiType">
    <xs:restriction base="xs:string">
      <xs:length value="10" fixed="true"/>
      <xs:pattern value="[0-9]{10}"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="StaffResponsibilityCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Supervisory"/>
      <xs:enumeration value="Monitoring"/>
      <xs:enumeration value="Administrative"/>
      <xs:enumeration value="In charge"/>
      <xs:enumeration value="Performing the case"/>
      <xs:enumeration value="Medically responsible"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="ProviderCredentialsCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Advanced Practice Nurse"/>
      <xs:enumeration value="Anesthesiologist"/>
      <xs:enumeration value="Certified Anesthesiologist Assistant"/>
      <xs:enumeration value="Certified Registered Nurse Anesthetist"/>
      <xs:enumeration value="Fellow (Anesthesiology)"/>
      <xs:enumeration value="Surgeon"/>
      <xs:enumeration value="Physician Assistant"/>
      <xs:enumeration value="Registered Nurse"/>
      <xs:enumeration value="Resident (Anesthesia)"/>
      <xs:enumeration value="Student Registered Nurse Anesthetist"/>
      <xs:enumeration value="Dentist or Oral Surgeon"/>
      <xs:enumeration value="Podiatrist"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="MedicalSpeciaityCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Cardiac Surgery"/>
      <xs:enumeration value="Cardiology-EP"/>
      <xs:enumeration value="Cardiology-General"/>
      <xs:enumeration value="Cardiology-Interventional"/>
      <xs:enumeration value="Dental/oral"/>
      <xs:enumeration value="Dermatology"/>
      <xs:enumeration value="Endocrinology"/>
      <xs:enumeration value="Gastroenterology"/>
      <xs:enumeration value="General Medicine"/>
      <xs:enumeration value="General Surgery"/>
      <xs:enumeration value="Gynecology"/>
      <xs:enumeration value="Gyne-Onc"/>
      <xs:enumeration value="Infectious Disease"/>
      <xs:enumeration value="Neonatology"/>
      <xs:enumeration value="Nephrology"/>
      <xs:enumeration value="Neurology"/>
      <xs:enumeration value="Neurosurgery"/>
      <xs:enumeration value="Normal Newborn"/>
      <xs:enumeration value="Obstetrics"/>
      <xs:enumeration value="Oncology"/>
      <xs:enumeration value="Ophthalmology"/>
      <xs:enumeration value="Orthopedics-Foot"/>
      <xs:enumeration value="Orthopedics-Hand/Wrist"/>
      <xs:enumeration value="Orthopedics-Major Joint"/>
      <xs:enumeration value="Orthopedics-Other"/>
      <xs:enumeration value="Orthopedics-Sports Med"/>
      <xs:enumeration value="Orthopedics-Trauma"/>
      <xs:enumeration value="Otolaryngology"/>
      <xs:enumeration value="Psychiatry"/>
      <xs:enumeration value="Rehabilitation"/>
      <xs:enumeration value="Respiratory"/>
      <xs:enumeration value="Rheumatology"/>
      <xs:enumeration value="Spine"/>
      <xs:enumeration value="Substance Abuse"/>
      <xs:enumeration value="Surgical Oncology"/>
      <xs:enumeration value="Thoracic Surgery"/>
      <xs:enumeration value="Transplant"/>
      <xs:enumeration value="Trauma"/>
      <xs:enumeration value="Ungroupable"/>
      <xs:enumeration value="Urology"/>
      <xs:enumeration value="Vascular"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="MonitorCodeType">
    <xs:union memberTypes="MonitorCodeTypeExampleList AnyString"/>
  </xs:simpleType>

  <xs:simpleType name="MonitorCodeTypeExampleList">
    <xs:restriction base="xs:string"<!-- THE FOLLOWING ENUMERATIONS ARE PROVIDED AS A SAMPLE ONLY
      
           It is impossible to provide a comprehensive list of
           monitoring devises used in medicine. In order to keep up
           with technology (as technological devices are invented and
           put in use) The following is a sample of the
           values provided from several groups. -->
>
      <xs:enumeration value="electrocardiogram"/>
      <xs:enumeration value="oxygen analyzer"/>
      <xs:enumeration value="thermometer"/>
      <xs:enumeration value="respirometer"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="AnesthesiaCategoryCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Neuraxial"/>
      <xs:enumeration value="General Anesthesia"/>
      <xs:enumeration value="Monitored Anesthesia Care"/>
      <xs:enumeration value="Peripheral Nerve Block"/>
      <xs:enumeration value="No Anesthesia Provided"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="AnesthesiaSubCategoryCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Combined Spinal and Epidural"/>
      <xs:enumeration value="Epidural"/>
      <xs:enumeration value="Spinal"/>
      <xs:enumeration value="Inhalational General Anesthesia"/>
      <xs:enumeration value="Total Intravenous Anesthesia"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="AnesthesiaInductionCodeType">
    <xs:union memberTypes="AnesthesiaInductionCodeTypeExampleList AnyString"/>
  </xs:simpleType>

  <xs:simpleType name="AnesthesiaInductionCodeTypeExampleList">
    <xs:restriction base="xs:string"<!-- THE FOLLOWING ENUMERATIONS ARE PROVIDED AS A SAMPLE ONLY
      
           AQI does not have a comprehensive list of
           Induction Technique values used in medicine. The following
           is a sample of the values provided from several groups. -->
>
      <xs:enumeration value="Inhalation"/>
      <xs:enumeration value="Intravenous"/>
      <xs:enumeration value="Rectal"/>
      <xs:enumeration value="Intramuscular"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="AnesthesiaMaintenanceCodeType">
    <xs:union memberTypes="AnesthesiaMaintenanceCodeTypeExampleList AnyString"/>
  </xs:simpleType>

  <xs:simpleType name="AnesthesiaMaintenanceCodeTypeExampleList">
    <xs:restriction base="xs:string"<!-- THE FOLLOWING ENUMERATIONS ARE PROVIDED AS A SAMPLE ONLY
      
           AQI does not have a comprehensive list of
           Anesthesia Maintenance Technique values used in medicine. The following
           is a sample of the values provided from several groups. -->
>
      <xs:enumeration value="circle system"/>
      <xs:enumeration value="non-rebreathing"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="AirwayManagementMethodCodeType">
    <xs:union memberTypes="AirwayManagementMethodCodeTypeExampleList AnyString"/>
  </xs:simpleType>

  <xs:simpleType name="AirwayManagementMethodCodeTypeExampleList">
    <xs:restriction base="xs:string"<!-- THE FOLLOWING ENUMERATIONS ARE PROVIDED AS A SAMPLE ONLY
      
           AQI does not have a comprehensive list of
           Airway Management Technique values used in medicine. The following
           is a sample of the values provided from several groups. -->
>
      <xs:enumeration value="Ambu Bag Rescue"/>
      <xs:enumeration value="Artificial Respiration"/>
      <xs:enumeration value="Awake"/>
      <xs:enumeration value="Controlled Ventilation"/>
      <xs:enumeration value="Double-Lumen Endotrachealtubes"/>
      <xs:enumeration value="Endobronchial Blocker"/>
      <xs:enumeration value="Endotracheal Tube (ETT)"/>
      <xs:enumeration value="Endotracheal, Awake"/>
      <xs:enumeration value="Endotracheal, Fiberoptic Bronchoscope"/>
      <xs:enumeration value="Endotracheal, Fiberoptic Endoscope"/>
      <xs:enumeration value="Endotracheal, Fiberoptic Laryngoscope"/>
      <xs:enumeration value="Endotracheal, Video Laryngoscope"/>
      <xs:enumeration value="Facial Mask"/>
      <xs:enumeration value="Fiberoptic"/>
      <xs:enumeration value="Fiberoptic Endoscope"/>
      <xs:enumeration value="Fiberoptic Laryngoscope"/>
      <xs:enumeration value="FOB Elective"/>
      <xs:enumeration value="FOB Required"/>
      <xs:enumeration value="Glidescope Elective"/>
      <xs:enumeration value="Glidescope Required"/>
      <xs:enumeration value="Laryngeal Mask Airway (LMA)"/>
      <xs:enumeration value="Laryngeal Mask Airway (LMA) Classic"/>
      <xs:enumeration value="Laryngeal Mask Airway (LMA) Non-classic"/>
      <xs:enumeration value="Lighted Stylet"/>
      <xs:enumeration value="Nasal cannula"/>
      <xs:enumeration value="Natural"/>
      <xs:enumeration value="Oxygen Therapy"/>
      <xs:enumeration value="Room Air"/>
      <xs:enumeration value="Supraglottic Device"/>
      <xs:enumeration value="Video Laryngoscope"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="AirwayManagementSubMethodCodeType">
    <xs:union memberTypes="AirwayManagementSubMethodCodeTypeExampleList AnyString"/>
  </xs:simpleType>

  <xs:simpleType name="AirwayManagementSubMethodCodeTypeExampleList">
    <xs:restriction base="xs:string"<!-- THE FOLLOWING ENUMERATIONS ARE PROVIDED AS A SAMPLE ONLY
      
           AQI does not have a comprehensive list of
           Airway Management Technique values used in medicine. The following
           is a sample of the values provided from several groups. -->
>
      <xs:enumeration value="inverse ratio ventilation"/>
      <xs:enumeration value="high frequency ventilation"/>
      <xs:enumeration value="transtracheal jet ventilation"/>
      <xs:enumeration value="continuous flow ventilation"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="ASAClassCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="I"/>
      <xs:enumeration value="IE"/>
      <xs:enumeration value="II"/>
      <xs:enumeration value="IIE"/>
      <xs:enumeration value="III"/>
      <xs:enumeration value="IIIE"/>
      <xs:enumeration value="IV"/>
      <xs:enumeration value="IVE"/>
      <xs:enumeration value="V"/>
      <xs:enumeration value="VE"/>
      <xs:enumeration value="VI"/>
      <xs:enumeration value="VIE"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="PreAnesthStatusCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Awake"/>
      <xs:enumeration value="Calm"/>
      <xs:enumeration value="Asleep"/>
      <xs:enumeration value="Confused"/>
      <xs:enumeration value="Unresponsive"/>
      <xs:enumeration value="Apprehensive"/>
      <xs:enumeration value="Uncooperative"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="ICDValueType">
    <xs:union memberTypes="ICDValueType9CM ICDValueType10CM ICDValueType9SG ICDValueType10SG NacorRegistryCodeType"/>
  </xs:simpleType>

  <xs:simpleType name="NacorRegistryCodeType">
    <xs:restriction base="xs:string">
      <xs:pattern value="[0-9][0-9][a-zA-Z][0-9][0-9]"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="ICDValueType9CM">
    <xs:restriction base="xs:string">
      <xs:minLength value="3"/>
      <xs:maxLength value="6"/>
      <xs:pattern value="^(V\d{2}(\.\d{1,2})?|\d{3}(\.\d{1,2})?|E\d{3}(\.\d)?)$"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="ICDValueType10CM">
    <xs:restriction base="xs:string">
      <xs:minLength value="3"/>
      <xs:maxLength value="8"/>
      <xs:pattern value="^[A-TV-Z][0-9][A-Z0-9](\.[A-Z0-9]{1,4})?$"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="ICDValueType9SG">
    <xs:restriction base="xs:string">
      <xs:minLength value="3"/>
      <xs:maxLength value="4"/>
      <xs:pattern value="^\d{3,4}$"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="ICDValueType10SG">
    <xs:restriction base="xs:string">
      <xs:minLength value="3"/>
      <xs:maxLength value="5"/>
      <xs:pattern value="^[a-zA-Z0-9]{7}$"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="ICDVersionType">
    <xs:restriction base="xs:int">
      <xs:enumeration value="9"/>
      <xs:enumeration value="10"/>
      <xs:enumeration value="-1"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="LabDataNameCodeType">
    <xs:union memberTypes="LabDataNameCodeTypeExampleList AnyString"/>
  </xs:simpleType>

  <xs:simpleType name="LabDataNameCodeTypeExampleList"<!-- THE FOLLOWING ENUMERATIONS ARE PROVIDED AS A SAMPLE ONLY
      
           It is impossible to provide a comprehensive list of
           lab values used in medicine. The following is a sample of the
           values provided from several groups. -->
>
    <xs:restriction base="xs:string">
      <xs:enumeration value="Albumin"/>
      <xs:enumeration value="Alcohol$$ Serum"/>
      <xs:enumeration value="Alkaline Phosphatase"/>
      <xs:enumeration value="ALT (SGPT)"/>
      <xs:enumeration value="Amylase"/>
      <xs:enumeration value="Anion Gap"/>
      <xs:enumeration value="AST"/>
      <xs:enumeration value="AST (SGOT)"/>
      <xs:enumeration value="Bands"/>
      <xs:enumeration value="BE(vt)#"/>
      <xs:enumeration value="Bilirubin$$ Total"/>
      <xs:enumeration value="Bilirubin-Total"/>
      <xs:enumeration value="Blood Urea Nitrogen"/>
      <xs:enumeration value="BUN iStat"/>
      <xs:enumeration value="BUN/Creat.Ratio"/>
      <xs:enumeration value="Calc. Osmolality"/>
      <xs:enumeration value="Calcium (ionized)"/>
      <xs:enumeration value="Calcium (Total)"/>
      <xs:enumeration value="Chloride"/>
      <xs:enumeration value="Chloride iStat"/>
      <xs:enumeration value="Cholesterol"/>
      <xs:enumeration value="Cholesterol"/>
      <xs:enumeration value="COHb"/>
      <xs:enumeration value="Creatine Kinase"/>
      <xs:enumeration value="Creatine Kinase MB"/>
      <xs:enumeration value="Creatinine"/>
      <xs:enumeration value="Creatinine"/>
      <xs:enumeration value="Creatinine iStat"/>
      <xs:enumeration value="D-Dimer"/>
      <xs:enumeration value="Device"/>
      <xs:enumeration value="Digoxin level"/>
      <xs:enumeration value="Dilantin level"/>
      <xs:enumeration value="Fibrinogen"/>
      <xs:enumeration value="FiO2"/>
      <xs:enumeration value="GFR-Calculated"/>
      <xs:enumeration value="Globulin"/>
      <xs:enumeration value="Glucose (random)"/>
      <xs:enumeration value="Glucose CBG"/>
      <xs:enumeration value="Glucose iStat"/>
      <xs:enumeration value="Glucose-Pulmonary"/>
      <xs:enumeration value="Group + Rh"/>
      <xs:enumeration value="HCO3 (CO2)"/>
      <xs:enumeration value="HCO3act#"/>
      <xs:enumeration value="Hct#"/>
      <xs:enumeration value="HDL Cholesterol"/>
      <xs:enumeration value="Hematocrit"/>
      <xs:enumeration value="Hematocrit iStat"/>
      <xs:enumeration value="Hemoglobin"/>
      <xs:enumeration value="Hemoglobin iStat"/>
      <xs:enumeration value="HHb"/>
      <xs:enumeration value="Indirect Coombs"/>
      <xs:enumeration value="International Normalized Ratio"/>
      <xs:enumeration value="Ionized Calcium iStat"/>
      <xs:enumeration value="LDH"/>
      <xs:enumeration value="LDL Chol-Calculated"/>
      <xs:enumeration value="Magnesium"/>
      <xs:enumeration value="MetHb"/>
      <xs:enumeration value="O2Hb"/>
      <xs:enumeration value="pCO2"/>
      <xs:enumeration value="pH"/>
      <xs:enumeration value="Platelet"/>
      <xs:enumeration value="PO2"/>
      <xs:enumeration value="Potassium"/>
      <xs:enumeration value="Potassium (I-Stat)"/>
      <xs:enumeration value="Potassium-Pulmonary"/>
      <xs:enumeration value="Pregnancy test - Serum Qualitative"/>
      <xs:enumeration value="Pregnancy test - Urine Qualitative"/>
      <xs:enumeration value="Protein-Total"/>
      <xs:enumeration value="Prothrombin Time"/>
      <xs:enumeration value="PTT"/>
      <xs:enumeration value="sO2"/>
      <xs:enumeration value="Sodium"/>
      <xs:enumeration value="Sodium (I-Stat)"/>
      <xs:enumeration value="Sodium-Pulmonary"/>
      <xs:enumeration value="Thyroxine-FreeT4"/>
      <xs:enumeration value="Total CO2 iStat"/>
      <xs:enumeration value="Triglycerides"/>
      <xs:enumeration value="Triglycerides"/>
      <xs:enumeration value="Troponin"/>
      <xs:enumeration value="VLDL Cholesterol-Calculated"/>
      <xs:enumeration value="WBC"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="LabDataCategoryCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Blood bank"/>
      <xs:enumeration value="Chemistry"/>
      <xs:enumeration value="Cytology"/>
      <xs:enumeration value="Genetics"/>
      <xs:enumeration value="Hematology"/>
      <xs:enumeration value="Histology"/>
      <xs:enumeration value="Immunology"/>
      <xs:enumeration value="Microbiology"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="CommonUnit">
    <xs:union memberTypes="CommonUnitExample AnyString"/>
  </xs:simpleType>

  <xs:simpleType name="CommonUnitExample"<!-- THE FOLLOWING ENUMERATIONS ARE PROVIDED AS A SAMPLE ONLY
      
           It is impossible to provide a comprehensive list of
           unit values used in medicine. The following is a sample of the
           values provided from several groups. -->
>
    <xs:restriction base="xs:string">
      <xs:enumeration value="%"/>
      <xs:enumeration value="CM"/>
      <xs:enumeration value="DROP"/>
      <xs:enumeration value="EQ/HR"/>
      <xs:enumeration value="EQ/MIN"/>
      <xs:enumeration value="G/DL"/>
      <xs:enumeration value="GM"/>
      <xs:enumeration value="GM/DL"/>
      <xs:enumeration value="GM/HR"/>
      <xs:enumeration value="GM/KG/HR"/>
      <xs:enumeration value="GM/KG/MIN"/>
      <xs:enumeration value="GM/MIN"/>
      <xs:enumeration value="INCH"/>
      <xs:enumeration value="IU/L"/>
      <xs:enumeration value="K/UL"/>
      <xs:enumeration value="KIU"/>
      <xs:enumeration value="KIU/HR"/>
      <xs:enumeration value="KIU/MIN"/>
      <xs:enumeration value="L/HR"/>
      <xs:enumeration value="L/MIN"/>
      <xs:enumeration value="LITER"/>
      <xs:enumeration value="MCG"/>
      <xs:enumeration value="MCG/HR"/>
      <xs:enumeration value="MCG/KG"/>
      <xs:enumeration value="MCG/KG/HR"/>
      <xs:enumeration value="MCG/KG/MIN"/>
      <xs:enumeration value="MCG/MIN"/>
      <xs:enumeration value="MEQ/HR"/>
      <xs:enumeration value="MEQ/L"/>
      <xs:enumeration value="MEQ/MIN"/>
      <xs:enumeration value="MG"/>
      <xs:enumeration value="MG/ML"/>
      <xs:enumeration value="MG/DL"/>
      <xs:enumeration value="MG/HR"/>
      <xs:enumeration value="MG/KG"/>
      <xs:enumeration value="MG/KG/HR"/>
      <xs:enumeration value="MG/KG/MIN"/>
      <xs:enumeration value="MG/MIN"/>
      <xs:enumeration value="MICROLITER"/>
      <xs:enumeration value="MICROLITER/MIN"/>
      <xs:enumeration value="MILLIEQUIVALENTS"/>
      <xs:enumeration value="MILLIMOLES"/>
      <xs:enumeration value="MILLI-UNITS"/>
      <xs:enumeration value="MILLI-UNITS/HR"/>
      <xs:enumeration value="MILLI-UNITS/MIN"/>
      <xs:enumeration value="MIU/ML"/>
      <xs:enumeration value="ML"/>
      <xs:enumeration value="ML/HR"/>
      <xs:enumeration value="ML/KG/HR"/>
      <xs:enumeration value="ML/KG/MIN"/>
      <xs:enumeration value="ML/MIN"/>
      <xs:enumeration value="ML/MIN/1.73 M2"/>
      <xs:enumeration value="MM"/>
      <xs:enumeration value="MM HG"/>
      <xs:enumeration value="MMOL/L"/>
      <xs:enumeration value="MMOL/ML"/>
      <xs:enumeration value="MMOLE/HR"/>
      <xs:enumeration value="MOSM/KG"/>
      <xs:enumeration value="MOSMOL/KG"/>
      <xs:enumeration value="NA"/>
      <xs:enumeration value="NANOGRAM"/>
      <xs:enumeration value="NANOGRAM/KG/MIN"/>
      <xs:enumeration value="NG/DL"/>
      <xs:enumeration value="NG/ML"/>
      <xs:enumeration value="OTHER"/>
      <xs:enumeration value="PARTS PER MILLION"/>
      <xs:enumeration value="PUFF"/>
      <xs:enumeration value="RATIO"/>
      <xs:enumeration value="SEC"/>
      <xs:enumeration value="SPRAY"/>
      <xs:enumeration value="THOUSANDS-UNITS"/>
      <xs:enumeration value="U"/>
      <xs:enumeration value="U/L"/>
      <xs:enumeration value="UG/ML"/>
      <xs:enumeration value="UG/ML FEU"/>
      <xs:enumeration value="UNIT"/>
      <xs:enumeration value="UNITS/HR"/>
      <xs:enumeration value="UNITS/KG/HR"/>
      <xs:enumeration value="UNITS/KG/MIN"/>
      <xs:enumeration value="UNITS/MIN"/>
      <xs:enumeration value="X10-3/UL"/>
      <xs:enumeration value="OTHER"/>
      <xs:enumeration value="UNKNOWN"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="MedicationTypeCodeType">
    <xs:union memberTypes="MedicationTypeCodeTypeExampleList AnyString"/>
  </xs:simpleType>

  <xs:simpleType name="MedicationTypeCodeTypeExampleList">
    <xs:restriction base="xs:string"<!-- THE FOLLOWING ENUMERATIONS ARE PROVIDED AS A SAMPLE ONLY
      
           It is impossible to provide a comprehensive list of
           medications. The following is a sample of the
           medications provided from several groups. -->
>
      <xs:enumeration value="ABX-Aminoglycoside"/>
      <xs:enumeration value="ABX-Beta-Lactam"/>
      <xs:enumeration value="ABX-Carbapenem"/>
      <xs:enumeration value="ABX-Cephalosporin"/>
      <xs:enumeration value="ABX-Linazolid"/>
      <xs:enumeration value="ABX-Lincomycin"/>
      <xs:enumeration value="ABX-Macrolide"/>
      <xs:enumeration value="ABX-Metronidazole"/>
      <xs:enumeration value="ABX-Miscellaneous"/>
      <xs:enumeration value="ABX-NonFormulary"/>
      <xs:enumeration value="ABX-Penicillin"/>
      <xs:enumeration value="ABX-Quinolone"/>
      <xs:enumeration value="ABX-Sulfa"/>
      <xs:enumeration value="ABX-Tetracycline"/>
      <xs:enumeration value="ABX-Vancomycin"/>
      <xs:enumeration value="Adrenergic"/>
      <xs:enumeration value="Alkalinizing Agent"/>
      <xs:enumeration value="Analgesic"/>
      <xs:enumeration value="Anesthetic-General"/>
      <xs:enumeration value="Anesthetic-Local"/>
      <xs:enumeration value="Anti Diuretic Hormone"/>
      <xs:enumeration value="Antiarrhythmic"/>
      <xs:enumeration value="Anticholinergic"/>
      <xs:enumeration value="Anticoagulant"/>
      <xs:enumeration value="Anticonvulsant"/>
      <xs:enumeration value="Antidote-benzodiazepine"/>
      <xs:enumeration value="Antidote-heparin"/>
      <xs:enumeration value="Antiemetic"/>
      <xs:enumeration value="Antifungal"/>
      <xs:enumeration value="Antihistamine"/>
      <xs:enumeration value="Antihypertensive"/>
      <xs:enumeration value="Antihypoglycemic"/>
      <xs:enumeration value="Antiseizure"/>
      <xs:enumeration value="Barbiturate"/>
      <xs:enumeration value="Benzodiazepine"/>
      <xs:enumeration value="Beta-blocker"/>
      <xs:enumeration value="Blood product"/>
      <xs:enumeration value="Bronchodilator"/>
      <xs:enumeration value="Calcium"/>
      <xs:enumeration value="Calcium channel blocker"/>
      <xs:enumeration value="Caloric Agents"/>
      <xs:enumeration value="Cholenergic Agent"/>
      <xs:enumeration value="Cholinergic - reversal agent"/>
      <xs:enumeration value="Diluent"/>
      <xs:enumeration value="Diuretic"/>
      <xs:enumeration value="Dye"/>
      <xs:enumeration value="Estrogen"/>
      <xs:enumeration value="Gastro prokinetic"/>
      <xs:enumeration value="H2-blocker"/>
      <xs:enumeration value="Hemostatic"/>
      <xs:enumeration value="Hypoglycemic"/>
      <xs:enumeration value="Indigo Carmine Red"/>
      <xs:enumeration value="Inotrope"/>
      <xs:enumeration value="Low Molecular Weight Heparin"/>
      <xs:enumeration value="Magnesium"/>
      <xs:enumeration value="Narcotic analgesic"/>
      <xs:enumeration value="Narcotic antagonist"/>
      <xs:enumeration value="Nasal decongestant"/>
      <xs:enumeration value="NMB-depolarizing"/>
      <xs:enumeration value="NMB-non depolarizing"/>
      <xs:enumeration value="Non-Formulary"/>
      <xs:enumeration value="NSAID"/>
      <xs:enumeration value="Ocular Lubricant"/>
      <xs:enumeration value="Oxytocic"/>
      <xs:enumeration value="Plasma Expander"/>
      <xs:enumeration value="Potassium"/>
      <xs:enumeration value="Respiratory stimulant"/>
      <xs:enumeration value="Skeletal Muscle Relaxant"/>
      <xs:enumeration value="Steroid"/>
      <xs:enumeration value="Thyroid"/>
      <xs:enumeration value="Vasodilator"/>
      <xs:enumeration value="Vasopressor"/>
      <xs:enumeration value="Vitamin"/>
      <xs:enumeration value="OTHER"/>
      <xs:enumeration value="UNKNOWN"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="RouteCodeType">
    <xs:union memberTypes="RouteCodeTypeExampleList AnyString"/>
  </xs:simpleType>

  <xs:simpleType name="RouteCodeTypeExampleList">
    <xs:restriction base="xs:string"<!-- THE FOLLOWING ENUMERATIONS ARE PROVIDED AS A SAMPLE ONLY
      
           It is impossible to provide a comprehensive list of
           routes. The following is a sample of the
           routes provided from several groups. -->
>
      <xs:enumeration value="Apply Externally"/>
      <xs:enumeration value="Buccal"/>
      <xs:enumeration value="Dental"/>
      <xs:enumeration value="Epidural"/>
      <xs:enumeration value="Endotrachial Tube*"/>
      <xs:enumeration value="Gastrostomy Tube"/>
      <xs:enumeration value="GU Irrigant"/>
      <xs:enumeration value="Immerse (Soak) Body Part"/>
      <xs:enumeration value="Intra-arterial"/>
      <xs:enumeration value="Intrabursal"/>
      <xs:enumeration value="Intracardiac"/>
      <xs:enumeration value="Intracervical (uterus)"/>
      <xs:enumeration value="Intradermal"/>
      <xs:enumeration value="Inhalation"/>
      <xs:enumeration value="Intrahepatic Artery"/>
      <xs:enumeration value="Intramuscular"/>
      <xs:enumeration value="Intranasal"/>
      <xs:enumeration value="Intraocular"/>
      <xs:enumeration value="Intraperitoneal"/>
      <xs:enumeration value="Intrasynovial"/>
      <xs:enumeration value="Intrathecal"/>
      <xs:enumeration value="Intrauterine"/>
      <xs:enumeration value="Intravenous"/>
      <xs:enumeration value="IV"/>
      <xs:enumeration value="IVP"/>
      <xs:enumeration value="Mouth/Throat"/>
      <xs:enumeration value="Mucous Membrane"/>
      <xs:enumeration value="Nasal"/>
      <xs:enumeration value="Nasogastric"/>
      <xs:enumeration value="Nasal Prongs*"/>
      <xs:enumeration value="Nasotrachial Tube"/>
      <xs:enumeration value="Ophthalmic"/>
      <xs:enumeration value="Otic"/>
      <xs:enumeration value="Other/Miscellaneous"/>
      <xs:enumeration value="Perfusion"/>
      <xs:enumeration value="Oral"/>
      <xs:enumeration value="Rectal"/>
      <xs:enumeration value="Rebreather Mask*"/>
      <xs:enumeration value="Soaked Dressing"/>
      <xs:enumeration value="Subcutaneous"/>
      <xs:enumeration value="Sublingual"/>
      <xs:enumeration value="Topical"/>
      <xs:enumeration value="Tracheostomy*"/>
      <xs:enumeration value="Transdermal"/>
      <xs:enumeration value="Translingual"/>
      <xs:enumeration value="Urethral"/>
      <xs:enumeration value="Vaginal"/>
      <xs:enumeration value="Ventimask"/>
      <xs:enumeration value="Wound"/>
      <xs:enumeration value="OTHER"/>
      <xs:enumeration value="UNKNOWN"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="MonitoringNameCodeType">
    <xs:union memberTypes="MonitoringNameCodeTypeExampleList AnyString"/>
  </xs:simpleType>

  <xs:simpleType name="MonitoringNameCodeTypeExampleList">
    <xs:restriction base="xs:string"<!-- THE FOLLOWING ENUMERATIONS ARE PROVIDED AS A SAMPLE ONLY
      
           It is impossible to provide a comprehensive list of
           physiometrics. The following is a sample of the
           physiometrics provided from several groups. -->
>
      <xs:enumeration value="SVR"/>
      <xs:enumeration value="SvO2"/>
      <xs:enumeration value="CVP"/>
      <xs:enumeration value="Temperature 1 (YSI)"/>
      <xs:enumeration value="PEAK PR"/>
      <xs:enumeration value="Vent Type"/>
      <xs:enumeration value="End Tidal % Sevoflurane2"/>
      <xs:enumeration value="Respiratory Rate"/>
      <xs:enumeration value="DRIP1"/>
      <xs:enumeration value="PAD"/>
      <xs:enumeration value="Temperature/Esoph.Steth."/>
      <xs:enumeration value="Train of 4"/>
      <xs:enumeration value="NC O2 l/m"/>
      <xs:enumeration value="CI"/>
      <xs:enumeration value="DRIP6"/>
      <xs:enumeration value="NIBP Sys"/>
      <xs:enumeration value="BIS"/>
      <xs:enumeration value="PAS"/>
      <xs:enumeration value="Tidal Vol"/>
      <xs:enumeration value="NIBP Dia"/>
      <xs:enumeration value="Arterial BP Dia 1"/>
      <xs:enumeration value="Temperature 2"/>
      <xs:enumeration value="SaO2-SAT"/>
      <xs:enumeration value="EKG"/>
      <xs:enumeration value="ECG Rate"/>
      <xs:enumeration value="CO"/>
      <xs:enumeration value="CVP"/>
      <xs:enumeration value="OTHER3"/>
      <xs:enumeration value="Pulse Rate"/>
      <xs:enumeration value="FV Peak P"/>
      <xs:enumeration value="MASK O2 l/m"/>
      <xs:enumeration value="ACT"/>
      <xs:enumeration value="Arterial BP Mean 1"/>
      <xs:enumeration value="Arterial BP Sys 1"/>
      <xs:enumeration value="Fi O2"/>
      <xs:enumeration value="Inspired % Isoflurane2"/>
      <xs:enumeration value="DRIP2"/>
      <xs:enumeration value="GLUCOSE"/>
      <xs:enumeration value="Fi Nitrous Oxide"/>
      <xs:enumeration value="Skin Temp"/>
      <xs:enumeration value="End Tidal % Isoflurane2"/>
      <xs:enumeration value="ET CO2"/>
      <xs:enumeration value="Inspired % Sevoflurane2"/>
      <xs:enumeration value="Peak Pressure"/>
      <xs:enumeration value="ET Agent"/>
      <xs:enumeration value="NIBP Mean"/>
      <xs:enumeration value="SVO2"/>
      <xs:enumeration value="Fresh Flow Sevoflurane"/>
      <xs:enumeration value="Inspired % Isoflurane"/>
      <xs:enumeration value="Air"/>
      <xs:enumeration value="Inspired % Sevoflurane"/>
      <xs:enumeration value="Tidal Volume"/>
      <xs:enumeration value="N2O"/>
      <xs:enumeration value="Respiratory Rate 2 (Ventilator)"/>
      <xs:enumeration value="ABP Pulse"/>
      <xs:enumeration value="Arterial BP Sys 2"/>
      <xs:enumeration value="PEEP"/>
      <xs:enumeration value="Temperature 1"/>
      <xs:enumeration value="Arterial BP Dia 2"/>
      <xs:enumeration value="O2"/>
      <xs:enumeration value="Inspired % Desflurane"/>
      <xs:enumeration value="End Tidal % Isoflurane"/>
      <xs:enumeration value="Fi O2(#2)"/>
      <xs:enumeration value="End Tidal % Desflurane"/>
      <xs:enumeration value="Cerebal Oximetry"/>
      <xs:enumeration value="PNS"/>
      <xs:enumeration value="PAM"/>
      <xs:enumeration value="End Tidal % Sevoflurane"/>
      <xs:enumeration value="Acceleromyography - DO NOT USE"/>
      <xs:enumeration value="Barometric Pressure"/>
      <xs:enumeration value="BIS - EMG"/>
      <xs:enumeration value="BIS - Overall Trend"/>
      <xs:enumeration value="BIS - Quality Index"/>
      <xs:enumeration value="BP Dias Aorta"/>
      <xs:enumeration value="BP Dias Arterial Line (Invasive, Peripheral)"/>
      <xs:enumeration value="BP Dias Invasive Unspecified Site 1"/>
      <xs:enumeration value="BP Dias Invasive Unspecified Site 2"/>
      <xs:enumeration value="BP Dias Invasive Unspecified Site 3"/>
      <xs:enumeration value="BP Dias Invasive Unspecified Site 4"/>
      <xs:enumeration value="BP Dias Invasive Unspecified Site 5"/>
      <xs:enumeration value="BP Dias Non-invasive"/>
      <xs:enumeration value="BP Mean Aorta"/>
      <xs:enumeration value="BP Mean Arterial Line (Invasive, Peripheral)"/>
      <xs:enumeration value="BP Mean Invasive Unspecified Site 1"/>
      <xs:enumeration value="BP Mean Invasive Unspecified Site 2"/>
      <xs:enumeration value="BP Mean Invasive Unspecified Site 3"/>
      <xs:enumeration value="BP Mean Invasive Unspecified Site 4"/>
      <xs:enumeration value="BP Mean Invasive Unspecified Site 5"/>
      <xs:enumeration value="BP Mean Non-invasive"/>
      <xs:enumeration value="BP Sys Aorta"/>
      <xs:enumeration value="BP Sys Arterial Line (Invasive, Peripheral)"/>
      <xs:enumeration value="BP Sys Invasive Unspecified Site 1"/>
      <xs:enumeration value="BP Sys Invasive Unspecified Site 2"/>
      <xs:enumeration value="BP Sys Invasive Unspecified Site 3"/>
      <xs:enumeration value="BP Sys Invasive Unspecified Site 4"/>
      <xs:enumeration value="BP Sys Invasive Unspecified Site 5"/>
      <xs:enumeration value="BP Sys Non-invasive"/>
      <xs:enumeration value="Cardiac index - continuous"/>
      <xs:enumeration value="Cardiac index - Non-Invasive"/>
      <xs:enumeration value="Cardiac index - thermodilution"/>
      <xs:enumeration value="Cardiac Ouput - Non-Invasive"/>
      <xs:enumeration value="Cardiac output - continuous"/>
      <xs:enumeration value="Cardiac output - thermodilution"/>
      <xs:enumeration value="Cardiac Rhythm"/>
      <xs:enumeration value="Central Venous Pressure"/>
      <xs:enumeration value="Cerebral Perfusion Pressure"/>
      <xs:enumeration value="Desflurane Exp %"/>
      <xs:enumeration value="Desflurane Insp %"/>
      <xs:enumeration value="EKG Pulse Rate"/>
      <xs:enumeration value="End Tidal CO2 %"/>
      <xs:enumeration value="End Tidal CO2 (mmHg)"/>
      <xs:enumeration value="Enflurane Exp %"/>
      <xs:enumeration value="Enflurane Insp %"/>
      <xs:enumeration value="Entropy (Response Entropy)"/>
      <xs:enumeration value="Entropy (State Entropy)"/>
      <xs:enumeration value="Expired Nitrogen %"/>
      <xs:enumeration value="Eyes checked"/>
      <xs:enumeration value="Fetal Heart Rate (A)"/>
      <xs:enumeration value="Fetal Heart Rate (B)"/>
      <xs:enumeration value="Fetal Heart Rate (C)"/>
      <xs:enumeration value="Flows Air"/>
      <xs:enumeration value="Flows Nitrous Oxide"/>
      <xs:enumeration value="Flows O2"/>
      <xs:enumeration value="Fresh Gas Flow Total"/>
      <xs:enumeration value="Halothane Exp %"/>
      <xs:enumeration value="Halothane Insp %"/>
      <xs:enumeration value="ICP pressure mean"/>
      <xs:enumeration value="Inspired CO2 %"/>
      <xs:enumeration value="Inspired CO2 (mmHg)"/>
      <xs:enumeration value="Inspired Nitrogen %"/>
      <xs:enumeration value="Intrauterine Pressure"/>
      <xs:enumeration value="Isoflurane Exp %"/>
      <xs:enumeration value="Isoflurane Insp  %"/>
      <xs:enumeration value="Left Atrial Pressure (Mean)"/>
      <xs:enumeration value="Mean Inspiratory Pressure"/>
      <xs:enumeration value="Minute ventilation"/>
      <xs:enumeration value="Miscellaneous Perfusionist Parameter"/>
      <xs:enumeration value="Miscellaneous Primary Volatile Agent Name"/>
      <xs:enumeration value="Miscellaneous Secondary Volatile Agent Name"/>
      <xs:enumeration value="Miscellaneous Volatile Agent Exp %"/>
      <xs:enumeration value="Miscellaneous Volatile Agent Insp %"/>
      <xs:enumeration value="Nitric Oxide Inhaled (ppm)"/>
      <xs:enumeration value="Nitrous Exp  %"/>
      <xs:enumeration value="Nitrous Insp  %"/>
      <xs:enumeration value="Oxygen Exp %"/>
      <xs:enumeration value="Oxygen Insp %"/>
      <xs:enumeration value="Patient State Index - EMG Trend"/>
      <xs:enumeration value="Patient State Index - Overall Trend"/>
      <xs:enumeration value="Patient State Index - Suppression Ratio Trend"/>
      <xs:enumeration value="Peak inspiratory pressure"/>
      <xs:enumeration value="Plateau Inspiratory Pressure"/>
      <xs:enumeration value="Positive End Expiratory Pressure - Measured"/>
      <xs:enumeration value="Positive End Expiratory Pressure - Set"/>
      <xs:enumeration value="Processed EEG Trend (unspecified device, PSI or BIS or Entropy)"/>
      <xs:enumeration value="Pulmonary artery occlusion pressure"/>
      <xs:enumeration value="Pulmonary artery pressure Dias"/>
      <xs:enumeration value="Pulmonary artery pressure Mean"/>
      <xs:enumeration value="Pulmonary artery pressure Sys"/>
      <xs:enumeration value="PVI %"/>
      <xs:enumeration value="Respiratory Rate Actual from EtCO2 tracing"/>
      <xs:enumeration value="Respiratory Rate by EKG Bioimpedence"/>
      <xs:enumeration value="Right atrial pressure"/>
      <xs:enumeration value="Right Ventricular Pressure - Dias"/>
      <xs:enumeration value="Right Ventricular Pressure - Mean"/>
      <xs:enumeration value="Right Ventricular Pressure - Sys"/>
      <xs:enumeration value="rSO2 Index - Left Cerebral"/>
      <xs:enumeration value="rSO2 Index - Left Somatic"/>
      <xs:enumeration value="rSO2 Index - Right Cerebral"/>
      <xs:enumeration value="rSO2 Index - Right Somatic"/>
      <xs:enumeration value="Sevoflurane Exp %"/>
      <xs:enumeration value="Sevoflurane Insp %"/>
      <xs:enumeration value="SpO2 %"/>
      <xs:enumeration value="SpO2 Pulse Rate"/>
      <xs:enumeration value="ST aVF"/>
      <xs:enumeration value="ST aVL"/>
      <xs:enumeration value="ST aVR"/>
      <xs:enumeration value="ST Lead I"/>
      <xs:enumeration value="ST Lead II"/>
      <xs:enumeration value="ST Lead III"/>
      <xs:enumeration value="ST Lead V1"/>
      <xs:enumeration value="SvO2 %"/>
      <xs:enumeration value="Systemic Vascular Resistance"/>
      <xs:enumeration value="Systolic Pressure Variation"/>
      <xs:enumeration value="Temp 1 - Monitoring Site"/>
      <xs:enumeration value="Temp 1 - Unspecified Site"/>
      <xs:enumeration value="Temp 2 - Monitoring Site"/>
      <xs:enumeration value="Temp 2 - Unspecified Site"/>
      <xs:enumeration value="Temperature - Axillary"/>
      <xs:enumeration value="Temperature - Bladder"/>
      <xs:enumeration value="Temperature - Blood"/>
      <xs:enumeration value="Temperature - Esophageal"/>
      <xs:enumeration value="Temperature - Myocardial"/>
      <xs:enumeration value="Temperature - Nasopharyngeal"/>
      <xs:enumeration value="Temperature - Rectal"/>
      <xs:enumeration value="Temperature - Skin"/>
      <xs:enumeration value="Temperature - Tympanic"/>
      <xs:enumeration value="Tidal Volume actual"/>
      <xs:enumeration value="Tidal Volume Set"/>
      <xs:enumeration value="Tocodynamometry"/>
      <xs:enumeration value="Train-of-four (subjective assessment)"/>
      <xs:enumeration value="Train-of-four ratio (acceleromyography)"/>
      <xs:enumeration value="Train-of-four twitch value 1 (acceleromyograpy)"/>
      <xs:enumeration value="Train-of-four twitch value 2 (acceleromyograpy)"/>
      <xs:enumeration value="Train-of-four twitch value 3 (acceleromyograpy)"/>
      <xs:enumeration value="Train-of-four twitch value 4 (acceleromyograpy)"/>
      <xs:enumeration value="Ventilator FiO2 % Measured"/>
      <xs:enumeration value="Ventilator FiO2 % Set"/>
      <xs:enumeration value="Ventilator I:E Ratio"/>
      <xs:enumeration value="Ventilator Mode"/>
      <xs:enumeration value="Ventilator Pulmonary Compliance"/>
      <xs:enumeration value="Ventilator Respiratory Rate Actual"/>
      <xs:enumeration value="Ventilator Respiratory Rate Set"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="MonitoringSourceCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Electronic"/>
      <xs:enumeration value="User entered"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="OutputCodeType">
    <xs:union memberTypes="OutputCodeTypeExampleList AnyString"/>
  </xs:simpleType>

  <xs:simpleType name="OutputCodeTypeExampleList">
    <xs:restriction base="xs:string"<!-- THE FOLLOWING ENUMERATIONS ARE PROVIDED AS A SAMPLE ONLY
      
           It is impossible to provide a comprehensive list of
           Outputs. The following is a sample of the
           outputs provided from several groups. -->
>
      <xs:enumeration value="Acites Output - AN"/>
      <xs:enumeration value="Albumin 25% (ml)"/>
      <xs:enumeration value="Albumin 5% (ml)"/>
      <xs:enumeration value="Ascites"/>
      <xs:enumeration value="Autologous Blood Output - AN"/>
      <xs:enumeration value="Cerebrospinal Fluid Output"/>
      <xs:enumeration value="Chest tube"/>
      <xs:enumeration value="Chest Tube Output - AN"/>
      <xs:enumeration value="CSF"/>
      <xs:enumeration value="CSF Output - AN"/>
      <xs:enumeration value="D5 Lactated Ringers"/>
      <xs:enumeration value="Drain Output - AN"/>
      <xs:enumeration value="EBL"/>
      <xs:enumeration value="EMESIS"/>
      <xs:enumeration value="Estimated Blood Loss - AN"/>
      <xs:enumeration value="Foley"/>
      <xs:enumeration value="Gastric"/>
      <xs:enumeration value="Hetastarch (Hextend)"/>
      <xs:enumeration value="Ileostomy Ouput"/>
      <xs:enumeration value="INSENSIBLE"/>
      <xs:enumeration value="IRRIGATE"/>
      <xs:enumeration value="Jejunostomy"/>
      <xs:enumeration value="Lactated Ringers"/>
      <xs:enumeration value="NG"/>
      <xs:enumeration value="NG Aspirate - AN"/>
      <xs:enumeration value="NG/OG"/>
      <xs:enumeration value="NG/OG Output:"/>
      <xs:enumeration value="NG/OG Tube Output"/>
      <xs:enumeration value="NGTUBE"/>
      <xs:enumeration value="Normal Saline"/>
      <xs:enumeration value="Normosol"/>
      <xs:enumeration value="OTHER"/>
      <xs:enumeration value="Plueral Output - AN"/>
      <xs:enumeration value="UFILTRATION"/>
      <xs:enumeration value="URINE"/>
      <xs:enumeration value="Urine Catheter"/>
      <xs:enumeration value="Urine Output - AN"/>
      <xs:enumeration value="Ventriculostomy"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="PostOpDispositionCodeType">
    <xs:union memberTypes="PostOpDispositionCodeTypeExampleList AnyString"/>
  </xs:simpleType>

  <xs:simpleType name="PostOpDispositionCodeTypeExampleList">
    <xs:restriction base="xs:string"<!-- THE FOLLOWING ENUMERATIONS ARE PROVIDED AS A SAMPLE ONLY
      
           It is impossible to provide a comprehensive list of
           PostOp Dispositions. The following is a sample of the
           PostOp Dispositions provided from several groups. -->
>
      <xs:enumeration value="Intensive Care Unite"/>
      <xs:enumeration value="Intermediate Care Unit"/>
      <xs:enumeration value="postoperative anesthesia care unit"/>
      <xs:enumeration value="Regular floor bed"/>
      <xs:enumeration value="hospital department"/>
      <xs:enumeration value="Not applicable"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="PostOpDischargeCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Home or self care (routine discharge)"/>
      <xs:enumeration value="Short term general hospital for inpatient care"/>
      <xs:enumeration value="Skilled nursing facility (SNF)"/>
      <xs:enumeration value="Intermediate care facility (ICF)"/>
      <xs:enumeration value="Another type of institution"/>
      <xs:enumeration value="Home under care of organized home health service organization"/>
      <xs:enumeration value="Left against medical advice or discontinued care"/>
      <xs:enumeration value="Home under care of Home IV provider"/>
      <xs:enumeration value="Admitted as an inpatient to this hospital"/>
      <xs:enumeration value="Expired (i.e. dead)"/>
      <xs:enumeration value="Still patient or expected to return for outpatient services (i.e. still a patient)"/>
      <xs:enumeration value="Expired (i.e. died) at home"/>
      <xs:enumeration value="Expired (i.e. died) in a medical facility; e.g., hospital, SNF, ICF, or free standing hospice"/>
      <xs:enumeration value="Expired (i.e. died) - place unknown"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="PaymentMethodCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Charity"/>
      <xs:enumeration value="Commercial"/>
      <xs:enumeration value="Government: Medicaid"/>
      <xs:enumeration value="Government: Medicare Fee for Service - Part A"/>
      <xs:enumeration value="Government: Medicare Fee for Service - Part B"/>
      <xs:enumeration value="Government: Medicare Fee for Service - Part C"/>
      <xs:enumeration value="Government: Military/Veterans"/>
      <xs:enumeration value="Government: Other"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Self-Pay"/>
      <xs:enumeration value="Unknown"/>
      <xs:enumeration value="Worker's Compensation"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="TimingMilestoneCodeType">
    <xs:union memberTypes="TimingMilestoneCodeTypeExampleList AnyString"/>
  </xs:simpleType>

  <xs:simpleType name="TimingMilestoneCodeTypeExampleList">
    <xs:restriction base="xs:string"<!-- THE FOLLOWING ENUMERATIONS ARE PROVIDED AS A SAMPLE ONLY
      
           It is impossible to provide a comprehensive list of
           Timing Milestones. The following is a sample of the
           Timing Milestones provided from several groups. -->
>
      <xs:enumeration value="Anesthesia Finish"/>
      <xs:enumeration value="Anesthesia Induction"/>
      <xs:enumeration value="Anesthesia Ready"/>
      <xs:enumeration value="Anesthesia Start"/>
      <xs:enumeration value="Anesthesiologist, First Available"/>
      <xs:enumeration value="Arrival in PACU/ICU"/>
      <xs:enumeration value="Arrival in Same Day Surgery Recovery Unit"/>
      <xs:enumeration value="Patient in Facility"/>
      <xs:enumeration value="Patient In Room"/>
      <xs:enumeration value="Patient Out of Room"/>
      <xs:enumeration value="Position/Prep Start"/>
      <xs:enumeration value="Prep-Completed"/>
      <xs:enumeration value="Procedure Physician, First Available"/>
      <xs:enumeration value="Procedure/Surgery Conclusion Begun"/>
      <xs:enumeration value="Procedure/Surgery Finish"/>
      <xs:enumeration value="Procedure/Surgery Start Time"/>
      <xs:enumeration value="Ready-for-Discharge from Postanesthesia Care Unit"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="ICCategoryCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="MEDICAL DEVICE/EQUIPMENT"/>
      <xs:enumeration value="MEDICATION"/>
      <xs:enumeration value="INFRASTRUCTURE/SYSTEM"/>
      <xs:enumeration value="ASSESSMENT/DOCUMENTATION"/>
      <xs:enumeration value="RESPIRATORY/AIRWAY"/>
      <xs:enumeration value="CARDIOVASCULAR"/>
      <xs:enumeration value="PROCEDURE RELATED"/>
      <xs:enumeration value="OTHER"/>
      <xs:enumeration value="UNKNOWN"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="OutcomeIDType">
    <xs:annotation>
      <xs:documentation>
        Outcomes have been enumerated. Please reffer to this list of enumeration mappings.
        1 = Acidemia
        2 = Acute Kidney Injury (AKI)
        3 = Adverse Drug Reaction
        4 = Airway obstruction
        5 = Airway Trauma
        6 = Amniotic Fluid Embolism
        7 = Anaphylaxis
        8 = Arrhythmia
        9 = Aspiration
        10 = Awareness
        11 = Bradycardia
        12 = Burn injury
        13 = Cannot ventilate
        14 = Cardiac arrest
        15 = Case Cancelled After Anesthesia Induction Time
        16 = Case Cancelled Before Anesthesia Induction Time
        17 = Case Cancelled Before Anesthesia Start Time
        18 = Case Delay
        19 = Central Line Placement Injury
        20 = Central Line-Associated Bloodstream Infection (CLABSI)
        21 = Cerebrovascular Accident
        22 = Coagulopathy
        23 = Coma
        24 = Corneal Injury
        25 = Death
        26 = Deep Vein Thrombosis
        27 = Delayed Emergence
        28 = Delirium
        29 = Difficult Intubation
        30 = Difficult Mask Ventilation
        31 = Electrolyte Abnormality
        32 = Emergence Delirium
        33 = Equipment/Device Failure or Malfunction
        34 = Failed Intubation
        35 = Fall
        36 = Fat Embolism
        37 = Hemodynamic Instability
        38 = High Spinal or Epidural
        39 = Hypercapnia
        40 = Hyperglycemia
        41 = Hypertensive Episode
        42 = Hyperthermia
        43 = Hypoglycemia
        44 = Hypotensive Episode
        45 = Hypoxemia
        46 = Inadequate pain control
        47 = Inadequate Reversal of Neuromuscular Block
        48 = Infection following Epidural or Spinal Anesthesia
        49 = Infection following Peripheral Nerve Block
        50 = Itching
        51 = IV Infiltration
        52 = Kidney Failure
        53 = Local Anesthetic Systemic Toxicity
        54 = Malignant Hyperthermia
        55 = Medication Error
        56 = Multiple Organ Failure
        57 = Myocardia Ischemia
        58 = Myocardial Infarction
        59 = OR Fire
        60 = Perioperative Visual Loss
        61 = Peripheral Neurologic Deficit after Regional Anesthesia
        62 = Pneumonia
        63 = Pneumothorax
        64 = Positioning Injury
        65 = Post-Discharge Nausea and Vomiting
        66 = Postdural Puncture Headache
        67 = Postoperative Cognitive Dysfunction
        68 = Post-Operative Nausea and Vomiting
        69 = Prolonged Neuromuscular Block
        70 = Pulmonary Edema
        71 = Pulmonary Embolus
        72 = Respiratory Arrest
        73 = Respiratory Failure
        74 = Seizure
        75 = Sepsis
        76 = Shivering
        77 = Skin or Mucous Membrane Injury
        78 = Spinal Cord Injury
        79 = Spinal Hematoma Following Spinal or Epidural Anesthesia
        80 = Surgical Site Infection (SSI)
        81 = Transfusion Reaction
        82 = Ulcer
        83 = Unanticipated Transfusion
        84 = Unplanned Conversion to General Anesthesia
        85 = Unplanned Dural Puncture
        86 = Unplanned Endobronchial Intubation
        87 = Unplanned Esophageal Intubation
        88 = Unplanned Hospital Admission
        89 = Unplanned Hypothermia
        90 = Unplanned ICU Admission
        91 = Unplanned Postoperative Ventilation
        92 = Unplanned Reintubation
        93 = Unplanned Reoperation
        94 = Unplanned Tracheal Extubation
        95 = Vascular injury
        96 = Venous Air Embolism
        97 = Ventilation for more than 24 hours Post Procedure
        98 = Wrong Patient
        99 = Wrong Procedure
        100 = Wrong Site Regional Anesthesia
        101 = Wrong Site Surgery
      
</xs:documentation>
    </xs:annotation>

    <xs:restriction base="xs:int">
      <xs:minInclusive value="1"/>
      <xs:maxInclusive value="101"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="OutcomeTimeFrameCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="PreOp"/>
      <xs:enumeration value="IntraOp"/>
      <xs:enumeration value="PACU"/>
      <xs:enumeration value="24 Hour"/>
      <xs:enumeration value="48 Hour"/>
      <xs:enumeration value="7 Days"/>
      <xs:enumeration value="30 Days"/>
      <xs:enumeration value="60 Days"/>
      <xs:enumeration value="90 Days"/>
      <xs:enumeration value="1 Year"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="OutcomeSeverityCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="No Harm"/>
      <xs:enumeration value="Mild Harm"/>
      <xs:enumeration value="Moderate Harm"/>
      <xs:enumeration value="Severe Harm"/>
      <xs:enumeration value="Death"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="QCDRMeasureType">
    <xs:restriction base="xs:string">
      <xs:pattern value="AQI[0-9][0-9]"/>
      <xs:pattern value="MIPS[0-9][0-9][0-9]"/>
      <xs:pattern value="IIM[0-9][0-9][0-9]"/>
      <xs:pattern value="Quantum[0-9][0-9]"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="QCDRCodeValueType">
    <xs:restriction base="xs:string">
      <xs:minLength value="5"/>
      <xs:maxLength value="5"/>
      <xs:pattern value="[0-9][0-9][a-zA-Z][0-9][0-9]"/>
      <xs:pattern value="[0-9][0-9][0-9][0-9]F"/>
      <xs:pattern value="G[0-9][0-9][0-9][0-9]"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="QCDRModifierType">
    <xs:restriction base="xs:string">
      <xs:maxLength value="2"/>
      <xs:enumeration value=""/>
      <xs:enumeration value="1P"/>
      <xs:enumeration value="2P"/>
      <xs:enumeration value="3P"/>
      <xs:enumeration value="8P"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="IntakeOutputDirectionCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Input"/>
      <xs:enumeration value="Output"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="IntubationApproachCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Endoctracheal"/>
      <xs:enumeration value="Nasogastric"/>
      <xs:enumeration value="Nasotracheal"/>
      <xs:enumeration value="Fiberoptic"/>
      <xs:enumeration value="Tracheostomy"/>
      <xs:enumeration value="Speaking tracheostomy"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="AnesthesiaDetailsCategoryCodeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="attempts"/>
      <xs:enumeration value="position"/>
      <xs:enumeration value="needle type"/>
      <xs:enumeration value="needle length"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Unknown"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="emailAddressType">
    <xs:restriction base="xs:string">
      <xs:pattern value="^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="AQIXMLVersionType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="2018V1.0"/>
      <xs:enumeration value="2018V1.0R"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="DateRangeType">
    <xs:restriction base="xs:dateTime">
      <xs:minInclusive value="2010-01-01T00:00:00.000"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="PracticeIdType">
    <xs:restriction base="xs:token">
      <xs:pattern value="^[0-9]{3,5}$"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="VendorIDType">
    <xs:restriction base="xs:token">
      <xs:pattern value="^[0-9]{3}[A-Z]{2}[0-9]{2}$"/>
    </xs:restriction>

  </xs:simpleType>

  <xs:simpleType name="TypeVendorType">
    <xs:annotation>
      <xs:documentation>
        1 = Billing
        2 = Quality / Outcomes
        3 = AIMS only
        4 = EMR/EHR (with or without AIMS)
      
</xs:documentation>
    </xs:annotation>

    <xs:restriction base="xs:int">
      <xs:minInclusive value="1"/>
      <xs:maxInclusive value="4"/>
    </xs:restriction>

  </xs:simpleType>

</xs:schema>
Generated using Liquid XML Studio - FREE Community Edition 7.1.6.1440 by Liquid Technologies Ltd