henrymark/biobert-biomedical-ner
Token Classification
•
Updated
•
13
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>Operations on r@13:06: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>Operations on respiratory system</item_name>
<item_key>\\i2b2_PROC\i2b2\Procedures\PRC\ICD9 (Inpatient)\(30-34) Operations on respiratory system\</item_key>
<item_icon>FA</item_icon>
<tooltip>Procedures \ ICD9 (Inpatient) \ Operations on respiratory system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<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>
</ns4:query_definition>
``` |
I want to find all patients who have had any procedure related to the respiratory system, including operations on the nose, mouth, and pharynx, as indicated by ICD-9 (Inpatient) codes 30-34 and 21-29, with a specificity scale of 0 and accuracy scale of 100, regardless of the timing of the procedure. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Asthma-Adrenal@15:36: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>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<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>Adrenal cortical steroids</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis of asthma who have also been prescribed adrenal cortical steroids at any point in time, with a high level of specificity and accuracy. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Circulatory sys@08:41:16</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all diagnoses related to the Circulatory system (ICD codes 390-459) with any specificity and timing, 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>Admit D-Seconda@19:30: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>Chronic Rheumatic heart disease</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Chronic Rheumatic heart disease (393-398)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system \ Chronic Rheumatic heart disease</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</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>Secondary Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Secondary Diagnosis\</modifier_key>
<applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with a diagnosis of Chronic Rheumatic Heart Disease (ICD-9 code 393-398) in the Circulatory System (390-459) category, who had this diagnosis as either their Admit Diagnosis or Secondary Diagnosis, with a specificity scale of 0 and an accuracy scale of 100, 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>Asthma-Prednis@10:16:09</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<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>Prednisolone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisolone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisolone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Prednisone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis of asthma who have been prescribed either prednisolone or prednisone medication 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>Asthma-Prednis@15:38:04</query_name>
<query_timing>SAMEVISIT</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Prednisolone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisolone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisolone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Prednisone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who have been diagnosed with Asthma and have been prescribed either Prednisolone or Prednisone medication during the same 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>Operations on n@15:39:59</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name>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>
<item>
<hlevel>3</hlevel>
<item_name>Operations on respiratory system</item_name>
<item_key>\\i2b2_PROC\i2b2\Procedures\PRC\ICD9 (Inpatient)\(30-34) Operations on respiratory system\</item_key>
<item_icon>FA</item_icon>
<tooltip>Procedures \ ICD9 (Inpatient) \ Operations on respiratory system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all procedures related to operations on the nose, mouth, pharynx, and respiratory system performed on in the inpatient setting, as categorized by the ICD9 (Inpatient) coding system. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Esophageal refl@15:42: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>5</hlevel>
<item_name>Esophageal reflux</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\(530) Diseases of esophagus\(530-8) Other specified disorders~\(530-81) Esophageal reflux\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Diseases of esophagus \ Other specified disorders of esophagus \ Esophageal reflux</tooltip>
<class>ENC</class>
<item_is_synonym>true</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis of Esophageal reflux, with any specificity and time range, using the ICD-10 code (530.81) for Other specified disorders of the esophagus, in the Digestive system category, within the Diseases of the esophagus subcategory, under the broader category of Diagnoses. This query should be applied to all data and has a high accuracy scale of 100. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Asthma@15:49:17</query_name>
<query_timing>SAMEVISIT</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who have been diagnosed with asthma during the same 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>Asthma@15:50:45mbcc</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with a diagnosis of asthma in the respiratory system category, specifically chronic obstructive diseases, with a high accuracy scale of 100 and no specific time frame constraint. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>NB_Asthma@15:51: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>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients who have ever been diagnosed with asthma, a chronic respiratory condition, within the i2b2 database using the specific encoding and categorization provided in the query builder XML. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Adrenal-Patient@15:55: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>Adrenal cortical steroids</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids</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>Hormones</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Patient Instructions</modifier_name>
<modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key>
<applied_path>\i2b2\Medications\%</applied_path>
<constrain_by_value>
<value_operator>CONTAINS</value_operator>
<value_constraint>Prednisone OR Prednisolone</value_constraint>
<value_type>LARGETEXT</value_type>
</constrain_by_value>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who have been prescribed adrenal cortical steroids as medications, specifically those containing prednisone or prednisolone, and the medications are classified under the hormones 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>Prednis-Asthma@15:56: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>4</hlevel>
<item_name>Prednisone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Prednisolone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisolone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisolone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who have been prescribed prednisone or prednisolone and have been diagnosed with asthma, regardless of the timing of these 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>Asthma-Prednis@19:26: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>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<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>Prednisolone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisolone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisolone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Prednisone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis of asthma who have also been prescribed prednisolone or prednisone medications. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Adrenal cortica@15:54:05</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name>Adrenal cortical steroids</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of the medication "Adrenal cortical steroids" within the i2b2 database, with any timing, specificity scale set to 0, and a panel accuracy scale of 100. This query will search for the medication under the category of hormones, within the broader category of medications, and the search will not be inverted. The query will have a specificity scale of 0, indicating that any occurrence of the term will be considered a match, and the panel accuracy scale of 100 indicates a high level of confidence in the results. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Prednis-Asthma@15:57:24</query_name>
<query_timing>SAMEVISIT</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Prednisone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Prednisolone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisolone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisolone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who have been prescribed Prednisone or Prednisolone and have been diagnosed with Asthma during the same 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>PATIENT-Prednis@22:13:41</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>0</hlevel>
<item_name>Patient Set for "abcAsthma@21:35:03"Patient setFINISHED</item_name>
<item_key>patient_set_coll_id:59877</item_key>
<tooltip>Patient Set for "abcAsthma@21:35:03"Patient setFINISHED</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>4</hlevel>
<item_name>Prednisolone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisolone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisolone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Prednisone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who have been part of the "abcAsthma@21:35:03" patient set and have also been prescribed either prednisolone or prednisone medication at any time, with a high level of specificity and accuracy. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Prednisolone@21@22:15:22</query_name>
<query_timing>SAMEVISIT</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>0</hlevel>
<item_name>(PrevQuery)Prednisolone@21:56:25</item_name>
<item_key>masterid:27382</item_key>
<tooltip>Prednisolone@21:56:25</tooltip>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>0</hlevel>
<item_name>(PrevQuery)Prednisolone@21:57:19</item_name>
<item_key>masterid:27383</item_key>
<tooltip>Prednisolone@21:57:19</tooltip>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients who have had a Prednisolone medication order at 21:56:25 and 21:57:19 on the same visit with a specificity scale of 0 and an accuracy scale of 100. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Operati-Operati@15:58: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>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>Operations on respiratory system</item_name>
<item_key>\\i2b2_PROC\i2b2\Procedures\PRC\ICD9 (Inpatient)\(30-34) Operations on respiratory system\</item_key>
<item_icon>FA</item_icon>
<tooltip>Procedures \ ICD9 (Inpatient) \ Operations on respiratory system</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 operations on the nose, mouth, pharynx, or respiratory system (ICD9 codes 21-29 and 30-34) performed during their hospital stay. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Diseases of the@13:32:43</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>1</hlevel>
<item_name>Diseases of the circulatory system (i00-i99)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(I00-I99) Dise~3w8h\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Diseases of the circulatory system (i00-i99)</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all diagnoses related to diseases of the circulatory system, specifically those categorized under ICD10-ICD9 codes I0-I9, with a high level of specificity (100% accuracy) and no inversion applied, in any 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>Gender@13:33:14</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Gender</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographic \ Gender</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances where the gender of a patient is recorded in the Demographics section of the i2b2 database, at any time, with a high level of specificity and accuracy, using the Encounter (ENC) data 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>Gender@13:33: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>2</hlevel>
<item_name>Gender</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographic \ Gender</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with any gender recorded in the Demographics table in the i2b2 database, regardless of specificity or timing, with a high accuracy level of 100, and the query is named "Gender@13:33:45". |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.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@20:24:47</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Encounter for delivery (o80-o82)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(O00-O99) Preg~e5ik\(O80-O82) Enco~1n2b\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Pregnancy, childbirth and the puerperium (o00-o99) \ Encounter for delivery (o80-o82)</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Principal Diagnosis</modifier_name>
<modifier_key>\\ICD10_ICD9\Principal Diagnosis\</modifier_key>
<applied_path>\Diagnoses\(O00-O99) Preg~e5ik\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>2</hlevel>
<item_name>Pregnancy with abortive outcome (o00-o08)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(O00-O99) Preg~e5ik\(O00-O08) Preg~om73\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Pregnancy, childbirth and the puerperium (o00-o99) \ Pregnancy with abortive outcome (o00-o08)</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Principal Diagnosis</modifier_name>
<modifier_key>\\ICD10_ICD9\Principal Diagnosis\</modifier_key>
<applied_path>\Diagnoses\(O00-O99) Preg~e5ik\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>5</hlevel>
<item_name>Encounter for pregnancy test, result positive</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(Z00-Z99) Fact~rmj9\(Z30-Z39) Pers~awcc\(Z32) Encounte~20ib\(Z32.0) Encoun~utp7\(Z32.01) Encou~zrbk\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Factors influencing health status and contact with health services (z00-z99) \ Persons encountering health services in circumstances related to reproduction (z30-z39)
\ Encounter for pregnancy test and childbirth and childcare instruction \ Encounter for pregnancy test \ Encounter for pregnancy test, result positive</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find encounters for delivery (o80-o82) and pregnancy with abortive outcome (o0-o08) in the principal diagnosis category, as well as encounters for pregnancy tests with a positive result (z32.01) in the circumstances related to reproduction category, within the ICD10_ICD9 Diagnoses (o0-o9) and Factors influencing health status and contact with health services (z0-z9) panels. The specificity scale is set to 0, and the panel timing and accuracy scale are set to ANY and 100 respectively. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Prednisone@15:59:10</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Prednisone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Prednisolone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisolone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisolone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of prednisone and prednisolone medications in the i2b2 database, regardless of timing, with a specificity scale of 0 and accuracy scale of 100, and both items are part of the same panel with a panel number of 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>Esophageal refl@16:00: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>5</hlevel>
<item_name>Esophageal reflux</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\(530) Diseases of esophagus\(530-8) Other specified disorders~\(530-81) Esophageal reflux\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Diseases of esophagus \ Other specified disorders of esophagus \ Esophageal reflux</tooltip>
<class>ENC</class>
<item_is_synonym>true</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of "Esophageal reflux" in the "Diagnoses" category, specifically within the "Digestive system" subcategory, under the "Diseases of esophagus" sub-subcategory, and within the "Other specified disorders" sub-sub-subcategory, with a high level of specificity (5) and accuracy (1000%) in the data set. The query is not restricted to any particular time frame and will search for any occurrence of this 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>Asthma-Prednis@10:56:46</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<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>Prednisolone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisolone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisolone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Prednisone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis of asthma who have been prescribed prednisolone or prednisone medications at any time during their medical history. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Asthma-Prednis@10:58:37</query_name>
<query_timing>SAMEVISIT</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Prednisolone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisolone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisolone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Prednisone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who have been diagnosed with Asthma and have also been prescribed either Prednisolone or Prednisone medication during the same 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>Prednisone@16:00:04</query_name>
<query_timing>SAMEVISIT</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Prednisone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Prednisolone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisolone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisolone</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 or administered Prednisone or Prednisolone during the same visit, with a specificity scale of 0 and an accuracy scale of 100, and the medication is classified under the category of hormones and adrenal cortical steroids. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.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 r@16:03: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>3</hlevel>
<item_name>Operations on respiratory system</item_name>
<item_key>\\i2b2_PROC\i2b2\Procedures\PRC\ICD9 (Inpatient)\(30-34) Operations on respiratory system\</item_key>
<item_icon>FA</item_icon>
<tooltip>Procedures \ ICD9 (Inpatient) \ Operations on respiratory system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<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>
</ns4:query_definition>
``` |
I want to find all procedures related to operations on the respiratory system and nose, mouth, and pharynx from the ICD9 (Inpatient) database 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>Asthma-Operati@11:00:21</query_name>
<query_timing>SAMEVISIT</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name>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>
<item>
<hlevel>3</hlevel>
<item_name>Operations on respiratory system</item_name>
<item_key>\\i2b2_PROC\i2b2\Procedures\PRC\ICD9 (Inpatient)\(30-34) Operations on respiratory system\</item_key>
<item_icon>FA</item_icon>
<tooltip>Procedures \ ICD9 (Inpatient) \ Operations on respiratory system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who have been diagnosed with asthma and have undergone operations on the nose, mouth, pharynx, or respiratory system during the same 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>Seconda-Hindu@11:07: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>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>Secondary Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Secondary 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>Hindu</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Religion\Hindu\</item_key>
<item_icon>MA</item_icon>
<tooltip>Demographic \ Religion \ Hindu</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Jewish</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Religion\Jewish\</item_key>
<item_icon>MA</item_icon>
<tooltip>Demographic \ Religion \ Jewish</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients with a secondary diagnosis of injury and poisoning (ICD-9 codes 80-999) who are either Hindu or Jewish in their religious affiliation. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Supervision of @20:29:12</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Supervision of high-risk pregnancy</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\zz V-codes\Reproduction and development (V20-V29)\(V23) Supervision of high-risk pr~\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ V-codes \ Reproduction and development \ Supervision of high-risk pregnancy</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Normal pregnancy</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\zz V-codes\Reproduction and development (V20-V29)\(V22) Normal pregnancy\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ V-codes \ Reproduction and development \ Normal pregnancy</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of supervision of high-risk pregnancy (V23) and normal pregnancy (V2) in the i2b2 Diagnoses database, with a specificity scale of 0 and panel accuracy scale of 100, for any time period, with no inversion applied. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Operations on r@16:06:02</query_name>
<query_timing>SAMEVISIT</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name>Operations on respiratory system</item_name>
<item_key>\\i2b2_PROC\i2b2\Procedures\PRC\ICD9 (Inpatient)\(30-34) Operations on respiratory system\</item_key>
<item_icon>FA</item_icon>
<tooltip>Procedures \ ICD9 (Inpatient) \ Operations on respiratory system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<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>
</ns4:query_definition>
``` |
I want to find all patients who have undergone procedures related to the respiratory system, including operations on the nose, mouth, and pharynx during the same visit, with a specificity scale of 0 and an accuracy scale of 100, and with the procedures being identified using ICD9 (Inpatient) codes. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Esophageal refl@16:10: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>5</hlevel>
<item_name>Esophageal reflux</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\(530) Diseases of esophagus\(530-8) Other specified disorders~\(530-81) Esophageal reflux\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Diseases of esophagus \ Other specified disorders of esophagus \ Esophageal reflux</tooltip>
<class>ENC</class>
<item_is_synonym>true</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis of esophageal reflux within any time frame, with a specificity scale of 0 and a total of 1 occurrence, using the ICD-10 code 530.81 for "Other specified disorders of esophagus: Esophageal reflux". The query should be part of a panel with a panel number of 1, any timing, and 100% accuracy scale, and the item should not be inverted. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Asthma@17:10:36 NS</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with a diagnosis of asthma in the respiratory system category within the chronic obstructive diseases subgroup, with a specificity scale of 0 and a total item occurrence of 1, and the query should be applied to any time period, with no inversion and an accuracy scale of 100. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Asthma-Prednis@19:26:29</query_name>
<query_timing>SAMEVISIT</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Prednisolone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisolone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisolone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Prednisone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who have been diagnosed with asthma and have been prescribed either prednisolone or prednisone during the same 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>Operations on r@19:27: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>Operations on respiratory system</item_name>
<item_key>\\i2b2_PROC\i2b2\Procedures\PRC\ICD9 (Inpatient)\(30-34) Operations on respiratory system\</item_key>
<item_icon>FA</item_icon>
<tooltip>Procedures \ ICD9 (Inpatient) \ Operations on respiratory system</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<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>
</ns4:query_definition>
``` |
I want to find all procedures related to operations on the respiratory system, including operations on the nose, mouth, and pharynx, as classified by the ICD9 (Inpatient) coding system, with a specificity scale of 0 and any timing, and the query should be named "Operations on r@19:27:40". |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Esophageal refl@19:28: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>5</hlevel>
<item_name>Esophageal reflux</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\(530) Diseases of esophagus\(530-8) Other specified disorders~\(530-81) Esophageal reflux\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Diseases of esophagus \ Other specified disorders of esophagus \ Esophageal reflux</tooltip>
<class>ENC</class>
<item_is_synonym>true</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with a diagnosis of esophageal reflux in the ICD-9-CM code range 530.81 in the i2b2 database, with any timing and a specificity scale of 0, and a panel accuracy scale of 100. The query should include a single item with a hierarchy level of 5, and the item should 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>Asthma@21:55:39</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>Adrenal cortical steroids</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who have been diagnosed with asthma and have also received treatment with adrenal cortical steroids, with no specific time frame and no restrictions on the accuracy or specificity of the query. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Asthma@17:17:26 NS2</query_name>
<query_timing>SAMEVISIT</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients who have been diagnosed with Asthma during the same visit, specifically within the Respiratory system category, under Chronic obstructive diseases, using the i2b2 query builder with a specificity scale of 0 and an accuracy scale of 100. The query is named "Asthma@17:17:26 NS2" and the panel number is 1. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Asthma-Prednis@17:18:53 NS3</query_name>
<query_timing>SAMEVISIT</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Prednisolone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisolone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisolone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Prednisone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who have been diagnosed with asthma and have also been prescribed either prednisolone or prednisone medication during the same 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>Prednisolone@21:58:49</query_name>
<query_timing>SAMEVISIT</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Prednisolone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisolone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisolone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Prednisone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who have had a medication encounter for Prednisolone or Prednisone during the same visit, with a specificity scale of 0 and an accuracy scale of 100, using the i2b2 query builder with the specified panel and timing settings. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.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@20:03:00</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>5</hlevel>
<item_name>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_value>
<value_operator>LE</value_operator>
<value_constraint>1000</value_constraint>
<value_unit_of_measure>mg</value_unit_of_measure>
<value_type>NUMBER</value_type>
</constrain_by_value>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of ibuprofen medication where the dose is less than or equal to 1000 mg, within any time frame, with a specificity scale of 0 and accuracy scale of 1000, and with the medication being part of the central nervous system agents, analgesics, and nonsteroidal anti-inflammatory agents categories. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>abcAsthma@21:35:03</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with a diagnosis of asthma in the respiratory system, specifically within the chronic obstructive diseases category, using the i2b2 query builder with the specificity scale set to 0, panel accuracy scale set to 100, and the query timing set to ANY. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>1111Adrenal cortica@21:55:57</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name>Adrenal cortical steroids</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances where the term "Adrenal cortical steroids" appears in the medications category under the hormones subcategory within the i2b2 database, with a specificity scale of 0, accuracy scale of 100, and any timing. This query will include only one item in the panel, 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>Principal Diagn@20:25:11</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>1</hlevel>
<item_name>Pregnancy, childbirth and the puerperium (o00-o99)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(O00-O99) Preg~e5ik\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Pregnancy, childbirth and the puerperium (o00-o99)</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Principal Diagnosis</modifier_name>
<modifier_key>\\ICD10_ICD9\Principal Diagnosis\</modifier_key>
<applied_path>\Diagnoses\(O00-O99) Preg~e5ik\%</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 pregnancy, childbirth, or puerperium (ICD10/ICD9 codes O0-O9) in the dataset. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Encounter for p@20:25: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>5</hlevel>
<item_name>Encounter for pregnancy test, result positive</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(Z00-Z99) Fact~rmj9\(Z30-Z39) Pers~awcc\(Z32) Encounte~20ib\(Z32.0) Encoun~utp7\(Z32.01) Encou~zrbk\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Factors influencing health status and contact with health services (z00-z99) \ Persons encountering health services in circumstances related to reproduction (z30-z39)
\ Encounter for pregnancy test and childbirth and childcare instruction \ Encounter for pregnancy test \ Encounter for pregnancy test, result positive</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find encounters for pregnancy tests with a positive result, considering any timing, with a specificity scale of 0, panel timing of ANY, and a panel accuracy scale of 100, focusing on the ICD10_ICD9 diagnoses, factors influencing health status and contact with health services, persons encountering health services in circumstances related to reproduction, and encounters for pregnancy tests. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Prednisolone@21:56: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>Prednisolone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisolone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisolone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Prednisone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of medications related to adrenal cortical steroids, specifically prednisolone and prednisone, 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>Prednisolone@21:57:19</query_name>
<query_timing>SAMEVISIT</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Prednisolone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisolone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisolone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Prednisone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances where prednisolone or prednisone medications were prescribed or administered during the same 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>Supervision of @20:29:58</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Supervision of high-risk pregnancy</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\zz V-codes\Reproduction and development (V20-V29)\(V23) Supervision of high-risk pr~\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ V-codes \ Reproduction and development \ Supervision of high-risk pregnancy</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Normal pregnancy</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\zz V-codes\Reproduction and development (V20-V29)\(V22) Normal pregnancy\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ V-codes \ Reproduction and development \ Normal pregnancy</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Outcome of delivery</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\zz V-codes\Reproduction and development (V20-V29)\(V27) Outcome of delivery\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ V-codes \ Reproduction and development \ Outcome of delivery</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of "Supervision of high-risk pregnancy," "Normal pregnancy," and "Outcome of delivery" diagnoses in the i2b2 database, with no specific time constraint, and high accuracy, organized into a single panel. These diagnoses are categorized under "Reproduction and development" and have the codes V23, V22, and V27 respectively. The query is named "Supervision of @20:29:58" and is not a synonym for any other 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>Supervision of @20:30:26</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Supervision of high-risk pregnancy</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\zz V-codes\Reproduction and development (V20-V29)\(V23) Supervision of high-risk pr~\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ V-codes \ Reproduction and development \ Supervision of high-risk pregnancy</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Normal pregnancy</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\zz V-codes\Reproduction and development (V20-V29)\(V22) Normal pregnancy\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ V-codes \ Reproduction and development \ Normal pregnancy</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Outcome of delivery</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\zz V-codes\Reproduction and development (V20-V29)\(V27) Outcome of delivery\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ V-codes \ Reproduction and development \ Outcome of delivery</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of supervision of high-risk pregnancy, normal pregnancy, and outcome of delivery diagnoses within the specified time frame, with 1000% accuracy, and no inversion of the results. The results will include encounters with these diagnoses, regardless of the timing. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Prednisolone@21@22:17: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>0</hlevel>
<item_name>(PrevQuery)Prednisolone@21:56:25</item_name>
<item_key>masterid:27382</item_key>
<tooltip>Prednisolone@21:56:25</tooltip>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>0</hlevel>
<item_name>(PrevQuery)Prednisolone@21:57:19</item_name>
<item_key>masterid:27383</item_key>
<tooltip>Prednisolone@21:57:19</tooltip>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients who have ever had a lab test result for Prednisolone with a concentration level of 21 ng/mL between 222:17:14 and any time in the past. This query includes two items: one for a previous query result at 21:56:25 and another for a previous query result at 21:57:19, with a specificity scale of 0, a panel timing of ANY, an accuracy scale of 100, and the panel is not inverted. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Asthma@23:59:10_Mima</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with a diagnosis of asthma in the respiratory system category, specifically chronic obstructive diseases subcategory, using the ICD-9 coding system. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Maligna-Elevate@20:37: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>5</hlevel>
<item_name>Malignant neoplasm of prostate</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\Genitourinary organs (179-189)\(185) Malignant neoplasm of prost~\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms \ Genitourinary organs \ Malignant neoplasm of prostate</tooltip>
<class>ENC</class>
<item_is_synonym>true</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>6</hlevel>
<item_name>Elevated prostate specific antigen [PSA]</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Symptoms, signs, and ill-defined conditions (780-799)\Nonspecific abnormal findings (790-796)\(790) Nonspecific findings on exa~\(790-9) Other nonspecific finding~\(790-93) Elevated prostate specif~\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ ... \ Nonspecific findings on examination of blood \ Other nonspecific findings on examination of blood \ Elevated prostate specific antigen [PSA]</tooltip>
<class>ENC</class>
<item_is_synonym>true</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis of malignant neoplasm of the prostate and an elevated prostate-specific antigen (PSA) level in their medical records. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Male-ALBUMIN@20:42:58</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name>Male</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Gender \ Male</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>5</hlevel>
<item_name>ALBUMIN (LOINC:1751-7)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB21) General Chemistries\ALB\LOINC:1751-7\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ General Chemistries \ Albumin (Group:ALB) \ Albumin (LOINC:1751-7)</tooltip>
<class>ENC</class>
<constrain_by_value>
<value_operator>LT</value_operator>
<value_constraint>4</value_constraint>
<value_unit_of_measure>g/dl</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 with an albumin level less than 4 g/dl (as specified by the LOINC code 1751-7) at any time during their medical record. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Asthma-Prednis@10:57:05</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<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>Prednisolone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisolone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisolone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Prednisone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who have been diagnosed with asthma and have been prescribed prednisolone or prednisone medication at any time during their medical history. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Seconda-Hindu@11:07:10</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>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>Secondary Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Secondary 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>Hindu</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Religion\Hindu\</item_key>
<item_icon>MA</item_icon>
<tooltip>Demographic \ Religion \ Hindu</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients with secondary diagnoses related to injury and poisoning, as well as those who identify as Hindu in terms of their religion. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Asthma@10:37: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>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis of asthma in the respiratory system, specifically chronic obstructive diseases, with a high level of specificity and accuracy, and without any synonyms considered. The search should be conducted at any time, with a total of one occurrence per patient, and the query should be displayed as an Encounter (ENC) in the i2b2 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>Asthma@10:37:38</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis of asthma in the respiratory system category, specifically under chronic obstructive diseases, using the i2b2 query builder with the specificity scale set to 0, accuracy scale at 100, and the query timing set to ANY. The query will focus on a single panel with panel timing set to ANY and a total of one item occurrence. The specific item being searched is the ICD-10 code for asthma, which is (493), and the query will return encounters where this diagnosis was recorded. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Asthma-PATIENT@10:46:40</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<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:1000000017</item_name>
<item_key>PATIENT:HIVE:1000000017</item_key>
<tooltip>PATIENT:HIVE:1000000017</tooltip>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with a diagnosis of asthma in the respiratory system, specifically chronic obstructive diseases, and the patient's unique identifier is HIVE:1000000017. The query is looking for any occurrence of asthma diagnosis in the patient's medical record, with a high level of accuracy, and the specificity scale is set to 0. The time frame is not limited, meaning the query can return results from 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>Asthma-Medicat@10:52:49</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>1</hlevel>
<item_name>Medications</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\</item_key>
<item_icon>FA</item_icon>
<tooltip>Medications</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with a diagnosis of asthma and their corresponding medications. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Asthma-Adrenal@10:55:53</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<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>Adrenal cortical steroids</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who have been diagnosed with Asthma and have also been prescribed Adrenal cortical steroids at any time during their medical history, with a specificity scale of 0 and accuracy scale of 1000% for each panel. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Female@12:49: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>Female</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Female\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Gender \ Female</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all female patients in the database, regardless of when they were seen or treated, with a high level of accuracy and no inversion of the search results. The query will focus on the demographic information related to gender and will specifically look for patients identified as female in the i2b2_DEMO dataset. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Cardiom-Hematol@18:10:29</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name>Cardiomyopathy</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(I00-I99) Dise~3w8h\(I30-I52) Othe~w6tz\(I42) Cardiomyopathy\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Diseases of the circulatory system (i00-i99) \ Other forms of heart disease (i30-i52) \ Cardiomyopathy</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>Hematology</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB53) Hematology\</item_key>
<item_icon>FA</item_icon>
<tooltip>Labtests \ Hematology</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis of Cardiomyopathy (I42) from the Diseases of the Circulatory System (I0-I9) and any Hematology lab tests (LLB53) performed on them, with no specific time constraints, and the panel's accuracy set to 100%. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Female@13:12: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>3</hlevel>
<item_name>Female</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Female\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Gender \ Female</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all female patients in the database. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Gender@13:34:05</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Gender</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographic \ Gender</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances where the gender attribute has been recorded in the i2b2 dataset, with a specificity scale of 0, and a total of 1 item occurrence, using the panel number 1, with a panel timing of ANY, and an accuracy scale of 100, with the item being a demographic field called "Gender" at the hlevel 2, and the icon for the item being "FA". The query should be created using the i2b2 query builder and the timing of the query should be 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>Male- 55--Livin@20:10:07</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name>Male</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Gender \ Male</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name> 55-64 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\55-64 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 55-64 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>>= 65 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\>= 65 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ >= 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>Living</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Vital Status\Living\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Vital Status \ Living</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find male patients between the ages of 5-64 and 65 or older who are currently living. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Princip-Encount@20:24:08</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Encounter for delivery (o80-o82)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(O00-O99) Preg~e5ik\(O80-O82) Enco~1n2b\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Pregnancy, childbirth and the puerperium (o00-o99) \ Encounter for delivery (o80-o82)</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Principal Diagnosis</modifier_name>
<modifier_key>\\ICD10_ICD9\Principal Diagnosis\</modifier_key>
<applied_path>\Diagnoses\(O00-O99) Preg~e5ik\%</applied_path>
</constrain_by_modifier>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>2</hlevel>
<item_name>Pregnancy with abortive outcome (o00-o08)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(O00-O99) Preg~e5ik\(O00-O08) Preg~om73\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Pregnancy, childbirth and the puerperium (o00-o99) \ Pregnancy with abortive outcome (o00-o08)</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Principal Diagnosis</modifier_name>
<modifier_key>\\ICD10_ICD9\Principal Diagnosis\</modifier_key>
<applied_path>\Diagnoses\(O00-O99) Preg~e5ik\%</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>5</hlevel>
<item_name>Encounter for pregnancy test, result positive</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(Z00-Z99) Fact~rmj9\(Z30-Z39) Pers~awcc\(Z32) Encounte~20ib\(Z32.0) Encoun~utp7\(Z32.01) Encou~zrbk\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Factors influencing health status and contact with health services (z00-z99) \ Persons encountering health services in circumstances related to reproduction (z30-z39)
\ Encounter for pregnancy test and childbirth and childcare instruction \ Encounter for pregnancy test \ Encounter for pregnancy test, result positive</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all encounters where the principal diagnosis is related to delivery (ICD-9 codes O80-O82) or pregnancy with abortive outcome (ICD-9 codes O00-O08), and also include encounters for pregnancy tests with positive results (ICD-10 code Z32.01). |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name> 18-34-mild de@20:05:48</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name> 18-34 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\18-34 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 18-34 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name>>= 65 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\>= 65 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ >= 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>mild dementia</item_name>
<item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\mild dementia\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR) \ mild dementia</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients aged 18-34 or greater than or equal to 65 years old who have been diagnosed with mild dementia using the Clinical Dementia Rating (CDR) scale. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Beyond -College@12:55:53</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Beyond college</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Education\Beyond college\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Demographics \ Education \ Beyond college</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>College grad.</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Education\College grad.\</item_key>
<item_icon>LA</item_icon>
<tooltip>oasis \ Demographics \ Education \ College grad.</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who have documented information regarding their education level, specifically if they have gone beyond college or graduated from college. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>ALBUM- 18--Amino@20:49:34</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>5</hlevel>
<item_name>ALBUMIN (LOINC:1751-7)</item_name>
<item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB21) General Chemistries\ALB\LOINC:1751-7\</item_key>
<item_icon>LA</item_icon>
<tooltip>Labtests \ Chemistry \ General Chemistries \ Albumin (Group:ALB) \ Albumin (LOINC:1751-7)</tooltip>
<class>ENC</class>
<constrain_by_value>
<value_operator>LT</value_operator>
<value_constraint>4</value_constraint>
<value_unit_of_measure>g/dl</value_unit_of_measure>
<value_type>NUMBER</value_type>
</constrain_by_value>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name> 18-34 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\18-34 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 18-34 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>3</hlevel>
<item_name> 35-44 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\35-44 years old\</item_key>
<item_icon>FA</item_icon>
<tooltip>Demographics \ Age \ 35-44 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>3</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Aminopenicillins</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME45) penicillins\(LME46) aminopenicillins\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ anti-infectives \ penicillins \ aminopenicillins</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients aged 8-49 years old who have had an albumin test result less than 4 g/dl and were prescribed aminopenicillins 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>Cardiom-Atrial @18:08: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>3</hlevel>
<item_name>Cardiomyopathy</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(I00-I99) Dise~3w8h\(I30-I52) Othe~w6tz\(I42) Cardiomyopathy\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Diseases of the circulatory system (i00-i99) \ Other forms of heart disease (i30-i52) \ Cardiomyopathy</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>Atrial fibrillation and flutter</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(I00-I99) Dise~3w8h\(I30-I52) Othe~w6tz\(I48) Atrial f~wiu4\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Diseases of the circulatory system (i00-i99) \ Other forms of heart disease (i30-i52) \ Atrial fibrillation and flutter</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis of Cardiomyopathy or Atrial fibrillation and flutter, with no specific time frame or accuracy requirement, and both conditions are equally important in this query. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Cardiomyopathy@18:08:56</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name>Cardiomyopathy</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(I00-I99) Dise~3w8h\(I30-I52) Othe~w6tz\(I42) Cardiomyopathy\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Diseases of the circulatory system (i00-i99) \ Other forms of heart disease (i30-i52) \ Cardiomyopathy</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of Cardiomyopathy diagnoses in the ICD10 and ICD9 codes within the Diseases of the circulatory system category (i0-i9) and Other forms of heart disease category (i30-i52) with a specificity scale of 0, accuracy 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>MyStu-Condi-Infec@13:38:32</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>1</hlevel>
<item_name>MyStuff</item_name>
<item_key>\\CUST\Custom Metadata\MyStuff\</item_key>
<item_icon>FAE</item_icon>
<tooltip>Custom Metadata \ MyStuff</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>Conditions involving the integument and temperature regulation of newborn (p80-p83)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\(P80-P83) Cond~ea3b\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96) \ Conditions involving the integument and temperature regulation of newborn (p80-p83)</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>Infections specific to the perinatal period (p35-p39)</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\(P35-P39) Infe~4ml4\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96) \ Infections specific to the perinatal period (p35-p39)</tooltip>
<class>ENC</class>
<item_is_synonym>true</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients who have the custom metadata tag "MyStuff" and have been diagnosed with conditions involving the integument and temperature regulation of newborn (ICD-10 code range P80-P83) or infections specific to the perinatal period (ICD-10 code range P35-P39) at any time during their medical history, 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>Asthma-Prednis@10:16:32</query_name>
<query_timing>SAMEVISIT</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Asthma</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\Chronic obstructive diseases (490-496)\(493) Asthma\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Respiratory system \ Chronic obstructive diseases \ Asthma</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>SAMEVISIT</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name>Prednisolone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisolone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisolone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Prednisone</item_name>
<item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME148) hormones\(LME149) adrenal cortical steroids\prednisone\</item_key>
<item_icon>FA</item_icon>
<tooltip>medications \ hormones \ adrenal cortical steroids \ prednisone</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis of asthma and who have been prescribed either prednisolone or prednisone medication during the same 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>Admit D-Female@16:30: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>Abortive outcome</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Events of pregnancy (630-677)\Abortive outcome (634-639)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Events of pregnancy \ Abortive outcome</tooltip>
<class>ENC</class>
<constrain_by_modifier>
<modifier_name>Admit Diagnosis</modifier_name>
<modifier_key>\\i2b2_DIAG\Admit 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>
<item>
<hlevel>3</hlevel>
<item_name>Abortive outcome</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Events of pregnancy (630-677)\Abortive outcome (634-639)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Events of pregnancy \ Abortive outcome</tooltip>
<class>ENC</class>
<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>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 who have been diagnosed with an abortive outcome during any point in their pregnancy. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.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:36:33</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>2</hlevel>
<item_name>Circulatory system</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Circulatory system</tooltip>
<class>ENC</class>
<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 patient's admit diagnosis, with a specificity scale of 0, panel timing set to "ANY", panel accuracy scale set to 100%, and no inversion applied. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Female-English@10:10: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>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>1</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name>English</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Language\English\</item_key>
<item_icon>MA</item_icon>
<tooltip>Demographic \ Language \ English</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all female patients who speak English as their primary language. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name> 100 years old@10:12:49</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>4</hlevel>
<item_name> 100 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\>= 65 years old\100\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographics \ Age \ >= 65 years old \ 100 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name> 65 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\>= 65 years old\65\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographics \ Age \ >= 65 years old \ 65 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name> 68 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\>= 65 years old\68\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographics \ Age \ >= 65 years old \ 68 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name> 70 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\>= 65 years old\70\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographics \ Age \ >= 65 years old \ 70 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name> 71 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\>= 65 years old\71\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographics \ Age \ >= 65 years old \ 71 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name> 72 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\>= 65 years old\72\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographics \ Age \ >= 65 years old \ 72 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name> 73 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\>= 65 years old\73\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographics \ Age \ >= 65 years old \ 73 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, specifically those who are 65, 68, 70, 71, 72, or 73 years old, based on the demographics category of age in the i2b2 system. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name> 100 years old@10:13: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>4</hlevel>
<item_name> 100 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\>= 65 years old\100\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographics \ Age \ >= 65 years old \ 100 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name> 65 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\>= 65 years old\65\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographics \ Age \ >= 65 years old \ 65 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name> 68 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\>= 65 years old\68\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographics \ Age \ >= 65 years old \ 68 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name> 70 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\>= 65 years old\70\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographics \ Age \ >= 65 years old \ 70 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name> 71 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\>= 65 years old\71\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographics \ Age \ >= 65 years old \ 71 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name> 72 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\>= 65 years old\72\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographics \ Age \ >= 65 years old \ 72 years old</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name> 73 years old</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Age\>= 65 years old\73\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographics \ Age \ >= 65 years old \ 73 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, specifically those who are 65, 68, 70, 71, 72, or 73 years old, and who have a demographic record indicating their age. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Pregnan-Inpatie@11:52: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>Pregnant state</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(Z00-Z99) Fact~rmj9\(Z30-Z39) Pers~awcc\(Z33) Pregnant state\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Factors influencing health status and contact with health services (z00-z99) \ Persons encountering health services in circumstances related to reproduction (z30-z39)
\ Pregnant state</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>4</hlevel>
<item_name>Outcome of delivery</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\zz V-codes\Reproduction and development (V20-V29)\(V27) Outcome of delivery\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ V-codes \ Reproduction and development \ Outcome of delivery</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>Inpatient visit</item_name>
<item_key>\\i2b2_VISIT\i2b2\Visit Details\Visit type\Inpatient visit\</item_key>
<item_icon>LA</item_icon>
<tooltip>Visit Details \ Visit type \ Inpatient visit</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all inpatient visits where the patient was pregnant and had an outcome of delivery recorded in their medical history. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Disea-Male- 35-@17:09: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>Diseases of esophagus</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\(530) Diseases of esophagus\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Diseases of esophagus</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>2</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name>Male</item_name>
<item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\Male\</item_key>
<item_icon>LA</item_icon>
<tooltip>Demographic \ Gender \ Male</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
<panel>
<panel_number>3</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name> 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 diagnoses of diseases of the esophagus in males aged 35-44 years old, with any timing and 1000% accuracy. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Maligna-Socioec@11:49: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>Malignant neoplasms</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>5</hlevel>
<item_name>Malignant neoplasm of trachea, bronchus, and lung</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\Respiratory and intrathorasic organs (160-165)\(162) Malignant neoplasm of trach~\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms \ Respiratory and intrathorasic organs \ Malignant neoplasm of trachea, bronchus, and lung</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>Socioeconomic Status</item_name>
<item_key>\\BIRN\BIRN\oasis\Demographics\Socioeconomic Status\</item_key>
<item_icon>FA</item_icon>
<tooltip>oasis \ Demographics \ Socioeconomic Status</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with a diagnosis of malignant neoplasms, specifically in the trachea, bronchus, and lung, as well as their corresponding socioeconomic 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>Malignant neopl@11:51:42</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>5</hlevel>
<item_name>Malignant neoplasm of trachea, bronchus, and lung</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\Respiratory and intrathorasic organs (160-165)\(162) Malignant neoplasm of trach~\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms \ Respiratory and intrathorasic organs \ Malignant neoplasm of trachea, bronchus, and lung</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all instances of malignant neoplasm of the trachea, bronchus, and lung in the i2b2 database, regardless of the timing of the diagnosis, with a specificity scale of 0 and accuracy scale of 100, and the query should not be inverted. The query will be named "Malignant neopl@1:51:42" and will be part of a panel with panel number 1 and any timing. The query will be focused on the specific term "Malignant neoplasm of trachea, bronchus, and lung" within the Diagnoses, Neoplasms, Malignant neoplasms, and Respiratory and intrathorasic organs categories. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Appendicitis@16:31:43</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name>Appendicitis</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\Appendicitis (540-543)\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Digestive system \ Appendicitis</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find all patients with a diagnosis of appendicitis in the i2b2 database using the Diagnoses, Digestive System, and Appendicitis categories. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Cerebral palsy@14:32: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>3</hlevel>
<item_name>Cerebral palsy</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(G00-G99) Dise~j8kq\(G80-G83) Cere~fogu\(G80) Cerebral palsy\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Diseases of the nervous system (g00-g99) \ Cerebral palsy and other paralytic syndromes (g80-g83) \ Cerebral palsy</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 cerebral palsy, regardless of when it was recorded, with a specificity scale of 0, meaning no specificity filters are applied, and a high accuracy scale of 100, indicating a high level of confidence in the results. The query should search for the term "Cerebral palsy" within the "Diagnoses" category under "Diseases of the nervous system (g0-g9)" and specifically within the subcategory "Cerebral palsy and other paralytic syndromes (g80-g83)". This query will return a total of one item, which is the term "Cerebral palsy" as an encounter (ENC) concept. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name>Cerebral palsy@14:32:58</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name>Cerebral palsy</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(G00-G99) Dise~j8kq\(G80-G83) Cere~fogu\(G80) Cerebral palsy\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Diseases of the nervous system (g00-g99) \ Cerebral palsy and other paralytic syndromes (g80-g83) \ Cerebral palsy</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 cerebral palsy at any time in their medical history, with a specificity scale of 0 and an accuracy scale of 100, using the ICD10 and ICD9 codes related to cerebral palsy and other paralytic syndromes within the category of diseases of the nervous system. |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/">
<query_name> Visit at age 9@14:35:01</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name> 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>
</panel>
</ns4:query_definition>
``` |
I want to find all visits where the patient was 9 years old or younger 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>Cerebra-Hemiple@14:31:45</query_name>
<query_timing>ANY</query_timing>
<specificity_scale>0</specificity_scale>
<panel>
<panel_number>1</panel_number>
<panel_timing>ANY</panel_timing>
<panel_accuracy_scale>100</panel_accuracy_scale>
<invert>0</invert>
<total_item_occurrences>1</total_item_occurrences>
<item>
<hlevel>3</hlevel>
<item_name>Cerebral palsy</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(G00-G99) Dise~j8kq\(G80-G83) Cere~fogu\(G80) Cerebral palsy\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Diseases of the nervous system (g00-g99) \ Cerebral palsy and other paralytic syndromes (g80-g83) \ Cerebral palsy</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>Hemiplegia and hemiparesis</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(G00-G99) Dise~j8kq\(G80-G83) Cere~fogu\(G81) Hemipleg~msmx\</item_key>
<item_icon>FA</item_icon>
<tooltip>Diagnoses \ Diseases of the nervous system (g00-g99) \ Cerebral palsy and other paralytic syndromes (g80-g83) \ Hemiplegia and hemiparesis</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients who have been diagnosed with Cerebral Palsy (G80) and have Hemiplegia or Hemiparesis (G81) in their medical records, at any time during their medical history, with a specificity scale of 0 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>Malignant neopl@11:57: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>5</hlevel>
<item_name>Malignant neoplasm of prostate</item_name>
<item_key>\\ICD10_ICD9\Diagnoses\(C00-D49) Neop~k3n8\(C00-C96) Mali~yqqr\(C00-C75) Mali~lbm0\(C60-C63) Mali~x1oj\(C61) Malignan~6bcb\</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 neoplasms of male genital organs (c60-c63) \ Malignant neoplasm of prostate</tooltip>
<class>ENC</class>
<item_is_synonym>false</item_is_synonym>
</item>
<item>
<hlevel>6</hlevel>
<item_name>Elevated prostate specific antigen (PSA)</item_name>
<item_key>\\i2b2_DIAG\i2b2\Diagnoses\Symptoms, signs, and ill-defined conditions (780-799)\Nonspecific abnormal findings (790-796)\(790) Nonspecific findings on exa~\(790-9) Other nonspecific finding~\(790-93) Elevated prostate specif~\</item_key>
<item_icon>LA</item_icon>
<tooltip>Diagnoses \ ... \ Nonspecific findings on examination of blood \ Other nonspecific findings on examination of blood \ Elevated prostate specific antigen [PSA]</tooltip>
<class>ENC</class>
<item_is_synonym>true</item_is_synonym>
</item>
</panel>
</ns4:query_definition>
``` |
I want to find patients with a diagnosis of malignant neoplasm of the prostate and an elevated prostate specific antigen (PSA) level, with a specificity scale of 0 and any timing, and display the results in a panel with a total of 2 items, including the diagnosis of malignant neoplasm of the prostate and the elevated PSA level as separate items. |