```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns3:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/">
    <query_name>Certain infectious and parasitic diseases (a00-b99)-Diseases of the circulatory system (i00-i99)@10:54:31</query_name>
    <query_timing>ANY</query_timing>
    <specificity_scale>0</specificity_scale>
    <panel>
        <panel_number>1</panel_number>
        <panel_timing>SAMEVISIT</panel_timing>
        <panel_accuracy_scale>100</panel_accuracy_scale>
        <invert>1</invert>
        <total_item_occurrences>5</total_item_occurrences>
        <item>
            <hlevel>1</hlevel>
            <item_name>Certain infectious and parasitic diseases (a00-b99)</item_name>
            <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99)</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>1</hlevel>
            <item_name>Diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism (d50-d89)</item_name>
            <item_key>\\ICD10_ICD9\Diagnoses\(D50-D89) Dise~nx0c\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism (d50-d89)</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
    </panel>
    <panel>
        <panel_number>2</panel_number>
        <panel_timing>ANY</panel_timing>
        <panel_accuracy_scale>100</panel_accuracy_scale>
        <invert>0</invert>
        <total_item_occurrences>1</total_item_occurrences>
        <item>
            <hlevel>1</hlevel>
            <item_name>Diseases of the circulatory system (i00-i99)</item_name>
            <item_key>\\ICD10_ICD9\Diagnoses\(I00-I99) Dise~3w8h\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Diseases of the circulatory system (i00-i99)</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
    </panel>
</ns3:query_definition>

```

I want to find patients with diagnoses related to certain infectious and parasitic diseases (ICD codes A0-B9) and diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism (ICD codes D50-D89), excluding those with diagnoses of diseases of the circulatory system (ICD codes I0-I9). The query will be applied to all visits and has a specificity scale of 0, meaning that it will include all possible matches, and a high accuracy scale of 100. The panel will look for the mentioned diagnoses in the same visit, while the second panel will consider any visit for the diagnosis of diseases of the circulatory system.