```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
    <query_name>Femal-Diabe-Hyper@20:37:40</query_name>
    <query_timing>ANY</query_timing>
    <specificity_scale>0</specificity_scale>
    <panel>
        <panel_number>1</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>3</hlevel>
            <item_name>Female</item_name>
            <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Female\</item_key>
            <item_icon>LA</item_icon>
            <tooltip>Demographic \ Gender \ Female</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>6</hlevel>
            <item_name>Diabetes mellitus, type II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type with hyperosmolarity, not stated as uncontrolled</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-2) Diabetes mellitus with hy~\(250-20) Diabetes mellitus, type ~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ Diabetes mellitus, type II [non-insulin dependent {..}] or unspecified type with hyperosmolarity, not stated as uncontrolled</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>Diabetes mellitustype II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type with hyperosmolarity, uncontrolled</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-2) Diabetes mellitus with hy~\(250-22) Diabetes mellitustype II~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ Diabetes mellitustype II [non-insulin dependent ty{..}ult-onset type] or unspecified type with hyperosmolarity, uncontrolled</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>type II diabetes mellitus [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, not stated as uncontrolled, without mention of complication</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-0) Diabetes mellitus without~\(250-00) type II diabetes mellitu~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ type II diabetes mellitus [non-insulin dependent t{..}fied type, not stated as uncontrolled, without mention of complication</tooltip>
            <class>ENC</class>
            <item_is_synonym>true</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>type II diabetes mellitus [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, uncontrolled, without mention of complication</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-0) Diabetes mellitus without~\(250-02) type II diabetes mellitu~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ type II diabetes mellitus [non-insulin dependent t{..}pe] or unspecified type, uncontrolled, without mention of complication</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>type II diabetes mellitus [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, not stated as uncontrolled, with ketoacidosis</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-1) Diabetes with ketoacidosis\(250-10) type II diabetes mellitu~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ type II diabetes mellitus [non-insulin dependent t{..}pe] or unspecified type, not stated as uncontrolled, with ketoacidosis</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>type II diabetes mellitus [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, uncontrolled, with ketoacidosis</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-1) Diabetes with ketoacidosis\(250-12) type II diabetes mellitu~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ type II diabetes mellitus [non-insulin dependent t{..}adult-onset type] or unspecified type, uncontrolled, with ketoacidosis</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>Diabetes mellitus type II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, not stated as uncontrolled, with neurological manifestations</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-6) Diabetes with neurologica~\(250-60) Diabetes mellitus type I~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ Diabetes mellitus type II [non-insulin dependent t{..}ied type, not stated as uncontrolled, with neurological manifestations</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>Diabetes mellitus type II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, uncontrolled, with neurological manifestations</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-6) Diabetes with neurologica~\(250-62) Diabetes mellitus type I~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ Diabetes mellitus type II [non-insulin dependent t{..}e] or unspecified type, uncontrolled, with neurological manifestations</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>Diabetes mellitus type II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, not stated as uncontrolled, with ophthalmic manifestations</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-5) Diabetes with ophthalmic ~\(250-50) Diabetes mellitus type I~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ Diabetes mellitus type II [non-insulin dependent t{..}ified type, not stated as uncontrolled, with ophthalmic manifestations</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>Diabetes mellitus type II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, uncontrolled, with ophthalmic manifestations</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-5) Diabetes with ophthalmic ~\(250-52) Diabetes mellitus type I~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ Diabetes mellitus type II [non-insulin dependent t{..}ype] or unspecified type, uncontrolled, with ophthalmic manifestations</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>Diabetes mellitus, type II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, not stated as uncontrolled</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-3) Diabetes with other coma\(250-30) Diabetes mellitus, type ~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ Diabetes mellitus, type II [non-insulin dependent {..}pe] [adult-onset type] or unspecified type, not stated as uncontrolled</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>Diabetes mellitus with other coma, type II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, uncontrolled</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-3) Diabetes with other coma\(250-32) Diabetes mellitus with o~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ Diabetes mellitus with other coma, type II [non-in{..}ype] [NIDDM type] [adult-onset type] or unspecified type, uncontrolled</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>Diabetes mellitus type II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, not stated as uncontrolled, with other specified manifestations</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-8) Diabetes with other speci~\(250-80) Diabetes mellitus type I~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ Diabetes mellitus type II [non-insulin dependent t{..} type, not stated as uncontrolled, with other specified manifestations</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>Diabetes mellitus type II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, uncontrolled, with other specified manifestations</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-8) Diabetes with other speci~\(250-82) Diabetes mellitus type I~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ Diabetes mellitus type II [non-insulin dependent t{..}or unspecified type, uncontrolled, with other specified manifestations</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>Diabetes mellitus type II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, not stated as uncontrolled, with peripheral circulatory disorders</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-7) Diabetes with peripheral ~\(250-70) Diabetes mellitus type I~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ Diabetes mellitus type II [non-insulin dependent t{..}ype, not stated as uncontrolled, with peripheral circulatory disorders</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>Diabetes mellitus type II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, uncontrolled, with peripheral circulatory disorders</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-7) Diabetes with peripheral ~\(250-72) Diabetes mellitus type I~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ Diabetes mellitus type II [non-insulin dependent t{..} unspecified type, uncontrolled, with peripheral circulatory disorders</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>Diabetes mellitus type II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, not stated as uncontrolled, with renal manifestations</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-4) Diabetes with renal manif~\(250-40) Diabetes mellitus type I~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ Diabetes mellitus type II [non-insulin dependent t{..}nspecified type, not stated as uncontrolled, with renal manifestations</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>Diabetes mellitus type II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, uncontrolled, with renal manifestations</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-4) Diabetes with renal manif~\(250-42) Diabetes mellitus type I~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ Diabetes mellitus type II [non-insulin dependent t{..}set type] or unspecified type, uncontrolled, with renal manifestations</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>Diabetes mellitus type II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, not stated as uncontrolled, with unspecified complication</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-9) Diabetes with unspecified~\(250-90) Diabetes mellitus type I~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ Diabetes mellitus type II [non-insulin dependent t{..}cified type, not stated as uncontrolled, with unspecified complication</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
        <item>
            <hlevel>6</hlevel>
            <item_name>Diabetes mellitus type II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, uncontrolled, with unspecified complication</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-9) Diabetes with unspecified~\(250-92) Diabetes mellitus type I~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ ... \ Diabetes mellitus type II [non-insulin dependent t{..}type] or unspecified type, uncontrolled, with unspecified complication</tooltip>
            <class>ENC</class>
            <item_is_synonym>false</item_is_synonym>
        </item>
    </panel>
    <panel>
        <panel_number>3</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>4</hlevel>
            <item_name>Hyperchylomicronemia</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Metabolic and immunity disorders (270-279)\(272) Disorders of lipoid metabol~\(272-3) Hyperchylomicronemia\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Metabolic and immunity disorders \ Disorders of lipoid metabolism \ Hyperchylomicronemia</tooltip>
            <class>ENC</class>
            <item_is_synonym>true</item_is_synonym>
        </item>
        <item>
            <hlevel>4</hlevel>
            <item_name>Mixed hyperlipidemia</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Metabolic and immunity disorders (270-279)\(272) Disorders of lipoid metabol~\(272-2) Mixed hyperlipidemia\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Metabolic and immunity disorders \ Disorders of lipoid metabolism \ Mixed hyperlipidemia</tooltip>
            <class>ENC</class>
            <item_is_synonym>true</item_is_synonym>
        </item>
        <item>
            <hlevel>4</hlevel>
            <item_name>Other and unspecified hyperlipidemia</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Metabolic and immunity disorders (270-279)\(272) Disorders of lipoid metabol~\(272-4) Other and unspecified hyp~\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Metabolic and immunity disorders \ Disorders of lipoid metabolism \ Other and unspecified hyperlipidemia</tooltip>
            <class>ENC</class>
            <item_is_synonym>true</item_is_synonym>
        </item>
        <item>
            <hlevel>4</hlevel>
            <item_name>Pure hypercholesterolemia</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Metabolic and immunity disorders (270-279)\(272) Disorders of lipoid metabol~\(272-0) Pure hypercholesterolemia\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Metabolic and immunity disorders \ Disorders of lipoid metabolism \ Pure hypercholesterolemia</tooltip>
            <class>ENC</class>
            <item_is_synonym>true</item_is_synonym>
        </item>
        <item>
            <hlevel>4</hlevel>
            <item_name>Pure hyperglyceridemia</item_name>
            <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Metabolic and immunity disorders (270-279)\(272) Disorders of lipoid metabol~\(272-1) Pure hyperglyceridemia\</item_key>
            <item_icon>FA</item_icon>
            <tooltip>Diagnoses \ Metabolic and immunity disorders \ Disorders of lipoid metabolism \ Pure hyperglyceridemia</tooltip>
            <class>ENC</class>
            <item_is_synonym>true</item_is_synonym>
        </item>
    </panel>
</ns4:query_definition>

```

I want to find patients with Type 2 Diabetes Mellitus, both controlled and uncontrolled, with specified or unspecified complications, including diabetic nephropathy, retinopathy, neuropathy, and unspecified complications, as well as patients with hyperchylomicronemia, mixed hyperlipidemia, other and unspecified hyperlipidemia, pure hypercholesterolemia, and pure hyperglyceridemia.