output
stringlengths
926
21.5k
instruction
stringlengths
45
1.08k
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory sys@12:54: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>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find any diagnoses related to the circulatory system (ICD codes 390-459) within the i2b2 database using the query builder.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Distant metasta@13:36:25</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Digestive organs and peritoneum</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\Digestive organs and peritoneum (150-159)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms \ Digestive organs and peritoneum</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Distant metastasis cannot be evaluated</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Metastisis\MX\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>4</hlevel> <item_name>Digestive organs and peritoneum</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\Digestive organs and peritoneum (150-159)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms \ Digestive organs and peritoneum</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Involvement of regional lymph nodes / extent of spread</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Nodes\N3\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>4</hlevel> <item_name>Digestive organs and peritoneum</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\Digestive organs and peritoneum (150-159)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms \ Digestive organs and peritoneum</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>No regional lymph node involvement</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Nodes\N0\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find malignant neoplasms in the digestive organs and peritoneum that cannot be evaluated for distant metastasis, have no involvement of regional lymph nodes, and have a specificity scale of 0 with a panel 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>(t) Cough-Acute upper respiratory infections of multiple or unspecified sites@13:44:40</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <subquery_constraint> <first_query> <query_id>Event 1</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Event 2</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Event 1</query_id> <query_type>EVENT</query_type> <query_name>Event 1</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Cough</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(R00-R99) Symp~mt2x\(R00-R09) Symp~evaq\(R05) Cough\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Symptoms, signs and abnormal clinical and laboratory findings, not elsewhere classified (r00-r99) \ Symptoms and signs involving the circulatory and respiratory systems (r00-r09) \ Cough</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Event 2</query_id> <query_type>EVENT</query_type> <query_name>Event 2</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Acute upper respiratory infections of multiple or unspecified sites</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Acute respiratory infections (460-466)\(465) Acute upper respiratory inf~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Respiratory system \ Acute respiratory infections \ Acute upper respiratory infections of multiple or unspecified sites</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find patients who have had an event of "Cough" in their medical records, and within the same instance of care, they also had an event of "Acute upper respiratory infections of multiple or unspecified sites" with the time of occurrence being anytime before the "Cough" event.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Admit D-Admit D@17:04: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>4</hlevel> <item_name>Dislocation of shoulder</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Injury and poisoning (800-999)\Dislocation (830-839)\(831) Dislocation of shoulder\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Injury and poisoning \ Dislocation \ Dislocation of shoulder</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\Injury and poisoning (800-999)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Contusion</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Injury and poisoning (800-999)\Contusion (920-924)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Injury and poisoning \ Contusion</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\Injury and poisoning (800-999)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who have an Admit Diagnosis of Dislocation of the shoulder (ICD-9 code 831) or a Contusion (ICD-9 code 920-924) with a high specificity scale of 100 and any timing.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory system@14:17:19</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find any diagnoses related to the circulatory system (ICD codes 390-459) with a high level of specificity (100) and no inversion, looking at all occurrences 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>Admit Diagnosis@09:13: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>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> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system (ICD codes 390-459) that were recorded as the admit diagnosis, with a specificity scale of 0 and a total of 1 item occurrence, at any time during the patient's stay, with a panel accuracy scale of 100 and without inverting 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>Admit Diagnosis@17:08:40</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Injury and poisoning</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Injury and poisoning (800-999)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Injury and poisoning</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key> <applied_path>\i2b2\Diagnoses\Injury and poisoning (800-999)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to injury and poisoning (ICD-9 codes 80-99) that were recorded as the admit diagnosis for patients.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.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 conditi@15:26:56</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>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> </ns4:query_definition> ```
I want to find diagnoses related to certain conditions that originated in the perinatal period (from conception to 6 days after birth) using the ICD-10 and ICD-9 classification systems, specifically codes P0-P96, 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>Medications@15:31:51</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of medications recorded in the i2b2 database with a high level of specificity and accuracy, regardless of the time frame, using the "Medications" concept 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>Endocrine disor@07:54:04</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Endocrine disorders</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Endocrine disorders</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of Endocrine disorders (ICD-9 codes 240-259) in the i2b2 database, with a specificity scale of 0, a panel timing of ANY, and a panel accuracy scale of 100, and this query should be applied to a single panel with an invert value of 0 and a total item occurrence of 1. The class of this query 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>Admit Diagnosis@23:52:39</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Neoplasms (c00-d49)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(C00-D49) Neop~k3n8\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms (c00-d49)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key> <applied_path>\Diagnoses\(C00-D49) Neop~k3n8\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with neoplasms (cancerous or non-cancerous tumors) listed as their primary diagnosis at the time of admission to the hospital.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Gender@19:21:37</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Gender</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\</item_key> <item_icon>FA</item_icon> <tooltip>Demographic \ Gender</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of the gender attribute in the Demographics domain with a high level of specificity and no time 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>Admit Diagnosis@17:15: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>Endocrine disorders</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Endocrine 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\Endocrine disorders (240-259)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with Endocrine disorders (ICD codes 240-259) listed as their Admit Diagnosis, with a specificity scale of 0, accuracy scale of 100, and no inversion applied, at any point in 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>Diagnoses@14:20:21</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Diagnoses</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses recorded in the i2b2 database with any specificity and time range, using the "Diagnoses" panel with a high accuracy scale of 100, and displaying a single occurrence of each diagnosis. This query is not inverted and is specifically for the "Diagnoses" item with the key "\\i2b2_DIAG\i2b2\Diagnoses\" and has a tooltip of "Diagnoses". It is not a synonym and is of the ENC 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>Expression Prof@14:21:20</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Expression Profiles Data</item_name> <item_key>\\i2b2_EXPR\i2b2\Expression Profiles Data\</item_key> <item_icon>FA</item_icon> <tooltip>Expression Profiles Data</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of the Expression Profiles Data element with a specificity scale of 0, accuracy scale of 100, and panel timing set to ANY, within the i2b2 system, using the query builder xml.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns3:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/"> <query_name>Certain conditions originating in the perinatal period (p00-p96)@16:59:27</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns3:query_definition> ```
I want to find all patients with certain conditions that originated in the perinatal period, specifically those coded within the range of P00-P96 in the ICD10 or ICD9 classification system, 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>Gender@19:18: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>Gender</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\</item_key> <item_icon>FA</item_icon> <tooltip>Demographic \ Gender</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with gender information recorded in the i2b2 dataset, regardless of the timing, with a high level of accuracy, and categorized under the Demographics panel, specifically within the Gender item.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Language@19:22:53</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Language</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Language\</item_key> <item_icon>FA</item_icon> <tooltip>Demographic \ Language</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with any language recorded in the demographics section of their electronic medical record.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Oasis@13:55:56</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Oasis</item_name> <item_key>\\BIRN\BIRN\oasis\</item_key> <item_icon>FA</item_icon> <tooltip>oasis</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find any patient encounter where the term "Oasis" appears in the BIRN field with a specificity scale of 0, accuracy scale of 100, and a panel timing of ANY, with the specificity scale being set to 0 indicating that all possible values for the specificity scale are considered, and the panel timing set to ANY, meaning the timeframe of the encounter is not restricted. The query is named "Oasis@13:55:56" and the class is set to ENC, indicating that the term "Oasis" is an 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>Immunog-Urinaly@15:21:41</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Immunoglobulin</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB32) Immunology\(LLB40) Immunoglobulin\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests \ Immunology \ Immunoglobulin</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>Urinalysis</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB48) Urinalysis\(LLB49) Urinalysis\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests \ Urinalysis \ Urinalysis</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances where both Immunoglobulin and Urinalysis lab tests were performed on the same patient, at any time, with a high level of accuracy and specificity.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns3:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/"> <query_name>PATIENT-PATIENT@12:26: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>0</hlevel> <item_name>PATIENT:HIVE:1000000018</item_name> <item_key>PATIENT:HIVE:1000000018</item_key> <tooltip>PATIENT:HIVE:1000000018</tooltip> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>0</hlevel> <item_name>PATIENT:HIVE:1000000044</item_name> <item_key>PATIENT:HIVE:1000000044</item_key> <tooltip>PATIENT:HIVE:1000000044</tooltip> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns3:query_definition> ```
I want to find patients with the following characteristics: 1. Patient panel 1: - Any timing - Specificity scale: 0 - Accuracy scale: 100 - Invert: 0 - Total item occurrences: 1 - Item: PATIENT:HIVE:100000018 (no synonym) 2. Patient panel 2: - Any timing - Specificity scale: 0 - Accuracy scale: 10 - Invert: 0 - Total item occurrences: 1 - Item: PATIENT:HIVE:100000004 (no synonym)
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Gender@19:25:14</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Gender</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\</item_key> <item_icon>FA</item_icon> <tooltip>Demographic \ Gender</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find the gender of the patient in the Demographics table using the i2b2 query builder with a specificity scale of 0, accuracy scale of 100, and an ANY timing for both the query and panel. The query is named "Gender@19:25:14" and the panel is numbered 1, with the invert value set to 0. 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>Expression Prof@12:37:16</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Expression Profiles Data</item_name> <item_key>\\i2b2_EXPR\i2b2\Expression Profiles Data\</item_key> <item_icon>FA</item_icon> <tooltip>Expression Profiles Data</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of Expression Profiles Data within the i2b2 system, regardless of the specificity scale or timing, with a total of one item occurrence, and the panel accuracy set to 100%, while also specifying that this is the first panel and the item is not a synonym. The query will be named "Expression Prof@12:37:16" and the query timing is set to "ANY."
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Oasis@14:17:21</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Oasis</item_name> <item_key>\\BIRN\BIRN\oasis\</item_key> <item_icon>FA</item_icon> <tooltip>oasis</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of the term "Oasis" in the BIRN (Bioinformatics Research Network) data set, using the exact phrase match "\\BIRN\BIRN\oasis\", with a specificity scale of 0 and a total item occurrence of 1, considering the timing as "ANY" and with an accuracy scale of 100, and the panel number is set to 1. This query is not a synonym and belongs to the ENC (Encounter) 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>Expression Prof@14:22:31</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Expression Profiles Data</item_name> <item_key>\\i2b2_EXPR\i2b2\Expression Profiles Data\</item_key> <item_icon>FA</item_icon> <tooltip>Expression Profiles Data</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of Expression Profiles Data in the i2b2 system, with a specificity scale of 0 and a panel accuracy scale of 100, where the timing is not restricted to any particular period (ANY). The query should be named "Expression Prof@14:22:31" and should include only one item in the panel, which is the Expression Profiles Data. The item should be of the ENC class and 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>Immunog-Urinaly@15:22:00</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Immunoglobulin</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB32) Immunology\(LLB40) Immunoglobulin\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests \ Immunology \ Immunoglobulin</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>Urinalysis</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB48) Urinalysis\(LLB49) Urinalysis\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests \ Urinalysis \ Urinalysis</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients who have had both an Immunoglobulin test and a Urinalysis test performed, with no specific timing requirement for when these tests were conducted, and with a high level of accuracy (1000%) in the results. The Immunoglobulin test is located under the Labtests > Immunology category, while the Urinalysis test is found under Labtests > Urinalysis.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Immunog-Urinaly@15:23: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>Immunoglobulin</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB32) Immunology\(LLB40) Immunoglobulin\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests \ Immunology \ Immunoglobulin</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>Urinalysis</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB48) Urinalysis\(LLB49) Urinalysis\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests \ Urinalysis \ Urinalysis</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of immunoglobulin tests and urinalysis tests within the specified time frame, with a specificity scale of 0 and accuracy scale of 100, grouped into two separate panels, where the results are not inverted.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Oasis@17:08:45</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Oasis</item_name> <item_key>\\BIRN\BIRN\oasis\</item_key> <item_icon>FA</item_icon> <tooltip>oasis</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of the term "Oasis" in the BIRN (Biomedical Informatics Research Network) section of the database, with no specific time constraint, and with a high level of accuracy (1000%), 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>Dose@13:50: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>5</hlevel> <item_name>Ibuprofen</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\(LME100) nonsteroidal anti-inflammatory agents\ibuprofen\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ central nervous system agents \ analgesics \ nonsteroidal anti-inflammatory agents \ ibuprofen</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Dose</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Dose\</modifier_key> <applied_path>\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\(LME100) nonsteroidal anti-inflammatory agents\ibuprofen\%</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 Ibuprofen was prescribed or administered to patients with a specific dosage, within a certain time frame, and with a high level of accuracy. The query will focus on the medication category of central nervous system agents, specifically analgesics, and nonsteroidal anti-inflammatory agents.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.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@13:58: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>3</hlevel> <item_name>Analgesics</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ central nervous system agents \ analgesics</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Patient Instructions</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of medications related to analgesics in the central nervous system agents category, with any specificity scale and timing, and constrained by the "Patient Instructions" modifier applied to the medications path.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory system@15:37: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>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) in the i2b2 database, 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, using a panel accuracy scale of 100, and without inverting 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>Circulatory system@20:55:56</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>2</hlevel> <item_name>Congenital anomalies</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Congenital anomalies (740-759)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Congenital anomalies</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with diagnoses related to the circulatory system (ICD codes 390-459) and congenital anomalies (ICD codes 740-759) in the i2b2 database, with any timing and a specificity scale of 0, using a panel with a total of two items and an accuracy scale of 100, without inverting 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>Admit Diagnosis@15:06:39</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key> <applied_path>\Diagnoses\(P00-P96) Cert~6976\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with a primary diagnosis of conditions originating in the perinatal period (p0-p96) at the time of admission, with a high level of specificity and accuracy, using the ICD-10 and ICD-9 coding system for 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>Admit-Princ-Secon@16:48:39</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key> <applied_path>\Diagnoses\(P00-P96) Cert~6976\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Principal Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Principal Diagnosis\</modifier_key> <applied_path>\Diagnoses\(P00-P96) Cert~6976\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Secondary Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Secondary Diagnosis\</modifier_key> <applied_path>\Diagnoses\(P00-P96) Cert~6976\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with certain conditions originating in the perinatal period (codes P0-P96) that have been recorded as either the admit 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>Diagnoses@18:58:52</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Diagnoses</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses recorded in the i2b2 database with any timing, using a specificity scale of 0, and a panel accuracy scale of 100, with a single item occurrence, and a single panel that includes the Diagnoses item with a class of ENC and an icon of FA.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Female@19:19:46</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>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 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-Bosnian@11:59:08</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>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>Bosnian</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Language\Bosnian\</item_key> <item_icon>MA</item_icon> <tooltip>Demographic \ Language \ Bosnian</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 Bosnian language preference, with no specific time constraints, and I want the query to be highly accurate with a specificity 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>Route@15:12:06</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>Acetaminophen</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\(LME97) miscellaneous analgesics\acetaminophen\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ central nervous system agents \ analgesics \ miscellaneous analgesics \ acetaminophen</tooltip> <class>ENC</class> <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')</value_constraint> <value_type>TEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of the medication "Acetaminophen" that have been administered through the "PR" (rectal) route, with a specificity scale of 0, a panel accuracy scale of 100, and a panel number of 1, with the results being displayed in any time frame.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns3:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/"> <query_name>PATIENT-PATIENT@12:26:01@9:37: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>0</hlevel> <item_name>(PrevQuery) PATIENT-PATIENT@12:26:01</item_name> <item_key>masterid:29806</item_key> <tooltip>PATIENT-PATIENT@12:26:01 [8-16-2023] [demo]</tooltip> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns3:query_definition> ```
I want to find all patients in the database with any encounter time (ANY) and a specificity scale of 0, where the panel timing is also ANY, and the panel accuracy scale is set to 100. The query includes a single item from the panel with the name "PATIENT-PATIENT@12:26:01" and the key "masterid:29806," which is not a synonym. This query is a part of a previous query created on August 16, 2023, and has a tooltip description of "PATIENT-PATIENT@12:26:01 [8-16-2023] [demo]."
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Diagnoses@19:14:25</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Diagnoses</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses recorded in the i2b2 database, with no specificity scale applied, at any time, and with a total occurrence of 1, using the ENC (Encounter) 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> Visit at ages @13:41:17</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name> Visit at ages 35-44 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\35-44 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 35-44 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all visits where the patient was between the ages of 35 and 44 years old at the time of the visit.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Visit at age &gt;=@13:48:33</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Visit at age &gt;= 65 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\&gt;= 65 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ &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 visits where the patient's age is greater than or equal to 65 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> 35-44 years o@08:03:15</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name> 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 between the ages of 35 and 444 years old.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Operations on nose, mouth and pharynx-Visit at age &amp;gt;= 65 years old-Female@14:54: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>Operations on nose, mouth and pharynx</item_name> <item_key>\\i2b2_PROC\i2b2\Procedures\PRC\ICD9 (Inpatient)\(21-29) Operations on nose, mouth and pharynx\</item_key> <item_icon>FA</item_icon> <tooltip>Procedures \ ICD9 (Inpatient) \ Operations on nose, mouth and pharynx</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>Visit at age &gt;= 65 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\&gt;= 65 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ &gt;= 65 years old</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>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 65 years or older who have had procedures related to the nose, mouth, or pharynx during their hospital visit.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Route@13:58:52</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Nonsteroidal anti-inflammatory agents</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME92) central nervous system agents\(LME93) analgesics\(LME100) nonsteroidal anti-inflammatory agents\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ central nervous system agents \ analgesics \ nonsteroidal anti-inflammatory agents</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 instances of nonsteroidal anti-inflammatory agents that have been prescribed to patients, regardless of the specificity or timing, and constrain the results by the route of administration of the medication.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.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;= 65 years old@11:58:51</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>&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 patients who are 65 years old or older based on their demographic information in the i2b2 database using the query builder.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Fetal malnutrition without ment-Fetal malnutrition without mention of "ligh-Fetal malnutrition without mention of "ligh@13:40: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>Fetal malnutrition without mention of "light-for-dates"</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Conditions in the perinatal period (760-779)\(764) Slow fetal growth and fetal~\(764-2) Fetal malnutrition withou~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Conditions in the perinatal period \ Slow fetal growth and fetal malnutrition \ Fetal malnutrition without mention of "light-for-dates"</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\Conditions in the perinatal period (760-779)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Fetal malnutrition without mention of "light-for-dates", unspecified [weight]</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Conditions in the perinatal period (760-779)\(764) Slow fetal growth and fetal~\(764-2) Fetal malnutrition withou~\(764-20) Fetal malnutrition witho~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ ... \ Fetal malnutrition without mention of "light-for-dates" \ Fetal malnutrition without mention of "light-for-dates", unspecified [weight]</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\Conditions in the perinatal period (760-779)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Fetal malnutrition without mention of "light-for-dates", unspecified [weight]</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Conditions in the perinatal period (760-779)\(764) Slow fetal growth and fetal~\(764-2) Fetal malnutrition withou~\(764-20) Fetal malnutrition witho~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ ... \ Fetal malnutrition without mention of "light-for-dates" \ Fetal malnutrition without mention of "light-for-dates", unspecified [weight]</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\Conditions in the perinatal period (760-779)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>1</hlevel> <item_name>Genetic susceptibility to disease (V84)</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\zz V-codes\Genetic susceptibility to disease (V84)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ V-codes \ Genetic susceptibility to disease (V84)</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\zz V-codes\%</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 a diagnosis of fetal malnutrition without mention of "light-for-dates" and "Fetal malnutrition without mention of "light-for-dates", unspecified [weight]" as either an admit or secondary diagnosis, as well as patients with a genetic susceptibility to disease as a 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>&gt;= 65 years old@13:24:22</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>&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 patients who are 65 years old or older, with any timing and specificity scale set to 0, using the Demographics > Age > 65 years old item in the i2b2 query builder. The panel timing is set to ANY, and the panel accuracy scale is set to 100, with no inversion applied. This query is part of panel 1 with a total of 1 item occurrence, and the class is set to ENC. The icon used is FA, and this item is not a synonym.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Visit at age &gt;= 65 years old@13:30: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>Visit at age &gt;= 65 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\&gt;= 65 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ &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 visits where the patient was 65 years old or older at the time of the visit.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Visit at age &gt;= 65 years old-Other "heavy-for-dates" infants-Other "heavy-for-dates" infants@13:33: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>Visit at age &gt;= 65 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\&gt;= 65 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ &gt;= 65 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Other "heavy-for-dates" infants</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Conditions in the perinatal period (760-779)\(766) Disorders relating to long ~\(766-1) Other heavy-for-dates inf~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Conditions in the perinatal period \ Disorders relating to long gestation and high birthweight \ Other "heavy-for-dates" infants</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Other "heavy-for-dates" infants</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Conditions in the perinatal period (760-779)\(766) Disorders relating to long ~\(766-1) Other heavy-for-dates inf~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Conditions in the perinatal period \ Disorders relating to long gestation and high birthweight \ Other "heavy-for-dates" infants</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\Conditions in the perinatal period (760-779)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who had a visit at age 65 years or older and were diagnosed with "heavy-for-dates" infants during their stay in the hospital. Additionally, I want to limit the search to only include "heavy-for-dates" infants diagnoses that were identified as the primary reason for admission.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Other "heavy-for-dates" infants-Other "heavy-for-dates" infants-Extreme immaturity, 2,500+ grams@13:37:18</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Other "heavy-for-dates" infants</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Conditions in the perinatal period (760-779)\(766) Disorders relating to long ~\(766-1) Other heavy-for-dates inf~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Conditions in the perinatal period \ Disorders relating to long gestation and high birthweight \ Other "heavy-for-dates" infants</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Other "heavy-for-dates" infants</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Conditions in the perinatal period (760-779)\(766) Disorders relating to long ~\(766-1) Other heavy-for-dates inf~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Conditions in the perinatal period \ Disorders relating to long gestation and high birthweight \ Other "heavy-for-dates" infants</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\Conditions in the perinatal period (760-779)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Extreme immaturity, 2,500+ grams</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Conditions in the perinatal period (760-779)\(765) Disorders relating to short~\(765-0) Extreme immaturity\(765-09) Extreme immaturity, 2,50~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ ... \ Disorders relating to short gestation and unspecified low birthweight \ Extreme immaturity \ Extreme immaturity, 2,500+ grams</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\Conditions in the perinatal period (760-779)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all records of infants that are considered "heavy-for-dates" and have an extreme immaturity with a weight of 2,50+ grams at 13:37:18, with a specificity scale of 0 and a panel timing of ANY, while constraining the query to admit diagnosis and considering both panels for any time period.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>&gt;= 65 years old@11:57: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>&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 patients who are 65 years old or older, at any point in time, with a high level of specificity, and no inversion, using the Demographics panel in the i2b2 query builder.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory system@20:27:29</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>2</hlevel> <item_name>Congenital anomalies</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Congenital anomalies (740-759)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Congenital anomalies</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system (ICD-9 codes 390-459) and congenital anomalies (ICD-9 codes 740-759) with a specificity scale of 0, any timing, and an accuracy scale of 100, with no inversion applied. The query will be named "Circulatory system@20:27:29" and will search for these diagnoses 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>Extreme immaturity, unspecified [weight]@13:37: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>Extreme immaturity, unspecified [weight]</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Conditions in the perinatal period (760-779)\(765) Disorders relating to short~\(765-0) Extreme immaturity\(765-00) Extreme immaturity, unsp~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ ... \ Disorders relating to short gestation and unspecified low birthweight \ Extreme immaturity \ Extreme immaturity, unspecified [weight]</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\Conditions in the perinatal period (760-779)\%</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 has been diagnosed with Extreme Immaturity, unspecified [weight] as their principal diagnosis, at any point in time, with a specificity scale of 0 and a panel accuracy scale of 100, and with a single 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>Vitamin A &amp; D topical@13:58:28</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Vitamin A &amp; D topical</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME234) topical agents\(LME237) dermatological agents\(LME243) topical emollients\vitamin A &amp; D topical\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ topical agents \ dermatological agents \ topical emollients \ vitamin a &amp; d topical</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Frequency</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Frequency\</modifier_key> <applied_path>\i2b2\Medications\MUL\(LME234) topical agents\(LME237) dermatological agents\(LME243) topical emollients\vitamin A &amp;amp; D topical\%</applied_path> <constrain_by_value> <value_operator>IN</value_operator> <value_constraint>('AC')</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 Vitamin A & D topical medications administered to patients in the i2b2 database, with a specificity scale of 0 and an accuracy scale of 100, and constrained by the frequency modifier 'AC' (active component) in the applied path.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Visit at ages 35-44 years old@14:38: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> Visit at ages 35-44 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\35-44 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 35-44 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all visits where the patient was between the ages of 35 and 44 years old at the time of the visit.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory system@15:37: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>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system (ICD codes 390-459) within the i2b2 database, with a specificity scale of 0 and a panel accuracy scale of 100, and the query should include any timing and be applied to a single panel with a total of one item occurrence.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Vitamin A &amp; D topical@13:59: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>Vitamin A &amp; D topical</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME234) topical agents\(LME237) dermatological agents\(LME243) topical emollients\vitamin A &amp; D topical\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ topical agents \ dermatological agents \ topical emollients \ vitamin a &amp; d topical</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Frequency</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Frequency\</modifier_key> <applied_path>\i2b2\Medications\MUL\(LME234) topical agents\(LME237) dermatological agents\(LME243) topical emollients\vitamin A &amp;amp; D topical\%</applied_path> <constrain_by_value> <value_operator>IN</value_operator> <value_constraint>('AC')</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 Vitamin A & D topical medication use within the i2b2 database, regardless of the timing or specificity, with the medication frequency being "AC" (as needed) and the panel accuracy set to 100%. The query should include only one item and the medication should be classified as an ENC (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>Male@14:55:40</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Male</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key> <item_icon>LA</item_icon> <tooltip>Demographic \ Gender \ Male</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Immunodeficiency with predominantly antibody defects</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(D50-D89) Dise~nx0c\(D80-D89) Cert~cp5q\(D80) Immunode~dr5j\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism (d50-d89) \ Certain disorders involving the immune mechanism (d80-d89) \ Immunodeficiency with predominantly antibody defects</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>4</hlevel> <item_name>IgE (Group:IGE)</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB32) Immunology\(LLB40) Immunoglobulin\IGE\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests \ Immunology \ Immunoglobulin \ IgE (Group:IGE)</tooltip> <class>ENC</class> <constrain_by_value> <value_operator>LT</value_operator> <value_constraint>29</value_constraint> <value_unit_of_measure>iu/ml</value_unit_of_measure> <value_type>NUMBER</value_type> </constrain_by_value> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all male patients who have been diagnosed with Immunodeficiency with predominantly antibody defects and have IgE (Group: IGE) levels less than or equal to 29 iu/ml.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Admit D-Princip@15:08: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>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> </ns4:query_definition> ```
I want to find all patients with diagnoses related to the circulatory system (ICD codes 390-459) who were admitted to the hospital and had this diagnosis as either their principal diagnosis or an admission 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>Admit D-Princip@15:09:46</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>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> <item> <hlevel>2</hlevel> <item_name>Events of pregnancy</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Events of pregnancy (630-677)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Events of pregnancy</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\Events of pregnancy (630-677)\%</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> </ns4:query_definition> ```
I want to find all diagnoses related to the Circulatory system (codes 390-459) that have either been marked as Admit Diagnosis or Principal Diagnosis, as well as any diagnoses related to Events of pregnancy (codes 630-67) that have been marked as Principal Diagnosis.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory system@20:24:50</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>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> <item> <hlevel>2</hlevel> <item_name>Congenital anomalies</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Congenital anomalies (740-759)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Congenital anomalies</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with diagnoses related to the circulatory system (ICD codes 390-459) and congenital anomalies (ICD codes 740-759) 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>Diseases of the digestive system (k00-k94)-&amp;gt;= 65 years old-Male@10:27: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>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> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key> <applied_path>\Diagnoses\(K00-K94) Dise~rl1r\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>&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> <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>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 diagnoses of diseases related to the digestive system (ICD10-ICD9 codes K0-K94) for male patients who are 65 years or older.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Digesti-Gastroi@16:36:06</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Gastrointestinal agents</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME136) gastrointestinal agents\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ gastrointestinal agents</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients who have diagnoses related to the digestive system (ICD codes 520-579) and have been prescribed medications classified as gastrointestinal agents (LME136).
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Antin-Injur-Injur@16:52: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>Antineoplastics</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME55) antineoplastics\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ antineoplastics</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>2</hlevel> <item_name>Biologicals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME63) biologicals\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ biologicals</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Injury and poisoning</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Injury and poisoning (800-999)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Injury and poisoning</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <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>Injury and poisoning</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Injury and poisoning (800-999)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Injury and poisoning</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who have been prescribed antineoplastic medications or biologicals and have a diagnosis related to injury and poisoning.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.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-Abnor-Birth@16:49:40</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key> <applied_path>\Diagnoses\(P00-P96) Cert~6976\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>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> <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>Birth trauma (p10-p15)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\(P10-P15) Birt~zb3z\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96) \ Birth trauma (p10-p15)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who have been admitted with certain conditions originating in the perinatal period (p0-p96) and have abnormal findings on neonatal screening (p09) or birth trauma (p10-p15) as their 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>Circulatory system@20:25: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> <item> <hlevel>2</hlevel> <item_name>Congenital anomalies</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Congenital anomalies (740-759)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Congenital anomalies</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with diagnoses related to the circulatory system and congenital anomalies within the specified ICD-9 coding ranges (390-459 for Circulatory system and 740-759 for Congenital anomalies). The query will have a specificity scale of 0 and an accuracy scale of 100, indicating that it will return all patients with any level of specificity and high accuracy. The query timing is set to ANY, meaning that the diagnoses could have occurred at any point in 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>Circulatory system@20:30:30</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>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> <item> <hlevel>2</hlevel> <item_name>Congenital anomalies</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Congenital anomalies (740-759)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Congenital anomalies</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system (codes 390-459) and congenital anomalies (codes 740-759) with a specificity scale of 0 and an accuracy scale of 100, 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>Diseases of the respiratory system (j00-j99)-&amp;gt;= 65 years old-Male@11:45:15</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>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> <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>&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> <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>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 aged 65 years or older with diagnoses related to diseases of the respiratory system (ICD10 codes J00-J9).
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.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@20:33:40</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>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> <item> <hlevel>2</hlevel> <item_name>Congenital anomalies</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Congenital anomalies (740-759)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Congenital anomalies</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system (ICD-9 codes 390-459) and congenital anomalies (ICD-9 codes 740-759) in the i2b2 database, with a specificity scale of 0 and an accuracy scale of 100, looking at any time frame, and displaying the results in a panel with two items, one for each 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>Visit at age &gt;=@17:19: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>Visit at age &gt;= 65 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\&gt;= 65 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ &gt;= 65 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Visit at age &gt;= 85 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\&gt;= 85 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ &gt;= 85 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> Visit at age 9 or less</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\0-9 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 0-9 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> Visit at ages 10-17 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\10-17 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 10-17 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> Visit at ages 18-34 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\18-34 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 18-34 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all visits where the patient's age is greater than or equal to 17 years old, with specificity scale set to 0 and any timing. The panel includes items for visits at ages 65 years old and above, 85 years old and above, 9 years old and below, and 10-17 years old, and 18-34 years old. Each item has a class of ENC and is not a synonym. The tooltip for each item provides further details about the visit and age range.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.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;= 65 y-Admit D@07:18: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>&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> <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>Symptoms and signs involving speech and voice (r47-r49)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(R00-R99) Symp~mt2x\(R47-R49) Symp~aifz\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Symptoms, signs and abnormal clinical and laboratory findings, not elsewhere classified (r00-r99) \ Symptoms and signs involving speech and voice (r47-r49)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key> <applied_path>\Diagnoses\(R00-R99) Symp~mt2x\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who are 65 years old or older and have symptoms and signs involving speech and voice (r47-r49) as an admission diagnosis.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>(t) Digestive systeConditions in t@11:52:31</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>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 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>Conditions in the perinatal period</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Conditions in the perinatal period (760-779)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Conditions in the perinatal period</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find all instances where a patient has a diagnosis related to the digestive system (ICD-9 codes 520-579) that occurred before the onset of any condition related to the perinatal period (ICD-9 codes 760-79) within the same encounter or visit.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Principal Diagn@09:48:41</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>6</hlevel> <item_name>Malignant neoplasm of breast of unspecified site</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(C00-D49) Neop~k3n8\(C00-C96) Mali~yqqr\(C00-C75) Mali~lbm0\(C50-C50) Mali~q8ki\(C50) Malignan~t60f\(C50.9) Malign~4unx\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms (c00-d49) \ Malignant neoplasms (c00-c96) \ Malignant neoplasms, stated or presumed to be primary (of specified sites), and certain specified histologies, except neuroendocrine, and of lymphoid, hematopoietic and related tissue (c00-c75) \ Malignant neoplasm of breast (c50) \ Malignant neoplasm of breast \ Malignant neoplasm of breast of unspecified site</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Principal Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Principal Diagnosis\</modifier_key> <applied_path>\Diagnoses\(C00-D49) Neop~k3n8\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with a principal diagnosis of malignant neoplasm of breast of unspecified site.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.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) Admit DiagnosisPrincipal Diagn@11:47:12</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>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> </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>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> </subquery> </ns4:query_definition> ```
I want to find patients who have an admission diagnosis of a circulatory system disorder (ICD codes 390-459) that occurred before their principal diagnosis during the same encounter.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Diagnoses@13:11:42</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Diagnoses</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses recorded in the i2b2 database, with a specificity scale of 0 and a panel accuracy scale of 100, including only one item named "Diagnoses" with the key "\\i2b2_DIAG\i2b2\Diagnoses\", and the query timing and panel timing set to ANY. The class is ENC and it is not a synonym.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>First S-Digesti@11:37:42</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>First Sample</item_name> <item_key>\\BIRN\BIRN\oasis\Images\Raw Images\First Sample\</item_key> <item_icon>FA</item_icon> <tooltip>oasis \ Images \ Raw Images \ First Sample</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all records where the "First Sample" image is associated with a diagnosis related to the digestive system (ICD code range 520-579) in the i2b2 database, with a high level of specificity and no time 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>Admit- 45--Male@10:32:48</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Diseases of the circulatory system (i00-i99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(I00-I99) Dise~3w8h\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the circulatory system (i00-i99)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key> <applied_path>\Diagnoses\(I00-I99) Dise~3w8h\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> <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> 45-54 years old</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Age\45-54 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Demographics \ Age \ 45-54 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </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>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 patients with a diagnosis of diseases of the circulatory system (ICD codes I0-I9) who are between the ages of 45 and 54 and are male.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns3:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/"> <query_name>Certain infectious and parasitic diseases (a00-b99)@10:50:38</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEVISIT</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain infectious and parasitic diseases (a00-b99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99)</tooltip> <class>ENC</class> <constrain_by_date> <date_from/> </constrain_by_date> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns3:query_definition> ```
I want to find all instances of diagnoses related to certain infectious and parasitic diseases (codes A0-B9) in the ICD10_ICD9 database, with a high level of specificity and accuracy, considering only those diagnoses made during the same visit, and without considering synonyms or date 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>Circulatory system@12:26: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>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the Circulatory system (ICD-9 codes 390-459) within the specified time frame, with a specificity scale of 0 and accuracy scale of 100, and the panel will include a single item with a hierarchy level of 2.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory sys@13:50: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 codes 390-459) with a specificity scale of 0 and an accuracy scale of 100, within any time frame, and display it on a panel with panel number 1, panel timing set to ANY, and with a total of 1 item occurrence.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory system@15:10:56</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system (ICD codes 390-459) with a specificity scale of 0, accuracy scale of 100, and any timing, using the panel named "Circulatory system" with panel number 1 and panel timing set to "ANY", and the query is named "Circulatory system@15:10:56".
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory system@15:10:56</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the Circulatory system (ICD-9 codes 390-459) with a specificity scale of 0 and an accuracy scale of 100, including any timing and with a total of 1 item occurrence. The panel will be named "Circulatory system" and will have a hierarchy level of 2. This query will be used in the i2b2 system for research purposes.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Visit at age &gt;=@16:11:02</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Visit at age &gt;= 65 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\&gt;= 65 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ &gt;= 65 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Visit at age &gt;= 85 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\&gt;= 85 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ &gt;= 85 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> Visit at age 9 or less</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\0-9 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 0-9 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> Visit at ages 10-17 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\10-17 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 10-17 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> Visit at ages 18-34 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\18-34 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 18-34 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all visits where the patient's age is greater than or equal to 65 years old, greater than or equal to 85 years old, 9 years old or younger, or between the ages of 10 and 17 years old, or between the ages of 18 and 34 years old.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory sys@13:49:30</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the Circulatory System (ICD-9 codes 390-459) with a specificity scale of 0, accuracy scale of 100, and any timing within the context of the analysis. The query will be named "Circulatory sys@13:49:30" and will have a single panel with the item "Circulatory System" as the only category, and it will 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>Circulatory sys@15:04:32</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system (ICD-9 codes 390-459) in the i2b2 database, with any specificity scale, any timing, and a panel 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>Circulatory system@15:10:56</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the Circulatory system (ICD-9 codes 390-459) within the specified time frame, using the I2b2 query builder with a specificity scale of 0 and accuracy scale of 100, with no inversion and a single occurrence required for 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>Visit at age &gt;=@15:36:04</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Visit at age &gt;= 65 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\&gt;= 65 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ &gt;= 65 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Visit at age &gt;= 85 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\&gt;= 85 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ &gt;= 85 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who had a visit at an age greater than or equal to 65 years old or 85 years old, and the timing of the query is anytime, with a specificity scale of 0 and a panel accuracy scale of 100, with no inversion applied, and the total number of occurrences for each item 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> Visit at age 9@15:36:47</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name> Visit at age 9 or less</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\0-9 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 0-9 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> Visit at ages 10-17 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\10-17 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 10-17 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> Visit at ages 18-34 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\18-34 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 18-34 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> Visit at ages 45-54 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\45-54 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 45-54 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all visits where the patient was aged 9 years or younger, aged between 10-17 years old, aged between 18-34 years old, or aged between 45-54 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> Visit at age 9@15:38: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> Visit at age 9 or less</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\0-9 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 0-9 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> Visit at ages 10-17 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\10-17 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 10-17 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> Visit at ages 18-34 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\18-34 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 18-34 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> Visit at ages 45-54 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\45-54 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 45-54 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 have had a visit at age 9 or less, between the ages of 10-17, 18-34, or 45-54 years old. This query will provide information about the age of the patients at the time of their visit and will help me analyze visit patterns among different age groups.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.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) Anemia, unspeciLymphocyte immu@00:51:15</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <subquery_constraint> <first_query> <query_id>Observation A</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Observation B</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Observation A</query_id> <query_type>EVENT</query_type> <query_name>Observation A</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>0</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Anemia, unspecified</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(D50-D89) Dise~nx0c\(D60-D64) Apla~8sol\(D64) Other anemias\(D64.9) Anemia~8pgh\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism (d50-d89) \ Aplastic and other anemias and other bone marrow failure syndromes (d60-d64) \ Other anemias \ Anemia, unspecified</tooltip> <class>ENC</class> <constrain_by_date> <date_from>2020-01-01T00:00:00.000-05:00</date_from> </constrain_by_date> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Observation B</query_id> <query_type>EVENT</query_type> <query_name>Observation B</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>0</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Lymphocyte immune globulin anti-thymocyte</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME169) immunologic agents\(LME171) immune globulins\lymphocyte immune globulin, anti-thymocyte\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ immunologic agents \ immune globulins \ lymphocyte immune globulin anti-thymocyte</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 Anemia, unspecified, who have not had a Lymphocyte immune globulin anti-thymocyte medication event within the same instance number as the anemia diagnosis. The time range for the query is any time and the specificity scale is set to 0. The first subquery is for Observation A, which is an event-type query with a specificity scale of 0, looking for Anemia, unspecified with a diagnosis code in the range of (D64.9). The second subquery is for Observation B, also an event-type query with a specificity scale of 0, looking for Lymphocyte immune globulin anti-thymocyte medication. The subquery constraint is a less than operator, comparing the start dates of the two events.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name> Visit at age 9@15:39: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> Visit at age 9 or less</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\0-9 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 0-9 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> Visit at ages 10-17 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\10-17 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 10-17 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> Visit at ages 18-34 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\18-34 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 18-34 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who had a visit when they were aged 0-34 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> Visit at age 9@15:40:42</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name> Visit at age 9 or less</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\0-9 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 0-9 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name> Visit at ages 10-17 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\10-17 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 10-17 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who had a visit at the age of 9 or less or between the ages of 10-17 years old, with no specific timing restrictions, and with a high level of accuracy.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Respira-Respira@10:38: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>Respiratory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Respiratory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Respiratory agents</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with diagnoses related to the respiratory system (ICD codes 460-519) and who have been prescribed respiratory agents (medications) from 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) Aplastic and otAnti-infectives@01:13:30</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>Aplastic and other anemias and other bone marrow failure syndromes (d60-d64)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(D50-D89) Dise~nx0c\(D60-D64) Apla~8sol\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism (d50-d89) \ Aplastic and other anemias and other bone marrow failure syndromes (d60-d64)</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>Anti-infectives</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ anti-infectives</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find all patients who have been diagnosed with Aplastic and other anemias and other bone marrow failure syndromes (ICD-10 codes D60-D64) and have also been prescribed Anti-infectives (i2b2 Medications codes LME10) within the same encounter. The query will be looking for the first occurrence of both events, with a specificity scale of 0 and a time constraint where the diagnosis occurs before the prescription of Anti-infectives.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name> Visit at ages @15:41:40</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name> Visit at ages 10-17 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\10-17 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ 10-17 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all visits where the patient was between the ages of 10 and 17 years old at the time of the visit.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory sys@17:09: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>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find any diagnoses related to the circulatory system (ICD codes 390-459) using the i2b2 query builder with a specificity scale of 0, panel timing set to ANY, and panel accuracy scale set to 100, with a single item in the panel.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns3:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/"> <query_name>Certain infectious and parasitic diseases (a00-b99)@10:52:20</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEVISIT</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>5</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain infectious and parasitic diseases (a00-b99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99)</tooltip> <class>ENC</class> <constrain_by_date> <date_from/> </constrain_by_date> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>1</hlevel> <item_name>Diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism (d50-d89)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(D50-D89) Dise~nx0c\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism (d50-d89)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns3:query_definition> ```
I want to find patients with diagnoses related to certain infectious and parasitic diseases (codes A0-B9) and diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism (codes D50-D89) within the same visit, with a specificity scale of 0, accuracy scale of 100, and at least 5 total occurrences of these diagnoses.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns3:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/"> <query_name>Human i-Kidney @16:51:35</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>6</hlevel> <item_name>Human immunodeficiency virus, type 2[HIV 2]</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Infectious and parasitic diseases (001-139)\Other viral and chlamydial diseases (070-079)\(079) Viral and chlamydial infect~\(079-5) Retrovirus infection in c~\(079-53) Human immunodeficiency v~\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ ... \ Retrovirus infection in conditions classified elsewhere and of unspecified site \ Human immunodeficiency virus, type 2 [HIV-2] infection in conditions classified elsewhere and of unspecified site</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> <item> <hlevel>6</hlevel> <item_name>Human immunodeficiency virus, type 2 [HIV-2] infection in conditions classified elsewhere and of unspecified site</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Infectious and parasitic diseases (001-139)\Other viral and chlamydial diseases (070-079)\(079) Viral and chlamydial infect~\(079-5) Retrovirus infection in c~\(079-53) Human immunodeficiency v~\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ ... \ Retrovirus infection in conditions classified elsewhere and of unspecified site \ Human immunodeficiency virus, type 2 [HIV-2] infection in conditions classified elsewhere and of unspecified site</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> <item> <hlevel>2</hlevel> <item_name>Human immunodeficiency virus [hiv] disease (b20)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\(B20-B20) Huma~4dsc\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99) \ Human immunodeficiency virus [hiv] disease (b20)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>5</hlevel> <item_name>Human immunodeficiency virus, type 2 [hiv 2] as the cause of diseases classified elsewhere</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\(B95-B97) Bact~28iq\(B97) Viral ag~m3ak\(B97.3) Retrov~aqap\(B97.35) Human~gjvx\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99) \ Bacterial and viral infectious agents (b95-b97) \ Viral agents as the cause of diseases classified elsewhere \ Retrovirus as the cause of diseases classified elsewhere \ Human immunodeficiency virus, type 2 [hiv 2] as the cause of diseases classified elsewhere</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>2</hlevel> <item_name>immunodeficiency disorders, except human immunodeficiency virus [hiv] disease</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(D50-D89) Dise~nx0c\(D80-D89) Cert~cp5q\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism (d50-d89) \ immunodeficiency disorders, except human immunodeficiency virus [hiv] disease</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>4</hlevel> <item_name>Positive serological or viral culture findings for human immunodeficiency virus (HIV) associated virus (HTLV-III/LAV)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(R00-R99) Symp~mt2x\(R70-R79) Abno~odlj\(R76) Other ab~diii\(795.8)Positiv~89t3\</item_key> <item_icon>LI</item_icon> <tooltip>Diagnoses \ Symptoms, signs and abnormal clinical and laboratory findings, not elsewhere classified (r00-r99) \ Abnormal findings on examination of blood, without diagnosis (r70-r79) \ Other abnormal immunological findings in serum \ Positive serological or viral culture findings for human immunodeficiency virus (HIV) associated virus (HTLV-III/LAV)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>2</hlevel> <item_name>immunodeficiency disorders, except human immunodeficiency virus [hiv] disease</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(D50-D89) Dise~nx0c\(D80-D89) Cert~cp5q\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism (d50-d89) \ immunodeficiency disorders, except human immunodeficiency virus [hiv] disease</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>2</hlevel> <item_name>Human immunodeficiency virus [hiv] disease (b20)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\(B20-B20) Huma~4dsc\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99) \ Human immunodeficiency virus [hiv] disease (b20)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>HIV disease</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Infectious and parasitic diseases (001-139)\(042) Human immunodeficiency viru~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Infectious and parasitic diseases \ Human immunodeficiency virus [HIV] disease</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>HIV infection, symptomatic</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Infectious and parasitic diseases (001-139)\(042) Human immunodeficiency viru~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Infectious and parasitic diseases \ Human immunodeficiency virus [HIV] disease</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Human immunodeficiency virus [HIV] disease</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Infectious and parasitic diseases (001-139)\(042) Human immunodeficiency viru~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Infectious and parasitic diseases \ Human immunodeficiency virus [HIV] disease</tooltip> <class>ENC</class> <item_is_synonym>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>Kidney transplant status</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(Z00-Z99) Fact~rmj9\(Z77-Z99) Pers~uv8p\(Z94) Transpla~aix2\(Z94.0) Kidney~rmz6\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Factors influencing health status and contact with health services (z00-z99) \ Persons with potential health hazards related to family and personal history and certain conditions influencing health status (z77-z99) \ Transplanted organ and tissue status \ Kidney transplant status</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns3:query_definition> ```
I want to find patients who have been diagnosed with immunodeficiency disorders, except for human immunodeficiency virus (HIV) disease, and have had positive serological or viral culture findings for human immunodeficiency virus (HIV) associated virus (HTLV-III/LAV), as well as patients with HIV disease or HIV infection, symptomatic, and those with a kidney transplant status.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.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@17:09: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>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system (ICD-9 codes 390-459) with a specificity scale of 0, accuracy scale of 100, and no inversion, covering any time period, and including only one item in the panel.