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>Circulatory sys@13:29: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>1</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system (ICD codes 390-459) with any timing, specificity scale set to 0, and panel accuracy scale set to 100, including only one item with the invert flag set to 1. The query will be named "Circulatory sys@13:29:16" and the panel timing will be 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>Circulatory sys@07:34:14</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>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 any diagnoses related to the circulatory system (ICD codes 390-459) with a specificity scale of 0, a panel timing of ANY, an accuracy scale of 100, and a total of 1 item occurrence. This query is not inverted and is classified as an ENC (Encounter) type.
```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>Active rheumatic fever@11:45: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>4</hlevel> <item_name>Active rheumatic fever</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Acute Rheumatic fever (390-392)\(390) Rheumatic fever without men~\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Acute Rheumatic fever \ Rheumatic fever without mention of heart involvement</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with a diagnosis of active rheumatic fever without mention of heart involvement at any time.
```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>congenital seps@10:52:15</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>congenital sepsis</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\(P35-P39) Infe~4ml4\(P36) Bacteria~fx17\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96) \ Infections specific to the perinatal period (p35-p39) \ congenital sepsis</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 congenital sepsis, including bacterial infections occurring during the perinatal period (before, during, or immediately after birth), using the ICD-10 and ICD-9 coding systems, 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>Laboratory Test@19:14: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>1</hlevel> <item_name>Laboratory Tests</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all laboratory test results with any timing and 100% accuracy, grouped into a panel with a specificity scale of 0 and no inversion, and with the name "Laboratory Tests" and the key "\\i2b2_LABS\i2b2\Labtests\". The query will have a total of 1 item occurrence and the class will be 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>Laboratory Test@19:14:34</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Laboratory Tests</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all laboratory test results with any timing, having a specificity scale of 0, a panel timing of ANY, an accuracy scale of 100, and a total of 1 item occurrence, where the item name is "Laboratory Tests", the item key is "\\i2b2_LABS\i2b2\Labtests", the item icon is FA, the class is ENC, and it 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-Congenital malformations, deformations and chromosomal abnormalities (q00-q99)@20:14:29</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>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> <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> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Congenital malformations, deformations and chromosomal abnormalities (q00-q99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(Q00-Q99) Cong~t96i\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Congenital malformations, deformations and chromosomal abnormalities (q00-q99)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with diagnoses related to congenital malformations, deformations, and chromosomal abnormalities (codes Q0-Q9) in the ICD10_ICD9 Diagnoses table, and include demographic information such as income and gender for these patients. The query should be applied to all time periods (ANY timing) and have a specificity scale of 0, meaning that all instances of these diagnoses should be included, with a panel accuracy scale of 100, indicating high confidence in the results. The query will display two panels: one for demographic information and one for the specific diagnoses. The demographic panel will include income and gender, while the diagnosis panel will focus on congenital malformations, deformations, and chromosomal abnormalities (Q0-Q9).
```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@20:04: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>2</hlevel> <item_name>Respiratory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Respiratory system</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key> <applied_path>\i2b2\Diagnoses\Respiratory system (460-519)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the respiratory system (ICD codes 460-519) that were recorded as the admit diagnosis during any time period.
```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>Medications@20:07:09</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all medications recorded in the i2b2 database with any specificity, timing, and accuracy scale, displaying the results in a single panel with the item name "Medications", icon "FA", and class "ENC". The query should be named "Medications@20:07:09".
```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@20:42: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>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 recorded in the i2b2 database with a specificity scale of 0 and an accuracy scale of 100, regardless of the timing, and with the panel number set to 1. The query should search for the term "Diagnoses" within the "i2b2_DIAG\i2b2\Diagnoses" key and display the results in the ENC class. The panel should not be inverted, and only one occurrence of the item is required.
```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>Active rheumatic fever@11:44:21</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Rheumatic fever without mention of heart involvement</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Acute Rheumatic fever (390-392)\(390) Rheumatic fever without men~\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Acute Rheumatic fever \ Rheumatic fever without mention of heart involvement</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 rheumatic fever without mention of heart involvement at any time, using the ICD-9 code 390 in the Circulatory System section of the Diagnoses category. The specificity scale is set to 0, indicating that the query will return all possible matches, and the accuracy scale is set to 100, meaning that the results will be highly accurate. This query is part of a panel with panel number 1, and the timing is set to ANY, meaning it can be applied to any time frame. The panel's accuracy scale is also set to 100, and the total number of items in the panel is 1. The icon for this item is LA, and the class is ENC. The query 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>Functional dyspepsia-Gastro-esophageal reflux disease@15:58: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>3</hlevel> <item_name>Functional dyspepsia</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(K00-K94) Dise~rl1r\(K20-K31) Dise~0run\(K30) Function~tq93\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the digestive system (k00-k94) \ Diseases of esophagus, stomach and duodenum (k20-k31) \ Functional dyspepsia</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>Gastro-esophageal reflux disease</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(K00-K94) Dise~rl1r\(K20-K31) Dise~0run\(K21) Gastro-e~5hr6\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the digestive system (k00-k94) \ Diseases of esophagus, stomach and duodenum (k20-k31) \ Gastro-esophageal reflux disease</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 Functional dyspepsia and Gastro-esophageal reflux disease in the i2b2 database, with no specific timing constraint, and both diagnoses should have 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>Laboratory Tests@19:11: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>1</hlevel> <item_name>Laboratory Tests</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all laboratory tests conducted at any time with a specificity scale of 0, accuracy scale of 100, and a single occurrence requirement for each test within the "Labtests" category, 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@15:24:33</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key> <applied_path>\Diagnoses\(P00-P96) Cert~6976\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>1</hlevel> <item_name>Things</item_name> <item_key>\\CUST\Custom Metadata\Things\</item_key> <item_icon>LAE</item_icon> <tooltip>Custom Metadata \ Things</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with certain conditions originating in the perinatal period (codes P0-P96) listed as their admission diagnosis, with a high level of specificity (100), and include custom metadata labeled "Things" in the search.
```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@19:40:14</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>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) with any specificity and timing, using the panel number 1, with 100% accuracy, and including only one item occurrence. This query is based on the i2b2 query builder XML format.
```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>Respiratory sys@19:43:37</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>Respiratory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Respiratory 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 respiratory system within the i2b2 database, using the specificity scale of 0 and with a panel accuracy of 100%, without inverting the results, and only considering the diagnoses with the highest level of hierarchy (hlevel = 2) and its subcategories. The query should be applied to any time frame (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>Respira-Respira@19:45: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>2</hlevel> <item_name>Respiratory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Respiratory 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>Respiratory agents</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with diagnoses related to the respiratory system and who have been prescribed respiratory agents as medication, at any time during their medical history, with a high level of accuracy and specificity.
```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>Malignant neoplasms@10:29: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>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Distant metastasis cannot be evaluated</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Metastisis\MX\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Distant metastasis is present</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Metastisis\M1\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>No distant metastasis</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Metastisis\M0\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of malignant neoplasms (ICD-10 code 140-208) with no specific timing, regardless of their specificity, and constrain the results by the presence or absence of distant metastasis. Specifically, I want to include cases where distant metastasis cannot be evaluated, as well as those where it is present (M1) or absent (M0). The query will look for these diagnoses in the i2b2 Diagnoses module, under the Neoplasms (140-239) 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>Gender@20:21:37</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 of a patient is recorded in the i2b2 database, with a specificity scale of 0 and accuracy scale of 100, and the query timing is set to "ANY". The query will be named "Gender@20:21:37" and will be placed on panel 1, with a single item occurrence. The item is located at the path "\\i2b2_DEMO\i2b2\Demographics\Gender\" and the tooltip will display "Demographic \ Gender".
```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-Congenital malformations, deformations and chromosomal abnormalities (q00-q99)@20: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>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> <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> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Congenital malformations, deformations and chromosomal abnormalities (q00-q99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(Q00-Q99) Cong~t96i\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Congenital malformations, deformations and chromosomal abnormalities (q00-q99)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with diagnoses related to congenital malformations, deformations, and chromosomal abnormalities (ICD-9 codes Q0-Q9) in the ICD10_ICD9 Diagnoses panel, along with their income and gender information from the Demographics panel. The specificity scale is set to 0, indicating a broad search, and the timing is set to ANY, meaning the data can come from any point in time. The accuracy scale for both panels is set to 100, indicating a high level of accuracy, and the total number of occurrences for each item in the panels is set to 1. The query is not inverted, and there are no synonyms used in the panels.
```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@08:41: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>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 recorded in the i2b2 database with a high level of specificity (1000%) and no time constraint (ANY timing) using the panel named "Diagnoses" with a panel number of 1 and 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>mild -Educa-Socio@21:24: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>mild dementia</item_name> <item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\mild dementia\</item_key> <item_icon>LA</item_icon> <tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR) \ mild dementia</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Education</item_name> <item_key>\\BIRN\BIRN\oasis\Demographics\Education\</item_key> <item_icon>FA</item_icon> <tooltip>oasis \ Demographics \ Education</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>Socioeconomic Status</item_name> <item_key>\\BIRN\BIRN\oasis\Demographics\Socioeconomic Status\</item_key> <item_icon>FA</item_icon> <tooltip>oasis \ Demographics \ Socioeconomic Status</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 mild dementia, along with their education level and socioeconomic status information, regardless of the timing of the data collection, with a specificity scale of 0 and an accuracy scale of 100 for each panel.
```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>Medications@11:01:34</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of medications recorded in the i2b2 database, with a high level of specificity and accuracy, regardless of the timing, and displayed in a panel with the name "Medications" and icon "FA". This query will include only one item and will not have any 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>Medications@11:01: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>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of medications recorded in the i2b2 database, regardless of specificity or timing, with a high level of accuracy, and without any synonyms applied.
```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>Medications@12:24: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>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of medications recorded in the i2b2 database with no specific time frame, using a high level of accuracy and displaying the results in panel 1, with the option to exclude certain medications if desired.
```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>Medications@12:49: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>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all medications recorded in the i2b2 database with a specificity scale of 0, a panel timing of ANY, an accuracy scale of 100, and a total of 1 item occurrence, using the class ENC, and with the item name "Medications" and the item key "\\i2b2_MEDS\i2b2\Medications\" 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@12:50: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>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 dataset.
```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>Laboratory Tests@19:11: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>1</hlevel> <item_name>Laboratory Tests</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all laboratory test results within the i2b2 database, with a specificity scale of 0, a panel timing of ANY, and an accuracy scale of 100, with the panel number set to 1, and the total item occurrences set to 1. The query should be named "Laboratory Tests@19:1:18" and should not be inverted. The class should be set to ENC and the item should not be 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>Laboratory Tests@19:11: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>1</hlevel> <item_name>Laboratory Tests</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all laboratory tests with any timing, using a specificity scale of 0 and an accuracy scale of 100, and including only one total item occurrence within the panel, with the item name "Laboratory Tests" and the item key "\\i2b2_LABS\i2b2\Labtests\" 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>(t) mild -Educa-SocioCliniDemog@21:25: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>4</hlevel> <item_name>mild dementia</item_name> <item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\mild dementia\</item_key> <item_icon>LA</item_icon> <tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR) \ mild dementia</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Education</item_name> <item_key>\\BIRN\BIRN\oasis\Demographics\Education\</item_key> <item_icon>FA</item_icon> <tooltip>oasis \ Demographics \ Education</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>Socioeconomic Status</item_name> <item_key>\\BIRN\BIRN\oasis\Demographics\Socioeconomic Status\</item_key> <item_icon>FA</item_icon> <tooltip>oasis \ Demographics \ Socioeconomic Status</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <subquery_constraint> <first_query> <query_id>Observation A</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Observation B</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Observation A</query_id> <query_type>EVENT</query_type> <query_name>Observation A</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>0</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Clinical Dementia Rating (CDR)</item_name> <item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\</item_key> <item_icon>FA</item_icon> <tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR)</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>Demographics</item_name> <item_key>\\BIRN\BIRN\oasis\Demographics\</item_key> <item_icon>FA</item_icon> <tooltip>oasis \ Demographics</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 of mild dementia who have a socioeconomic status and education recorded within the same instance number as their Clinical Dementia Rating (CDR) assessment.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns3:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/"> <query_name>(t) 18-34 years old-Asthma-Bronchodilators@20:10:47</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name> 18-34 years old</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Age\18-34 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Demographics \ Age \ 18-34 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> 35-44 years old</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Age\35-44 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Demographics \ Age \ 35-44 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> 45-54 years old</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Age\45-54 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Demographics \ Age \ 45-54 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> 55-64 years old</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Age\55-64 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Demographics \ Age \ 55-64 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <subquery_constraint> <first_query> <query_id>Event 1</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Event 2</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Event 1</query_id> <query_type>EVENT</query_type> <query_name>Event 1</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>2</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Asthma</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Event 2</query_id> <query_type>EVENT</query_type> <query_name>Event 2</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>2</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Bronchodilators</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME223) bronchodilators\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents \ bronchodilators</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> </ns3:query_definition> ```
I want to find patients between the ages of 18 and 64 years old who have been diagnosed with asthma and have had a prescription for bronchodilators.
```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-Congeni@07:25: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>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> <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> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Congenital malformations, deformations and chromosomal abnormalities (q00-q99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(Q00-Q99) Cong~t96i\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Congenital malformations, deformations and chromosomal abnormalities (q00-q99)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with congenital malformations, deformations, and chromosomal abnormalities (ICD-9 codes Q0-Q9) along with their income and gender 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>Involvement of @09:39: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>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Involvement of regional lymph nodes / extent of spread</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Nodes\N2\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all cases of malignant neoplasms (cancerous tumors) with involvement of regional lymph nodes or extent of spread, using the ICD-O-3 coding system and 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>Involvement of @09:58:03</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>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Involvement of regional lymph nodes / extent of spread</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Nodes\N2\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of malignant neoplasms (cancerous tumors) with involvement of regional lymph nodes or extent of spread, as classified by the ENC (Encounter) coding system, within any time frame, with a specificity scale of 0 and a panel accuracy scale of 100. The query will be applied to the Diagnoses section under the Neoplasms category 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>Patient Instruc@19:57:55</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Biologicals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME63) biologicals\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ biologicals</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 all instances of biological medications within the i2b2 database, where the medication instructions have been applied to the patient, and the specificity scale is set to 0, with an accuracy scale of 100, and the timeframe 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>Antineoplastics@20:00: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>Antineoplastics</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME55) antineoplastics\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ antineoplastics</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients who have ever been prescribed antineoplastic medications (medications used to treat cancer) in their medical history, with a high level of specificity and accuracy, regardless of when the medication was prescribed.
```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>Malignant neoplasms@16:10: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>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>TNM Staging, Distant Metastisis</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Metastisis\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of malignant neoplasms (cancerous tumors) in the i2b2 database, regardless of when they occurred, with a specificity scale of 0 and a panel accuracy scale of 100, including only those with a distant metastasis diagnosis, and classified as an ENC (Encounter) 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>Malignant neoplasms@10:25: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>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>TNM Staging, Distant Metastisis</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Metastisis\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>2</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>TNM Staging, Regional lymph nodes</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Nodes\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>2</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>TNM Staging, Stage Classification</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Stage\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>2</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>TNM Staging, Tumor Rating</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Tumor\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of malignant neoplasms (cancerous tumors) within the i2b2 database, specifically diagnoses related to malignant neoplasms in the "Neoplasms (140-239)" and "Malignant neoplasms (140-208)" categories, with additional constraints based on TNM staging, including distant metastasis, regional lymph nodes, stage classification, and tumor rating.
```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>Antineoplastics@19:59: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>Antineoplastics</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME55) antineoplastics\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ antineoplastics</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances where the medication category "antineoplastics" was prescribed or administered to patients at any time during their medical history, with a specificity scale of 0 and an accuracy scale of 100, using the i2b2 query builder.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <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@13:11: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>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <constrain_by_date> <date_from>2023-12-01T00:00:00.000-05:00</date_from> </constrain_by_date> <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) within the i2b2 data repository, with no specific time constraint, and the query should be highly specific (specificity_scale set to 0) and accurate (panel_accuracy_scale set to 100). The query is named "Circulatory sys@13:1:47" and is part of panel 1. The query is not inverted and there is only one item in the panel. The item is a concept (class ENC) and is not a synonym. The icon for the item is 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>Malignant neoplasms@16:10: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>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Involvement of regional lymph nodes / extent of spread</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Nodes\N2\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all cases of malignant neoplasms (cancerous tumors) with any timing, specificity scale set to 0, and a panel accuracy scale of 100, where the diagnosis is not a synonym and is constrained by the modifier "Involvement of regional lymph nodes / extent of spread" (N2) within the ICD-O-3 coding 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>Circulatory sys@13:12:06</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <constrain_by_date> <date_from>2005-12-01T00:00:00.000-05:00</date_from> </constrain_by_date> <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) using the i2b2 query builder, with no specific time constraints, and with a high level of accuracy (1000%), and the results should include all occurrences of these diagnoses.
```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@13:13:29</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>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, with a panel timing of "ANY" and a panel accuracy scale of 100, where the panel number is 1 and the query timing is also "ANY", and the item is a synonym for "Circulatory system" with an icon of "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>Circulatory system@13:13: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>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 any diagnoses related to the circulatory system (ICD-9 codes 390-459) 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> Visit at ages @17:25:07</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name> Visit at ages 18-34 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\18-34 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 18-34 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all visits where the patient was between the ages of 18 and 34 years old at the time of the visit.
```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>Malignant neoplasms@16:10: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>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Involvement of regional lymph nodes / extent of spread</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Nodes\N2\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all cases of malignant neoplasms, regardless of the specific type or location, with no specificity scale applied, and constrained by the involvement of regional lymph nodes or extent of spread. The query is set to have a high accuracy scale and the information will be retrieved from the Diagnoses section, specifically within the Neoplasms category under the Malignant neoplasms subcategory. The query is named "Malignant neoplasms@16:10:59" and the timing is set to ANY, meaning it can be any time in 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>Gender-Folic Acid (Group:FOLATE)@13:47:40</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>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> <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>10</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> <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>LT</value_operator> <value_constraint>8745</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 patients who have had a B12 Unsaturated Binding level greater than or equal to 10 ng/l and a Folic Acid level less than 8750 ng/ml in their lab tests, regardless of the timing of the test, with an accuracy of 1000% and demographic information about their gender.
```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>Dose-Frequ-Route@13:53: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>1</hlevel> <item_name>Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\</item_key> <item_icon>FA</item_icon> <tooltip>undefined</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Dose</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Dose\</modifier_key> <applied_path>\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\%</applied_path> <constrain_by_value> <value_operator>LE</value_operator> <value_constraint>7643</value_constraint> <value_unit_of_measure>gm/15ml</value_unit_of_measure> <value_type>NUMBER</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\</item_key> <item_icon>FA</item_icon> <tooltip>undefined</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Frequency</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Frequency\</modifier_key> <applied_path>\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\%</applied_path> <constrain_by_value> <value_operator>IN</value_operator> <value_constraint>('')</value_constraint> <value_type>TEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>1</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\</item_key> <item_icon>FA</item_icon> <tooltip>undefined</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Route</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Route\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>IN</value_operator> <value_constraint>('')</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 instances of the medication "Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals" that have a dose less than or equal to 763gm/15ml, without specifying the frequency, and where the route of administration is not recorded.
```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> Visit at ages @17:26:09</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name> Visit at ages 18-34 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\18-34 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 18-34 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> Visit at ages 35-44 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\35-44 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 35-44 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who had a visit between the ages of 18 and 444 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>Circulatory system@10:45: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>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 any diagnoses related to the circulatory system (ICD-9 codes 390-459) within the i2b2 database using the query builder with a specificity scale of 0 and a panel accuracy scale of 100. The query should be applied to all time periods and the panel should have a total of one item occurrence, with the item being the Circulatory system node at level 2, including its subcategories. The query is named "Circulatory system@10:45:25" and has a tooltip of "Diagnoses \ Circulatory 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>Circulatory sys@10:46: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>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) with any specificity and time frame, 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>(t) Black-InfluenEssentiAcute h@11:10: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>3</hlevel> <item_name>Black</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Race\Black\</item_key> <item_icon>MA</item_icon> <tooltip>Demographic \ Race \ Black</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>Influenza and pneumonia (j09-j18)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(J00-J99) Dise~45pn\(J09-J18) Infl~7z2l\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the respiratory system (j00-j99) \ Influenza and pneumonia (j09-j18)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <subquery_constraint> <first_query> <query_id>Observation A</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Observation B</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Observation A</query_id> <query_type>EVENT</query_type> <query_name>Observation A</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>0</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Essential hypertension</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Hypertensive disease (401-405)\(401) Essential hypertension\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Hypertensive disease \ Essential hypertension</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>4</hlevel> <item_name>Acute hyperkalemia</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Metabolic and immunity disorders (270-279)\(276) Disorders of fluid, electro~\(276-7) Hyperpotassemia\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ Metabolic and immunity disorders \ Disorders of fluid, electrolyte, and acid-base balance \ Hyperpotassemia</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> <item> <hlevel>4</hlevel> <item_name>Hyperkalemia</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Metabolic and immunity disorders (270-279)\(276) Disorders of fluid, electro~\(276-7) Hyperpotassemia\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ Metabolic and immunity disorders \ Disorders of fluid, electrolyte, and acid-base balance \ Hyperpotassemia</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> <item> <hlevel>4</hlevel> <item_name>Chronic hyperkalemia</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Metabolic and immunity disorders (270-279)\(276) Disorders of fluid, electro~\(276-7) Hyperpotassemia\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ Metabolic and immunity disorders \ Disorders of fluid, electrolyte, and acid-base balance \ Hyperpotassemia</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> <item> <hlevel>5</hlevel> <item_name>POTASSIUM (LOINC:2823-3)</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB22) Lytes/Renal/Glucose\K\LOINC:2823-3\</item_key> <item_icon>LA</item_icon> <tooltip>Labtests \ Chemistry \ Lytes/Renal/Glucose \ Potassium (Group:K) \ Potassium (LOINC:2823-3)</tooltip> <class>ENC</class> <constrain_by_value> <value_operator>GE</value_operator> <value_constraint>5</value_constraint> <value_unit_of_measure>mmol/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 who have a diagnosis of essential hypertension (Observation A) and have an acute or chronic hyperkalemia diagnosis (Observation B) or high potassium levels (POTASSIUM) within the same encounter as Observation A. The query will look for the first occurrence of essential hypertension (Observation A) and compare it to the first occurrence of acute or chronic hyperkalemia or high potassium levels (Observation B) within the same encounter. The query will include patients with a diagnosis of essential hypertension and exclude those with any diagnosis related to influenza or pneumonia (Influenza and pneumonia). The query will also include patients with a diagnosis of essential hypertension and a diagnosis of acute or chronic hyperkalemia or high potassium levels within the same encounter, with the hyperkalemia or high potassium levels occurring after the essential hypertension 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) Essential hyperAcute hyperkale@11:16:10</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>LESS</operator> <second_query> <query_id>Observation B</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Observation A</query_id> <query_type>EVENT</query_type> <query_name>Observation A</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>0</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Essential hypertension</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Hypertensive disease (401-405)\(401) Essential hypertension\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Hypertensive disease \ Essential hypertension</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>4</hlevel> <item_name>Acute hyperkalemia</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Metabolic and immunity disorders (270-279)\(276) Disorders of fluid, electro~\(276-7) Hyperpotassemia\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ Metabolic and immunity disorders \ Disorders of fluid, electrolyte, and acid-base balance \ Hyperpotassemia</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> <item> <hlevel>4</hlevel> <item_name>Hyperkalemia</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Metabolic and immunity disorders (270-279)\(276) Disorders of fluid, electro~\(276-7) Hyperpotassemia\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ Metabolic and immunity disorders \ Disorders of fluid, electrolyte, and acid-base balance \ Hyperpotassemia</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> <item> <hlevel>4</hlevel> <item_name>Chronic hyperkalemia</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Metabolic and immunity disorders (270-279)\(276) Disorders of fluid, electro~\(276-7) Hyperpotassemia\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ Metabolic and immunity disorders \ Disorders of fluid, electrolyte, and acid-base balance \ Hyperpotassemia</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> <item> <hlevel>5</hlevel> <item_name>POTASSIUM (LOINC:2823-3)</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB22) Lytes/Renal/Glucose\K\LOINC:2823-3\</item_key> <item_icon>LA</item_icon> <tooltip>Labtests \ Chemistry \ Lytes/Renal/Glucose \ Potassium (Group:K) \ Potassium (LOINC:2823-3)</tooltip> <class>ENC</class> <constrain_by_value> <value_operator>GE</value_operator> <value_constraint>5</value_constraint> <value_unit_of_measure>mmol/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 of Essential hypertension in the same encounter as a diagnosis of acute or chronic hyperkalemia, or an abnormal lab result with a potassium level greater than or equal to 5 mmol/L, where the diagnosis of Essential hypertension occurs before the diagnosis of hyperkalemia or abnormal potassium lab result.
```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>Beyond -Less th@09:58: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>4</hlevel> <item_name>Beyond college</item_name> <item_key>\\BIRN\BIRN\oasis\Demographics\Education\Beyond college\</item_key> <item_icon>LA</item_icon> <tooltip>oasis \ Demographics \ Education \ Beyond college</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>Less than high school grad.</item_name> <item_key>\\BIRN\BIRN\oasis\Demographics\Education\Less than high school grad.\</item_key> <item_icon>LA</item_icon> <tooltip>oasis \ Demographics \ Education \ Less than high school grad.</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who have completed education beyond college and those who have not graduated from high school.
```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@10:46: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>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) within the i2b2 database, with a specificity scale of 0, a panel accuracy scale of 100, and a panel timing set to ANY. The query will be named "Circulatory sys@10:46:16" and the panel number will be 1, with the total number of items in the panel set to 1. The item will be classified as an ENC (Encounter) and will 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>Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals@13:55: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>1</hlevel> <item_name>Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\</item_key> <item_icon>FA</item_icon> <tooltip>undefined</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Dose</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Dose\</modifier_key> <applied_path>\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\%</applied_path> <constrain_by_value> <value_operator>LE</value_operator> <value_constraint>7643</value_constraint> <value_unit_of_measure>gm/15ml</value_unit_of_measure> <value_type>NUMBER</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 Aralen Hydrochloride 50 mg/ml solution by Sanofi Winthrop Pharmaceuticals in the i2b2 database, with a specificity scale of 0, accuracy scale of 100, and a total item occurrence of 1, where the dose is less than or equal to 763 gm/15ml.
```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>Black-Influen@11:05:33</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Black</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Race\Black\</item_key> <item_icon>MA</item_icon> <tooltip>Demographic \ Race \ Black</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>Influenza and pneumonia (j09-j18)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(J00-J99) Dise~45pn\(J09-J18) Infl~7z2l\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the respiratory system (j00-j99) \ Influenza and pneumonia (j09-j18)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with a diagnosis of influenza and pneumonia (ICD-9 codes J09-J18) who are also of Black race.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns3:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/"> <query_name>Educa-Gende-Disea@17:28: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>Education</item_name> <item_key>\\BIRN\BIRN\oasis\Demographics\Education\</item_key> <item_icon>FA</item_icon> <tooltip>oasis \ Demographics \ Education</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>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> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Diseases of the musculoskeletal system and connective tissue (m00-m99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(M00-M99) Dise~6mvn\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the musculoskeletal system and connective tissue (m00-m99)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns3:query_definition> ```
I want to find information on the education level, gender, and diseases of the musculoskeletal system and connective tissue (ICD-10 codes M0-M9) for patients in the database, with no specific time frame or accuracy requirements.
```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@10:59:19</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) with a specificity scale of 0, accuracy scale of 100, and a panel timing of ANY. The query will be named "Circulatory system@10:59:19" and will have a total of 1 item occurrence. The item will be classified as an ENC (Encounter) and will 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>Gender@13:46: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>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 database at any time, with a high level of specificity and accuracy, and the results will not be inverted. The query will be focused on the "Gender" item, which is part of the "Demographics" category in the i2b2 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>Aralen Hydrochloride 50 mg/ml-Aralen Hydrochloride 50 mg/ml-Aralen Hydrochloride 50 mg/ml-Aralen Hydrochloride 50 mg/ml@13:49:43</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ anti-infectives \ amebicides \ chloroquine \ aralen hydrochloride 50 mg/ml solution sanofi winthrop pharmaceuticals</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Dose</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Dose\</modifier_key> <applied_path>\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\%</applied_path> <constrain_by_value> <value_operator>LE</value_operator> <value_constraint>7643</value_constraint> <value_unit_of_measure>gm/15ml</value_unit_of_measure> <value_type>NUMBER</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ anti-infectives \ amebicides \ chloroquine \ aralen hydrochloride 50 mg/ml solution sanofi winthrop pharmaceuticals</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Frequency</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Frequency\</modifier_key> <applied_path>\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\%</applied_path> <constrain_by_value> <value_operator>IN</value_operator> <value_constraint>()</value_constraint> <value_type>TEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>1</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ anti-infectives \ amebicides \ chloroquine \ aralen hydrochloride 50 mg/ml solution sanofi winthrop pharmaceuticals</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Route</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Route\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>IN</value_operator> <value_constraint>()</value_constraint> <value_type>TEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>4</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ anti-infectives \ amebicides \ chloroquine \ aralen hydrochloride 50 mg/ml solution sanofi winthrop pharmaceuticals</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>&amp;amp;amp; test * ? &amp;amp;lt; &amp;amp;gt;;&amp;#x27; &amp;quot;% @</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 Aralen Hydrochloride 50 mg/ml solution by Sanofi Winthrop Pharmaceuticals, which is an anti-infective and amebicide medication, with a dose of 7643 gm/15ml or less, regardless of the frequency of administration, but excluding any results that have the terms "test", "&", "amp;", "lt", "gt", or "quot" in the patient 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>Dos-Fre-Rou-Pat@13:52: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>1</hlevel> <item_name>Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\</item_key> <item_icon>FA</item_icon> <tooltip>undefined</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Dose</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Dose\</modifier_key> <applied_path>\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\%</applied_path> <constrain_by_value> <value_operator>LE</value_operator> <value_constraint>7643</value_constraint> <value_unit_of_measure>gm/15ml</value_unit_of_measure> <value_type>NUMBER</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\</item_key> <item_icon>FA</item_icon> <tooltip>undefined</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Frequency</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Frequency\</modifier_key> <applied_path>\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\%</applied_path> <constrain_by_value> <value_operator>IN</value_operator> <value_constraint>('')</value_constraint> <value_type>TEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>1</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\</item_key> <item_icon>FA</item_icon> <tooltip>undefined</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Route</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Route\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>IN</value_operator> <value_constraint>('')</value_constraint> <value_type>TEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>4</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\</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>&amp;amp;amp; test * ? &amp;amp;lt; &amp;amp;gt;;&amp;#x27; &amp;quot;% @</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 "Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals" medication within the i2b2 data set where the dose is less than or equal to 7643 gm/15ml, the frequency is not specified, the route is not specified, and the patient instructions do not contain the given string of characters.
```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>Aralen Hydrochloride 50 mg/ml solution -Aralen Hydrochloride 50 mg/ml solution -Aralen Hydrochloride 50 mg/ml solution @13:52: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>1</hlevel> <item_name>Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ anti-infectives \ amebicides \ chloroquine \ aralen hydrochloride 50 mg/ml solution sanofi winthrop pharmaceuticals</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Dose</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Dose\</modifier_key> <applied_path>\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\%</applied_path> <constrain_by_value> <value_operator>LE</value_operator> <value_constraint>7643</value_constraint> <value_unit_of_measure>gm/15ml</value_unit_of_measure> <value_type>NUMBER</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ anti-infectives \ amebicides \ chloroquine \ aralen hydrochloride 50 mg/ml solution sanofi winthrop pharmaceuticals</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Frequency</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Frequency\</modifier_key> <applied_path>\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\%</applied_path> <constrain_by_value> <value_operator>IN</value_operator> <value_constraint>()</value_constraint> <value_type>TEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>1</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME11) amebicides\chloroquine\00024007401\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ anti-infectives \ amebicides \ chloroquine \ aralen hydrochloride 50 mg/ml solution sanofi winthrop pharmaceuticals</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Route</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Route\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>IN</value_operator> <value_constraint>()</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 instances of the medication "Aralen Hydrochloride 50 mg/ml solution Sanofi Winthrop Pharmaceuticals" in the i2b2 database where the dose is less than or equal to 7643 gm/15ml and the frequency is not specified, and exclude any instances where the route of administration is specified.
```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) Black-InfluenEssentiAcute h@11:07: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>3</hlevel> <item_name>Black</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Race\Black\</item_key> <item_icon>MA</item_icon> <tooltip>Demographic \ Race \ Black</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>Influenza and pneumonia (j09-j18)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(J00-J99) Dise~45pn\(J09-J18) Infl~7z2l\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the respiratory system (j00-j99) \ Influenza and pneumonia (j09-j18)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <subquery_constraint> <first_query> <query_id>Observation A</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Observation B</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Observation A</query_id> <query_type>EVENT</query_type> <query_name>Observation A</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>0</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Essential hypertension</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Hypertensive disease (401-405)\(401) Essential hypertension\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Hypertensive disease \ Essential hypertension</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>4</hlevel> <item_name>Acute hyperkalemia</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Metabolic and immunity disorders (270-279)\(276) Disorders of fluid, electro~\(276-7) Hyperpotassemia\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ Metabolic and immunity disorders \ Disorders of fluid, electrolyte, and acid-base balance \ Hyperpotassemia</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> <item> <hlevel>4</hlevel> <item_name>Hyperkalemia</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Metabolic and immunity disorders (270-279)\(276) Disorders of fluid, electro~\(276-7) Hyperpotassemia\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ Metabolic and immunity disorders \ Disorders of fluid, electrolyte, and acid-base balance \ Hyperpotassemia</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> <item> <hlevel>4</hlevel> <item_name>Chronic hyperkalemia</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Metabolic and immunity disorders (270-279)\(276) Disorders of fluid, electro~\(276-7) Hyperpotassemia\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ Metabolic and immunity disorders \ Disorders of fluid, electrolyte, and acid-base balance \ Hyperpotassemia</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find patients who have a diagnosis of essential hypertension (ICD9 code 401) in the ICD9_DIAG table at any time during their encounter and have a diagnosis of acute or chronic hyperkalemia (ICD9 code 2767) in the ICD9_DIAG table at the same instance of time or earlier. I want to exclude patients who have a diagnosis of influenza or pneumonia (ICD9 codes J09-J18) in the ICD9_DIAG table at any time during their encounter. The demographic information of the patients should include being black (Race = Black) in the DEMO table.
```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@16:54: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>Patient Set for "Diagnoses@12:24:38" - FINISHEDPatient list</item_name> <item_key>patient_set_coll_id:45341</item_key> <tooltip>Patient Set for "Diagnoses@12:24:38" - FINISHEDPatient list</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>Patient Set for "Female-Neurolo@15:32:34" - FINISHEDPatient list</item_name> <item_key>patient_set_coll_id:59487</item_key> <tooltip>Patient Set for "Female-Neurolo@15:32:34" - FINISHEDPatient list</tooltip> <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>0</hlevel> <item_name>Patient Set for "Mycases" - FINISHEDPatient list</item_name> <item_key>patient_set_coll_id:3817</item_key> <tooltip>Patient Set for "Mycases" - FINISHEDPatient list</tooltip> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who are part of the "Diagnoses@12:24:38" patient set, the "Female-Neurolo@15:32:34" patient set, and the "Mycases" patient set, with no specific time frame or accuracy requirement, and with all three panels being equally weighted.
```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 D-Admit D@22:06: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>1</hlevel> <item_name>Diseases of the genitourinary system (n00-n99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(N00-N99) Dise~cr9y\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the genitourinary system (n00-n99)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key> <applied_path>\Diagnoses\(N00-N99) Dise~cr9y\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Acute kidney failure and chronic kidney disease (n17-n19)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(N00-N99) Dise~cr9y\(N17-N19) Acut~cuu8\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the genitourinary system (n00-n99) \ Acute kidney failure and chronic kidney disease (n17-n19)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key> <applied_path>\Diagnoses\(N00-N99) Dise~cr9y\%</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 been admitted with a primary diagnosis of diseases of the genitourinary system (ICD-9 codes N00-N9) or acute kidney failure and chronic kidney disease (ICD-9 codes N17-N19), with a high level of specificity and no time constraint for the admission.
```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>Digestive syste@10:52: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>Digestive system disorders of newborn (p76-p78)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\(P76-P78) Dige~eamd\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96) \ Digestive system disorders of newborn (p76-p78)</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 digestive system disorders in newborns (codes P76-P78) within the range of certain conditions originating in the perinatal period (codes P0-P96) using the ICD10_ICD9 classification system, with a specificity scale of 0 and an accuracy scale of 100, considering any timing, and with the panel inverted.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns3:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/"> <query_name>moder-Male-Low i@05:45: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>4</hlevel> <item_name>moderate dementia</item_name> <item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\moderate dementia\</item_key> <item_icon>LA</item_icon> <tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR) \ moderate dementia</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Male</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Male</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Low income</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Income\Low income\</item_key> <item_icon>LA</item_icon> <tooltip>Demographics \ Income \ Low income</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns3:query_definition> ```
I want to find male patients with moderate dementia who have a low income, with no specific time frame or accuracy requirements.
```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>Digestive syste@10:53: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>2</hlevel> <item_name>Digestive system disorders of newborn (p76-p78)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\(P76-P78) Dige~eamd\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96) \ Digestive system disorders of newborn (p76-p78)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>2</hlevel> <item_name>Hemorrhagic and hematological disorders of newborn (p50-p61)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\(P50-P61) Hemo~c7pu\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96) \ Hemorrhagic and hematological disorders of newborn (p50-p61)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with diagnoses related to digestive system disorders of newborn (ICD-10 codes P76-P78) and hemorrhagic and hematological disorders of newborn (ICD-10 codes P50-P61) in the i2b2 database, with any timing and specificity, and the panel's accuracy scale set to 100%. The query is named "Digestive syste@10:53:08" and includes two items: one for digestive system disorders and another for hemorrhagic and hematological disorders, both originating in the perinatal period (P00-P96).
```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>Diagn-Provi-Certa@15:23: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>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> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Providers</item_name> <item_key>\\i2b2_PROV\i2b2\Providers\</item_key> <item_icon>FA</item_icon> <tooltip>Providers</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain infectious and parasitic diseases (a00-b99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to certain infectious and parasitic diseases (codes A0-B9) from the ICD10_ICD9 database, and display them alongside the providers who made these diagnoses, 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>Admit Diagnosis@15:24: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>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key> <applied_path>\Diagnoses\(P00-P96) Cert~6976\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with certain conditions originating in the perinatal period (codes P0-P96) listed as an admission diagnosis in the ICD-10 or ICD-9 coding system, with a specificity scale of 0, accuracy scale of 100, and the query timing 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>Admit Diagnosis@15:24:17</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key> <applied_path>\Diagnoses\(P00-P96) Cert~6976\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with a primary diagnosis of certain conditions originating in the perinatal period (ICD-10 codes P00-P96) at the time of admission, with a specificity scale of 0 and accuracy scale of 100, regardless of the timing of 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>Oasis-Admit-Princ@15: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>1</hlevel> <item_name>Oasis</item_name> <item_key>\\BIRN\BIRN\oasis\</item_key> <item_icon>FA</item_icon> <tooltip>oasis</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key> <applied_path>\Diagnoses\(P00-P96) Cert~6976\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Principal Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Principal Diagnosis\</modifier_key> <applied_path>\Diagnoses\(P00-P96) Cert~6976\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who have been admitted to the hospital with a diagnosis related to certain conditions originating in the perinatal period (P0-P96) as either an admission diagnosis or a principal diagnosis, and the Oasis system was used during their stay.
```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) Laboratory TestProviders@11:07:50</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>LESS</operator> <second_query> <query_id>Observation B</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Observation A</query_id> <query_type>EVENT</query_type> <query_name>Observation A</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>0</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Laboratory Tests</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests</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>1</hlevel> <item_name>Providers</item_name> <item_key>\\i2b2_PROV\i2b2\Providers\</item_key> <item_icon>FA</item_icon> <tooltip>Providers</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find laboratory test providers with a specificity scale of 0 and a timing of "ANY", where the observation A (an event) has a start date that is less than the start date of observation B (another event), within the same instance number, and the panel accuracy scale is set to 10 for both observations.
```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>Hemoglobin Elec@11:25: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>3</hlevel> <item_name>Hemoglobin Electrophoresis</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB53) Hematology\(LLB58) Hemoglobin Electrophoresis\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests \ Hematology \ Hemoglobin Electrophoresis</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of Hemoglobin Electrophoresis lab tests in the Hematology category, with a specificity scale of 0 and a panel accuracy scale of 100, within any time frame, and display it in panel 1 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>Diseases of the@15:23: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>Diseases of the eye and adnexa (h00-h59)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(H00-H59) Dise~6ji8\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the eye and adnexa (h00-h59)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to diseases of the eye and adnexa, specifically within the ICD-10 and ICD-9 coding range of H0-H59, with a high level of specificity and no inversion of the search criteria, for any time period, and have the query named "Diseases of the@15:23:35".
```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>Disease-Disease@15:23:45</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Diseases of the eye and adnexa (h00-h59)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(H00-H59) Dise~6ji8\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the eye and adnexa (h00-h59)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism (d50-d89)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(D50-D89) Dise~nx0c\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism (d50-d89)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with diagnoses related to diseases of the eye and adnexa (h0-h59) and diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism (d50-d89), with a specificity scale of 0 and an accuracy scale of 100, including any timing for each panel.
```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:23:58</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key> <applied_path>\Diagnoses\(P00-P96) Cert~6976\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with a specificity scale of 0, any query timing, and a panel accuracy scale of 100, where the panel is inverted, and there is a total of 1 item occurrence. The item I am looking for is "Certain conditions originating in the perinatal period (p0-p96)" with the key "(P0-P96) Cert~6976", which is constrained by the modifier "Admit Diagnosis" and has a class of ENC. This query is for the i2b2 query builder and will return results that match the given criteria.
```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:24: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>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key> <applied_path>\Diagnoses\(P00-P96) Cert~6976\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>1</hlevel> <item_name>Things</item_name> <item_key>\\CUST\Custom Metadata\Things\</item_key> <item_icon>LAE</item_icon> <tooltip>Custom Metadata \ Things</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with admit diagnoses related to certain conditions originating in the perinatal period (codes P00-P96) in the ICD-10 or ICD-9 classification system. Additionally, I want to include custom metadata within the query 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>Chemistry@11:25: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>2</hlevel> <item_name>Chemistry</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests \ Chemistry</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of the "Chemistry" lab test panel in the i2b2 database, with any timing specified and a specificity scale of 0, where the accuracy scale is set to 100 and the panel is not inverted. This query will search for the panel with the key "\\i2b2_LABS\i2b2\Labtests\LAB\(LLB6) Chemistry" and will have a class of "ENC". The panel number is set to 1 and the total number of items in the query 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>Oasis-Admit-Princ@15:25:01</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Oasis</item_name> <item_key>\\BIRN\BIRN\oasis\</item_key> <item_icon>FA</item_icon> <tooltip>oasis</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key> <applied_path>\Diagnoses\(P00-P96) Cert~6976\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Principal Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Principal Diagnosis\</modifier_key> <applied_path>\Diagnoses\(P00-P96) Cert~6976\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with an encounter at Oasis (BIRN) and who have a diagnosis of certain conditions originating in the perinatal period (ICD10-ICD9 codes P0-P96) listed as either the Admit Diagnosis or Principal 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>Physical therap@17: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>4</hlevel> <item_name>Physical therapy, respiratory therapy, rehabilitation, and related procedures</item_name> <item_key>\\i2b2_PROC\i2b2\Procedures\PRC\ICD9 (Inpatient)\(87-99) Diagnostic and nonsurgical procedures\(p93) Physical therapy, respirato~\</item_key> <item_icon>FA</item_icon> <tooltip>Procedures \ ICD9 (Inpatient) \ Diagnostic and nonsurgical procedures \ Physical therapy, respiratory therapy, rehabilitation, and related procedures</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of procedures related to physical therapy, respiratory therapy, rehabilitation, and related procedures in the ICD9 (Inpatient) diagnostic and nonsurgical procedures category with a high level of specificity (4) and a 100% accuracy scale, regardless of the timing 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) Cough-Acute upper respiratory infections of multiple or unspecified sites@13:44:40</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <subquery_constraint> <first_query> <query_id>Event 1</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Event 2</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Event 1</query_id> <query_type>EVENT</query_type> <query_name>Event 1</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Cough</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(R00-R99) Symp~mt2x\(R00-R09) Symp~evaq\(R05) Cough\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Symptoms, signs and abnormal clinical and laboratory findings, not elsewhere classified (r00-r99) \ Symptoms and signs involving the circulatory and respiratory systems (r00-r09) \ Cough</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Event 2</query_id> <query_type>EVENT</query_type> <query_name>Event 2</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Acute upper respiratory infections of multiple or unspecified sites</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Acute respiratory infections (460-466)\(465) Acute upper respiratory inf~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Respiratory system \ Acute respiratory infections \ Acute upper respiratory infections of multiple or unspecified sites</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 event of cough and an event of acute upper respiratory infections of multiple or unspecified sites within the same instance number, with the cough event occurring first. The specificity scale is set to 0, meaning there is no specificity applied to the query, and the timing of the events is set to "ANY", meaning it can occur at any time. The accuracy scale for both panels is set to 10, indicating high accuracy, and the query is not 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) Cough-Acute upper respiratory infections of multiple or unspecified sites@13:44:40</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <subquery_constraint> <first_query> <query_id>Event 1</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Event 2</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Event 1</query_id> <query_type>EVENT</query_type> <query_name>Event 1</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Cough</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(R00-R99) Symp~mt2x\(R00-R09) Symp~evaq\(R05) Cough\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Symptoms, signs and abnormal clinical and laboratory findings, not elsewhere classified (r00-r99) \ Symptoms and signs involving the circulatory and respiratory systems (r00-r09) \ Cough</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Event 2</query_id> <query_type>EVENT</query_type> <query_name>Event 2</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Acute upper respiratory infections of multiple or unspecified sites</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Acute respiratory infections (460-466)\(465) Acute upper respiratory inf~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Respiratory system \ Acute respiratory infections \ Acute upper respiratory infections of multiple or unspecified sites</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find patients who have been diagnosed with cough and acute upper respiratory infections of multiple or unspecified sites, with both events occurring within the same instance number (encounter) and the cough event happening before the acute upper respiratory infection event. The specificity scale is set to 0, indicating a broad search, and the accuracy scale for both panels is 10, meaning a high level of accuracy is desired. The query will search for these events in the ICD10_ICD9 Diagnoses, Symptoms, signs and abnormal clinical and laboratory findings, not elsewhere classified (r0-r9), and Symptoms and signs involving the circulatory and respiratory systems (r0-r09) for cough, and the i2b2 Diagnoses, Respiratory system, Acute respiratory infections for acute upper respiratory infections of multiple or unspecified sites.
```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) Cough-Acute upper respiratory infections of multiple or unspecified sites@13:44:40</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <subquery_constraint> <first_query> <query_id>Event 1</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Event 2</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Event 1</query_id> <query_type>EVENT</query_type> <query_name>Event 1</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Cough</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(R00-R99) Symp~mt2x\(R00-R09) Symp~evaq\(R05) Cough\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Symptoms, signs and abnormal clinical and laboratory findings, not elsewhere classified (r00-r99) \ Symptoms and signs involving the circulatory and respiratory systems (r00-r09) \ Cough</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Event 2</query_id> <query_type>EVENT</query_type> <query_name>Event 2</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Acute upper respiratory infections of multiple or unspecified sites</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Acute respiratory infections (460-466)\(465) Acute upper respiratory inf~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Respiratory system \ Acute respiratory infections \ Acute upper respiratory infections of multiple or unspecified sites</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find patients who have been diagnosed with cough and acute upper respiratory infections of multiple or unspecified sites at any time during their medical history, with the cough diagnosis occurring before the acute upper respiratory infection 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>Oasis@15:24:40</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Oasis</item_name> <item_key>\\BIRN\BIRN\oasis\</item_key> <item_icon>FA</item_icon> <tooltip>oasis</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of the term "Oasis" in the BIRN (Biomedical Informatics Research Network) ontology within the Encounter (ENC) class, with a specificity scale of 0 and a panel accuracy scale of 100, for any time frame (ANY), without inverting the search 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>(t) Cough-Acute upper respiratory infections of multiple or unspecified sites@13:44:40</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <subquery_constraint> <first_query> <query_id>Event 1</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Event 2</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Event 1</query_id> <query_type>EVENT</query_type> <query_name>Event 1</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Cough</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(R00-R99) Symp~mt2x\(R00-R09) Symp~evaq\(R05) Cough\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Symptoms, signs and abnormal clinical and laboratory findings, not elsewhere classified (r00-r99) \ Symptoms and signs involving the circulatory and respiratory systems (r00-r09) \ Cough</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Event 2</query_id> <query_type>EVENT</query_type> <query_name>Event 2</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Acute upper respiratory infections of multiple or unspecified sites</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Acute respiratory infections (460-466)\(465) Acute upper respiratory inf~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Respiratory system \ Acute respiratory infections \ Acute upper respiratory infections of multiple or unspecified sites</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 encounter for cough and an encounter for acute upper respiratory infections of multiple or unspecified sites at the same instance number with no specific time constraint. The cough encounter must occur before the acute upper respiratory infection 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>Expre-Diagn-Obste@17:58:15</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>Expression Profiles Data</item_name> <item_key>\\i2b2_EXPR\i2b2\Expression Profiles Data\</item_key> <item_icon>FA</item_icon> <tooltip>Expression Profiles Data</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>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> <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>5</hlevel> <item_name>Obstetric tamponade of uterus or vagina</item_name> <item_key>\\i2b2_PROC\i2b2\Procedures\PRC\ICD9 (Inpatient)\(72-75) Obstetrical procedures\(p75) Other obstetric operations3\(p75-8) Obstetric tamponade of ut~\</item_key> <item_icon>LA</item_icon> <tooltip>Procedures \ ICD9 (Inpatient) \ Obstetrical procedures \ Other obstetric operations \ Obstetric tamponade of uterus or vagina</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of "Expression Profiles Data" and "Diagnoses" with a specificity scale of 0 and an accuracy scale of 100, along with "Obstetric tamponade of uterus or vagina" with a specificity scale of 0 and an accuracy scale of 10, within any time frame (ANY), 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>Expre-Diagn-Obste@17:58: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>1</hlevel> <item_name>Expression Profiles Data</item_name> <item_key>\\i2b2_EXPR\i2b2\Expression Profiles Data\</item_key> <item_icon>FA</item_icon> <tooltip>Expression Profiles Data</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>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> <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>5</hlevel> <item_name>Obstetric tamponade of uterus or vagina</item_name> <item_key>\\i2b2_PROC\i2b2\Procedures\PRC\ICD9 (Inpatient)\(72-75) Obstetrical procedures\(p75) Other obstetric operations3\(p75-8) Obstetric tamponade of ut~\</item_key> <item_icon>LA</item_icon> <tooltip>Procedures \ ICD9 (Inpatient) \ Obstetrical procedures \ Other obstetric operations \ Obstetric tamponade of uterus or vagina</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of Expression Profiles Data and Diagnoses related to Obstetric tamponade of uterus or vagina procedures, with a specificity scale of 0 and 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>Appendicitis@12:36:01</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Appendicitis</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\Appendicitis (540-543)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system \ Appendicitis</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find any diagnosis of appendicitis within the Digestive system category (520-579) with a specificity scale of 0, accuracy scale of 100, and a panel accuracy of 100. The query should have a specificity scale of 0 and an invert value of 0, with a single item occurrence and a class of ENC. The query will be named "Appendicitis@12:36:01" and will have a query timing of ANY. The panel timing will also be set to ANY, and the query will not include 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>Circulatory sys@12:55:29</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>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, accuracy scale of 100, and a panel timing of ANY, using the query_name "Circulatory sys@12:55:29" and query_timing 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>(t) Cough-Acute upper respiratory infections of multiple or unspecified sites@13:44:40</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <subquery_constraint> <first_query> <query_id>Event 1</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Event 2</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Event 1</query_id> <query_type>EVENT</query_type> <query_name>Event 1</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Cough</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(R00-R99) Symp~mt2x\(R00-R09) Symp~evaq\(R05) Cough\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Symptoms, signs and abnormal clinical and laboratory findings, not elsewhere classified (r00-r99) \ Symptoms and signs involving the circulatory and respiratory systems (r00-r09) \ Cough</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Event 2</query_id> <query_type>EVENT</query_type> <query_name>Event 2</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Acute upper respiratory infections of multiple or unspecified sites</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Acute respiratory infections (460-466)\(465) Acute upper respiratory inf~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Respiratory system \ Acute respiratory infections \ Acute upper respiratory infections of multiple or unspecified sites</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 encounter with a diagnosis of cough and an encounter with a diagnosis of acute upper respiratory infections of multiple or unspecified sites within the same instance number, where the event of cough occurred before the event of acute upper respiratory infections. The specificity scale is set to 0, meaning that all possible matches will be returned. The accuracy scale is set to 10, indicating that the query will return all possible matches with a high level of confidence. The time frame for the query is set to ANY, meaning that there is no specific time constraint on when these encounters occurred.
```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) Cough-Acute upper respiratory infections of multiple or unspecified sites@13:44:40</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <subquery_constraint> <first_query> <query_id>Event 1</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Event 2</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Event 1</query_id> <query_type>EVENT</query_type> <query_name>Event 1</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Cough</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(R00-R99) Symp~mt2x\(R00-R09) Symp~evaq\(R05) Cough\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Symptoms, signs and abnormal clinical and laboratory findings, not elsewhere classified (r00-r99) \ Symptoms and signs involving the circulatory and respiratory systems (r00-r09) \ Cough</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Event 2</query_id> <query_type>EVENT</query_type> <query_name>Event 2</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Acute upper respiratory infections of multiple or unspecified sites</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Acute respiratory infections (460-466)\(465) Acute upper respiratory inf~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Respiratory system \ Acute respiratory infections \ Acute upper respiratory infections of multiple or unspecified sites</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find patients who have been diagnosed with cough and acute upper respiratory infections of multiple or unspecified sites at any time during their medical history, with the cough event occurring before the acute upper respiratory infection event. The specificity scale is set to 0, meaning that the search will be less restrictive, and the accuracy scale is set to 10, indicating a high level of confidence in the results. The query will search for these two events within the same instance number, meaning that they occurred during the same encounter or visit. The first subquery is for the cough event, and the second subquery is for the acute upper respiratory infection event. The tooltip for the cough event describes the diagnosis as symptoms and signs involving the circulatory and respiratory systems, while the tooltip for the acute upper respiratory infection event describes the diagnosis as acute upper respiratory infections of multiple or unspecified sites. Both events are classified as ENC, which stands for 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>0-9 years old@18:37: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> 0-9 years old</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Age\0-9 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Demographics \ Age \ 0-9 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who are 0-9 years old at the time of data collection, using the i2b2 query builder with the specificity scale set to 0 and accuracy scale set to 100, and the query timing set to ANY, with the panel number and panel timing also set to ANY. The query is focused on demographic information related to age, specifically for individuals in the 0-9 age range, and the query is not a synonym for any other condition.
```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@19:10:14</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>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 gender information recorded in the i2b2 database within the specified timeframe.
```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@19:10:14</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>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 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>Circulatory sys@12:35: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>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) with a specificity scale of 0 and a panel accuracy scale of 100, within any time frame, for a single panel with an invert value of 0 and a hierarchical level of 2.
```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@12:53:19</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 any diagnoses related to the circulatory system (ICD-9 codes 390-459) with a specificity scale of 0 and a total of 1 item occurrence, using the panel 1 with an accuracy scale of 100 and no inversion, named "Circulatory System" with the tooltip "Diagnoses - Circulatory system" and classified as an ENC (Encounter) type. The query timing and panel timing are set to ANY, meaning it will include any time period, and the query name is "Circulatory sys@12:53:19".
```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>Abortive outcom@12:54: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>3</hlevel> <item_name>Abortive outcome</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Events of pregnancy (630-677)\Abortive outcome (634-639)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Events of pregnancy \ Abortive outcome</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients who have had an abortive outcome during their pregnancy, regardless of the timing, with a high level of specificity and accuracy, and categorized under the diagnoses and events of pregnancy section in the i2b2 data warehouse.
```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) Cough-Acute upper respiratory infections of multiple or unspecified sites@13:44:40</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <subquery_constraint> <first_query> <query_id>Event 1</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Event 2</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Event 1</query_id> <query_type>EVENT</query_type> <query_name>Event 1</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Cough</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(R00-R99) Symp~mt2x\(R00-R09) Symp~evaq\(R05) Cough\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Symptoms, signs and abnormal clinical and laboratory findings, not elsewhere classified (r00-r99) \ Symptoms and signs involving the circulatory and respiratory systems (r00-r09) \ Cough</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Event 2</query_id> <query_type>EVENT</query_type> <query_name>Event 2</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Acute upper respiratory infections of multiple or unspecified sites</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Acute respiratory infections (460-466)\(465) Acute upper respiratory inf~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Respiratory system \ Acute respiratory infections \ Acute upper respiratory infections of multiple or unspecified sites</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find patients who have been diagnosed with both Cough and Acute upper respiratory infections of multiple or unspecified sites, with the cough occurring before the acute upper respiratory infection, and with a high level of specificity and accuracy. The query will search for these events within the same encounter, and will not include synonyms or related terms.