output
stringlengths 926
21.5k
| instruction
stringlengths 45
1.08k
|
---|---|
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Other peripheral vascular disease@14:16:49-Acute articular rheumatism@14:8:15@14:29: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>0</hlevel>
<item_name>(PrevQuery) Other peripheral vascular disease@14:16:49</item_name>
<item_key>masterid:28648</item_key>
<tooltip>Other peripheral vascular disease@14:16:49 [6-6-2023] [demo]</tooltip>
<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>0</hlevel>
<item_name>(PrevQuery) Acute articular rheumatism@14:8:15</item_name>
<item_key>masterid:28643</item_key>
<tooltip>Acute articular rheumatism@14:8:15 [6-6-2023] [demo]</tooltip>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients with a history of Other Peripheral Vascular Disease (code 14:16:49) and Acute Articular Rheumatism (code 14:8:15) in the i2b2 database, with no specific timing constraints and high accuracy. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Encou-Sympt-Hazar@12:38: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>3</hlevel>
<item_name>Encounter for screening for infectious and parasitic diseases</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(Z00-Z99) Fact~rmj9\(Z00-Z13) Pers~m0l3\(Z11) Encounte~xfu3\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Factors influencing health status and contact with health services (z00-z99) \ Persons encountering health services for examinations (z00-z13)
\ Encounter for screening for infectious and parasitic diseases</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>Symptoms involving respiratory system and other chest symptoms</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Symptoms, signs, and ill-defined conditions (780-799)\Symptoms (780-789)\(786) Symptoms involving respirat~\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Symptoms, signs, and ill-defined conditions \ Symptoms \ Symptoms involving respiratory system and other chest symptoms</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>Hazards of communicable diseases</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\zz V-codes\Hazards of communicable diseases (V01-V06)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ V-codes \ Hazards of communicable diseases</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find encounters for screening of infectious and parasitic diseases (ICD10_ICD9), symptoms involving respiratory system and other chest symptoms (i2b2_DIAG), and hazards of communicable diseases (V-codes) with any timing, 1000% accuracy, and no inversion. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Anemia Related @14:41: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>3</hlevel>
<item_name>Anemia Related Studies</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB31) Anemia Related Studies\</item_key>
<item_icon>FA</item_icon>
<tooltip>Labtests \ Chemistry \ Anemia Related Studies</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of "Anemia Related Studies" in the "Labtests" section under the "Chemistry" category in the i2b2 database, with a specificity scale of 0, panel timing set to "ANY", and a panel accuracy scale of 100. The query is named "Anemia Related @14:41:49" and has a single item with a hierarchical level of 3, and the icon used is "FA". The query is not a synonym and is classified as "ENC". |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>B12 Unsaturated@14:43:38</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>B12 Unsaturated Binding (Group:B12USAT)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB31) Anemia Related Studies\B12USAT\</item_key>
<item_icon>FA</item_icon>
<tooltip>Labtests \ Chemistry \ Anemia Related Studies \ B12 Unsaturated Binding (Group:B12USAT)</tooltip>
<class>ENC</class>
<constrain_by_value>
<value_operator>GE</value_operator>
<value_constraint>1252</value_constraint>
<value_unit_of_measure>ng/l</value_unit_of_measure>
<value_type>NUMBER</value_type>
</constrain_by_value>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances where the B12 Unsaturated Binding (Group:B12USAT) lab test result has a value greater than or equal to 1252 ng/l, within any time frame, with 1000% accuracy, and with a specificity scale of 0. This query will return results from the Chemistry panel, under the Anemia Related Studies category, and the data will be constrained by the provided value and unit of measure. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Coronavirus as @12:28:21-Diagnoses@14:42:05@14:28:38</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) Coronavirus as @12:28:21</item_name>
<item_key>masterid:28659</item_key>
<tooltip>Coronavirus as @12:28:21 [6-7-2023] [demo]</tooltip>
<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>0</hlevel>
<item_name>(PrevQuery) Diagnoses@14:42:05</item_name>
<item_key>masterid:28655</item_key>
<tooltip>Diagnoses@14:42:05 [6-6-2023] [demo]</tooltip>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of the term "Coronavirus" occurring at 12:28:21 and all instances of the term "Diagnoses" occurring at 14:42:05 in the given data set, with a specificity scale of 0 and a panel accuracy scale of 100, with no inversion applied, and both terms being part of the same query panel with any timing. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Acute articular rheumatism@14:8:15@14:29:41</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) Acute articular rheumatism@14:8:15</item_name>
<item_key>masterid:28643</item_key>
<tooltip>Acute articular rheumatism@14:8:15 [6-6-2023] [demo]</tooltip>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis of acute articular rheumatism at any time during their medical history, with a specificity scale of 0 and a panel accuracy scale of 100, using a single panel with the panel timing set to ANY, and with the invert option set to 0. This query will search for the term "Acute articular rheumatism" with the master ID of 28643 and a tooltip description of "Acute articular rheumatism@14:8:15 [6-6-2023] [demo]." |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Gender@16:23: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>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>
</ns4:query_definition>
``` |
I want to find all patients with any gender recorded in the Demographics section of the i2b2 database. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Income@16:28: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>2</hlevel>
<item_name>Income</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Income\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Income</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with any recorded information related to their income in the demographics category of the i2b2 database. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>(t) Digesti-ALT (SGALT (SGDigesti@16:24: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>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>
<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>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</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>ANY</aggregate_operator>
</first_query>
<operator>LESS</operator>
<second_query>
<query_id>Observation B</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>ANY</aggregate_operator>
</second_query>
<span>
<operator>GREATEREQUAL</operator>
<span_value>3</span_value>
<units>MONTH</units>
</span>
</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>5</hlevel>
<item_name>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip>
<class>ENC</class>
<constrain_by_value>
<value_operator>GT</value_operator>
<value_constraint>35</value_constraint>
<value_unit_of_measure>u/l</value_unit_of_measure>
<value_type>NUMBER</value_type>
</constrain_by_value>
<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>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>
</subquery>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis related to the digestive system (hierarchy level 2) and an ALT (SGPT) test result (LOINC:1742-6) greater than 35 u/l within the same instance number, where the ALT test result is less than or equal to 3 months prior to the diagnosis. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Acute articular rheumatism@14:8:15@14:29:59</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) Acute articular rheumatism@14:8:15</item_name>
<item_key>masterid:28643</item_key>
<tooltip>Acute articular rheumatism@14:8:15 [6-6-2023] [demo]</tooltip>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of acute articular rheumatism diagnosed at any time with a high level of specificity and accuracy, as defined in the i2b2 query builder xml. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Principal Diagn@15:38: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>Behavioral syndromes associated with physiological disturbances and physical factors (f50-f59)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(F01-F99) Ment~44ly\(F50-F59) Beha~4x02\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Mental and behavioral disorders (f01-f99) \ Behavioral syndromes associated with physiological disturbances and physical factors (f50-f59)</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Principal Diagnosis</modifier_name>
<modifier_key>\\ICD10_ICD9\Principal Diagnosis\</modifier_key>
<applied_path>\Diagnoses\(F01-F99) Ment~44ly\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with a principal diagnosis of behavioral syndromes associated with physiological disturbances and physical factors (ICD codes F50-F59) in the Mental and behavioral disorders (F01-F9) category, with a specificity scale of 0 and a panel accuracy scale of 100, and with any timing constraint. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Patient Instruc@19:55: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>1</hlevel>
<item_name>Singulair 5mg tablet chewable Merck & Co. Inc</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME229) leukotriene modifiers\montelukast\00006027531\</item_key>
<item_icon>FA</item_icon>
<tooltip>undefined</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Patient Instructions</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key>
<applied_path>\i2b2\Medications\%</applied_path>
<constrain_by_value>
<value_operator>CONTAINS[database]</value_operator>
<value_constraint>this is blah</value_constraint>
<value_type>LARGETEXT</value_type>
</constrain_by_value>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of the medication "Singulair 5mg tablet chewable" by Merck & Co. Inc, where the patient instructions contain the text "this is blah" in the database. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Acute articular rheumatism@16:49:4@14:30: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>(PrevQuery) Acute articular rheumatism@16:49:4</item_name>
<item_key>masterid:28569</item_key>
<tooltip>Acute articular rheumatism@16:49:4 [6-5-2023] [demo]</tooltip>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of "Acute articular rheumatism" with a specificity scale of 0, accuracy scale of 100, and any timing in the i2b2 database, and the query will be named "Acute articular rheumatism@16:49:4@14:30:31". The query will include one panel with panel number 1 and any timing, and the panel will have one item with the item name "Acute articular rheumatism@16:49:4" and the key "masterid:28569". The item is not a synonym and the tooltip for this item is "Acute articular rheumatism@16:49:4 [6-5-2023] [demo]". |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Admit Diagnosis@15:38: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>Behavioral syndromes associated with physiological disturbances and physical factors (f50-f59)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(F01-F99) Ment~44ly\(F50-F59) Beha~4x02\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Mental and behavioral disorders (f01-f99) \ Behavioral syndromes associated with physiological disturbances and physical factors (f50-f59)</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key>
<applied_path>\Diagnoses\(F01-F99) Ment~44ly\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients who have an Admit Diagnosis related to Behavioral syndromes associated with physiological disturbances and physical factors (f50-f59) in the ICD10_ICD9 (F01-F9) Mental and behavioral disorders category. This query will display all patients who have been diagnosed with these specific conditions during their admission, and it will be applied to the Diagnoses (F01-F9) Mentally category with a specificity scale of 0 and an accuracy scale of 100. The panel timing is set to ANY, meaning it can be applied to any time period, and the query timing is also set to ANY, meaning it can be applied to any point in time during the patient's medical history. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>X-Ray Reports@14:47:38@17:7:20</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) X-Ray Reports@14:47:38</item_name>
<item_key>masterid:27840</item_key>
<tooltip>X-Ray Reports@14:47:38 [5-12-2023] [demo_obf]</tooltip>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all X-Ray reports that were generated between 14:47:38 and 17:7:20 with a specificity scale of 0 and a panel accuracy scale of 100, with the query being active at any time and with the panel inverted to 0, with a total of 1 item occurrence, where the item is named "X-Ray Reports@14:47:38" and has a key value of "masterid:2740", and is not a synonym. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>X-Ray Reports@14:47:38-Circulatory sys@16:51:38@17:7: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>0</hlevel>
<item_name>(PrevQuery) X-Ray Reports@14:47:38</item_name>
<item_key>masterid:27840</item_key>
<tooltip>X-Ray Reports@14:47:38 [5-12-2023] [demo_obf]</tooltip>
<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>0</hlevel>
<item_name>(PrevQuery) Circulatory sys@16:51:38</item_name>
<item_key>masterid:27623</item_key>
<tooltip>Circulatory sys@16:51:38 [5-1-2023] [demo_obf]</tooltip>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all X-ray reports that were created between 2:47 PM and 14:47:38 and all circulatory system-related data captured between 4:51:38 PM and 6:51:38 PM on May 1, 2023 in the demo_obf database. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Race@18:55: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>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>
</ns4:query_definition>
``` |
I want to find all patients with any recorded race information in the i2b2 Demographics panel, using the "Race" field with a specificity scale of 0, accuracy scale of 100, and a time frame of any occurrence. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Singulair 5mg tablet chewable Merck & Co. Inc@19:49: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>1</hlevel>
<item_name>Singulair 5mg tablet chewable Merck & Co. Inc</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME229) leukotriene modifiers\montelukast\00006027531\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ respiratory agents \ leukotriene modifiers \ montelukast \ singulair 5mg tablet chewable merck & co. inc</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Patient Instructions</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key>
<applied_path>\i2b2\Medications\%</applied_path>
<constrain_by_value>
<value_operator>CONTAINS</value_operator>
<value_constraint>test</value_constraint>
<value_type>LARGETEXT</value_type>
</constrain_by_value>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of the medication "Singulair 5mg tablet chewable" manufactured by Merck & Co. Inc. within the i2b2 database, with no specific time frame, and the highest level of accuracy. The query will be focused on the medication name and the manufacturer, and will include any records that contain the term "test" within the "Patient Instructions" field. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Race@09:33: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>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>
</ns4:query_definition>
``` |
I want to find all instances of the race demographic field in the i2b2 dataset with any timing and 100% accuracy, using the specificity scale of 0 and the panel number 1, and with a total of 1 item occurrence, where the hlevel is set to 2 and the item key is "\\i2b2_DEMO\i2b2\Demographics\Race\", and the icon is set to FA. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Diagnoses@10:29:20</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>Diagnoses</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all diagnoses in the i2b2 database with a specificity scale of 0, panel timing set to ANY, accuracy scale set to 100, and only 1 item occurrence within a single panel, using the Diagnoses element with the key \\i2b2_DIAG\i2b2\Diagnoses\. The query will return all diagnoses, regardless of timing, and will prioritize the most accurate results. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Diabete-Asthma@11:00: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>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>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>
</ns4:query_definition>
``` |
I want to find patients who have been diagnosed with both Diabetes Mellitus and Asthma at any point in time, with a high level of accuracy and specificity, and who have these diagnoses categorized under Endocrine disorders and Respiratory system respectively. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Singulair 5mg tablet chewable Merck & Co. Inc@19:52:11</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>Singulair 5mg tablet chewable Merck & Co. Inc</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME229) leukotriene modifiers\montelukast\00006027531\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ respiratory agents \ leukotriene modifiers \ montelukast \ singulair 5mg tablet chewable merck & co. inc</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Patient Instructions</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key>
<applied_path>\i2b2\Medications\%</applied_path>
<constrain_by_value>
<value_operator>CONTAINS</value_operator>
<value_constraint>this is a test</value_constraint>
<value_type>LARGETEXT</value_type>
</constrain_by_value>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances where a patient has been prescribed the medication "Singulair 5mg tablet chewable" manufactured by "Merck & Co. Inc" at any time, and the medication instruction contains the phrase "this is a test" in the patient's electronic medical record. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Patient Instruc@19: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>1</hlevel>
<item_name>Singulair 5mg tablet chewable Merck & Co. Inc</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME229) leukotriene modifiers\montelukast\00006027531\</item_key>
<item_icon>FA</item_icon>
<tooltip>undefined</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Patient Instructions</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key>
<applied_path>\i2b2\Medications\%</applied_path>
<constrain_by_value>
<value_operator>CONTAINS</value_operator>
<value_constraint>test</value_constraint>
<value_type>LARGETEXT</value_type>
</constrain_by_value>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who have been prescribed Singulair 5mg tablets (Montelukast) with specific instructions containing the word "test" in their medication instructions. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Patient Instruc@19:55: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>1</hlevel>
<item_name>Singulair 5mg tablet chewable Merck & Co. Inc</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME229) leukotriene modifiers\montelukast\00006027531\</item_key>
<item_icon>FA</item_icon>
<tooltip>undefined</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Patient Instructions</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key>
<applied_path>\i2b2\Medications\%</applied_path>
<constrain_by_value>
<value_operator>CONTAINS[database]</value_operator>
<value_constraint>this is blah</value_constraint>
<value_type>LARGETEXT</value_type>
</constrain_by_value>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances where a patient has been prescribed Singulair 5mg tablets (Montelukast) and the patient instructions field contains the text "this is blah" in the medication record. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Ischemic heart @07:07: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>Ischemic heart disease</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Ischemic heart disease (410-414)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system \ Ischemic heart disease</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of Ischemic heart disease diagnoses in the Circulatory system category of the Diagnoses ontology using the i2b2 query builder with a specificity scale of 0 and an accuracy scale of 100, with a time range of ANY. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Ischemi-Male@07:09:41</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>Ischemic heart disease</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Ischemic heart disease (410-414)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system \ Ischemic heart disease</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>
</ns4:query_definition>
``` |
I want to find all male patients with a diagnosis of ischemic heart disease in the i2b2 database. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Singulair 5mg tablet chewable Merck & Co. Inc@19:57:35</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>Singulair 5mg tablet chewable Merck & Co. Inc</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME229) leukotriene modifiers\montelukast\00006027531\</item_key>
<item_icon>FA</item_icon>
<tooltip>undefined</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Patient Instructions</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key>
<applied_path>\i2b2\Medications\%</applied_path>
<constrain_by_value>
<value_operator>CONTAINS</value_operator>
<value_constraint>test</value_constraint>
<value_type>LARGETEXT</value_type>
</constrain_by_value>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances where a patient was prescribed Singulair 5mg chewable tablets manufactured by Merck & Co. Inc, with the medication name containing the word "test" in the patient instructions, and the search should be performed on the 'Medications' section of the i2b2 database with a specificity scale of 0 and accuracy scale of 100. The query timing and panel timing are set to 'ANY' and the panel number is 1. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Income@14:41:38</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>Income</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Income\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Income</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find demographic information on a patient's income at any time with a high level of specificity and accuracy, using the i2b2 query builder. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Diabetes mellit@01:29: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>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>
</ns4:query_definition>
``` |
I want to find all patients who have been diagnosed with Diabetes mellitus at any point in time, with a high level of specificity and accuracy, and categorized under the Endocrine disorders section in the i2b2 ontology. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Ischemi-Male@07:08: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>3</hlevel>
<item_name>Ischemic heart disease</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Ischemic heart disease (410-414)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system \ Ischemic heart disease</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>
</ns4:query_definition>
``` |
I want to find all male patients with a diagnosis of ischemic heart disease in the i2b2 database. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Diabetes mellit@10:52: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>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>
</ns4:query_definition>
``` |
I want to find all patients with a diagnosis of Diabetes Mellitus in the Endocrine disorders section of the i2b2 database, specifically in the Other endocrine gland diseases category, with a high level of specificity and accuracy. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Diabete-Asthma@10:58:57</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>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>
</ns4:query_definition>
``` |
I want to find patients who have been diagnosed with both Diabetes mellitus and Asthma at any time, with a high level of accuracy. The query will search for the specific diagnosis codes: Diabetes mellitus under the Endocrine disorders category and Asthma under the Respiratory system category, with no inversion applied. The specificity scale is set to 0, and the query timing is set to ANY. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Ischemi-Male@07:10: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>3</hlevel>
<item_name>Ischemic heart disease</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Ischemic heart disease (410-414)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system \ Ischemic heart disease</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>
</ns4:query_definition>
``` |
I want to find all male patients with a diagnosis of ischemic heart disease in the i2b2 database. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Circulatory sys@16:57: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>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>
</ns4:query_definition>
``` |
I want to find all diagnoses related to the circulatory system (ICD codes 390-459) with a specificity scale of 0 and a total item occurrence of 1, using the i2b2 query builder. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Rx Sig@17:20: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>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>Rx Sig</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\RxSig\</modifier_key>
<applied_path>\i2b2\Medications\%</applied_path>
<constrain_by_value>
<value_operator>LIKE[contains]</value_operator>
<value_constraint>para</value_constraint>
<value_type>TEXT</value_type>
</constrain_by_value>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all medication records that contain the term "para" in the Rx Sig field, regardless of the time period, with a specificity scale of 0 and a panel accuracy scale of 100, with only one occurrence required, and the Medications item is not a synonym. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Gender@14:21:57</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>
</ns4:query_definition>
``` |
I want to find the gender of patients in the i2b2 dataset at any time point with a specificity scale of 0 and an accuracy scale of 100, using the Demographics panel and the Gender field. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Gender@14:22: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>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>
</ns4:query_definition>
``` |
I want to find all patients with any gender recorded in the i2b2 Demographics module. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Income@14:44: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>Income</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Income\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Income</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find the demographic information related to income at any time with a specificity scale of 0 and accuracy scale of 100, using the i2b2 query builder. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Circulatory system@15:53: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>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>
</ns4:query_definition>
``` |
I want to find all diagnoses related to the Circulatory system (ICD-9 codes 390-459) within the i2b2 database, with a specificity scale of 0, panel timing set to ANY, and a panel accuracy scale of 100. This query is designed to search for any diagnosis within the specified category, with no time constraints, and the results will be displayed in a panel with a high level of accuracy. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Income@16:34: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>2</hlevel>
<item_name>Income</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Income\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Income</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find a query that will search for any patient's income information stored in the i2b2 database, specifically within the Demographics category, using the "Income" panel with a specificity scale of 0, a total of 1 item occurrence, and a panel accuracy scale of 100. The query has a name of "Income@16:34:30" and is not a synonym. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Income@16:38: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>Income</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Income\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Income</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find a query that searches for demographic information related to a patient's income, with a specificity scale of 0, and a high level of accuracy (1000%) for the specified panel, within any time frame (ANY), and with no inversion applied. The query will focus on a single item, named "Income," which is located under the "Demographics" category in the i2b2 database, and is represented by the key "\\i2b2_DEMO\i2b2\Demographics\Income\" with the class "ENC." This query is named "Income@16:38:28" and is not a synonym for any other query. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Income@16:40: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>2</hlevel>
<item_name>Income</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Income\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Income</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with any income information recorded in the i2b2 database, using the "Income" item from the "Demographics" category, with a specificity scale of 0, a panel accuracy scale of 100, and a panel timing of "ANY". This query is not inverted and will return a total of 1 item occurrence. The query is named "Income@16:40:12" and has a class of "ENC". |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>(t) Digesti-ALT (SGALT (SGDigesti@16:22:41</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>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>
<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>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</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>
<span>
<operator>GREATEREQUAL</operator>
<span_value>3</span_value>
<units>MONTH</units>
</span>
</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>5</hlevel>
<item_name>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</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>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>
</subquery>
</ns4:query_definition>
``` |
I want to find all patients who have had an ALT (SGPT) test result (LOINC:1742-6) within the same instance number as a diagnosis related to the digestive system, and the ALT (SGPT) test result was performed less than 3 months before or after the diagnosis. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Income@16:28: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>2</hlevel>
<item_name>Income</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Income\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Income</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find a query that will search for demographic information related to income, with a specificity scale of 0 and a high accuracy scale of 100, using the i2b2 query builder, and display the results on panel 1 with a total of 1 item occurrence. The query timing should be set to ANY and the panel timing should also be ANY, and the query should not be inverted. The class should be set to ENC, and the item should not be considered a synonym. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Income@16:34: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>2</hlevel>
<item_name>Income</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Income\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Income</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of income data from the Demographics domain in the i2b2 data repository, with a specificity scale of 0 and a panel accuracy scale of 100, regardless of the timing. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Income@16:40: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>2</hlevel>
<item_name>Income</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Income\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Income</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with any recorded information related to their income in the Demographics section of the i2b2 database, with a high level of specificity (1000%) and accuracy, regardless of the time of data collection, and display it on the first panel of the query. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>(t) Digesti-ALT (SGALT (SGDigesti@16:24: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>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>
<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>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</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>ANY</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>
<span>
<operator>GREATEREQUAL</operator>
<span_value>3</span_value>
<units>MONTH</units>
</span>
</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>5</hlevel>
<item_name>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip>
<class>ENC</class>
<constrain_by_value>
<value_operator>GT</value_operator>
<value_constraint>35</value_constraint>
<value_unit_of_measure>u/l</value_unit_of_measure>
<value_type>NUMBER</value_type>
</constrain_by_value>
<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>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>
</subquery>
</ns4:query_definition>
``` |
I want to find patients with an elevated ALT (SGPT) level (greater than 35 u/l) within the same encounter as a diagnosis related to the digestive system. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>VITAMIN-75 year@17:07: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>5</hlevel>
<item_name>VITAMIN B12 UNSAT BIND CAPA (LOINC:2171-7)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB31) Anemia Related Studies\B12USAT\LOINC:2171-7\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Anemia Related Studies \ B12 Unsaturated Binding (Group:B12USAT) \ Vitamin b12 unsat bind capa (LOINC:2171-7)</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>75 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\75-84 years old\75 years old\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographics \ Age \ 75-84 years old \ 75 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances where the Vitamin B12 Unsaturated Binding Capacity (LOINC:2171-7) lab test result is present for patients who are 75 years old. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Income@18:29: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>2</hlevel>
<item_name>Income</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Income\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Income</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with any recorded information regarding their income in the i2b2 database. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Income@18:29: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>2</hlevel>
<item_name>Income</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Income\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Income</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find the demographic information related to a patient's income at any time, using the i2b2 query builder with a high level of specificity and accuracy. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>(t) Digesti-ALT (SGDigestiALT (SG@16:23: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>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>
<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>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<subquery_constraint>
<first_query>
<query_id>Observation B</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</first_query>
<operator>LESS</operator>
<second_query>
<query_id>Observation A</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</second_query>
<span>
<operator>GREATEREQUAL</operator>
<span_value>3</span_value>
<units>MONTH</units>
</span>
</subquery_constraint>
<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>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>
</subquery>
<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>5</hlevel>
<item_name>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip>
<class>ENC</class>
<constrain_by_value>
<value_operator>LT</value_operator>
<value_constraint>35</value_constraint>
<value_unit_of_measure>u/l</value_unit_of_measure>
<value_type>NUMBER</value_type>
</constrain_by_value>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</subquery>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis related to the digestive system and an ALT (SGPT) lab test result that is less than 35 u/l, where the diagnosis occurred within 3 months prior to the ALT (SGPT) test. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Income@18:31: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>2</hlevel>
<item_name>Income</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Income\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Income</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find demographic information related to income at any time point, with a specificity scale of 0 and an accuracy scale of 100, using the i2b2 query builder with the panel number 1 and panel timing set to ANY, with the invert option set to 0 and only 1 item occurrence, focusing on the item named "Income" under the "Demographics" category, with a class of ENC and no synonyms. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Race@18:36:56</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>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>
</ns4:query_definition>
``` |
I want to find all patients with any race recorded in the demographics section of the i2b2 database. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Race@18:36:56</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>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>
</ns4:query_definition>
``` |
I want to find all patients with any race listed in the demographics section of their medical record using the i2b2 query builder. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Gender@18:33: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>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>
</ns4:query_definition>
``` |
I want to find all patients with any gender recorded in the demographics section of their electronic health record, with a specificity scale of 0 and a high level of accuracy, using the i2b2 query builder. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Race@18:55: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>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>
</ns4:query_definition>
``` |
I want to find all patients with any race recorded in the demographics section of the i2b2 database. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Gender@18:58: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>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>
</ns4:query_definition>
``` |
I want to find all patients in the database with any gender recorded, using the i2b2 query builder, by selecting the Demographics panel, focusing on the Gender field with a high level of specificity and accuracy, and displaying the results in a single panel with no inversion of the data. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Race@20:28: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>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>
</ns4:query_definition>
``` |
I want to find all patients with any race listed in their demographic information. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Language@18:40: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>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>
</ns4:query_definition>
``` |
I want to find all patients with any language information recorded in their demographics, with a high level of specificity (1000%) and no time constraints, using the i2b2 query builder. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Language@18:43: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>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>
</ns4:query_definition>
``` |
I want to find all patients with any language recorded in their demographic information using the i2b2 query builder. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Race@20:36: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>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>
</ns4:query_definition>
``` |
I want to find all patients with any race information recorded in the demographics section of their medical record. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Race@20:28: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>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>
</ns4:query_definition>
``` |
I want to find all patients with any recorded race information in the i2b2 Demographics module, regardless of specificity or accuracy, and display the results in the first panel of the query with a total item occurrence of 1. The query should be named "Race@20:28:22" and have an invert value of 0. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Religion@20:29: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>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>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with any religion listed in their demographic information within the i2b2 database using the panel named "Religion" with an accuracy scale of 100 and specificity scale of 0, and the query is named "Religion@20:29:48". |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Language@20:32: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>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>
</ns4:query_definition>
``` |
I want to find all patients with any recorded information related to their language in the Demographics section of the i2b2 database. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Race@20:28: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>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>
</ns4:query_definition>
``` |
I want to find all patients with any race recorded in the demographics section of their electronic health record using the i2b2 query builder. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Gender@21:24: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>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>
</ns4:query_definition>
``` |
I want to find all patients in the database with any gender recorded in the demographics section within the last 24 hours, 24 days, or 25 months. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Marital Status@21:37:16</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>Marital Status</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Marital Status\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographic \ Marital Status</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with any marital status recorded in the Demographics panel of the i2b2 database. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Gender@21:26:36</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>
</ns4:query_definition>
``` |
I want to find all instances where the gender attribute has been recorded in the i2b2 database within any time frame, with a specificity scale of 0 and a panel accuracy scale of 100, focusing on the second hierarchical level (hlevel) and using the Demographics/Gender item with the key \\i2b2_DEMO\i2b2\Demographics\Gender\. This query will display the gender information of patients within the specified panel, and it will not be inverted or treated as a synonym. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Gender@21:28: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>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>
</ns4:query_definition>
``` |
I want to find the gender of all patients in the dataset, regardless of the timing or specificity, with a high level of accuracy and no inversion, using the Demographics panel in the i2b2 query builder. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Marital Status@21:29:38</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>Marital Status</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Marital Status\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographic \ Marital Status</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find the marital status of patients at any time, with a specificity scale of 0 and a panel accuracy scale of 100, focusing on the Demographics panel, and searching for the "Marital Status" field within the i2b2 database using the query builder. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>(t) mytestAdhesion of stoBurn of stomach@10:33:38</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<subquery_constraint>
<first_query>
<query_id>Observation A</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</first_query>
<operator>LESSEQUAL</operator>
<second_query>
<query_id>Observation B</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>ANY</aggregate_operator>
</second_query>
<span>
<operator>GREATEREQUAL</operator>
<span_value>1</span_value>
<units>MONTH</units>
</span>
<span>
<operator>GREATEREQUAL</operator>
<span_value>1</span_value>
<units>MONTH</units>
</span>
</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>5</hlevel>
<item_name>Adhesion of stomach</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\Other diseases of intestines and peritoneum (560-569)\(568) Other disorders of peritone~\(568-0) Peritoneal adhesions (pos~\</item_key>
<item_icon>LA</item_icon>
<tooltip>Diagnoses \ ... \ Other diseases of intestines and peritoneum \ Other disorders of peritoneum \ Peritoneal adhesions (postoperative) (postinfection)</tooltip>
<class>ENC</class>
<item_is_synonym>true</item_is_synonym>
</item>
<item>
<hlevel>5</hlevel>
<item_name>Gangrenous thoracic stomach</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\Hernia of abdominal cavity (550-553)\(551) Other hernia of abdominal c~\(551-3) Diaphragmatic hernia with~\</item_key>
<item_icon>LA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Hernia of abdominal cavity \ Other hernia of abdominal cavity, with gangrene \ Diaphragmatic hernia with gangrene</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>5</hlevel>
<item_name>Burn of stomach</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Injury and poisoning (800-999)\Burns (940-949)\(947) Burn of internal organs\(947-3) Burn of gastrointestinal ~\</item_key>
<item_icon>LA</item_icon>
<tooltip>Diagnoses \ Injury and poisoning \ Burns \ Burn of internal organs \ Burn of gastrointestinal tract</tooltip>
<class>ENC</class>
<item_is_synonym>true</item_is_synonym>
</item>
</panel>
</subquery>
</ns4:query_definition>
``` |
I want to find patients who have had an event of Adhesion of stomach within the same instance as Observation A, and within the same month as Observation B, which is Burn of stomach, within the past year. Observation A and Observation B are of the same type (EVENT) and have a specificity scale of 0, meaning they are both highly specific. The query is looking for patients who have both Adhesion of stomach and Burn of stomach occurring within the same time frame. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Vital Status@10:36: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>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>
</ns4:query_definition>
``` |
I want to find all instances of the "Vital Status" field in the Demographics panel, with any timing, 1000% accuracy, and the specificity scale set to 0. The query should return information on the patient's current vital status, such as whether they are alive or deceased, at any point in time, and should not be inverted. This query is part of the panel with the panel number 1 and has a total of 1 item occurrence. The data will be encoded using the ENC format, and the item is not a synonym. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Hypertensive di@14:15: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>3</hlevel>
<item_name>Hypertensive diseases (i10-i15)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(I00-I99) Dise~3w8h\(I10-I15) Hype~5igm\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Diseases of the circulatory system (i00-i99) \ Hypertensive diseases (i10-i15)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with a diagnosis of hypertensive diseases (ICD codes I10-I15) at any time during their medical history, with a specificity scale of 0 and a panel accuracy scale of 100, and the panel is inverted. The query should be named "Hypertensive diseases" and the class should be set to "ENC". |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>(t) Digesti-ALT (SGLiver FDigesti@16:25: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>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>
<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>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<subquery_constraint>
<first_query>
<query_id>Observation C</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 C</query_id>
<query_type>EVENT</query_type>
<query_name>Observation C</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>Liver Function Tests</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\</item_key>
<item_icon>FA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests</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>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>
</subquery>
</ns4:query_definition>
``` |
I want to find all instances where a patient has a diagnosis related to the digestive system and has had a liver function test, specifically ALT (SGPT), with the test result being less than the first diagnosis date. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>(t) Digesti-ALT (SGLiver FDigesti@16:26:00</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>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>
<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>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<subquery_constraint>
<first_query>
<query_id>Observation C</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>ANY</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 C</query_id>
<query_type>EVENT</query_type>
<query_name>Observation C</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>Liver Function Tests</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\</item_key>
<item_icon>FA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests</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>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>
</subquery>
</ns4:query_definition>
``` |
I want to find all patients who have a diagnosis related to the digestive system (ICD codes 520-579) and have had a liver function test (ALT or SGPT) performed, with the liver function test being performed after the diagnosis. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>(t) Digesti-ALT (SGLiver FDigesti@16:26: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>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>
<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>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<subquery_constraint>
<first_query>
<query_id>Observation C</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>ANY</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>
<span>
<operator>GREATEREQUAL</operator>
<span_value>1</span_value>
<units>MONTH</units>
</span>
</subquery_constraint>
<subquery>
<query_id>Observation C</query_id>
<query_type>EVENT</query_type>
<query_name>Observation C</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>Liver Function Tests</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\</item_key>
<item_icon>FA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests</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>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>
</subquery>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis related to the digestive system and an ALT (SGPT) lab test result within the same encounter. The ALT (SGPT) result should be less than or equal to 1 month from the diagnosis. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>(t) Digesti-ALT (SGDigestiALT (SG@16:27: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>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>
<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>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<subquery_constraint>
<first_query>
<query_id>Observation B</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</first_query>
<operator>LESS</operator>
<second_query>
<query_id>Observation D</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</second_query>
</subquery_constraint>
<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>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>
</subquery>
<subquery>
<query_id>Observation D</query_id>
<query_type>EVENT</query_type>
<query_name>Observation D</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>5</hlevel>
<item_name>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</subquery>
</ns4:query_definition>
``` |
I want to find all instances where a patient has a diagnosis related to the digestive system (ICD codes 520-579) and also has a lab test result for ALT (SGPT) (LOINC:1742-6) with a value less than the first observation. The query is looking for occurrences where the ALT (SGPT) test result happened after the digestive system diagnosis, and the test result is lower than the first observation recorded for that patient. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>GHBA1C -Diabete@16:08: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>4</hlevel>
<item_name>GHBA1C (Group:GHBA1C)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\Hemoglobin\GHBA1C\</item_key>
<item_icon>FA</item_icon>
<tooltip>Labtests \ Chemistry \ Hemoglobin \ GHBA1C (Group:GHBA1C)</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>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>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis of diabetes mellitus and their GHBA1C lab test results, with no specific time frame or accuracy requirements, and group them under the GHBA1C category. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Digesti-ALT (SG@16:21: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>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>
<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>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of diagnoses related to the digestive system (ICD codes 520-579) along with the corresponding ALT (SGPT) lab test results (LOINC:1742-6) within the i2b2 database, with no specific time constraint for when the diagnoses or tests were recorded. The query should have a specificity scale of 0 and an accuracy scale of 100, and the diagnoses and lab tests should not be inverted. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>(t) Digesti-ALT (SGDigestiALT (SG@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>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>
<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>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<subquery_constraint>
<first_query>
<query_id>Observation B</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</first_query>
<operator>LESS</operator>
<second_query>
<query_id>Observation A</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</second_query>
<span>
<operator>GREATEREQUAL</operator>
<span_value>3</span_value>
<units>MONTH</units>
</span>
</subquery_constraint>
<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>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>
</subquery>
<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>5</hlevel>
<item_name>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</subquery>
</ns4:query_definition>
``` |
I want to find all patients who have been diagnosed with a digestive system disorder (ICD code range 520-579) and have had an ALT (SGPT) test (LOINC:1742-6) performed within the same instance number, where the ALT (SGPT) test result was recorded at least 3 months prior to the diagnosis date. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Digesti-Liver F@16:21: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>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>
<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>Liver Function Tests</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\</item_key>
<item_icon>FA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all encounters where a diagnosis related to the digestive system (ICD-9 code range 520-579) has been made, and at least one laboratory test related to liver function (LLB6) has been performed during the same encounter. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>(t) Digesti-ALT (SGALT (SGDigesti@16:22: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>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>
<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>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</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>
<span>
<operator>GREATEREQUAL</operator>
<span_value>6</span_value>
<units>MONTH</units>
</span>
</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>5</hlevel>
<item_name>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</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>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>
</subquery>
</ns4:query_definition>
``` |
I want to find patients who have had an ALT (SGPT) test result (LOINC:1742-6) within the same instance number as a diagnosis related to the digestive system, with the ALT (SGPT) test result being less than or equal to 6 months prior to the diagnosis. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>(t) Digesti-ALT (SGDigestiALT (SG@16:29:36</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>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>
<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>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<subquery_constraint>
<first_query>
<query_id>Observation B</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</first_query>
<operator>LESS</operator>
<second_query>
<query_id>Observation D</query_id>
<join_column>STARTDATE</join_column>
<aggregate_operator>FIRST</aggregate_operator>
</second_query>
<span>
<operator>GREATEREQUAL</operator>
<span_value>1</span_value>
<units>MONTH</units>
</span>
</subquery_constraint>
<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>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>
</subquery>
<subquery>
<query_id>Observation D</query_id>
<query_type>EVENT</query_type>
<query_name>Observation D</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>1</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>5</hlevel>
<item_name>ALT (SGPT) (LOINC:1742-6)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip>
<class>ENC</class>
<constrain_by_value>
<value_operator>GT</value_operator>
<value_constraint>30</value_constraint>
<value_unit_of_measure>u/l</value_unit_of_measure>
<value_type>NUMBER</value_type>
</constrain_by_value>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</subquery>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis related to the digestive system and an ALT (SGPT) level greater than or equal to 30 u/l within the same instance number. Additionally, I want to exclude patients with an ALT (SGPT) level less than or equal to 30 u/l within the past month. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name> 18-34-Disease@11:07:57</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>
</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>Diseases of esophagus</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\(530) Diseases of esophagus\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Diseases of esophagus</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who are 18-34 or 35-44 years old and have diseases of the esophagus. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Patient Instruc@17:55: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>Central nervous system agents</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME92) central nervous system agents\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ central nervous system agents</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Patient Instructions</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key>
<applied_path>\i2b2\Medications\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find medications related to the central nervous system within the i2b2 database that have been prescribed to patients with specific instructions. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Admit Diagnosis@18:09: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>4</hlevel>
<item_name>Defibrination syndrome</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Hematologic diseases (280-289)\(286) Coagulation defects\(286-6) Defibrination syndrome\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Hematologic diseases \ Coagulation defects \ Defibrination syndrome</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\Hematologic diseases (280-289)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances where Defibrination syndrome was listed as an Admit Diagnosis, with no specificity scale applied, and the query timing and panel timing set to ANY. The specificity scale is set to 0, meaning all occurrences of the diagnosis will be included, and the panel accuracy scale is set to 100, indicating a high level of confidence in the results. The query is focused on the hlevel 4 item, which is the specific code for Defibrination syndrome within the broader category of Hematologic diseases and Coagulation defects. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Raw Ima-nondeme@17:13:24</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>Raw Images</item_name>
<item_key>\\BIRN\BIRN\oasis\Images\Raw Images\</item_key>
<item_icon>FA</item_icon>
<tooltip>oasis \ Images \ Raw Images</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>
</ns4:query_definition>
``` |
I want to find all patients who have Raw Images available in the 'BIRN\BIRN\oasis\Images' folder and are classified as nondemented based on their MMSE score in the 'BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)' category. The query should be run at any time and have a specificity scale of 0 and an accuracy scale of 100. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Raw Ima-No Alzh@17:13:38</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>Raw Images</item_name>
<item_key>\\BIRN\BIRN\oasis\Images\Raw Images\</item_key>
<item_icon>FA</item_icon>
<tooltip>oasis \ Images \ Raw Images</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>No Alzheimers disease</item_name>
<item_key>\\BIRN\BIRN\oasis\Clinical Measures\MMSE score\No Alzheimers disease\</item_key>
<item_icon>FA</item_icon>
<tooltip>oasis \ Clinical Measures \ MMSE score \ No Alzheimer's disease</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients who have Raw Images in their medical records and do not have Alzheimer's disease based on their MMSE score. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Patie-Patie-Patie@17:55:36</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>Central nervous system agents</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME92) central nervous system agents\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ central nervous system agents</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Patient Instructions</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key>
<applied_path>\i2b2\Medications\%</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>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>
<constrain_by_modifier>
<modifier_name>Patient Instructions</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Instructions\</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>4</hlevel>
<item_name>Miscellaneous analgesics</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\(LME97) miscellaneous analgesics\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ central nervous system agents \ analgesics \ miscellaneous analgesics</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Patient Instructions</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key>
<applied_path>\i2b2\Medications\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find medications related to the central nervous system agents, specifically analgesics and miscellaneous analgesics, with a high level of specificity and accuracy, regardless of the timing of the data, and without inverting the results. The query should be constrained by patient instructions for medications provided within the i2b2 database. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>mild dementia@20:29: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>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>
<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>
<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>
</ns4:query_definition>
``` |
I want to find patients with mild, moderate, or very mild dementia as indicated by the Clinical Dementia Rating (CDR) in the OASIS Clinical Measures category, at any time during their medical record, with a specificity scale of 0 and a panel accuracy scale of 100. The panel should include all three levels of dementia severity (mild, moderate, and very mild) and should not be inverted. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Admit Diagnosis@18:05: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>3</hlevel>
<item_name>Coagulation defects</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Hematologic diseases (280-289)\(286) Coagulation defects\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Hematologic diseases \ Coagulation defects</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\Hematologic diseases (280-289)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with a diagnosis of coagulation defects (ICD code 286) listed as their admit diagnosis, regardless of the specificity scale or timing, with a high level of accuracy (1000%) and one occurrence of the diagnosis, using the i2b2 query builder. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Admit Diagnosis@18:08:02</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>Coagulation defects</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Hematologic diseases (280-289)\(286) Coagulation defects\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Hematologic diseases \ Coagulation defects</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\Hematologic diseases (280-289)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Defibrination syndrome</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Hematologic diseases (280-289)\(286) Coagulation defects\(286-6) Defibrination syndrome\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Hematologic diseases \ Coagulation defects \ Defibrination syndrome</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\Hematologic diseases (280-289)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with an Admit Diagnosis of Coagulation defects, specifically Defibrination syndrome, within the Hematologic diseases category (ICD-9 codes 280-289). The query is designed to have a specificity scale of 0, meaning it will return all patients with this diagnosis regardless of its relevance to their primary condition, and the accuracy scale is set to 100, indicating that all results should be included. The query timing is set to ANY, meaning it will include patients regardless of when they were admitted. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Digesti-Gastroi@20:47: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>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>
<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>
</ns4:query_definition>
``` |
I want to find all encounters where a diagnosis related to the digestive system (ICD-9 codes 520-579) was documented and where a medication related to gastrointestinal agents (LME136) was prescribed, with no specific time frame constraint for the occurrence of these events, and with a high level of accuracy. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Cerebrovascular@11:13: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>4</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>i2b2 \ Diagnoses \ Circulatory system \ Cerebrovascular disease</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with any diagnosis of cerebrovascular disease in the i2b2 database using the query builder. The query will search for diagnoses in the Circulatory system category, specifically within the Cerebrovascular disease subcategory (codes 430-438). The specificity scale is set to 0, meaning that any mention of the condition will be included, and the accuracy scale is set to 100, indicating high confidence in the results. The panel timing is set to ANY, so the query will return results regardless of when the diagnosis was made. The total number of items in the panel is 1, and the class of the item is ENC (encounter). The query will not be inverted, and there is only one occurrence of the item in the panel. The query is named "Cerebrovascular@1:13:13." |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>OXIMETRY (LOINC@11:15: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>OXIMETRY (LOINC:2710-2)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB24) Blood Gases\O2 Sat\LOINC:2710-2\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Blood Gases \ O2 Saturation (Group:O2 Sat) \ OXIMETRY (LOINC:2710-2)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of the OXIMETRY (LOINC:2710-2) test, which is a blood gas analysis for oxygen saturation, within the specified timeframe (ANY) with 100% accuracy and specificity scale set to 0. The panel will have only one item with the hierarchical level of 5 and the icon will be LA. This query is designed to retrieve data from the i2b2 cell repository, specifically from the Labtests/Chemistry/Blood Gases/O2 Saturation category. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>O2 Saturation (@11:15: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>O2 Saturation (Group:O2 Sat)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB24) Blood Gases\O2 Sat\</item_key>
<item_icon>FA</item_icon>
<tooltip>Labtests \ Chemistry \ Blood Gases \ O2 Saturation (Group:O2 Sat)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find the O2 Saturation (Group: O2 Sat) lab test result from the Chemistry section under Blood Gases, with an accuracy scale of 100, for any time frame, and with a specificity scale of 0, where the panel number is 1 and the total number of occurrences is 1. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>TEMPERATURE (LO@11:16: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>5</hlevel>
<item_name>TEMPERATURE (LOINC:8310-5)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB24) Blood Gases\Temp\LOINC:8310-5\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ Blood Gases \ Temp (Group:Temp) \ TEMPERATURE (LOINC:8310-5)</tooltip>
<class>ENC</class>
<constrain_by_value>
<value_operator>BETWEEN</value_operator>
<value_constraint>0 and 300</value_constraint>
<value_unit_of_measure>c</value_unit_of_measure>
<value_type>NUMBER</value_type>
</constrain_by_value>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of the TEMPERATURE (LOINC:8310-5) lab test result within the Chemistry Blood Gases section of the Labtests panel, where the temperature value is between 0 and 30 degrees Celsius, and the timing is not specific. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name> 18-34 years o@11:57:57</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>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>
</ns4:query_definition>
``` |
I want to find female patients aged 18-34 years old with any timing and a specificity scale of 0, using the i2b2 query builder. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name> 18-34 years o@11:58: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>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>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>
</ns4:query_definition>
``` |
I want to find female patients between the ages of 18 and 34 years old, with any timing and specificity scale set to 0, and the panel accuracy scale set to 100. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>B12 Unsaturated Binding (Group:B12USAT)-Folic Acid (Group:FOLATE)@16:24: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>B12 Unsaturated Binding (Group:B12USAT)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB31) Anemia Related Studies\B12USAT\</item_key>
<item_icon>FA</item_icon>
<tooltip>Labtests \ Chemistry \ Anemia Related Studies \ B12 Unsaturated Binding (Group:B12USAT)</tooltip>
<class>ENC</class>
<constrain_by_value>
<value_operator>EQ</value_operator>
<value_constraint>L</value_constraint>
<value_type>FLAG</value_type>
</constrain_by_value>
<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>Folic Acid (Group:FOLATE)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB31) Anemia Related Studies\FOLATE\</item_key>
<item_icon>FA</item_icon>
<tooltip>Labtests \ Chemistry \ Anemia Related Studies \ Folic Acid (Group:FOLATE)</tooltip>
<class>ENC</class>
<constrain_by_value>
<value_operator>LE</value_operator>
<value_constraint>76</value_constraint>
<value_unit_of_measure>ng/ml</value_unit_of_measure>
<value_type>NUMBER</value_type>
</constrain_by_value>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients who have had a B12 Unsaturated Binding test (Group:B12USAT) with a positive result (L) and a Folic Acid (Group:FOLATE) test result greater than or equal to 76 ng/ml within any time frame. |
Subsets and Splits