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>Patient Instruc@20:37: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>6</hlevel> <item_name>Maxair 0.2 mg/inh aerosol with adapter 3 M Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME223) bronchodilators\(LME224) adrenergic bronchodilators\pirbuterol\00089079021\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents \ bronchodilators \ adrenergic bronchodilators \ pirbuterol \ maxair 0.2 mg/inh aerosol with adapter 3 m 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[database]</value_operator> <value_constraint>%breath%</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 Maxair 0.2 mg/inh aerosol with adapter 3 pharmaceuticals (pirbuterol) medications where the patient instructions contain the word "breath" in the database.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Patient Instruc@20:33: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>6</hlevel> <item_name>Maxair 0.2 mg/inh aerosol with adapter 3 M Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME223) bronchodilators\(LME224) adrenergic bronchodilators\pirbuterol\00089079021\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents \ bronchodilators \ adrenergic bronchodilators \ pirbuterol \ maxair 0.2 mg/inh aerosol with adapter 3 m 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>breath</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 Maxair 0.2 mg/inh aerosol with adapter 3 medications where the patient instructions contain the word "breath" within the medication 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>Patient Instruc@20:48: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>6</hlevel> <item_name>Maxair Autohaler 0.2 mg/inh aerosol with adapter 3 M Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME223) bronchodilators\(LME224) adrenergic bronchodilators\pirbuterol\00089081710\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents \ bronchodilators \ adrenergic bronchodilators \ pirbuterol \ maxair autohaler 0.2 mg/inh aerosol with adapter 3 m 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>1</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 medications that contain the specific instruction "Patient Instructions" within their information, and the medication in question is Maxair Autohaler 0.2 mg/inh aerosol with adapter 3. This query will search for any occurrence of this medication and its corresponding patient instructions within the i2b2 database.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Patient Instruc@20:50: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>6</hlevel> <item_name>Maxair Autohaler 0.2 mg/inh aerosol with adapter 3 M Pharmaceuticals</item_name> <item_key>\\i2b2_DEMO\i2b2\Medications\MUL\(LME219) respiratory agents\(LME223) bronchodilators\(LME224) adrenergic bronchodilators\pirbuterol\00089081710\</item_key> <item_icon>LA</item_icon> <tooltip>medications \ respiratory agents \ bronchodilators \ adrenergic bronchodilators \ pirbuterol \ maxair autohaler 0.2 mg/inh aerosol with adapter 3 m pharmaceuticals</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Patient Instructions</modifier_name> <modifier_key>\\i2b2_DEMO\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 where the medication "Maxair Autohaler 0.2 mg/inh aerosol with adapter 3 M Pharmaceuticals" was prescribed or administered to patients with any timing, and the medication has a specificity scale of 0, accuracy scale of 100, and the query is not inverted. The query should be constrained by the modifier "Patient Instructions" and is part of the "Medications" category, specifically under "Respiratory Agents" and "Bronchodilators" subcategories, and falls under the "Adrenergic Bronchodilators" class.
```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>Male@09: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>3</hlevel> <item_name>Male</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Male</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all male patients in the database with any timing, using the Demographics Gender Male item from the i2b2 query builder, with a specificity scale of 0 and a panel accuracy scale of 100, without inverting the results, and displaying only one item on the 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>Patient Instruc@20:38: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>6</hlevel> <item_name>Maxair 0.2 mg/inh aerosol with adapter 3 M Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME223) bronchodilators\(LME224) adrenergic bronchodilators\pirbuterol\00089079021\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents \ bronchodilators \ adrenergic bronchodilators \ pirbuterol \ maxair 0.2 mg/inh aerosol with adapter 3 m 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_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of the medication Maxair 0.2 mg/inh aerosol with adapter 3 in the i2b2 database, specifically within the category of patient instructions related to medications, with a specificity scale of 0 and an accuracy scale of 100. The query will search for any timing and the panel number is set to 1. The item is not a synonym and is constrained by the modifier "Patient Instructions" applied to the path "i2b2\Medications\%".
```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@20:46:26</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>6</hlevel> <item_name>Maxair Autohaler 0.2 mg/inh aerosol with adapter 3 M Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME223) bronchodilators\(LME224) adrenergic bronchodilators\pirbuterol\00089081710\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents \ bronchodilators \ adrenergic bronchodilators \ pirbuterol \ maxair autohaler 0.2 mg/inh aerosol with adapter 3 m 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_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find any patient who has been prescribed Maxair Autohaler 0.2 mg/inh aerosol with adapter 3 for medication, with specificity scale set to 0 and panel accuracy scale set to 100, and the medication is constrained by the "Patient Instructions" modifier applied to the "Medications" 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>Patient Instruc@20:47: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>6</hlevel> <item_name>Maxair Autohaler 0.2 mg/inh aerosol with adapter 3 M Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME223) bronchodilators\(LME224) adrenergic bronchodilators\pirbuterol\00089081710\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents \ bronchodilators \ adrenergic bronchodilators \ pirbuterol \ maxair autohaler 0.2 mg/inh aerosol with adapter 3 m 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>e</value_constraint> <value_type>LARGETEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances where the medication Maxair Autohaler 0.2 mg/inh aerosol with adapter 3 has been prescribed to patients and the patient instructions contain the letter 'e'. The query will be applied to the medications panel, with a specificity scale of 0 and accuracy scale of 100. The timing is set to ANY, meaning it does not matter when the medication was prescribed. The query will look for the presence of the letter 'e' within the patient instructions for this medication using the constrain_by_modifier parameter.
```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@20:47: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>6</hlevel> <item_name>Maxair Autohaler 0.2 mg/inh aerosol with adapter 3 M Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME223) bronchodilators\(LME224) adrenergic bronchodilators\pirbuterol\00089081710\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents \ bronchodilators \ adrenergic bronchodilators \ pirbuterol \ maxair autohaler 0.2 mg/inh aerosol with adapter 3 m 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>ea</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 Maxair Autohaler 0.2 mg/inh aerosol with adapter 3 medication records in the i2b2 database where the patient instructions contain the text "ea" at any time, with a specificity scale of 0, an accuracy scale of 100, and a single item on the panel with no inversion 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>Patient Instruc@20:59: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>5</hlevel> <item_name>Singulair 5mg tablet chewable Merck &amp; Co. Inc</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME229) leukotriene modifiers\montelukast\00006027531\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents \ leukotriene modifiers \ montelukast \ singulair 5mg tablet chewable merck &amp; co. inc</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Patient Instructions</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances where a patient was given the instruction to take Singulair 5mg tablet chewable manufactured by Merck & Co. Inc., as indicated in the medication records, within the specified time frame (ANY) and with a high level of accuracy (100), in the context of respiratory agents and leukotriene modifiers.
```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@10:32: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>1</hlevel> <item_name>Diseases of the respiratory system (j00-j99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(J00-J99) Dise~45pn\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the respiratory system (j00-j99)</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 respiratory system (j0-j9) with a specificity scale of 0, panel timing set to ANY, and an accuracy scale of 100, using the ICD10_ICD9 classification. The query is named "Diseases of the@10:32:59" and includes a single panel with the item name "Diseases of the respiratory system (j0-j9)" and the key "\\ICD10_ICD9\Diagnoses\(J00-J9) Dise~45pn". The class of the item 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>Patient Instruc@14:16:20</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>6</hlevel> <item_name>Maxair Autohaler 0.2 mg/inh aerosol with adapter 3 M Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME223) bronchodilators\(LME224) adrenergic bronchodilators\pirbuterol\00089081710\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents \ bronchodilators \ adrenergic bronchodilators \ pirbuterol \ maxair autohaler 0.2 mg/inh aerosol with adapter 3 m 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>Inhale 2 (two) puffs every 6 (six) to 8 (eight) hours for shortness of breath</value_constraint> <value_type>LARGETEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances where a patient has been instructed to inhale 2 (two) puffs of Maxair Autohaler 0.2 mg/inh aerosol with adapter every 6 (six) to 8 (eight) hours for shortness of breath.
```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>Secondary Diagn@09:01:33</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Musculoskeletal and connective tissue</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Musculoskeletal and connective tissue (710-739)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Musculoskeletal and connective tissue</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Secondary Diagnosis</modifier_name> <modifier_key>\\i2b2_DIAG\Secondary Diagnosis\</modifier_key> <applied_path>\i2b2\Diagnoses\Musculoskeletal and connective tissue (710-739)\%</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 musculoskeletal and connective tissue (ICD-9 codes 710-739) that have been recorded as secondary diagnoses, with any specificity and timing, and with a high level of accuracy (1000%). The query should be named "Secondary Diagn@09:01:33" and should not be considered a synonym for any other query.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Patient Instruc@20:52: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>6</hlevel> <item_name>Maxair Autohaler 0.2 mg/inh aerosol with adapter 3 M Pharmaceuticals</item_name> <item_key>\\i2b2_DEMO\i2b2\Medications\MUL\(LME219) respiratory agents\(LME223) bronchodilators\(LME224) adrenergic bronchodilators\pirbuterol\00089081710\</item_key> <item_icon>LA</item_icon> <tooltip>medications \ respiratory agents \ bronchodilators \ adrenergic bronchodilators \ pirbuterol \ maxair autohaler 0.2 mg/inh aerosol with adapter 3 m pharmaceuticals</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Patient Instructions</modifier_name> <modifier_key>\\i2b2_DEMO\Medication\Instructions\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>CONTAINS</value_operator> <value_constraint>eight</value_constraint> <value_type>LARGETEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who have been prescribed Maxair Autohaler 0.2 mg/inh aerosol with adapter 3 M pharmaceuticals (pirbuterol) in the medications section, specifically looking for those with instructions containing the word "eight" in their 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>Patient Instruc@20:53: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>6</hlevel> <item_name>Maxair Autohaler 0.2 mg/inh aerosol with adapter 3 M Pharmaceuticals</item_name> <item_key>\\i2b2_DEMO\i2b2\Medications\MUL\(LME219) respiratory agents\(LME223) bronchodilators\(LME224) adrenergic bronchodilators\pirbuterol\00089081710\</item_key> <item_icon>LA</item_icon> <tooltip>medications \ respiratory agents \ bronchodilators \ adrenergic bronchodilators \ pirbuterol \ maxair autohaler 0.2 mg/inh aerosol with adapter 3 m pharmaceuticals</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Patient Instructions</modifier_name> <modifier_key>\\i2b2_DEMO\Medication\Instructions\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>CONTAINS</value_operator> <value_constraint>blah</value_constraint> <value_type>LARGETEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of the medication Maxair Autohaler 0.2 mg/inh aerosol with adapter 3 M Pharmaceuticals (pirbuterol) where the patient instructions contain the word "blah" in the medication 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>Labor-Chemi-Diagn@12:16:32</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>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> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Chemistry</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests \ Chemistry</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Diagnostic and nonsurgical procedures</item_name> <item_key>\\i2b2_PROC\i2b2\Procedures\PRC\ICD9 (Inpatient)\(87-99) Diagnostic and nonsurgical procedures\</item_key> <item_icon>FA</item_icon> <tooltip>Procedures \ ICD9 (Inpatient) \ Diagnostic and nonsurgical procedures</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find laboratory tests related to chemistry and diagnostic and nonsurgical procedures with 1000% accuracy within any time frame.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Patient Instruc@20:53: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>6</hlevel> <item_name>Maxair Autohaler 0.2 mg/inh aerosol with adapter 3 M Pharmaceuticals</item_name> <item_key>\\i2b2_DEMO\i2b2\Medications\MUL\(LME219) respiratory agents\(LME223) bronchodilators\(LME224) adrenergic bronchodilators\pirbuterol\00089081710\</item_key> <item_icon>LA</item_icon> <tooltip>medications \ respiratory agents \ bronchodilators \ adrenergic bronchodilators \ pirbuterol \ maxair autohaler 0.2 mg/inh aerosol with adapter 3 m pharmaceuticals</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Patient Instructions</modifier_name> <modifier_key>\\i2b2_DEMO\Medication\Instructions\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>CONTAINS</value_operator> <value_constraint>breath</value_constraint> <value_type>LARGETEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who have been prescribed Maxair Autohaler 0.2 mg/inh aerosol with adapter 3 medication and have instructions containing the word "breath" in their medical records.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Singulair 5mg t@20:58: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>5</hlevel> <item_name>Singulair 5mg tablet chewable Merck &amp; Co. Inc</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME229) leukotriene modifiers\montelukast\00006027531\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents \ leukotriene modifiers \ montelukast \ singulair 5mg tablet chewable merck &amp; co. inc</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances where patients have taken the medication "Singulair 5mg tablet chewable" manufactured by Merck & Co. Inc., regardless of the timing or specificity, and I want to display this information in a panel with a high level of accuracy and a tooltip description that includes the medication classification and manufacturer.
```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@20:59: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>5</hlevel> <item_name>Singulair 5mg tablet chewable Merck &amp; Co. Inc</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME229) leukotriene modifiers\montelukast\00006027531\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents \ leukotriene modifiers \ montelukast \ singulair 5mg tablet chewable merck &amp; co. inc</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Patient Instructions</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>CONTAINS</value_operator> <value_constraint>bedtime</value_constraint> <value_type>LARGETEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances where a patient has been instructed to take the medication Singulair 5mg tablet chewable (Montelukast) manufactured by Merck & Co. Inc. at bedtime.
```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@20: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>5</hlevel> <item_name>Singulair 5mg tablet chewable Merck &amp; Co. Inc</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME229) leukotriene modifiers\montelukast\00006027531\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents \ leukotriene modifiers \ montelukast \ singulair 5mg tablet chewable merck &amp; co. inc</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Patient Instructions</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>CONTAINS</value_operator> <value_constraint>bredtime</value_constraint> <value_type>LARGETEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of the medication "Singulair 5mg tablet chewable Merck & Co. Inc" that have the patient instruction "bredtime" associated with them 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>Ischemic heart @14:05:36</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Ischemic heart disease</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Ischemic heart disease (410-414)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Ischemic heart disease</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with a diagnosis of ischemic heart disease in the i2b2 database, regardless of the time frame, with a high level of specificity (1000%) and no inversion of the results, using the panel number 1, and with a class of ENC.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Anemia Related @12:22:36</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Anemia Related Studies</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB31) Anemia Related Studies\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests \ Chemistry \ Anemia Related Studies</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of "Anemia Related Studies" within the "Labtests \ Chemistry" category in the i2b2 data repository, with a specificity scale of 0 and a total item occurrence of 1, using the "Anemia Related @12:22:36" query name and an "ANY" timing for both the query and panel timing, with an accuracy scale of 100 and no inversion 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>Female@11:03: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>3</hlevel> <item_name>Female</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Female\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Female</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Male</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Male</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all female patients with any timing and specificity scale set to 0, using the panel number 1, with a panel timing of ANY and an accuracy scale of 100, without inverting the panel, and having a total of 1 item occurrence. The query will include two items: "Female" with a tooltip of "Demographic \ Gender \ Female" and "Male" with a tooltip of "Demographic \ Gender \ Male".
```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>Female@10:07:13</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Female</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Female\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Female</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Hispanic</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Race\Hispanic\</item_key> <item_icon>MA</item_icon> <tooltip>Demographic \ Race \ Hispanic</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all female patients who are of Hispanic race with any timing and 1000% accuracy 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>Female-Asian@10:08: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>Female</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Female\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Female</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Asian</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Race\Asian\</item_key> <item_icon>MA</item_icon> <tooltip>Demographic \ Race \ Asian</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all female patients of Asian race with no specific time frame or accuracy requirement.
```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>Gastr-Male-&gt;= 65@14:42: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>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> <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>&gt;= 65 years old</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Age\&gt;= 65 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Demographics \ Age \ &gt;= 65 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all male patients who are 65 years or older and have been diagnosed with Gastro-esophageal reflux disease.
```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@15:09: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 all diagnoses related to the Circulatory system (ICD-9 codes 390-459) with any specificity, any timing, and 100% accuracy, grouped into a panel named "Circulatory sys@15:09:25" with one item, 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-Princ-Secon@10:56: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>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key> <applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Principal Diagnosis</modifier_name> <modifier_key>\\i2b2_DIAG\Principal Diagnosis\</modifier_key> <applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Secondary Diagnosis</modifier_name> <modifier_key>\\i2b2_DIAG\Secondary Diagnosis\</modifier_key> <applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with a diagnosis related to the circulatory system (ICD-9 codes 390-459) that is either an admission diagnosis, principal diagnosis, or secondary 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>Chemist-Coagula@10:52:11</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Chemistry</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests \ Chemistry</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>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>Coagulation</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB6) Coagulation\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests \ Coagulation</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of Chemistry and Coagulation lab tests with any timing and 1000% accuracy scale, within the i2b2 Labtests 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>Diabetes mellit@06:32:32</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Diabetes mellitus</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Endocrine disorders \ Other endocrine gland diseases \ Diabetes mellitus</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of "Diabetes mellitus" diagnoses in the Endocrine disorders section of the i2b2 database, specifically under the "Other endocrine gland diseases" category, with a specificity scale of 0 and a total item occurrence of 1, with the panel timing set to "ANY" and the query timing set to "ANY". The accuracy scale is set to 100 and the query name is "Diabetes mellit@06:32:32". This query is not a synonym and has a class of "ENC".
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name> 18--Male-Neuro@13:53: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>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> </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>2</hlevel> <item_name>Neurologic Disorders</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neurologic Disorders (320-389)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neurologic Disorders</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all male patients between the ages of 18 and 34 who have been diagnosed with a neurological disorder.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Diabete-Huchard@06:40:39</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Diabetes mellitus</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Endocrine disorders \ Other endocrine gland diseases \ Diabetes mellitus</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>Huchard's disease</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Hypertensive disease (401-405)\(401) Essential hypertension\(401-9) Unspecified essential hyp~\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Hypertensive disease \ Essential hypertension \ Unspecified essential hypertension</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 Diabetes mellitus (Endocrine disorders > Other endocrine gland diseases > Diabetes mellitus) and Huchard's disease (Circulatory system > Hypertensive disease > Essential hypertension > Unspecified essential hypertension) with a specificity scale of 0 and accuracy scale of 100, and the occurrence of each item is once. The query timing is set to ANY, meaning it will include past and current 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>Diabete-Huchard@06:42:32</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Diabetes mellitus</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Endocrine disorders \ Other endocrine gland diseases \ Diabetes mellitus</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>Huchard's disease</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Hypertensive disease (401-405)\(401) Essential hypertension\(401-9) Unspecified essential hyp~\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Hypertensive disease \ Essential hypertension \ Unspecified essential hypertension</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 Diabetes mellitus and Huchard's disease (Unspecified essential hypertension) with any timing and 1000% 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>Digestive syste@13:22:43</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the digestive system, including any conditions or disorders that fall under the ICD-10 codes ranging from 520 to 579, with no specific time frame specified, and the query should have a high accuracy scale of 100%.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Digestive syste@13:23: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>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the digestive system (ICD-9 codes 520-579) within the i2b2 database, with a specificity scale of 0, accuracy scale of 100, and any timing. The query should be named "Digestive syste@13:23:12" and have a panel number of 1, with the panel timing set to ANY. The query should include a single item named "Digestive system" with a tooltip of "Diagnoses \ Digestive system" and a class of ENC. The item key should be "\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\" and the icon should be FA. The item should not be treated as a synonym.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Ischemi-Male@14:05:49</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Ischemic heart disease</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Ischemic heart disease (410-414)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Ischemic heart disease</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Male</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Male</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all male patients with a diagnosis of ischemic heart disease in the i2b2 database.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Ischemi-Male@14:08: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>Ischemic heart disease</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Ischemic heart disease (410-414)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Ischemic heart disease</tooltip> <class>ENC</class> <constrain_by_date> <date_from>1979-12-01T00:00:00.000-05:00</date_from> </constrain_by_date> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Male</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Male</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all male patients with a diagnosis of ischemic heart disease.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name> 18-34 years o@13:47: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> 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> </panel> </ns4:query_definition> ```
I want to find all patients aged 18-34 years old, with any time frame and a high level of accuracy, within the demographics category of the i2b2 data repository.
```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>Female@14:54:43</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Female</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Female\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Female</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Arterial vascular disease</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Arterial vascular disease (440-447)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Arterial vascular disease</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all female patients with a diagnosis of arterial vascular disease in the circulatory system 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>Disease- 18-34@10:34: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>1</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Diseases of male genital organs (n40-n53)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(N00-N99) Dise~cr9y\(N40-N53) Dise~en84\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the genitourinary system (n00-n99) \ Diseases of male genital organs (n40-n53)</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> 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> </panel> </ns4:query_definition> ```
I want to find all patients aged 18-34 years old who have been diagnosed with diseases of the male genital organs (ICD-9 codes N40-N53) within the specified time frame (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>Principal Diagn@14:24: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>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Principal Diagnosis</modifier_name> <modifier_key>\\i2b2_DIAG\Principal Diagnosis\</modifier_key> <applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system (ICD codes 390-459) that are marked as principal diagnoses, with a specificity scale of 0 and accuracy scale of 100, covering any time period, and with only one item in the 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>X-Ray Reports@14:44:13</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>X-Ray Reports</item_name> <item_key>\\i2b2_REP\i2b2\Reports\X-Ray Reports\</item_key> <item_icon>LAE</item_icon> <tooltip>i2b2 \ Reports \ X-Ray Reports</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all X-Ray Reports within the i2b2 database, with a specificity scale of 0 and an accuracy scale of 100, with the query named "X-Ray Reports@14:44:13" and a timing of "ANY". The query will search for the item key "\\i2b2_REP\i2b2\Reports\X-Ray Reports\" and display it in the first panel with an invert value of 0 and a class of ENC. The icon for this item will be LAE and the tooltip will display "i2b2 \ Reports \ X-Ray Reports".
```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>Secondary Diagn@09:01:44</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Musculoskeletal and connective tissue</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Musculoskeletal and connective tissue (710-739)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Musculoskeletal and connective tissue</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Secondary Diagnosis</modifier_name> <modifier_key>\\i2b2_DIAG\Secondary Diagnosis\</modifier_key> <applied_path>\i2b2\Diagnoses\Musculoskeletal and connective tissue (710-739)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all secondary diagnoses related to musculoskeletal and connective tissue disorders (ICD-9 codes 710-739) with any timing and 100% accuracy scale, constrained by the "Secondary Diagnosis" modifier, and with a specificity scale of 0 and no 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>Respira-Gender@10: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>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>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 diagnoses related to the respiratory system along with their gender information 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>(t) PATIENTSETFINISDiseases of theMedicationsLaboratory Test@10:48:27</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>0</hlevel> <item_name>Patient Set for "Disease- 18-34@10:34:55"Patient setFINISHED</item_name> <item_key>patient_set_coll_id:60584</item_key> <tooltip>Patient Set for "Disease- 18-34@10:34:55"Patient setFINISHED</tooltip> <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_constraint> <first_query> <query_id>Event 2</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Event 3</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Event 1</query_id> <query_type>EVENT</query_type> <query_name>Event 1</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Diseases of the digestive system (k00-k94)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(K00-K94) Dise~rl1r\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the digestive system (k00-k94)</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>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medication</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Event 3</query_id> <query_type>EVENT</query_type> <query_name>Event 3</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>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> </ns4:query_definition> ```
I want to find patients who have been diagnosed with diseases of the digestive system (ICD10 codes K0-K94) at any time, and have had medications and laboratory tests within the same encounter.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Female-Male@14:53: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>3</hlevel> <item_name>Female</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Female\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Female</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Male</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Male</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with the demographic information of being female in one panel and male in another panel, with any timing, specificity scale set to 0, and 1000% accuracy for each panel. The query consists of two panels: the first panel has the demographic item "Female" with the key "\\i2b2_DEMO\i2b2\Demographics\Gender\Female\" and the second panel has the demographic item "Male" with the key "\\i2b2_DEMO\i2b2\Demographics\Gender\Male\". The query does not include synonyms and the class is set to ENC.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>(t) Clinical MeasurClinical Measur@11:22:57</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>2</hlevel> <item_name>Clinical Measures</item_name> <item_key>\\BIRN\BIRN\oasis\Clinical Measures\</item_key> <item_icon>FA</item_icon> <tooltip>oasis \ Clinical Measures</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </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>Clinical Measures</item_name> <item_key>\\BIRN\BIRN\oasis\Clinical Measures\</item_key> <item_icon>FA</item_icon> <tooltip>oasis \ Clinical Measures</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find the first occurrence of an event within a specific instance of Observation A where the start date is less than the first occurrence of an event within a specific instance of Observation B, both from the Clinical Measures 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>Cardiov-Mental @15:29: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>Cardiovascular agents</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME68) cardiovascular agents\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ cardiovascular agents</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>Mental Disorders</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Mental Disorders (290-319)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Mental Disorders</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who have had any cardiovascular medications and any mental disorders diagnoses recorded in their medical history 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>Other i-Topical@15:32: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>Other inflammatory conditions</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Skin diseases (680-709)\Other inflammatory conditions (690-698)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Skin diseases \ Other inflammatory conditions</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>Topical agents</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME234) topical agents\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ topical agents</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 "Other inflammatory conditions" and who have used "Topical agents" medications, regardless of the timing of the diagnosis or medication usage.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>X-Ray Reports@14:44:36</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>X-Ray Reports</item_name> <item_key>\\i2b2_REP\i2b2\Reports\X-Ray Reports\</item_key> <item_icon>LAE</item_icon> <tooltip>i2b2 \ Reports \ X-Ray Reports</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all X-Ray Reports in the i2b2 database with a high level of specificity, regardless of the timing, and display them in a panel with a total occurrence of 1, using the class ENC and an icon LAE, 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>X-Ray Reports@14:47: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>X-Ray Reports</item_name> <item_key>\\i2b2_REP\i2b2\Reports\X-Ray Reports\</item_key> <item_icon>LAE</item_icon> <tooltip>i2b2 \ Reports \ X-Ray Reports</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all X-Ray Reports in the i2b2 database with a specificity scale of 0, any timing, and a panel accuracy scale of 100, with the item key being "\\i2b2_REP\i2b2\Reports\X-Ray Reports\" and the item class being "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>mild dementia@13:58: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>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> </ns4:query_definition> ```
I want to find all patients with a diagnosis of mild dementia, using the Clinical Dementia Rating (CDR) scale, with a high specificity of 100%, and the query should include any time frame (ANY) and any panel 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>mild de-Diabete@13:59: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>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>0</hlevel> <item_name>(PrevQuery)Diabetes mellit@06:32:32</item_name> <item_key>masterid:27814</item_key> <tooltip>Diabetes mellit@06:32:32</tooltip> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who have been diagnosed with mild dementia and also have a history of diabetes mellitus.
```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 -Admit-Admit@13:57:46</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>mild dementia</item_name> <item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\mild dementia\</item_key> <item_icon>LA</item_icon> <tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR) \ mild dementia</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Neurologic Disorders</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neurologic Disorders (320-389)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neurologic Disorders</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\Neurologic Disorders (320-389)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Mental Disorders</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Mental Disorders (290-319)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Mental Disorders</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\Mental Disorders (290-319)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with mild dementia diagnosed during their admission, with no specificity scale applied, and constrained by the diagnosis of neurologic disorders and mental disorders.
```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 de-Admit D@13: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>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>2</hlevel> <item_name>Neurologic Disorders</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neurologic Disorders (320-389)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neurologic Disorders</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\Neurologic Disorders (320-389)\%</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 diagnosed with mild dementia (as indicated by the "mild dementia" concept in the OASIS Clinical Measures Clinical Dementia Rating) and have any neurologic disorder (within the ICD code range 320-389) listed as an admit 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>Diabetes mellit@13:59:39</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>0</hlevel> <item_name>(PrevQuery)Diabetes mellit@06:32:32</item_name> <item_key>masterid:27814</item_key> <tooltip>Diabetes mellit@06:32:32</tooltip> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients who have been diagnosed with diabetes mellitus at any time in their medical history, with a specificity scale of 0, and a panel accuracy scale of 100, where the query is not inverted, and the total number of items in the panel is 1, using the item (PrevQuery)Diabetes mellit@06:32:32 with the unique identifier masterid:27814 and tooltip Diabetes mellit@06:32:32.
```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>Gastr-Male-&gt;= 6@14:00: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>0</hlevel> <item_name>(PrevQuery)Gastr-Male-&gt;= 65@14:42:29</item_name> <item_key>masterid:27807</item_key> <tooltip>Gastr-Male-&gt;= 65@14:42:29</tooltip> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all male patients who have a gastric condition with a value greater than or equal to 6, as recorded 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>X-Ray Reports@09:16:20</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>X-Ray Reports</item_name> <item_key>\\i2b2_REP\i2b2\Reports\X-Ray Reports\</item_key> <item_icon>LAE</item_icon> <tooltip>i2b2 \ Reports \ X-Ray Reports</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all X-Ray Reports in the i2b2 database, with any timing, 100% accuracy, and specificity scale set to 0, using the panel named "X-Ray Reports@09:16:20" with the item key "\\i2b2_REP\i2b2\Reports\X-Ray Reports\" and with the icon "LAE".
```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:52:44</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>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 specified time frame (ANY) with a specificity scale of 0 and a panel accuracy scale of 100, with the panel inverted to 0, and a total item occurrence of 1, using the i2b2 query builder.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>(t) Diabete-AtorvasAntihypAnencep@11:49: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>6</hlevel> <item_name>Diabetes mellitus type II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, not stated as uncontrolled, with unspecified complication</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-9) Diabetes with unspecified~\(250-90) Diabetes mellitus type I~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ ... \ Diabetes mellitus type II [non-insulin dependent t{..}cified type, not stated as uncontrolled, with unspecified complication</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </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>Atorvastatin</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME5) antihyperlipidemic agents\(LME8) HMG-CoA reductase inhibitors\atorvastatin\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ antihyperlipidemic agents \ hmg-coa reductase inhibitors \ atorvastatin</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>2</hlevel> <item_name>Antihyperlipidemic agents</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME5) antihyperlipidemic agents\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ antihyperlipidemic agents</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>Anencephalus</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Congenital anomalies (740-759)\(740) Anencephalus and similar an~\(740-0) Anencephalus\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Congenital anomalies \ Anencephalus and similar anomalies \ Anencephalus</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find patients who have been diagnosed with Diabetes mellitus type II with unspecified complications and have been prescribed Atorvastatin medication, and who have also been diagnosed with Anencephalus, with the first diagnosis of Anencephalus occurring before the first prescription of Atorvastatin.
```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) Diabete-AtorvasAntihypAnencep@11:49: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>6</hlevel> <item_name>Diabetes mellitus type II [non-insulin dependent type] [NIDDM type] [adult-onset type] or unspecified type, not stated as uncontrolled, with unspecified complication</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\Other endocrine gland diseases (250-259)\(250) Diabetes mellitus\(250-9) Diabetes with unspecified~\(250-90) Diabetes mellitus type I~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ ... \ Diabetes mellitus type II [non-insulin dependent t{..}cified type, not stated as uncontrolled, with unspecified complication</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </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>Atorvastatin</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME5) antihyperlipidemic agents\(LME8) HMG-CoA reductase inhibitors\atorvastatin\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ antihyperlipidemic agents \ hmg-coa reductase inhibitors \ atorvastatin</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>2</hlevel> <item_name>Antihyperlipidemic agents</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME5) antihyperlipidemic agents\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ antihyperlipidemic agents</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>Anencephalus</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Congenital anomalies (740-759)\(740) Anencephalus and similar an~\(740-0) Anencephalus\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Congenital anomalies \ Anencephalus and similar anomalies \ Anencephalus</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> <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> </subquery> </ns4:query_definition> ```
I want to find patients with a diagnosis of diabetes mellitus type II, not stated as uncontrolled, with unspecified complication, who have been prescribed atorvastatin, and have no record of antihyperlipidemic agents other than atorvastatin in their medical history. Additionally, I want to find patients with a diagnosis of anencephaly and any other circulatory system-related diagnoses in their 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>&gt;= 85 years old@11:17: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>&gt;= 85 years old</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Age\&gt;= 85 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Demographics \ Age \ &gt;= 85 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients who are 85 years old or older based on their age in the demographics section of their electronic health record, with no specific time frame considered, and with a high level of accuracy, using the i2b2 query builder.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Medications@10:46:26</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Route</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Route\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all medications (Medications@10:46:26) that have been administered to patients at any time (ANY timing), with a specificity scale of 0 and a high accuracy of 100, constrained by the route of administration (Route) within the i2b2 data model.
```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>Male-Black@10:10: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>Male</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Male</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>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> </ns4:query_definition> ```
I want to find all records where the patient is male and has a race of Black, with no specific timing requirements, and the query should have 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>Male-Malignant neoplasm of prostate@10:15: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>3</hlevel> <item_name>Male</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Male</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>Malignant neoplasm of prostate</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\Genitourinary organs (179-189)\(185) Malignant neoplasm of prost~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms \ Genitourinary organs \ Malignant neoplasm of prostate</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find male patients with a diagnosis of malignant neoplasm of the prostate 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>Medications-Medications@10:36:27</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Patient Instructions</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>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>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Route</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Route\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all medications that have been prescribed to patients along with their respective route of administration, within the same instance number.
```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>Male-Malignant neoplasm of prostate@10:15: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>3</hlevel> <item_name>Male</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Male</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>Malignant neoplasm of prostate</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\Genitourinary organs (179-189)\(185) Malignant neoplasm of prost~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms \ Genitourinary organs \ Malignant neoplasm of prostate</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find male patients with a diagnosis of malignant neoplasm of the prostate at any time in their medical record, with a specificity scale of 0 and a panel accuracy scale of 100, looking at demographic information and 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>Male-Malignant neoplasm of prostate@10:15: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>3</hlevel> <item_name>Male</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Male</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>Malignant neoplasm of prostate</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\Genitourinary organs (179-189)\(185) Malignant neoplasm of prost~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms \ Genitourinary organs \ Malignant neoplasm of prostate</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all male patients with a diagnosis of malignant neoplasm of the prostate 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>Male-Malignant neoplasm of prostate@10:15: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>3</hlevel> <item_name>Male</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Male</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>Malignant neoplasm of prostate</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\Genitourinary organs (179-189)\(185) Malignant neoplasm of prost~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms \ Genitourinary organs \ Malignant neoplasm of prostate</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all male patients with a diagnosis of malignant neoplasm of the prostate at any time during their 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>Female@19:56:44</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Female</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Female\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Female</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all female patients in the database, regardless of the time or specificity, with a high level of accuracy, and using the demographic gender field.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Antihyperlipidemic agents-Antihyperlipidemic agents@10:40:37</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Antihyperlipidemic agents</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME5) antihyperlipidemic agents\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ antihyperlipidemic agents</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Patient Instructions</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>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>Antihyperlipidemic agents</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME5) antihyperlipidemic agents\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ antihyperlipidemic agents</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Rx Sig</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\RxSig\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of medications classified as antihyperlipidemic agents, regardless of specificity, with a high level of accuracy, and constrained by both patient instructions and Rx Sig (prescription information) within the same instance number.
```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>Certain conditions originating in the perinatal period (p00-p96)-Certain infectious and parasitic diseases (a00-b99)@10:46:39</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEVISIT</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>SAMEVISIT</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>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 patients with certain conditions originating in the perinatal period (codes P00-P96) and certain infectious and parasitic diseases (codes A0-B9) documented during the same visit, with a high level of specificity (1000%) and no inversion of the search 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>Certain conditions originating in the perinatal period (p00-p96)-Certain infectious and parasitic dise-Medications@10:4@10:47:35</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>0</hlevel> <item_name>(PrevQuery) Certain conditions originating in the perinatal period (p00-p96)-Certain infectious and parasitic diseases (a00-b99)@10:46:39</item_name> <item_key>masterid:27889</item_key> <tooltip>Certain conditions originating in the perinatal period (p00-p96)-Certain infectious and parasitic diseases (a00-b99)@10:46:39 [5-16-2023] [demo]</tooltip> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>0</hlevel> <item_name>(PrevQuery) Medications@10:46:26</item_name> <item_key>masterid:27888</item_key> <tooltip>Medications@10:46:26 [5-16-2023] [demo]</tooltip> <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 (p0-p96) and certain infectious and parasitic diseases (a0-b9) who have also been prescribed medications within the same instance number.
```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:47: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>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 of 1 item occurrence, considering the timing as ANY, and the accuracy scale set to 100. The panel number is 1 and the panel timing is also ANY, with the item being a synonym of ENC and the icon set to FA.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Medications@10:48:32</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Route</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Route\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all medications recorded in the i2b2 database, regardless of the specificity or timing, with a 1000% accuracy level and constrained by the route of administration, displaying the results on a single 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>Route@10:53:36</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Route</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Route\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>IN</value_operator> <value_constraint>('inhalation')</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 medications that have been administered through the inhalation route at any time, 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>Route@10:56:10</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEVISIT</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</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_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all medications that were administered through a specific route, within the same visit, with an accuracy of 1000%, and the query should be named "Route@10:56:10".
```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>Blood Gases@13:26:26</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Blood Gases</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB24) Blood Gases\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests \ Chemistry \ Blood Gases</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of Blood Gases lab tests with any timing, specificity scale set to 0, accuracy scale set to 100, and the panel number and total item occurrences set to 1, within the Chemistry category of the Labtests section, 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) Digesti-ALT (SGDigestiALT (SG@16:28: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>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>ALT (SGPT) (LOINC:1742-6)</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key> <item_icon>LA</item_icon> <tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <subquery_constraint> <first_query> <query_id>Observation B</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Observation D</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> <span> <operator>GREATEREQUAL</operator> <span_value>1</span_value> <units>MONTH</units> </span> </subquery_constraint> <subquery> <query_id>Observation B</query_id> <query_type>EVENT</query_type> <query_name>Observation B</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>0</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Observation D</query_id> <query_type>EVENT</query_type> <query_name>Observation D</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>0</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>ALT (SGPT) (LOINC:1742-6)</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key> <item_icon>LA</item_icon> <tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip> <class>ENC</class> <constrain_by_value> <value_operator>LT</value_operator> <value_constraint>30</value_constraint> <value_unit_of_measure>u/l</value_unit_of_measure> <value_type>NUMBER</value_type> </constrain_by_value> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find patients who have a diagnosis related to the digestive system and also have an ALT (SGPT) lab result that is less than or equal to 30 u/l within the same encounter as the diagnosis, or within one month prior to the diagnosis.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Medications-Medications@10:50:54</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Patient Instructions</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>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>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Rx Sig</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\RxSig\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>1</hlevel> <item_name>Alternative medicines</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME2) alternative medicines\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ alternative medicines</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Route</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Route\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find medications that have been prescribed to a patient, including alternative medicines, along with their respective patient instructions and routes of administration.
```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@10:50: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>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Route</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Route\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>IN</value_operator> <value_constraint>('inhalation','injection')</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 medications administered through the inhalation or injection route within the specified time frame.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Medications@10:51:36</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>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> <item> <hlevel>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Rx Sig</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\RxSig\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all medications recorded in the i2b2 database, including patient instructions and prescription details, with a high level of specificity and no time constraint.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Certain conditions originating in the perinatal period (p00-p96)-Abnormal findings on neonatal screening (p09)@11:15:20</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Abnormal findings on neonatal screening (p09)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\(P09-P09) Abno~s321\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96) \ Abnormal findings on neonatal screening (p09)</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 (p00-p96) that have abnormal findings on neonatal screening (p09) within the same instance number. This query will return a list of patients who have been diagnosed with conditions related to the perinatal period and have had abnormal neonatal screening results, with a high level of accuracy and specificity. The query will include all patients who meet these criteria, regardless of when they were diagnosed or screened.
```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>Assault by cras@14:07: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>Assault by crashing of motor vehicle</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(V00-Y99) Exte~2k58\(X92-Y08) Assa~4b66\(Y03) Assault~rwkc\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ External causes of morbidity (v00-y99) \ Assault (x92-y08) \ Assault by crashing of motor vehicle</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 assault resulting from a crashing of a motor vehicle, coded in ICD-10 or ICD-9, with any level of specificity, at any point in time, 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>Route@10:51: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>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Route</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Route\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all medications that have a specific route of administration (e.g., oral, topical, injection) recorded in the database, with no specific time constraint and high accuracy, and display the results in a panel with a single item called "Medications" using the "Medications" and "Route" concepts from the i2b2 ontology.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Medications@13:25: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>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Rx Sig</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\RxSig\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>LIKE[contains]</value_operator> <value_constraint>ace</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 medications that contain the word "ace" in their name or description, regardless of when they were prescribed or taken, and display the results in a panel with 1000% 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> 0-9 y-Female@23:11:57</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name> 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> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Female</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Female\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Female</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all female patients aged 0-9 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>Medications-Alternative medicines@10:54:32</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Patient Instructions</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>CONTAINS</value_operator> <value_constraint>test</value_constraint> <value_type>LARGETEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Alternative medicines</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME2) alternative medicines\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ alternative medicines</tooltip> <class>ENC</class> <constrain_by_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>('PR','topical')</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 medications that have an applied path containing the text "test" and have a route of administration that is either 'PR' or 'topical' in the same instance number, with a specificity scale of 0 and accuracy scale of 100, and the query should be named "Medications-Alternative medicines@10:54:32" with a timing of "ANY".
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>mild -Colle-Statu@08:11:57</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>mild dementia</item_name> <item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\mild dementia\</item_key> <item_icon>LA</item_icon> <tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR) \ mild dementia</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>College grad.</item_name> <item_key>\\BIRN\BIRN\oasis\Demographics\Education\College grad.\</item_key> <item_icon>LA</item_icon> <tooltip>oasis \ Demographics \ Education \ College grad.</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Status 2</item_name> <item_key>\\BIRN\BIRN\oasis\Demographics\Socioeconomic Status\Status 2\</item_key> <item_icon>LA</item_icon> <tooltip>oasis \ Demographics \ Socioeconomic Status \ Status 2</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with a diagnosis of mild dementia who have a college education level and belong to the socioeconomic status 2 group, without any specific timing or accuracy constraints.
```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>Male-German@08:18:50</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Male</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Male</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>German</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Language\German\</item_key> <item_icon>MA</item_icon> <tooltip>Demographic \ Language \ German</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find male patients with the language German in their demographic information.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Blood Gases-Cardiac Tests@13:27: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>3</hlevel> <item_name>Blood Gases</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB24) Blood Gases\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests \ Chemistry \ Blood Gases</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>Cardiac Tests</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB20) Cardiac Tests\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests \ Chemistry \ Cardiac Tests</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of Blood Gases and Cardiac Tests laboratory tests conducted on patients within the i2b2 database.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Mental Disorder@07:45: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>Mental Disorders</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Mental Disorders (290-319)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Mental Disorders</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find any instances of Mental Disorders (ICD-9 codes 290-319) in the i2b2 database with a specificity scale of 0, a panel accuracy scale of 100, and a panel timing of ANY, where the query is named "Mental Disorder@07:45:52" and the total number of items in the panel 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> 35-44 years o@15:36: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>3</hlevel> <item_name> 35-44 years old</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Age\35-44 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Demographics \ Age \ 35-44 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who are 35-4 years old within the specified time frame, using the i2b2 query builder with the demographics age category and the specific age range of 35-4 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>Female@15:38:18</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Female</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Female\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Female</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all female patients with any age and any date of 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>Oasis-Clini-Hand @22:28: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>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>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> <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>Hand Orientation</item_name> <item_key>\\BIRN\BIRN\oasis\Demographics\Hand Orientation\</item_key> <item_icon>FA</item_icon> <tooltip>oasis \ Demographics \ Hand Orientation</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of the Oasis data element, specifically within the Clinical Measures and Demographics sections, where the Clinical Dementia Rating (CDR) and Hand Orientation fields are recorded, 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>Mental -Male@07:46: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>Mental Disorders</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Mental Disorders (290-319)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Mental Disorders</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Male</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Male</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all male patients with a diagnosis of mental disorders in the i2b2 database, including any subcategories under the mental disorders category, with a high level of accuracy and no specific time constraint.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Externa-Assault@14:26:52</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>External causes of morbidity (v00-y99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(V00-Y99) Exte~2k58\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ External causes of morbidity (v00-y99)</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>Assault (x92-y08)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(V00-Y99) Exte~2k58\(X92-Y08) Assa~4b66\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ External causes of morbidity (v00-y99) \ Assault (x92-y08)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Assault by blunt object</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(V00-Y99) Exte~2k58\(X92-Y08) Assa~4b66\(Y00) Assault~ymnk\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ External causes of morbidity (v00-y99) \ Assault (x92-y08) \ Assault by blunt object</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Assault by crashing of motor vehicle</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(V00-Y99) Exte~2k58\(X92-Y08) Assa~4b66\(Y03) Assault~rwkc\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ External causes of morbidity (v00-y99) \ Assault (x92-y08) \ Assault by crashing of motor vehicle</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 external causes of morbidity (v0-y9) and specifically those who have experienced assault (x92-y08), including assault by blunt object (y00) or assault by crashing of a motor vehicle (y03). This query is designed to identify patients with these specific diagnoses using the ICD10_ICD9 coding system. The accuracy scale is set to 100, indicating a high level of precision, and the timing is set to ANY, meaning that the diagnosis could have occurred at any point in time. The panel's specificity scale is set to 0, indicating that all cases meeting the criteria will be included in the 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) Digesti-ALT (SGDigestiALT (SG@16:28:42</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>ALT (SGPT) (LOINC:1742-6)</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key> <item_icon>LA</item_icon> <tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <subquery_constraint> <first_query> <query_id>Observation B</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Observation D</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> <span> <operator>GREATEREQUAL</operator> <span_value>1</span_value> <units>MONTH</units> </span> </subquery_constraint> <subquery> <query_id>Observation B</query_id> <query_type>EVENT</query_type> <query_name>Observation B</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>0</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Observation D</query_id> <query_type>EVENT</query_type> <query_name>Observation D</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>0</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>ALT (SGPT) (LOINC:1742-6)</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key> <item_icon>LA</item_icon> <tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find patients with a diagnosis related to the digestive system who have had an ALT (SGPT) test performed within one month 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>Gender@23:11:10</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Gender</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\</item_key> <item_icon>FA</item_icon> <tooltip>Demographic \ Gender</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with any gender recorded in the demographics section of the i2b2 database.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Gender@23:11:26</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Gender</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\</item_key> <item_icon>FA</item_icon> <tooltip>Demographic \ Gender</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with any gender recorded in the demographics section of the i2b2 database using the i2b2 query builder.