output
stringlengths 926
21.5k
| instruction
stringlengths 45
1.08k
|
---|---|
```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>new query@10:55:31</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>0</hlevel>
<item_name>undefined</item_name>
<item_key>patient_set_coll_id:64078</item_key>
<tooltip>undefined</tooltip>
<constrain_by_date>
<date_from>2002-12-01T00:00:00.000-05:00</date_from>
</constrain_by_date>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients who have been part of the study since December 1st, 202020, and have an undefined condition or characteristic with the specified patient set collection ID of 64078, with a specificity scale of 0 and an accuracy scale of 100, within a single panel, with no inversion applied. |
```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>PATIENTSETFINIS@10:57:54</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>0</hlevel>
<item_name>Patient Set for "Circulatory sys@10:39:16"Patient setFINISHED</item_name>
<item_key>patient_set_coll_id:64076</item_key>
<tooltip>Patient Set for "Circulatory sys@10:39:16"Patient setFINISHED</tooltip>
<constrain_by_date>
<date_from>2009-12-01T00:00:00.000-05:00</date_from>
</constrain_by_date>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients in the "Circulatory sys@10:39:16" patient set that have been finished, with a specificity scale of 0, accuracy scale of 100, and a query timing of ANY. The search should include only one item, named "Patient Set for "Circulatory sys@10:39:16"Patient setFINISHED", with a collection ID of 64076. The query is not a synonym and has no date constraint. |
```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>PATIENTSETFINIS@10:58:07</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>0</hlevel>
<item_name>Patient Set for "Circulatory sys@10:39:16"Patient setFINISHED</item_name>
<item_key>patient_set_coll_id:64076</item_key>
<tooltip>Patient Set for "Circulatory sys@10:39:16"Patient setFINISHED</tooltip>
<constrain_by_date>
<date_from>2009-12-01T00:00:00.000-05:00</date_from>
</constrain_by_date>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients in the "Circulatory sys@10:39:16" patient set who have finished their participation in the study as of December 1, 20009, 5:00 AM. |
```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>new query@12:27:55</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>0</hlevel>
<item_name>undefined</item_name>
<item_key>patient_set_coll_id:64076</item_key>
<tooltip>undefined</tooltip>
<constrain_by_date>
<date_from>2008-12-01T00:00:00.000-05:00</date_from>
</constrain_by_date>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find a query that searches for a specific patient set with the collection ID of 64076, with no specific timing constraints, and has a specificity scale of 0, accuracy scale of 100, and an invert value of 0. The query should return results for any time period, and the item name and tooltip are undefined. The query has a single panel, and the date from which to constrain the search is set to December 1, 20008. The item is not a synonym. |
```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>new query@12:29:13</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>0</hlevel>
<item_name>undefined</item_name>
<item_key>patient_set_coll_id:64076</item_key>
<tooltip>undefined</tooltip>
<constrain_by_date>
<date_from>2009-07-01T00:00:00.000-05:00</date_from>
</constrain_by_date>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients in the patient set with collection ID 64076, without specifying any time constraints or specificity, using a general search with a 100% accuracy scale and no synonyms. |
```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>new query@12:35:07</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>0</hlevel>
<item_name>undefined</item_name>
<item_key>patient_set_coll_id:64076</item_key>
<tooltip>undefined</tooltip>
<constrain_by_date>
<date_from>2009-12-31T00:00:00.000-05:00</date_from>
</constrain_by_date>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients with an undefined item (hlevel 0) within a specific panel (panel number 1) with any timing, 100% accuracy scale, and no inversion, where the patient set collection ID is 6476 and the date range is not constrained. |
```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>Zip c-Anxie-Behav@15:17:51</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>2</hlevel>
<item_name>Zip codes</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Zip codes\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Zip codes</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>2</hlevel>
<item_name>Anxiety, dissociative, stress-related, somatoform and other nonpsychotic mental disorders (f40-f48)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(F01-F99) Ment~44ly\(F40-F48) Anxi~94b0\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Mental and behavioral disorders (f01-f99) \ Anxiety, dissociative, stress-related, somatoform and other nonpsychotic mental disorders (f40-f48)</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>2</hlevel>
<item_name>Behavioral and emotional disorders with onset usually occurring in childhood and adolescence (f90-f98)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(F01-F99) Ment~44ly\(F90-F98) Beha~o1kb\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Mental and behavioral disorders (f01-f99) \ Behavioral and emotional disorders with onset usually occurring in childhood and adolescence (f90-f98)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients with Zip codes and diagnoses related to anxiety, dissociative, stress-related, somatoform, and other nonpsychotic mental disorders (F40-F48) and behavioral and emotional disorders with onset usually occurring in childhood and adolescence (F90-F98). |
```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>new query@12:40:25</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>0</hlevel>
<item_name>undefined</item_name>
<item_key>patient_set_coll_id:64076</item_key>
<tooltip>undefined</tooltip>
<constrain_by_date>
<date_from>2010-05-13T00:00:00.000-05:00</date_from>
</constrain_by_date>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients who have been part of the study with the patient set collection ID "64076" and have had any encounter within the specified time frame, starting from May 13, 2010 00:00:00.5:00 UTC-5. The query should have a specificity scale of 0 and a panel accuracy scale of 100, with no inversion applied. The query should return any records that match the specified criteria, regardless of the timeframe. |
```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>Things@18:43:10</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>1</hlevel>
<item_name>Things</item_name>
<item_key>\\CUST\Custom Metadata\Things\</item_key>
<item_icon>LAE</item_icon>
<tooltip>Custom Metadata \ Things</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>1</hlevel>
<item_name>Oasis</item_name>
<item_key>\\BIRN\BIRN\oasis\</item_key>
<item_icon>FA</item_icon>
<tooltip>oasis</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all encounters where the custom metadata "Things" and the BIRN oasis encounter have been documented, with a specificity scale of 0 and accuracy scale of 100, at any time. |
```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>Diabetes mellit@12:18:14</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>4</hlevel>
<item_name>Diabetes mellitus</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Endocrine disorders \ Other endocrine gland diseases \ Diabetes mellitus</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients with a diagnosis of Diabetes mellitus in the Endocrine disorders section of the i2b2 ontology, specifically under the Other endocrine gland diseases subcategory, with a high level of specificity and accuracy. The query will be applied to any time frame and the panel will be set to the first panel with a 100% accuracy scale. The query will focus on a single item within the panel, which is the Diabetes mellitus diagnosis, and will not be inverted. |
```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>Diabete-Digesti@12:23:05</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>4</hlevel>
<item_name>Diabetes mellitus</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Endocrine disorders \ Other endocrine gland diseases \ Diabetes mellitus</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>2</hlevel>
<item_name>Digestive system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients with a diagnosis of diabetes mellitus and any diagnosis related to the digestive system. |
```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>Cerebrovascular@11:06:12</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>Cerebrovascular disease</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Cerebrovascular disease (430-438)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system \ Cerebrovascular disease</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find any diagnoses related to cerebrovascular disease within the Circulatory system category (ICD codes 430-438) in the i2b2 data repository, with a specificity scale of 0 and a total item occurrence of 1, using a panel with accuracy scale set to 100, and with no inversion applied. |
```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>Admit-Secon-Princ@02:04:58</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>1</hlevel>
<item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key>
<applied_path>\Diagnoses\(P00-P96) Cert~6976\%</applied_path>
</constrain_by_modifier>
<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>Certain conditions originating in the perinatal period (p00-p96)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Secondary Diagnosis</modifier_name>
<modifier_key>\\ICD10_ICD9\Secondary Diagnosis\</modifier_key>
<applied_path>\Diagnoses\(P00-P96) Cert~6976\%</applied_path>
</constrain_by_modifier>
<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>1</hlevel>
<item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Principal Diagnosis</modifier_name>
<modifier_key>\\ICD10_ICD9\Principal Diagnosis\</modifier_key>
<applied_path>\Diagnoses\(P00-P96) Cert~6976\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients with a principal diagnosis, secondary diagnosis, or admission diagnosis of conditions originating in the perinatal period (ICD-9 codes P00-P96) in the ICD-9 Diagnoses table. |
```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>Diabete-Digesti@12:24:26</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>4</hlevel>
<item_name>Diabetes mellitus</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Endocrine disorders \ Other endocrine gland diseases \ Diabetes mellitus</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>2</hlevel>
<item_name>Digestive system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients who have been diagnosed with Diabetes mellitus (Endocrine disorders > Other endocrine gland diseases > Diabetes mellitus) and have any diagnoses related to the Digestive system (Digestive system). |
```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>Admit Diagnosis@02:05:34</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>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>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key>
<applied_path>\Diagnoses\(I00-I99) Dise~3w8h\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients with an admit diagnosis of any diseases of the circulatory system (ICD codes I0-I9) within the specified time frame. This query is designed to identify patients with any diagnosis related to diseases of the circulatory system, including conditions such as hypertension, ischemic heart disease, and cerebrovascular diseases, among others. The query will return results with 1000% accuracy and includes only one item in the panel. The specificity scale is set to 0, indicating that the query is not restricted to a particular level of specificity. |
```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>Principal Diagn@02:06:14</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>2</hlevel>
<item_name>Diseases of appendix (k35-k38)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(K00-K94) Dise~rl1r\(K35-K38) Dise~lkd6\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Diseases of the digestive system (k00-k94) \ Diseases of appendix (k35-k38)</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Principal Diagnosis</modifier_name>
<modifier_key>\\ICD10_ICD9\Principal Diagnosis\</modifier_key>
<applied_path>\Diagnoses\(K00-K94) Dise~rl1r\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all records where the principal diagnosis is related to diseases of the appendix (ICD10 codes K35-K38) within the category of diseases of the digestive system (ICD10 codes K0-K94). The specificity scale is set to 0, meaning any occurrence of the specified diagnosis will be included, and the accuracy scale is set to 100, indicating the highest level of confidence. This query is part of a panel with a single item, and the class is set to ENC (Encounter). |
```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>Things@18:42:45</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>1</hlevel>
<item_name>Things</item_name>
<item_key>\\CUST\Custom Metadata\Things\</item_key>
<item_icon>LAE</item_icon>
<tooltip>Custom Metadata \ Things</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all instances of the custom metadata "Things" with any timing, 100% accuracy, and panel number 1, within the i2b2 query builder. |
```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>Male@15:41:28</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>Male</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Gender \ Male</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all male patients in the i2b2 database with no specific timing or accuracy constraints, using the Demographics panel and the "Male" item within it, and the query will be named "Male@15:41:28". |
```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>Injury and poisoning@15:41:55</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>2</hlevel>
<item_name>Injury and poisoning</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Injury and poisoning (800-999)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Injury and poisoning</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all diagnoses related to injury and poisoning (ICD-9 codes 80-999) within the i2b2 data repository, with a high level of specificity and accuracy, and with no time constraints for when the diagnosis was made. |
```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>Genitourinary system@16:22:53</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>2</hlevel>
<item_name>Genitourinary system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Genitourinary system (580-629)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Genitourinary system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find any diagnoses related to the genitourinary system, including conditions and diseases affecting the urinary tract and male and female reproductive organs, using the i2b2 query builder with a specificity scale of 0, a panel accuracy scale of 100, and a panel timing of "ANY" for all encounters. |
```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>Oasis@19:40:44</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>1</hlevel>
<item_name>Oasis</item_name>
<item_key>\\BIRN\BIRN\oasis\</item_key>
<item_icon>FA</item_icon>
<tooltip>oasis</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all occurrences of the term "Oasis" in the BIRN (Biomedical Informatics Research Network) data source, with a high level of specificity and accuracy, and without any synonyms or variations considered. |
```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>Circulatory system-Female@16:57:33</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>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</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>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>
</ns3:query_definition>
``` |
I want to find diagnoses related to the circulatory system in female patients. |
```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>Oasis@20:48:31</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>1</hlevel>
<item_name>Oasis</item_name>
<item_key>\\BIRN\BIRN\oasis\</item_key>
<item_icon>FA</item_icon>
<tooltip>oasis</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all instances of the term "Oasis" in the BIRN (Biomedical Informatics Research Network) data repository, with a high level of specificity (1000%) and no synonyms, regardless of the time frame, using the "Oasis" panel with a single item, and with no inversion applied. |
```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>Admit D-Princip@13:05:10</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>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<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>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Principal Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Principal Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients who have a principal diagnosis related to the circulatory system (ICD-9 codes 390-459) upon admission to the hospital. |
```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>Female@15:41:18</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>
</ns3:query_definition>
``` |
I want to find all female patients in the i2b2 database with any timing, using the Demographics panel, and with a specificity scale of 0 and accuracy scale of 100. |
```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>Circulatory sys@16:09:22</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>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_date>
<date_from/>
</constrain_by_date>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all diagnoses related to the circulatory system (ICD-9 codes 390-459) with a specificity scale of 0 and a panel accuracy scale of 100, with no date constraints, and the query should be named "Circulatory sys@16:09:22". |
```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>Circula-Congeni@16:15:50</query_name>
<query_timing>SAMEVISIT</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>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</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>2</hlevel>
<item_name>Congenital anomalies</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Congenital anomalies (740-759)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Congenital anomalies</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find encounters where a patient has diagnoses related to the circulatory system (codes 390-459) and congenital anomalies (codes 740-759) during the same visit with a high level of specificity (1000%). |
```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>Circula-Congeni@16:15:31</query_name>
<query_timing>SAMEVISIT</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>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Congenital anomalies</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Congenital anomalies (740-759)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Congenital anomalies</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients who have both circulatory system diagnoses (ICD codes 390-459) and congenital anomalies (ICD codes 740-759) recorded during the same visit. |
```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>Admit-Princ-Secon@16:28:46</query_name>
<query_timing>SAMEINSTANCENUM</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEINSTANCENUM</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEINSTANCENUM</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Principal Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Principal Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>3</panel_number>
<panel_timing>SAMEINSTANCENUM</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Secondary Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Secondary Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients who have a diagnosis related to the circulatory system (ICD-9 codes 390-459) as their Admit Diagnosis, Principal Diagnosis, or Secondary Diagnosis. |
```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>Admit-Princ-Secon@16:28:57</query_name>
<query_timing>SAMEINSTANCENUM</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEINSTANCENUM</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEINSTANCENUM</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Principal Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Principal Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>3</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Secondary Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Secondary Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients who have a diagnosis related to the circulatory system (ICD-9 codes 390-459) that was either their primary diagnosis, principal diagnosis, or secondary diagnosis during their hospital stay. |
```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>Admit-Princ-Secon@16:34:45</query_name>
<query_timing>SAMEINSTANCENUM</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEINSTANCENUM</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_date>
<date_from>2004-12-01T00:00:00.000-05:00</date_from>
</constrain_by_date>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEINSTANCENUM</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Principal Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Principal Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>3</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Secondary Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Secondary Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find diagnoses related to the circulatory system (ICD codes 390-459) that were recorded as either the admission diagnosis, principal diagnosis, or secondary diagnosis, within the same instance number, and with a high level of specificity (1000%). |
```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>Circula-Congeni@16:16:09</query_name>
<query_timing>SAMEVISIT</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEINSTANCENUM</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEINSTANCENUM</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Congenital anomalies</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Congenital anomalies (740-759)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Congenital anomalies</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find diagnoses related to the circulatory system (codes 390-459) and congenital anomalies (codes 740-759) within the same visit. |
```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>Admit-Princ-Secon@16:18:40</query_name>
<query_timing>SAMEVISIT</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>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Principal Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Principal Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<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>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Secondary Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Secondary Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients who have had a diagnosis related to the circulatory system (ICD-9 codes 390-459) as either their Admit Diagnosis, Principal Diagnosis, or Secondary Diagnosis, within the same visit. The specificity scale is set to 0, meaning the diagnosis could be present at any level of specificity, and the accuracy scale is set to 100, indicating a high level of confidence in the query results. The query will search for these diagnoses in the i2b2 Diagnoses module, and the results will be displayed in three panels. |
```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>Admit-Princ-Secon@16:19:01</query_name>
<query_timing>SAMEVISIT</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>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Principal Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Principal Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>3</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Secondary Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Secondary Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all encounters where a diagnosis related to the circulatory system (ICD codes 390-459) is present as either the admit diagnosis, principal diagnosis, or secondary diagnosis during the same visit. |
```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>Admit-Princ-Secon@16:19:35</query_name>
<query_timing>SAMEVISIT</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEINSTANCENUM</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEINSTANCENUM</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Principal Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Principal Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<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>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Secondary Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Secondary Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all encounters where a diagnosis related to the circulatory system (ICD-9 codes 390-459) was present as either the admit diagnosis, principal diagnosis, or secondary diagnosis, regardless of the timing of the visit or the specificity of the diagnosis. |
```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>Acetaminophen-Acetaminophen-Acetaminophen-Circulatory system@12:36:47</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEINSTANCENUM</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>Acetaminophen</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\(LME97) miscellaneous analgesics\acetaminophen\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ central nervous system agents \ analgesics \ miscellaneous analgesics \ acetaminophen</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Dose</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Dose\</modifier_key>
<applied_path>\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\(LME97) miscellaneous analgesics\acetaminophen\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEINSTANCENUM</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>Acetaminophen</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\(LME97) miscellaneous analgesics\acetaminophen\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ central nervous system agents \ analgesics \ miscellaneous analgesics \ acetaminophen</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Frequency</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Frequency\</modifier_key>
<applied_path>\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\(LME97) miscellaneous analgesics\acetaminophen\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>3</panel_number>
<panel_timing>SAMEINSTANCENUM</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>Acetaminophen</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\(LME97) miscellaneous analgesics\acetaminophen\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ central nervous system agents \ analgesics \ miscellaneous analgesics \ acetaminophen</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Route</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Route\</modifier_key>
<applied_path>\i2b2\Medications\%</applied_path>
<constrain_by_value>
<value_operator>IN</value_operator>
<value_constraint>('inhalation','injection','IV','PO','PR','topical','transdermal')</value_constraint>
<value_type>TEXT</value_type>
</constrain_by_value>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>4</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>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients who have taken Acetaminophen medication through any route (inhalation, injection, IV, PO, PR, topical, or transdermal) and have a diagnosis related to the circulatory system (ICD codes 390-459). The medication and diagnosis should occur within the same encounter and the query should be applied with a high specificity and accuracy scale. |
```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>Circulatory sys@16:41:32</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>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all diagnoses related to the circulatory system (ICD-9 codes 390-459) within the i2b2 database, with any timing and 100% accuracy, using the panel named "Circulatory sys@16:41:32" with one item, and the item is not a synonym. |
```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>Albuter-Cough@16:56:05</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>5</hlevel>
<item_name>Albuterol</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME223) bronchodilators\(LME224) adrenergic bronchodilators\albuterol\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ respiratory agents \ bronchodilators \ adrenergic bronchodilators \ albuterol</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>5</hlevel>
<item_name>Cough</item_name>
<item_key>\\i2b2_DEMO\i2b2\Diagnoses\Symptoms, signs, and ill-defined conditions (780-799)\Symptoms (780-789)\(786) Symptoms involving respirat~\(786-2) Cough\</item_key>
<item_icon>LA</item_icon>
<tooltip>Diagnoses \ Symptoms, signs, and ill-defined conditions \ Symptoms \ Symptoms involving respiratory system and other chest symptoms \ Cough</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients who have been prescribed Albuterol and have been diagnosed with Cough. |
```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>Visit at age 10@10:22:08</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>4</hlevel>
<item_name>Visit at age 100 years old</item_name>
<item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\>= 65 years old\100\</item_key>
<item_icon>LA</item_icon>
<tooltip>Visit Details \ Age at visit \ >= 65 years old \ 100 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all visits where the patient was 10 years old at the time of the visit. |
```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>mild de-moderat@11:38:07</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>4</hlevel>
<item_name>mild dementia</item_name>
<item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\mild dementia\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR) \ mild dementia</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>4</hlevel>
<item_name>moderate dementia</item_name>
<item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\moderate dementia\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR) \ moderate dementia</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients with a diagnosis of mild or moderate dementia in the OASIS Clinical Measures Clinical Dementia Rating (CDR) category, at any time during their medical history, with a specificity scale of 0 and an accuracy scale of 1000%. |
```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>Circulatory sys@16:41:43</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>1</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all diagnoses related to the Circulatory System (ICD-9 codes 390-459) with a specificity scale of 0, accuracy scale of 100, and a single panel with any timing, excluding synonyms, for use in a panel with panel number 1 and panel timing set to any. |
```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>Albuterol@16:54:39</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>5</hlevel>
<item_name>Albuterol</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME223) bronchodilators\(LME224) adrenergic bronchodilators\albuterol\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ respiratory agents \ bronchodilators \ adrenergic bronchodilators \ albuterol</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all instances where the medication Albuterol was prescribed or administered, specifically focusing on its classification as an adrenergic bronchodilator within the respiratory agents category of medications, with no specific timing constraints and a high level of accuracy. |
```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>Visit at age 10@10:22:27</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>4</hlevel>
<item_name>Visit at age 100 years old</item_name>
<item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\>= 65 years old\100\</item_key>
<item_icon>LA</item_icon>
<tooltip>Visit Details \ Age at visit \ >= 65 years old \ 100 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>2</hlevel>
<item_name>Infectious and parasitic diseases</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Infectious and parasitic diseases (001-139)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Infectious and parasitic diseases</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Infectious and parasitic diseases (001-139)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients who had a visit at the age of 10 years old with an admitting diagnosis of an infectious or parasitic disease. |
```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>Influenza@11:33:48</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>4</hlevel>
<item_name>Influenza</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Pneumonia and influenza (480-487)\(487) Influenza\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Pneumonia and influenza \ Influenza</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all instances of patients diagnosed with Influenza in the Respiratory system category under the subcategory of Pneumonia and influenza, with a high level of specificity and accuracy, and no inversion of the data, with the query being applied to any time period. |
```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>Acetaminophen@16:53:58</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>5</hlevel>
<item_name>Acetaminophen</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\(LME97) miscellaneous analgesics\acetaminophen\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ central nervous system agents \ analgesics \ miscellaneous analgesics \ acetaminophen</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all instances of the medication "Acetaminophen" within the "central nervous system agents" and "analgesics" categories, specifically within the subcategory of "miscellaneous analgesics," with a specificity scale of 0, accuracy scale of 100, and a timing of ANY, meaning the medication was taken at any time, in the i2b2 dataset. |
```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>nested Influenza@11:33:48@11:40:30</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>0</hlevel>
<item_name>(PrevQuery) Influenza@11:33:48</item_name>
<item_key>masterid:29476</item_key>
<tooltip>Influenza@11:33:48 [7-19-2023] [demo]</tooltip>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all instances of the diagnosis "Influenza" in the i2b2 database, with a specificity scale of 0 and a total item occurrence of 1, within a time range of any time. This query is nested within another query and has a panel accuracy scale of 100, and the invert parameter is set to 0. The tooltip for this query is "Influenza@1:33:48 [7-19-2023] [demo]". |
```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>(t) Temporal Cough-Acute upper respiratory infections of unspecified site-Allergic rhinitis@11:51:20</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<subquery_constraint>
<first_query>
<query_id>Event 1</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</first_query>
<operator>LESS</operator>
<second_query>
<query_id>Event 2</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</second_query>
<span>
<operator>GREATEREQUAL</operator>
<span_value>1</span_value>
<units>DAY</units>
</span>
</subquery_constraint>
<subquery_constraint>
<first_query>
<query_id>Event 2</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</first_query>
<operator>LESS</operator>
<second_query>
<query_id>Event 3</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</second_query>
</subquery_constraint>
<subquery>
<query_id>Event 1</query_id>
<query_type>EVENT</query_type>
<query_name>Event 1</query_name>
<query_timing>SAMEINSTANCENUM</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEINSTANCENUM</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>5</hlevel>
<item_name>Cough</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Symptoms, signs, and ill-defined conditions (780-799)\Symptoms (780-789)\(786) Symptoms involving respirat~\(786-2) Cough\</item_key>
<item_icon>LA</item_icon>
<tooltip>Diagnoses \ Symptoms, signs, and ill-defined conditions \ Symptoms \ Symptoms involving respiratory system and other chest symptoms \ Cough</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Cough</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(R00-R99) Symp~mt2x\(R00-R09) Symp~evaq\(R05) Cough\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Symptoms, signs and abnormal clinical and laboratory findings, not elsewhere classified (r00-r99) \ Symptoms and signs involving the circulatory and respiratory systems (r00-r09)
\ Cough</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</subquery>
<subquery>
<query_id>Event 2</query_id>
<query_type>EVENT</query_type>
<query_name>Event 2</query_name>
<query_timing>SAMEINSTANCENUM</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEINSTANCENUM</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>5</hlevel>
<item_name>Acute upper respiratory infections of unspecified site</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Acute respiratory infections (460-466)\(465) Acute upper respiratory inf~\(465-9) Acute upper respiratory i~\</item_key>
<item_icon>LA</item_icon>
<tooltip>Diagnoses \ ... \ Acute upper respiratory infections of multiple or unspecified sites \ Acute upper respiratory infections of unspecified site</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</subquery>
<subquery>
<query_id>Event 3</query_id>
<query_type>EVENT</query_type>
<query_name>Event 3</query_name>
<query_timing>SAMEINSTANCENUM</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEINSTANCENUM</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>Allergic rhinitis</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Upper respiratory tract infections (470-478)\(477) Allergic rhinitis\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Upper respiratory tract infections \ Allergic rhinitis</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</subquery>
</ns3:query_definition>
``` |
I want to find patients who have a diagnosis of "Cough" (Event 1) within 1 day of an encounter where they also have a diagnosis of "Acute upper respiratory infections of unspecified site" (Event 2), and no diagnosis of "Allergic rhinitis" (Event 3) within 1 day of the encounter with "Acute upper respiratory infections of unspecified site" (Event 2). |
```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>Admit D-Princip@12:55:51</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>Arterial vascular disease</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Arterial vascular disease (440-447)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system \ Arterial vascular disease</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Male</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Gender \ Male</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>3</hlevel>
<item_name>Arterial vascular disease</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Arterial vascular disease (440-447)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system \ Arterial vascular disease</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Principal Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Principal Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Male</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Gender \ Male</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all male patients who have been diagnosed with arterial vascular disease, either as an admission diagnosis or as a principal diagnosis. |
```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>Gender@11:08:09</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>2</hlevel>
<item_name>Gender</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographic \ Gender</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients in the database with any recorded gender information, regardless of specificity or accuracy, and display the results in a panel with a high level of detail (hlevel=2) using the Demographics/Gender item from the i2b2 data model. |
```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>Influenza and pneumonia (j09-j18)@12:30:29</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>2</hlevel>
<item_name>Influenza and pneumonia (j09-j18)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(J00-J99) Dise~45pn\(J09-J18) Infl~7z2l\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Diseases of the respiratory system (j00-j99) \ Influenza and pneumonia (j09-j18)</tooltip>
<class>ENC</class>
<constrain_by_date>
<date_from>2023-07-16T00:00:00</date_from>
</constrain_by_date>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all instances of diagnoses related to diseases of the respiratory system (J00-J9) with a specific focus on Influenza and pneumonia (J09-J18) in the ICD-10 or ICD-9 coding system, with no specific time constraint, and the query should have a high level of accuracy (1000%). The data should be constrained to dates on or after 2023-07-16T00:00:00. This query is not a synonym and is part of a larger panel with other items. |
```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>Status -Status @12:30:21</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>4</hlevel>
<item_name>Status 1</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Socioeconomic Status\Status 1\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Demographics \ Socioeconomic Status \ Status 1</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Some college</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Education\Some college\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Demographics \ Education \ Some college</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Left Handed</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Hand Orientation\Left Handed\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Demographics \ Hand Orientation \ Left Handed</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Appendicitis</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\Appendicitis (540-543)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Appendicitis</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Digestive system (520-579)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Appendicitis</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\Appendicitis (540-543)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Appendicitis</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Secondary Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Secondary Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Digestive system (520-579)\%</applied_path>
</constrain_by_modifier>
<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>4</hlevel>
<item_name>Status 2</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Socioeconomic Status\Status 2\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Demographics \ Socioeconomic Status \ Status 2</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Right Handed</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Hand Orientation\Right Handed\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Demographics \ Hand Orientation \ Right Handed</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Appendicitis</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\Appendicitis (540-543)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Appendicitis</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Digestive system (520-579)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Appendicitis</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\Appendicitis (540-543)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Appendicitis</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Secondary Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Secondary Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Digestive system (520-579)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients with an Admit Diagnosis or Secondary Diagnosis of Appendicitis (ICD-9 code 540-543) who are either Left Handed or Right Handed, have a Socioeconomic Status of Status 1 or Status 2, and have some college education. |
```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>Circulatory sys@11:12:06</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>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all diagnoses related to the Circulatory System (ICD-9 codes 390-459) with any specificity and time frame, using the i2b2 query builder. |
```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>Acetaminophen-Acetaminophen-Acetaminophen-Circulatory system@12:36:47</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>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>1</hlevel>
<item_name>Acetaminophen</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\(LME97) miscellaneous analgesics\acetaminophen\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ central nervous system agents \ analgesics \ miscellaneous analgesics \ acetaminophen</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Dose</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Dose\</modifier_key>
<applied_path>\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\(LME97) miscellaneous analgesics\acetaminophen\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEVISIT</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>Acetaminophen</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\(LME97) miscellaneous analgesics\acetaminophen\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ central nervous system agents \ analgesics \ miscellaneous analgesics \ acetaminophen</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Frequency</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Frequency\</modifier_key>
<applied_path>\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\(LME97) miscellaneous analgesics\acetaminophen\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>3</panel_number>
<panel_timing>SAMEVISIT</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>Acetaminophen</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\(LME97) miscellaneous analgesics\acetaminophen\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ central nervous system agents \ analgesics \ miscellaneous analgesics \ acetaminophen</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Route</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Route\</modifier_key>
<applied_path>\i2b2\Medications\%</applied_path>
<constrain_by_value>
<value_operator>IN</value_operator>
<value_constraint>('inhalation','injection','IV','PO','PR','topical','transdermal')</value_constraint>
<value_type>TEXT</value_type>
</constrain_by_value>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>4</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>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients who have taken acetaminophen medication in any form, any dose, any frequency, and any route of administration, and have a diagnosis related to the circulatory system at any time. |
```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>Influenza@12:42:14</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>4</hlevel>
<item_name>Influenza</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Pneumonia and influenza (480-487)\(487) Influenza\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Pneumonia and influenza \ Influenza</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all instances of the diagnosis "Influenza" in the "Respiratory system" category, specifically under "Pneumonia and influenza" within the "Diagnoses" section, using the ICD-10 coding system, with a specificity scale of 0 and an accuracy scale of 100, regardless of the timing of the diagnosis. |
```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>Circulatory system@11:12:10</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>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all diagnoses related to the Circulatory system (ICD codes 390-459) with a specificity scale of 0, panel timing set to ANY, and a total of 1 item occurrence, using the i2b2 query builder with a panel accuracy scale of 100 and no inversion applied. The query will be named "Circulatory system@1:12:10" and will have a class of ENC. |
```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>Analgesics-Injury and poisoning@16:28:43</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>Analgesics</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ central nervous system agents \ analgesics</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>2</hlevel>
<item_name>Injury and poisoning</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Injury and poisoning (800-999)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Injury and poisoning</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all instances where a patient has been prescribed analgesics (central nervous system agents) and has a diagnosis related to injury or poisoning (ICD-9 codes 80-99). |
```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>Status -Status @12:50:53</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>4</hlevel>
<item_name>Status 1</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Socioeconomic Status\Status 1\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Demographics \ Socioeconomic Status \ Status 1</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Some college</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Education\Some college\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Demographics \ Education \ Some college</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Left Handed</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Hand Orientation\Left Handed\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Demographics \ Hand Orientation \ Left Handed</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Appendicitis</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\Appendicitis (540-543)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Appendicitis</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Digestive system (520-579)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Appendicitis</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\Appendicitis (540-543)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Appendicitis</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Secondary Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Secondary Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Digestive system (520-579)\%</applied_path>
</constrain_by_modifier>
<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>4</hlevel>
<item_name>Status 2</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Socioeconomic Status\Status 2\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Demographics \ Socioeconomic Status \ Status 2</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Right Handed</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Hand Orientation\Right Handed\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Demographics \ Hand Orientation \ Right Handed</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Appendicitis</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\Appendicitis (540-543)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Appendicitis</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Digestive system (520-579)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Appendicitis</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\Appendicitis (540-543)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Appendicitis</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Secondary Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Secondary Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Digestive system (520-579)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients with the diagnosis of appendicitis in the primary or secondary diagnosis category, along with their handedness (left or right) and socioeconomic status (Status 1 or Status 2). Additionally, I want to include demographic information such as their level of education (e.g., some college) and hand orientation (left or right handed). The query will be applied to all visits with any timing accuracy and will return a total of one occurrence for each patient. |
```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>Status -Status @12:51:42</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>4</hlevel>
<item_name>Status 1</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Socioeconomic Status\Status 1\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Demographics \ Socioeconomic Status \ Status 1</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Some college</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Education\Some college\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Demographics \ Education \ Some college</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Left Handed</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Hand Orientation\Left Handed\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Demographics \ Hand Orientation \ Left Handed</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Appendicitis</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\Appendicitis (540-543)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Appendicitis</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Digestive system (520-579)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Appendicitis</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\Appendicitis (540-543)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Appendicitis</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Secondary Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Secondary Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Digestive system (520-579)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 35-44 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\35-44 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 35-44 years old</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>4</hlevel>
<item_name>Status 2</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Socioeconomic Status\Status 2\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Demographics \ Socioeconomic Status \ Status 2</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Right Handed</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Hand Orientation\Right Handed\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Demographics \ Hand Orientation \ Right Handed</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Appendicitis</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\Appendicitis (540-543)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Appendicitis</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Digestive system (520-579)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Appendicitis</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\Appendicitis (540-543)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Appendicitis</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Secondary Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Secondary Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Digestive system (520-579)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 35-44 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\35-44 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 35-44 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients aged 35-444 years old with a diagnosis of appendicitis, and their socioeconomic status is Status 2, and their handedness is right-handed. Additionally, the diagnosis of appendicitis should be either the primary diagnosis or a secondary diagnosis. |
```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>18-34 years old-Asthma@19:51:13</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> 18-34 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\18-34 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 18-34 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 35-44 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\35-44 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 35-44 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 45-54 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\45-54 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 45-54 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 55-64 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\55-64 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 55-64 years old</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>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients aged 18-34, 35-44, or 5-64 years old who have been diagnosed with asthma. |
```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>18-34 years old-Asthma@19:51:13</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> 18-34 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\18-34 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 18-34 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 35-44 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\35-44 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 35-44 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 45-54 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\45-54 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 45-54 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 55-64 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\55-64 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 55-64 years old</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>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients aged 18-34, 35-44, or 5-64 years old with a diagnosis of asthma. |
```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>18-34 years old-Asthma@19:51:13</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> 18-34 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\18-34 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 18-34 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 35-44 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\35-44 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 35-44 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 45-54 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\45-54 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 45-54 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 55-64 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\55-64 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 55-64 years old</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>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients aged 18-34, 35-44, or 5-64 years old with a diagnosis of asthma. |
```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>(t) 18-34 years old-Asthma-Bronchodilators@20:10:47</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> 18-34 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\18-34 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 18-34 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 35-44 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\35-44 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 35-44 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 45-54 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\45-54 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 45-54 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 55-64 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\55-64 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 55-64 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<subquery_constraint>
<first_query>
<query_id>Event 1</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</first_query>
<operator>LESS</operator>
<second_query>
<query_id>Event 2</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</second_query>
</subquery_constraint>
<subquery>
<query_id>Event 1</query_id>
<query_type>EVENT</query_type>
<query_name>Event 1</query_name>
<query_timing>SAMEINSTANCENUM</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEINSTANCENUM</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>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</subquery>
<subquery>
<query_id>Event 2</query_id>
<query_type>EVENT</query_type>
<query_name>Event 2</query_name>
<query_timing>SAMEINSTANCENUM</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEINSTANCENUM</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>Bronchodilators</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME223) bronchodilators\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ respiratory agents \ bronchodilators</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</subquery>
</ns3:query_definition>
``` |
I want to find patients aged 18-34, 35-44, or 5-64 years old who have been diagnosed with asthma and have been prescribed bronchodilators within the same instance number. |
```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>18-34 years old-Asthma@19:51:13</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> 18-34 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\18-34 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 18-34 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 35-44 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\35-44 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 35-44 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 45-54 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\45-54 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 45-54 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 55-64 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\55-64 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 55-64 years old</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>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients aged 18-64 years old with a diagnosis of asthma. |
```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>18-34 years old-Asthma@19:51:13</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> 18-34 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\18-34 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 18-34 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 35-44 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\35-44 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 35-44 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 45-54 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\45-54 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 45-54 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 55-64 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\55-64 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 55-64 years old</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>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients aged 18-64 years old who have been diagnosed with asthma. |
```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>moder-Male-High @05:45:49</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>4</hlevel>
<item_name>moderate dementia</item_name>
<item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\moderate dementia\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR) \ moderate dementia</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>3</hlevel>
<item_name>Male</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Gender \ Male</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>3</hlevel>
<item_name>High income</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Income\High income\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographics \ Income \ High income</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find male patients with moderate dementia and high income. |
```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>moderat-Male@05:45:58</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>4</hlevel>
<item_name>moderate dementia</item_name>
<item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\moderate dementia\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR) \ moderate dementia</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>3</hlevel>
<item_name>Male</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Gender \ Male</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find male patients with a diagnosis of moderate dementia. |
```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:52:32</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>0</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>
<constrain_by_date>
<date_from/>
</constrain_by_date>
<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 who have been diagnosed with Certain infectious and parasitic diseases (a0-b9) or Diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism (d50-d89) at the same visit and also have a diagnosis of Diseases of the circulatory system (i0-i9) at any time. |
```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. |
```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>moderate dement@05:46:07</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>4</hlevel>
<item_name>moderate dementia</item_name>
<item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\moderate dementia\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR) \ moderate dementia</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all instances where a patient has been diagnosed with moderate dementia using the Clinical Dementia Rating (CDR) scale in the OASIS clinical measures section, with a specificity scale of 0 and a panel accuracy scale of 100, and the query should be applicable at any time. |
```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)@10:44:39</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>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>
<constrain_by_date>
<date_from/>
</constrain_by_date>
<item_is_synonym>false</item_is_synonym>
</item>
<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>
<constrain_by_date>
<date_from/>
</constrain_by_date>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all diagnoses related to certain infectious and parasitic diseases (ICD-9 codes A0-B9) in the ICD10_ICD9 Diagnoses table with an accuracy scale of 100 and a specificity scale of 0, considering any timing, with no synonyms or date constraints. |
```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)@10:50:38</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>0</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>
<constrain_by_date>
<date_from/>
</constrain_by_date>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all diagnoses related to certain infectious and parasitic diseases (ICD-10 codes A0-B9) in the ICD-9 coding system, with a high level of specificity (1000% accuracy), considering any timeframe, and displaying the results in a panel with 5 total occurrences, using the i2b2 query builder tool. |
```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>Male@05:58:52</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>Male</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Gender \ Male</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all male patients in the i2b2 database with any timing, using the specificity scale of 0, accuracy scale of 100, and panel number 1. This query is not inverted and has a total of 1 item occurrence, with the item name "Male" and the item key "\\i2b2_DEMO\i2b2\Demographics\Gender\Male\", classified as an ENC (Encounter) with no synonyms. The tooltip for this query is "Demographic \ Gender \ Male". |
```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>Male-Male-Relig@20:39:01</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>1</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name>Male</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Gender \ Male</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>2</hlevel>
<item_name>Language</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Language\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographic \ Language</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>3</hlevel>
<item_name>Male</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Gender \ Male</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>2</hlevel>
<item_name>Race</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Race\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographic \ Race</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>1</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Religion</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Religion\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographic \ Religion</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>2</hlevel>
<item_name>Race</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Race\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographic \ Race</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find male patients with any language and race information recorded in their demographics, but without any recorded religion information. |
```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 conditions originating in the perinatal period (p00-p96)@10:58:43</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>1</hlevel>
<item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all instances of certain conditions that originated in the perinatal period, specifically those coded within the range of P00-P96 in the ICD10 and ICD9 diagnoses classification systems, with a specificity scale of 0, panel timing set to ANY, and a panel accuracy scale of 100. |
```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>Male@06:41:13</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>Male</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Gender \ Male</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all male patients in the i2b2 database with no specific time constraint and 1000% accuracy, using the demographics panel and the gender field, where the gender is equal to male. |
```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)@10:44:39</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>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>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>
</panel>
</ns3:query_definition>
``` |
I want to find all diagnoses related to certain infectious and parasitic diseases in the ICD-10 and ICD-9 coding systems, specifically in the A0-B9 range, with a high level of specificity and any timing. This query will include two items, one for each coding system, and will not be a synonym for any other query. |
```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>Circulatory sys@10:47:18</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>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_date>
<date_from/>
</constrain_by_date>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all diagnoses related to the Circulatory System (ICD codes 390-459) from any date with a specificity scale of 0 and an accuracy scale of 100, using the i2b2 query builder. |
```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>Male-Male@20:38:22</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>Male</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Gender \ Male</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>2</hlevel>
<item_name>Language</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Language\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographic \ Language</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>1</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name>Male</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Gender \ Male</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>2</hlevel>
<item_name>Race</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Race\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographic \ Race</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find male patients with any demographic data available, specifically focusing on gender and language information, while excluding race information. |
```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>Diabetes mellit@16:11:43</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>4</hlevel>
<item_name>Diabetes mellitus</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Endocrine disorders \ Other endocrine gland diseases \ Diabetes mellitus</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all instances of Diabetes mellitus in the Endocrine disorders section under Other endocrine gland diseases within the Diagnoses category in the i2b2 database using the specific query builder XML provided. |
```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>Circulatory sys@12:24:28</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>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all diagnoses related to the Circulatory System (ICD-9 codes 390-459) with a specificity scale of 0, accuracy scale of 100, and a timing of ANY. |
```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>Vital-Route-Circu@14:23:17</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>2</hlevel>
<item_name>Vital Status</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Vital Status\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographic \ Vital Status</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>Medications</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\</item_key>
<item_icon>FA</item_icon>
<tooltip>Medications</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Route</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Route\</modifier_key>
<applied_path>\i2b2\Medications\%</applied_path>
</constrain_by_modifier>
<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>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients who have a vital status recorded in the demographics section and have at least one medication recorded in the medications section with a route of administration applied, and who also have any diagnosis related to the circulatory system (ICD-9 codes 390-459). |
```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>mild dementia@12:48:43</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>4</hlevel>
<item_name>mild dementia</item_name>
<item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\mild dementia\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR) \ mild dementia</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients with a diagnosis of mild dementia, with any timing specified, and a specificity scale of 0, using the Clinical Dementia Rating (CDR) measure from the OASIS Clinical Measures panel. The query will be accurate at 100%, and the panel has only one item with a class of ENC and is not a synonym. |
```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>Dermati-Gastroi@14:28:54</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>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Dermatitis and eczema (l20-l30)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(L00-L99) Dise~05o1\(L20-L30) Derm~4e34\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Diseases of the skin and subcutaneous tissue (l00-l99) \ Dermatitis and eczema (l20-l30)</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>2</hlevel>
<item_name>Gastrointestinal agents</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME136) gastrointestinal agents\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ gastrointestinal agents</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients who have been diagnosed with Dermatitis and Eczema (L20-L30) in their medical record and have also been prescribed Gastrointestinal agents (LME136) medications at any time during their medical visits. |
```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>Dermati-Gastroi@14:29:39</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>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Dermatitis and eczema (l20-l30)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(L00-L99) Dise~05o1\(L20-L30) Derm~4e34\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Diseases of the skin and subcutaneous tissue (l00-l99) \ Dermatitis and eczema (l20-l30)</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>2</hlevel>
<item_name>Gastrointestinal agents</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME136) gastrointestinal agents\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ gastrointestinal agents</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients who have been diagnosed with Dermatitis and eczema (l20-l30) and have also been prescribed Gastrointestinal agents (LME136) at any time during their visits. |
```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>mild de-Interru@12:49:46</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>4</hlevel>
<item_name>mild dementia</item_name>
<item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\mild dementia\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR) \ mild dementia</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>5</hlevel>
<item_name>Interruption of the vena cava</item_name>
<item_key>\\i2b2_PROC\i2b2\Procedures\PRC\ICD9 (Inpatient)\(35-39) Operations on cardiovascular system\(p38) Incision, excision, and occ~\(p38-7) Interruption of the vena ~\</item_key>
<item_icon>LA</item_icon>
<tooltip>Procedures \ ICD9 (Inpatient) \ Operations on cardiovascular system \ Incision, excision, and occlusion of vessels \ Interruption of the vena cava</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients with a diagnosis of mild dementia and who have undergone a procedure for the interruption of the vena cava at any time during their medical history. The specificity scale is set to 0, indicating a broad search, and the accuracy scale for both panels is set to 100, meaning the results will be highly accurate. The query is named "mild de-Interru@12:49:46". |
```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>Female@13:35:04</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>
</ns3:query_definition>
``` |
I want to find all female patients in the database with no specific time constraints, and I want the query to be as accurate as possible, focusing on the demographic information of gender. |
```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>Kidney -immunod@16:54:47</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>4</hlevel>
<item_name>Kidney transplant status</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(Z00-Z99) Fact~rmj9\(Z77-Z99) Pers~uv8p\(Z94) Transpla~aix2\(Z94.0) Kidney~rmz6\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Factors influencing health status and contact with health services (z00-z99) \ Persons with potential health hazards related to family and personal history and certain conditions influencing health status (z77-z99)
\ Transplanted organ and tissue status \ Kidney transplant status</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>5</hlevel>
<item_name>Encounter for aftercare following kidney transplant</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(Z00-Z99) Fact~rmj9\(Z40-Z53) Enco~eivf\(Z48) Encounte~g99a\(Z48.2) Encoun~b0jx\(Z48.22) Encou~o98q\</item_key>
<item_icon>LA</item_icon>
<tooltip>Diagnoses \ Factors influencing health status and contact with health services (z00-z99) \ Encounters for other specific health care (z40-z53)
\ Encounter for other postprocedural aftercare \ Encounter for aftercare following organ transplant \ Encounter for aftercare following kidney transplant</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>5</hlevel>
<item_name>Complications of kidney transplant</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(S00-T88) Inju~yy6i\(T07-T88) Inju~q55y\(T80-T88) Comp~jz0q\(T86) Complica~k41k\(T86.1) Compli~obey\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Injury, poisoning and certain other consequences of external causes (s00-t88) \ Injury, poisoning and certain other consequences of external causes (t07-t88) \ Complications of surgical and medical care, not elsewhere classified (t80-t88)
\ Complications of transplanted organs and tissue \ Complications of kidney transplant</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>2</hlevel>
<item_name>immunodeficiency disorders, except human immunodeficiency virus [hiv] disease</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(D50-D89) Dise~nx0c\(D80-D89) Cert~cp5q\</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)
\ immunodeficiency disorders, except human immunodeficiency virus [hiv] disease</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>2</hlevel>
<item_name>Human immunodeficiency virus [hiv] disease (b20)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\(B20-B20) Huma~4dsc\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99) \ Human immunodeficiency virus [hiv] disease (b20)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>HIV disease</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Infectious and parasitic diseases (001-139)\(042) Human immunodeficiency viru~\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Infectious and parasitic diseases \ Human immunodeficiency virus [HIV] disease</tooltip>
<class>ENC</class>
<item_is_synonym>true</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>HIV infection, symptomatic</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Infectious and parasitic diseases (001-139)\(042) Human immunodeficiency viru~\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Infectious and parasitic diseases \ Human immunodeficiency virus [HIV] disease</tooltip>
<class>ENC</class>
<item_is_synonym>true</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Human immunodeficiency virus [HIV] disease</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Infectious and parasitic diseases (001-139)\(042) Human immunodeficiency viru~\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Infectious and parasitic diseases \ Human immunodeficiency virus [HIV] disease</tooltip>
<class>ENC</class>
<item_is_synonym>true</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find encounters for kidney transplant, complications of kidney transplant, immunodeficiency disorders, and human immunodeficiency virus [HIV] disease. |
```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>acquired immune@16:55:46</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>acquired immune deficiency syndrome [aids]</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\(B20-B20) Huma~4dsc\(B20) Human im~lm8e\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99) \ Human immunodeficiency virus [hiv] disease (b20) \ acquired immune deficiency syndrome [aids]</tooltip>
<class>ENC</class>
<item_is_synonym>true</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients who have been diagnosed with Acquired Immune Deficiency Syndrome (AIDS) as per the ICD-10-CM code B24, which falls under the category of Certain Infectious and Parasitic Diseases (A0-B9) and Human Immunodeficiency Virus (HIV) Disease (B20) in the ICD-9-CM coding system. |
```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>acquired immune@16:59:07</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>acquired immune deficiency syndrome [aids]</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\(B20-B20) Huma~4dsc\(B20) Human im~lm8e\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99) \ Human immunodeficiency virus [hiv] disease (b20) \ acquired immune deficiency syndrome [aids]</tooltip>
<class>ENC</class>
<item_is_synonym>true</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>HIV disease</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Infectious and parasitic diseases (001-139)\(042) Human immunodeficiency viru~\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Infectious and parasitic diseases \ Human immunodeficiency virus [HIV] disease</tooltip>
<class>ENC</class>
<item_is_synonym>true</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>HIV infection, symptomatic</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Infectious and parasitic diseases (001-139)\(042) Human immunodeficiency viru~\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Infectious and parasitic diseases \ Human immunodeficiency virus [HIV] disease</tooltip>
<class>ENC</class>
<item_is_synonym>true</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Human immunodeficiency virus [HIV] disease</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Infectious and parasitic diseases (001-139)\(042) Human immunodeficiency viru~\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Infectious and parasitic diseases \ Human immunodeficiency virus [HIV] disease</tooltip>
<class>ENC</class>
<item_is_synonym>true</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Asymptomatic human immunodeficiency virus [HIV] infection status</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\zz V-codes\Isolation and prophylactic (V07-V09)\(V08) Asymptomatic human immunode~\</item_key>
<item_icon>LA</item_icon>
<tooltip>Diagnoses \ V-codes \ Isolation and prophylactic \ Asymptomatic human immunodeficiency virus [HIV] infection status</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>6</hlevel>
<item_name>Human immunodeficiency virus [HIV] counseling</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\zz V-codes\Misc healthcare circumnstances (V60-V69)\(V65) Other persons seeking consu~\(V65-4) Other counseling, not els~\(V65-44) Human immunodeficiency v~\</item_key>
<item_icon>LA</item_icon>
<tooltip>Diagnoses \ ... \ Other persons seeking consultation without complaint or sickness \ Other counseling, not elsewhere classified \ Human immunodeficiency virus [HIV] counseling</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>6</hlevel>
<item_name>Nonspecific serologic evidence of human immunodeficiency virus [HIV]</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Symptoms, signs, and ill-defined conditions (780-799)\Nonspecific abnormal findings (790-796)\(795) Nonspecific abnormal histol~\(795-7) Other nonspecific immunol~\(795-71) Nonspecific serologic ev~\</item_key>
<item_icon>LA</item_icon>
<tooltip>Diagnoses \ ... \ Nonspecific abnormal histological and immunological findings \ Other nonspecific immunological findings \ Nonspecific serologic evidence of human immunodeficiency virus [HIV]</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>2</hlevel>
<item_name>Human immunodeficiency virus [hiv] disease (b20)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\(B20-B20) Huma~4dsc\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99) \ Human immunodeficiency virus [hiv] disease (b20)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>5</hlevel>
<item_name>Human immunodeficiency virus, type 2 [hiv 2] as the cause of diseases classified elsewhere</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\(B95-B97) Bact~28iq\(B97) Viral ag~m3ak\(B97.3) Retrov~aqap\(B97.35) Human~gjvx\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99) \ Bacterial and viral infectious agents (b95-b97) \ Viral agents as the cause of diseases classified elsewhere
\ Retrovirus as the cause of diseases classified elsewhere \ Human immunodeficiency virus, type 2 [hiv 2] as the cause of diseases classified elsewhere</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all instances of Human Immunodeficiency Virus (HIV) infection and related diagnoses, including asymptomatic HIV infection status, HIV counseling, and nonspecific serologic evidence of HIV, as well as HIV type 2 as the cause of diseases classified elsewhere, in the i2b2 database. |
```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>(t) Clinica- 75-84AngioteICD9 (I@10:59:04</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>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Clinical Measures</item_name>
<item_key>\\BIRN\BIRN\oasis\Clinical Measures\</item_key>
<item_icon>FA</item_icon>
<tooltip>oasis \ Clinical Measures</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEVISIT</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> 75-84 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\75-84 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 75-84 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<subquery_constraint>
<first_query>
<query_id>Observation A</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</first_query>
<operator>LESS</operator>
<second_query>
<query_id>Observation B</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</second_query>
</subquery_constraint>
<subquery>
<query_id>Observation A</query_id>
<query_type>EVENT</query_type>
<query_name>Observation A</query_name>
<query_timing>SAMEINSTANCENUM</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>0</panel_number>
<panel_timing>SAMEINSTANCENUM</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>Angiotensin converting enzyme inhibitors</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME68) cardiovascular agents\(LME70) angiotensin converting enzyme inhibitors\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ cardiovascular agents \ angiotensin converting enzyme inhibitors</tooltip>
<class>ENC</class>
<constrain_by_date>
<date_from>1979-12-01T00:00:00.000-05:00</date_from>
<date_to>2023-07-25T00:00:00.000-05:00</date_to>
</constrain_by_date>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>2</hlevel>
<item_name>Alternative medicines</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME2) alternative medicines\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ alternative medicines</tooltip>
<class>ENC</class>
<constrain_by_date>
<date_from>1979-12-01T00:00:00.000-05:00</date_from>
<date_to>2023-07-25T00:00:00.000-05:00</date_to>
</constrain_by_date>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</subquery>
<subquery>
<query_id>Observation B</query_id>
<query_type>EVENT</query_type>
<query_name>Observation B</query_name>
<query_timing>SAMEINSTANCENUM</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>0</panel_number>
<panel_timing>SAMEINSTANCENUM</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>ICD9 (Inpatient)</item_name>
<item_key>\\i2b2_PROC\i2b2\Procedures\PRC\ICD9 (Inpatient)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Procedures \ ICD9 (Inpatient)</tooltip>
<class>ENC</class>
<constrain_by_date>
<date_from>1981-04-17T00:00:00.000-05:00</date_from>
<date_to>2023-07-03T00:00:00.000-05:00</date_to>
</constrain_by_date>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</subquery>
</ns3:query_definition>
``` |
I want to find all patients who are 75-84 years old and have had an occurrence of angiotensin converting enzyme inhibitors or alternative medicines between 1979-12-01T00:00:00.00-05:00 and 2023-07-25T00:00:00.00-05:00, and who have also had an ICD9 inpatient procedure between 1981-04-17T00:00:00.00-05:00 and 2023-07-03T00:00:00.00-05:00, with the angiotensin converting enzyme inhibitors or alternative medicines occurring before the ICD9 inpatient procedure. |
```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>Atopic dermatit@14:27:18</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>4</hlevel>
<item_name>Atopic dermatitis, unspecified</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(L00-L99) Dise~05o1\(L20-L30) Derm~4e34\(L20) Atopic d~vh6b\(L20.9) Atopic~nehc\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Diseases of the skin and subcutaneous tissue (l00-l99) \ Dermatitis and eczema (l20-l30) \ Atopic dermatitis
\ Atopic dermatitis, unspecified</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Other atopic dermatitis</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(L00-L99) Dise~05o1\(L20-L30) Derm~4e34\(L20) Atopic d~vh6b\(L20.8) Other~fk2q\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Diseases of the skin and subcutaneous tissue (l00-l99) \ Dermatitis and eczema (l20-l30) \ Atopic dermatitis
\ Other atopic dermatitis</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients with a diagnosis of atopic dermatitis, unspecified or other atopic dermatitis, using the ICD-10 and ICD-9 codes for Diseases of the skin and subcutaneous tissue (l0-l9), Dermatitis and eczema (l20-l30), and Atopic dermatitis (l20.9 and l20.8) within the Diagnoses section of the i2b2 data repository. |
```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>Dermati-Gastroi@14:29:26</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>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Dermatitis and eczema (l20-l30)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(L00-L99) Dise~05o1\(L20-L30) Derm~4e34\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Diseases of the skin and subcutaneous tissue (l00-l99) \ Dermatitis and eczema (l20-l30)</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>2</hlevel>
<item_name>Gastrointestinal agents</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME136) gastrointestinal agents\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ gastrointestinal agents</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients who have been diagnosed with dermatitis or eczema (ICD-10 codes L20-L30) and have also been prescribed gastrointestinal agents (i2b2 medication code LME136) during the same visit. |
```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>Gender@10:57:32</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>2</hlevel>
<item_name>Gender</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographic \ Gender</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all instances where the gender field is recorded in the demographics section of the i2b2 dataset, regardless of the timing or specificity, with a high accuracy scale of 100 and grouped into panel 1. |
```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>mild -nonde-very @14:34:39</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>4</hlevel>
<item_name>mild dementia</item_name>
<item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\mild dementia\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR) \ mild dementia</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>4</hlevel>
<item_name>nondemented</item_name>
<item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\nondemented\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Clinical Measures \ MMSE score \ nondemented</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>very mild dementia</item_name>
<item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\very mild dementia\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR) \ very mild dementia</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients who have been diagnosed with mild dementia, are not classified as nondemented, and have a Clinical Dementia Rating (CDR) of very mild dementia, with a specificity scale of 0 and any timing, using the oasis Clinical Measures. |
```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>Admit D-Princip@10:24:39</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>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<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>2</hlevel>
<item_name>Injury and poisoning</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Injury and poisoning (800-999)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Injury and poisoning</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Principal Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Principal Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Injury and poisoning (800-999)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients with a principal diagnosis related to injury and poisoning (ICD codes 80-999) who were admitted to the hospital with a circulatory system diagnosis (ICD codes 390-459) as an admit diagnosis. |
```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>Certa-Chemi-Medic@11:04:54</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>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>
</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>2</hlevel>
<item_name>Chemistry</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\</item_key>
<item_icon>FA</item_icon>
<tooltip>Labtests \ Chemistry</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>1</hlevel>
<item_name>Medications</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\</item_key>
<item_icon>FA</item_icon>
<tooltip>Medications</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find diagnoses related to certain infectious and parasitic diseases (ICD10 codes A0-B9), along with chemistry lab tests and medications prescribed for patients in the i2b2 database. |
```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>Clinica- 75-84@10:53:50</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>2</hlevel>
<item_name>Clinical Measures</item_name>
<item_key>\\BIRN\BIRN\oasis\Clinical Measures\</item_key>
<item_icon>FA</item_icon>
<tooltip>oasis \ Clinical Measures</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>3</hlevel>
<item_name> 75-84 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\75-84 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 75-84 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all patients aged 75-84 years old with clinical measures recorded in the OASIS database. |
```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>(t) Clinica- 75-84AngioteICD9 (I@10:58:39</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>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Clinical Measures</item_name>
<item_key>\\BIRN\BIRN\oasis\Clinical Measures\</item_key>
<item_icon>FA</item_icon>
<tooltip>oasis \ Clinical Measures</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEVISIT</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> 75-84 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\75-84 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 75-84 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<subquery_constraint>
<first_query>
<query_id>Observation A</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</first_query>
<operator>LESS</operator>
<second_query>
<query_id>Observation B</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</second_query>
</subquery_constraint>
<subquery>
<query_id>Observation A</query_id>
<query_type>EVENT</query_type>
<query_name>Observation A</query_name>
<query_timing>SAMEINSTANCENUM</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>0</panel_number>
<panel_timing>SAMEINSTANCENUM</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>Angiotensin converting enzyme inhibitors</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME68) cardiovascular agents\(LME70) angiotensin converting enzyme inhibitors\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ cardiovascular agents \ angiotensin converting enzyme inhibitors</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>2</hlevel>
<item_name>Alternative medicines</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME2) alternative medicines\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ alternative medicines</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</subquery>
<subquery>
<query_id>Observation B</query_id>
<query_type>EVENT</query_type>
<query_name>Observation B</query_name>
<query_timing>SAMEINSTANCENUM</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>0</panel_number>
<panel_timing>SAMEINSTANCENUM</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>ICD9 (Inpatient)</item_name>
<item_key>\\i2b2_PROC\i2b2\Procedures\PRC\ICD9 (Inpatient)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Procedures \ ICD9 (Inpatient)</tooltip>
<class>ENC</class>
<constrain_by_date>
<date_from>1981-04-17T00:00:00.000-05:00</date_from>
<date_to>2023-07-03T00:00:00.000-05:00</date_to>
</constrain_by_date>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</subquery>
</ns3:query_definition>
``` |
I want to find patients between the ages of 555-84 who have had an encounter with angiotensin converting enzyme inhibitors medication during the same visit as an ICD9 code related to inpatient procedures. |
```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>Clinica- 75-84@10:56:31</query_name>
<query_timing>SAMEVISIT</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>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Clinical Measures</item_name>
<item_key>\\BIRN\BIRN\oasis\Clinical Measures\</item_key>
<item_icon>FA</item_icon>
<tooltip>oasis \ Clinical Measures</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEVISIT</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> 75-84 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\75-84 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 75-84 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find patients aged 75-84 years old who have had a clinical measure recorded during the same visit. |
```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>Female@11:23:23</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>
<item>
<hlevel>3</hlevel>
<item_name>Male</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Gender \ Male</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns3:query_definition>
``` |
I want to find all female patients with any timing, in the demographics category, specifically those with the gender attribute of female. |
Subsets and Splits