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>Certain infecti@19:05:21</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain infectious and parasitic diseases (a00-b99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with diagnoses related to certain infectious and parasitic diseases (ICD-10 codes A0-B9) in the i2b2 database.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Admit Diagnosis@19: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>1</hlevel> <item_name>Certain infectious and parasitic diseases (a00-b99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Admit Diagnosis\</modifier_key> <applied_path>\Diagnoses\(A00-B99) Cert~ugmm\%</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 certain infectious and parasitic diseases (a0-b9) at the time of admission, using the ICD10_ICD9 (International Classification of Diseases, 10th and 9th revisions) coding system, within the specified timeframe, and 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>Secondary Diagn@19:04: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 respiratory system (j00-j99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(J00-J99) Dise~45pn\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the respiratory system (j00-j99)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Secondary Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Secondary Diagnosis\</modifier_key> <applied_path>\Diagnoses\(J00-J99) Dise~45pn\%</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 diseases of the respiratory system (codes J00-J9) in the secondary diagnosis field, using the ICD-10 or ICD-9 classification system, with a specificity scale of 0 and a panel accuracy scale of 100, for any time period, with a single item on the panel, and the class is an encoded narrative (ENC).
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Cance-Cance-Cance@10:59:36</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>6</hlevel> <item_name>Cancer of Fallopian tube</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\Genitourinary organs (179-189)\(183) Malignant neoplasm of ovary~\(183-2) Malignant neoplasm of fal~\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ ... \ Malignant neoplasms \ Genitourinary organs \ Malignant neoplasm of ovary and other uterine adnexa \ Malignant neoplasm of fallopian tube</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>Cancer of ovary</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\Genitourinary organs (179-189)\(183) Malignant neoplasm of ovary~\(183-0) Malignant neoplasm of ova~\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ ... \ Malignant neoplasms \ Genitourinary organs \ Malignant neoplasm of ovary and other uterine adnexa \ Malignant neoplasm of ovary</tooltip> <class>ENC</class> <item_is_synonym>true</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>6</hlevel> <item_name>Cancer of endometrium</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\Genitourinary organs (179-189)\(182) Malignant neoplasm of body ~\(182-0) Malignant neoplasm of cor~\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ ... \ Malignant neoplasms \ Genitourinary organs \ Malignant neoplasm of body of uterus \ Malignant neoplasm of corpus uteri, except isthmus</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 neoplasms of the fallopian tube, ovary, or endometrium, specifically cancer of the fallopian tube, cancer of the ovary, and cancer of the endometrium, with no time constraints and a high level of accuracy.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Principal Diagn@19:06:05</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain infectious and parasitic diseases (a00-b99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Principal Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Principal Diagnosis\</modifier_key> <applied_path>\Diagnoses\(A00-B99) Cert~ugmm\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all records where the principal diagnosis is related to certain infectious and parasitic diseases (ICD10 or ICD9 codes A0-B9) with a high level of specificity (1000%) and no time constraint (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>Secondary Diagn@19:06:22</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain infectious and parasitic diseases (a00-b99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99)</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Secondary Diagnosis</modifier_name> <modifier_key>\\ICD10_ICD9\Secondary Diagnosis\</modifier_key> <applied_path>\Diagnoses\(A00-B99) Cert~ugmm\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all records with secondary diagnoses related to certain infectious and parasitic diseases (ICD10-ICD9 codes A0-B9) that have been coded with a specificity of 100% and have occurred at any time during the patient's stay in the hospital.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Acute articular@16:47: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>Acute articular rheumatism</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Acute Rheumatic fever (390-392)\(390) Rheumatic fever without men~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Acute Rheumatic fever \ Rheumatic fever without mention of heart involvement</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with a diagnosis of acute rheumatic fever without mention of heart involvement in the circulatory system category.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Gender@11:18:36</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Gender</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\</item_key> <item_icon>FA</item_icon> <tooltip>Demographic \ Gender</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with any gender recorded in the i2b2 Demographics module, with a specificity scale of 0, and a panel accuracy scale of 100, within a specific time frame (ANY), and display the results on panel 1 with a high level (hlevel) of 2, 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>Eye disorders-Diseases of the eye and adnexa (h00-h59)-Diseases of the eye and adnexa (h00-h59)@21:22:50</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Eye disorders</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neurologic Disorders (320-389)\Eye disorders (360-379)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neurologic Disorders \ Eye disorders</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Diseases of the eye and adnexa (h00-h59)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(H00-H59) Dise~6ji8\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the eye and adnexa (h00-h59)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Diseases of the eye and adnexa (h00-h59)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(H00-H59) Dise~6ji8\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the eye and adnexa (h00-h59)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find diagnoses related to eye disorders and diseases of the eye and adnexa (h0-h59) in the i2b2 database, using the Diagnoses \ Neurologic Disorders \ Eye disorders (360-379) and Diagnoses \ Diseases of the eye and adnexa (h0-h59) categories, with a specificity scale of 0 and a time range of any.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circula-Events @10:11:51</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <constrain_by_date> <date_from>1979-12-01T00:00:00.000-05:00</date_from> <date_to>2023-06-05T00:00:00.000-05:00</date_to> </constrain_by_date> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <constrain_by_date> <date_from>1979-12-01T00:00:00.000-05:00</date_from> <date_to>2023-06-05T00:00:00.000-05:00</date_to> </constrain_by_date> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Events of pregnancy</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Events of pregnancy (630-677)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Events of pregnancy</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system (codes 390-459) and digestive system (codes 520-579), as well as events of pregnancy (codes 630-67) in the i2b2 database, with no specific time constraint and a high level of accuracy. The search should include diagnoses from 1979-12-01 to 2023-06-05.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Income@12:57:34</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Income</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Income\</item_key> <item_icon>FA</item_icon> <tooltip>Demographics \ Income</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find any patient data related to demographic information on income, with a high level of specificity (1000% accuracy) and a panel timing set to ANY, meaning it can be applied to any time period, 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>mild de-Admit D@22:38:24</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>mild dementia</item_name> <item_key>\\BIRN\BIRN\oasis\Clinical Measures\Clinical Dementia Rating (CDR)\mild dementia\</item_key> <item_icon>LA</item_icon> <tooltip>oasis \ Clinical Measures \ Clinical Dementia Rating (CDR) \ mild dementia</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Congenital anomalies</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Congenital anomalies (740-759)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Congenital anomalies</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key> <applied_path>\i2b2\Diagnoses\Congenital anomalies (740-759)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who have been diagnosed with mild dementia (as indicated by the "mild dementia" concept in the Clinical Dementia Rating (CDR) measure) and have any congenital anomalies (ICD code 740-759) listed as an admission diagnosis. The specificity scale is set to 0, meaning that the query will return all patients with the specified criteria, regardless of how specific the diagnosis is to the patient's overall condition. The query timing is set to ANY, indicating that the diagnosis could have been made at any point in time, and the panel accuracy scale is set to 100, indicating that all items in the panel must be present for a match. The panel number and total item occurrences are also set accordingly.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Conditions in the perinatal period@11:55:28</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Conditions in the perinatal period</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Conditions in the perinatal period (760-779)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Conditions in the perinatal period</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to conditions in the perinatal period (ICD-9 codes 760-79) within the i2b2 data repository, with a specificity scale of 0 and a high accuracy level of 100, without inverting the results, and with the panel 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>Circulatory sys@11:59:19</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the Circulatory system (ICD codes 390-459) with a specificity scale of 0, accuracy scale of 100, and a panel timing of ANY. The query will be named "Circulatory sys@1:59:19" and will have a total of 1 item occurrence, with the item being the Circulatory system (390-459) category in the Diagnoses section. The panel number is 1 and the query timing is ANY. The class is ENC, and the item is not a synonym.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Gender@16:59: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>Gender</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Gender\</item_key> <item_icon>FA</item_icon> <tooltip>Demographic \ Gender</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of gender information in the i2b2 dataset, regardless of the specific time frame, with a high level of accuracy, and display the results in a panel with a specificity scale of 0 and inverted setting of 0. The gender data will be retrieved from the Demographics category using the "Gender" item key.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name> 35-44-Status @17:36:10</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name> 35-44 years old</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Age\35-44 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Demographics \ Age \ 35-44 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Status 1</item_name> <item_key>\\BIRN\BIRN\oasis\Demographics\Socioeconomic Status\Status 1\</item_key> <item_icon>LA</item_icon> <tooltip>oasis \ Demographics \ Socioeconomic Status \ Status 1</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who are between the ages of 35 and 444 years old and have a specific socioeconomic status (Status 1) at any point in time.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory system-Female-Mental Disorders@18:17: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>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> <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> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>1</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Mental Disorders</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Mental Disorders (290-319)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Mental Disorders</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all female patients with diagnoses related to the circulatory system who do not have any mental disorders.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Cardiovascular agents@18:24:40</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Cardiovascular agents</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME68) cardiovascular agents\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ cardiovascular agents</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances where patients have been prescribed or administered any medication classified under the category of cardiovascular agents within the i2b2 database, with a specificity scale of 0 and a panel accuracy scale of 100, and the query should include only one panel with a 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>Endocrine disor@09:34:14</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Endocrine disorders</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Endocrine disorders (240-259)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Endocrine disorders</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find any instances of Endocrine disorders (ICD-9 codes 240-259) in the i2b2 database with a specificity scale of 0 and a panel accuracy scale of 100, using the "Endocrine disorders" icon, with a panel number of 1 and a total item occurrence of 1. This query is named "Endocrine disor@09:34:14" and has a timing set to "ANY" for both the query and panel timing.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Diagnos-Laborat@18:52:57</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Diagnoses</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Laboratory Tests</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances where Diagnoses and Laboratory Tests are recorded within the same patient encounter.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>(t) Digestive system-Events of pregnancy-Digestive system@12:56:53</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <subquery_constraint> <first_query> <query_id>Event 1</query_id> <join_column>ENDDATE</join_column> <aggregate_operator>ANY</aggregate_operator> </first_query> <operator>EQUAL</operator> <second_query> <query_id>Event 2</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>LAST</aggregate_operator> </second_query> <span> <operator>GREATEREQUAL</operator> <span_value>90</span_value> <units>DAY</units> </span> <span> <operator>GREATEREQUAL</operator> <span_value>7876</span_value> <units>DAY</units> </span> </subquery_constraint> <subquery_constraint> <first_query> <query_id>Event 2</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Event 3</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Event 1</query_id> <query_type>EVENT</query_type> <query_name>Event 1</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <constrain_by_date> <date_from>2023-06-13T00:00:00</date_from> </constrain_by_date> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Event 2</query_id> <query_type>EVENT</query_type> <query_name>Event 2</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Events of pregnancy</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Events of pregnancy (630-677)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Events of pregnancy</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Event 3</query_id> <query_type>EVENT</query_type> <query_name>Event 3</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find all instances where a patient has been diagnosed with a digestive system condition (ICD code range 520-579) within the same instance number as a diagnosis related to events of pregnancy (ICD code range 630-67), and the pregnancy event occurred between 787 days (approximately 2.5 years) and 90 days (approximately 3 years) before the digestive system diagnosis.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>(t) Digestive system-Events of pregnancy-Digestive system@12:56:53</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <subquery_constraint> <first_query> <query_id>Event 1</query_id> <join_column>ENDDATE</join_column> <aggregate_operator>ANY</aggregate_operator> </first_query> <operator>LESSEQUAL</operator> <second_query> <query_id>Event 2</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>LAST</aggregate_operator> </second_query> <span> <operator>GREATEREQUAL</operator> <span_value>90</span_value> <units>DAY</units> </span> <span> <operator>GREATEREQUAL</operator> <span_value>7876</span_value> <units>DAY</units> </span> </subquery_constraint> <subquery_constraint> <first_query> <query_id>Event 2</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Event 3</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Event 1</query_id> <query_type>EVENT</query_type> <query_name>Event 1</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <constrain_by_date> <date_from>2023-06-13T00:00:00</date_from> </constrain_by_date> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Event 2</query_id> <query_type>EVENT</query_type> <query_name>Event 2</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Events of pregnancy</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Events of pregnancy (630-677)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Events of pregnancy</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Event 3</query_id> <query_type>EVENT</query_type> <query_name>Event 3</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find all instances where a patient has a diagnosis related to the digestive system (ICD codes 520-579) at the same time as a diagnosis related to events of pregnancy (ICD codes 630-67), within a time frame of 90 days before or after the pregnancy event, and the digestive system diagnosis must occur within the same encounter as the pregnancy event.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Admit D-Route@14:15:11</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Nephritis, nephrotic syndrome, and nephrosis</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Genitourinary system (580-629)\Nephritis, nephrotic syndrome, and nephrosis (580-589)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Genitourinary system \ Nephritis, nephrotic syndrome, and nephrosis</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\Genitourinary system (580-629)\%</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>4</hlevel> <item_name>Saw palmetto</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME2) alternative medicines\(LME3) herbal products\saw palmetto\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ alternative medicines \ herbal products \ saw palmetto</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Route</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Route\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with an Admit Diagnosis of Nephritis, nephrotic syndrome, or nephrosis (ICD code 580-589) who have been administered Saw Palmetto (herbal product) through any route of administration.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Digestive system@16:29:39</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <constrain_by_date> <date_from>2023-06-11T00:00:00</date_from> </constrain_by_date> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the digestive system (ICD-9 codes 520-579) with any specificity and accuracy, and constrain the results by date from June 1, 2023 onwards.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Genitourinary system@16:30:50</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Genitourinary system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Genitourinary system (580-629)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Genitourinary system</tooltip> <class>ENC</class> <constrain_by_date> <date_from>2023-06-04T00:00:00</date_from> <date_to>2023-06-23T00:00:00</date_to> </constrain_by_date> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>2</hlevel> <item_name>Infectious and parasitic diseases</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Infectious and parasitic diseases (001-139)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Infectious and parasitic diseases</tooltip> <class>ENC</class> <constrain_by_date> <date_from>2023-06-04T00:00:00</date_from> <date_to>2023-06-23T00:00:00</date_to> </constrain_by_date> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the Genitourinary system (ICD-10 codes 580-629) and Infectious and parasitic diseases (ICD-10 codes 01-139) within a specific time frame (from June 4, 2023 to June 23, 2023) using the i2b2 query builder.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory system@16:35:26</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system (ICD-9 codes 390-459) in the i2b2 database, with a specificity scale of 0 and a total item occurrence of 1, using the panel number 1 and with an accuracy scale of 100, and the query timing set to ANY. The query is named "Circulatory system@16:35:26" and the panel timing is also 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>Neoplasms@16:31:11</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms</tooltip> <class>ENC</class> <constrain_by_date> <date_from>2023-06-05T00:00:00</date_from> </constrain_by_date> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with a diagnosis of neoplasms, specifically within the range of ICD-10 codes 140-239, at any time in their medical history, with a high level of specificity and no synonyms considered, using the i2b2 query builder.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory sys@16:32:19</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Hypertensive disease</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Hypertensive disease (401-405)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Hypertensive disease</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, specifically focusing on Hypertensive disease within the range of ICD-9 codes 401-405, with any timing and a specificity scale of 0, and the panel's accuracy scale set to 100, without inverting the panel.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Malignant neoplasms@20:23:47</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Distant metastasis cannot be evaluated</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Metastisis\MX\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Distant metastasis is present</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Metastisis\M1\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>No distant metastasis</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Metastisis\M0\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Cancer is localized</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Stage\I\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of malignant neoplasms (cancerous tumors) in the i2b2 database, regardless of the timing of diagnosis, with specificity set to 100, and constrained by the following modifiers: 1. Distant metastasis cannot be evaluated 2. Distant metastasis is present 3. No distant metastasis 4. Cancer is localized.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>(t) Digesti-ALT (SGDigestiALT (SG@16:23:53</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>ALT (SGPT) (LOINC:1742-6)</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key> <item_icon>LA</item_icon> <tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <subquery_constraint> <first_query> <query_id>Observation B</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Observation A</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> <span> <operator>GREATEREQUAL</operator> <span_value>3</span_value> <units>MONTH</units> </span> </subquery_constraint> <subquery> <query_id>Observation B</query_id> <query_type>EVENT</query_type> <query_name>Observation B</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>0</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Observation A</query_id> <query_type>EVENT</query_type> <query_name>Observation A</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>0</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>ALT (SGPT) (LOINC:1742-6)</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key> <item_icon>LA</item_icon> <tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip> <class>ENC</class> <constrain_by_value> <value_operator>GT</value_operator> <value_constraint>35</value_constraint> <value_unit_of_measure>u/l</value_unit_of_measure> <value_type>NUMBER</value_type> </constrain_by_value> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find patients with a diagnosis in the Digestive System (ICD-9 codes 520-579) and an ALT (SGPT) lab test result (LOINC:1742-6) greater than or equal to 35 u/l within the same instance number, where the diagnosis occurred before the ALT (SGPT) test result by at least 3 months.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory sys@16:31:49</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <constrain_by_date> <date_from>1979-12-01T00:00:00.000-05:00</date_from> <date_to>2023-06-05T00:00:00.000-05:00</date_to> </constrain_by_date> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the Circulatory System (ICD codes 390-459) from any time period, with a specificity scale of 0 and an accuracy scale of 100, using the i2b2 query builder.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory sys@16:32:30</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <constrain_by_date> <date_from>1979-12-01T00:00:00.000-05:00</date_from> <date_to>2023-06-05T00:00:00.000-05:00</date_to> </constrain_by_date> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Hypertensive disease</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Hypertensive disease (401-405)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Hypertensive disease</tooltip> <class>ENC</class> <constrain_by_date> <date_from>1979-12-01T00:00:00.000-05:00</date_from> <date_to>2023-06-05T00:00:00.000-05:00</date_to> </constrain_by_date> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system, specifically focusing on hypertensive diseases, within a specific time frame (from 1979-12-01T00:00:00.00-05:00 to 2023-06-05T00:00:00.00-05:00) with a high level of accuracy and specificity, using the i2b2 query builder tool.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Accolate 20mg tablet Astra-Zeneca Pharmaceuticals@14:46: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>1</hlevel> <item_name>Accolate 20mg tablet Astra-Zeneca Pharmaceuticals</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME229) leukotriene modifiers\zafirlukast\00310040239\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents \ leukotriene modifiers \ zafirlukast \ accolate 20mg tablet astra-zeneca pharmaceuticals</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Patient Instructions</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>CONTAINS</value_operator> <value_constraint>test</value_constraint> <value_type>LARGETEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find any instances where the medication "Accolate 20mg tablet" by Astra-Zeneca Pharmaceuticals has been prescribed to patients, with a high level of accuracy and no specific time frame. This query will search for the medication within the "Medications" category, specifically under the "respiratory agents" and "leukotriene modifiers" subcategories, and the tooltip will display "medications \ respiratory agents \ leukotriene modifiers \ zafirlukast \ accolate 20mg tablet astra-zeneca pharmaceuticals." The query will also be constrained by the "Patient Instructions" modifier, looking for any instances where the value "test" is contained within the "Medications" 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>Acute articular@16:46: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>Acute articular rheumatism</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Acute Rheumatic fever (390-392)\(390) Rheumatic fever without men~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Acute Rheumatic fever \ Rheumatic fever without mention of heart involvement</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients diagnosed with Acute Rheumatic fever without mention of heart involvement, in the Circulatory system category, using the specific ICD code 390.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.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@17:48:22</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Acute Rheumatic fever</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Acute Rheumatic fever (390-392)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Acute Rheumatic fever</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>3</hlevel> <item_name>Arterial vascular disease</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Arterial vascular disease (440-447)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Arterial vascular disease</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Secondary Diagnosis</modifier_name> <modifier_key>\\i2b2_DIAG\Secondary Diagnosis\</modifier_key> <applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with a diagnosis of Acute Rheumatic fever (390-392) in the Circulatory system (390-459) category as an Admit Diagnosis and a diagnosis of Arterial vascular disease (40-47) in the Circulatory system (390-459) category as a Secondary Diagnosis, with a specificity scale of 0 and an accuracy scale of 100 for both items. The time frame is set to ANY, meaning that it will include any time frame in the patient's medical history.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Admit D-Aortic @17:50:11</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <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>4</hlevel> <item_name>Aortic aneurysm and dissection</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Arterial vascular disease (440-447)\(441) Aortic aneurysm and dissect~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Arterial vascular disease \ Aortic aneurysm and dissection</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients who have an admit diagnosis of Aortic aneurysm and dissection (ICD-9 code 41) within the Circulatory System (ICD-9 codes 390-459) category. The query will search for this specific diagnosis in the i2b2 database, and the results will be accurate with a specificity scale of 100 and a sensitivity scale of 0. The timing of the query is set to ANY, meaning it will search for this diagnosis regardless of when it was recorded in the patient's medical record. The query is made up of two panels, the first panel constrains the diagnosis to the Circulatory System category, and the second panel narrows down the search to Aortic aneurysm and dissection within that category. The results will be displayed in the query builder's graphical interface with a tree-like structure, where the first panel represents the Circulatory System category and the second panel represents the Aortic aneurysm and dissection diagnosis.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory system@16:40:30</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system (ICD-9 codes 390-459) with a specificity scale of 0, any timing, and a panel accuracy scale of 100. This query is designed to identify patients with any diagnosis related to the circulatory system, including conditions such as hypertension, coronary heart disease, and cerebrovascular diseases, with the highest level of accuracy.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory system@16:40:30</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the Circulatory system (ICD codes 390-459) with a specificity scale of 0, accuracy scale of 100, and any time frame. The panel should include only one item, with a hierarchy level of 2, named "Circulatory system", and the query should have a general timing of ANY.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Gender@16:59:32</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>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 of the i2b2 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>VITAMIN B12 UNSAT BIND CAPA (LOINC:2171-7)@20:31: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>5</hlevel> <item_name>VITAMIN B12 UNSAT BIND CAPA (LOINC:2171-7)</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB31) Anemia Related Studies\B12USAT\LOINC:2171-7\</item_key> <item_icon>LA</item_icon> <tooltip>Labtests \ Chemistry \ Anemia Related Studies \ B12 Unsaturated Binding (Group:B12USAT) \ Vitamin b12 unsat bind capa (LOINC:2171-7)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of Vitamin B12 Unsaturated Binding Capacity (LOINC:2171-7) laboratory test results, with any timing, and a specificity scale of 0, and a panel accuracy scale of 100, and the test should be included in the 'Labtests \ Chemistry \ Anemia Related Studies \ B12 Unsaturated Binding (Group:B12USAT)' group.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Abnormality of organs and soft tissues of pelvis complicating pregnancy, childbirth, or the puerperium@20: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>Abnormality of organs and soft tissues of pelvis complicating pregnancy, childbirth, or the puerperium</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Events of pregnancy (630-677)\(654) Abnormality of organs and s~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Events of pregnancy \ Abnormality of organs and soft tissues of pelvis complicating pregnancy, childbirth, or the puerperium</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>5</hlevel> <item_name>VITAMIN B12 UNSAT BIND CAPA (LOINC:2171-7)</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB31) Anemia Related Studies\B12USAT\LOINC:2171-7\</item_key> <item_icon>LA</item_icon> <tooltip>Labtests \ Chemistry \ Anemia Related Studies \ B12 Unsaturated Binding (Group:B12USAT) \ Vitamin b12 unsat bind capa (LOINC:2171-7)</tooltip> <class>ENC</class> <constrain_by_value> <value_operator>LT</value_operator> <value_constraint>345345</value_constraint> <value_unit_of_measure>ng/l</value_unit_of_measure> <value_type>NUMBER</value_type> </constrain_by_value> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients who have been diagnosed with "Abnormality of organs and soft tissues of pelvis complicating pregnancy, childbirth, or the puerperium" at any time, with a specificity scale of 0, and a panel accuracy scale of 100. Additionally, I want to include patients who have had a Vitamin B12 Unsaturated Binding (LOINC:2171-7) lab test result that is less than 3435 ng/l.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Distant metasta@20:23:08</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Distant metastasis cannot be evaluated</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Metastisis\MX\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Distant metastasis is present</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Metastisis\M1\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>No distant metastasis</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Metastisis\M0\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Cancer is localized</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Stage\I\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of malignant neoplasms (cancerous tumors) where the presence or absence of distant metastasis is not specified, as well as cases where there are distant metastases (M1), no distant metastases (M0), or where the cancer is localized (Stage I).
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>FERRITIN (LOINC:2276-4)@20:31:50</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>FERRITIN (LOINC:2276-4)</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB31) Anemia Related Studies\FER\LOINC:2276-4\</item_key> <item_icon>LA</item_icon> <tooltip>Labtests \ Chemistry \ Anemia Related Studies \ Ferritin (Group:FER) \ Ferritin (LOINC:2276-4)</tooltip> <class>ENC</class> <constrain_by_value> <value_operator>LE</value_operator> <value_constraint>7</value_constraint> <value_unit_of_measure>ug/l</value_unit_of_measure> <value_type>NUMBER</value_type> </constrain_by_value> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of Ferritin (LOINC:276-4) lab test results with a value less than or equal to 7 ug/l within any time frame, using the specificity scale of 0 and panel accuracy scale of 100, where the panel number is 1, and the panel timing is set to ANY. The query should be named "FERRITIN (LOINC:276-4)@20:31:50" and should not be treated as a synonym.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Conditions in the perinatal period@20:35:48</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Conditions in the perinatal period</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Conditions in the perinatal period (760-779)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Conditions in the perinatal period</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to conditions in the perinatal period (ICD-9 codes 760-79) with a specificity scale of 0, panel timing set to ANY, and a total item occurrence of 1, within the i2b2 query builder 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>Cefazolin@21:31:33</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Cefazolin</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME36) cephalosporins\(LME37) first generation cephalosporins\cefazolin\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ anti-infectives \ cephalosporins \ first generation cephalosporins \ cefazolin</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Rx Sig</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\RxSig\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>LIKE[exact]</value_operator> <value_constraint>test</value_constraint> <value_type>TEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of the medication 'Cefazolin' within the i2b2 database, with a specificity scale of 0 and an accuracy scale of 100, constrained by the 'Rx Sig' modifier with the value 'test' applied to the 'Medications' path. The query should be applied to any time period and should include only one item on the panel, with the icon 'FA'. The query is named 'Cefazolin@21:31:33' and is not a synonym.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>VITAMIN B12 UNSAT BIND CAPA (LOINC:2171-7)@21:39: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>5</hlevel> <item_name>VITAMIN B12 UNSAT BIND CAPA (LOINC:2171-7)</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB31) Anemia Related Studies\B12USAT\LOINC:2171-7\</item_key> <item_icon>LA</item_icon> <tooltip>Labtests \ Chemistry \ Anemia Related Studies \ B12 Unsaturated Binding (Group:B12USAT) \ Vitamin b12 unsat bind capa (LOINC:2171-7)</tooltip> <class>ENC</class> <constrain_by_value> <value_operator>LE</value_operator> <value_constraint>1000</value_constraint> <value_unit_of_measure>ng/l</value_unit_of_measure> <value_type>NUMBER</value_type> </constrain_by_value> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients who have had a Vitamin B12 Unsaturated Binding Capacity (LOINC:2171-7) test result with a value less than or equal to 100 ng/l at any time, and who also have a diagnosis of certain conditions originating in the perinatal period (p0-p96).
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Cefazolin@21:34:13</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Cefazolin</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME10) anti-infectives\(LME36) cephalosporins\(LME37) first generation cephalosporins\cefazolin\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ anti-infectives \ cephalosporins \ first generation cephalosporins \ cefazolin</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Rx Sig</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\RxSig\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>EQ</value_operator> <value_constraint>@</value_constraint> <value_type>FLAG</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of the medication "cefazolin" within the "anti-infectives" category, specifically within the "cephalosporins" subcategory, and more specifically within the "first generation cephalosporins" subcategory, where the medication was prescribed with the "Rx Sig" modifier applied, at any time, 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>VITAMIN B12 UNSAT BIND CAPA (LOINC:2171-7)@21:38:44</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>VITAMIN B12 UNSAT BIND CAPA (LOINC:2171-7)</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB31) Anemia Related Studies\B12USAT\LOINC:2171-7\</item_key> <item_icon>LA</item_icon> <tooltip>Labtests \ Chemistry \ Anemia Related Studies \ B12 Unsaturated Binding (Group:B12USAT) \ Vitamin b12 unsat bind capa (LOINC:2171-7)</tooltip> <class>ENC</class> <constrain_by_value> <value_operator>LE</value_operator> <value_constraint>1000</value_constraint> <value_unit_of_measure>ng/l</value_unit_of_measure> <value_type>NUMBER</value_type> </constrain_by_value> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of Vitamin B12 Unsaturated Binding Capacity (LOINC: 2171-7) lab test results with values less than or equal to 1000 ng/l, with no specific time frame constraint, and at a high level of specificity (1000% accuracy) within the i2b2 database.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>VITAMIN B12 UNSAT BIND CAPA (LOINC:2171-7)@21:39: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>5</hlevel> <item_name>VITAMIN B12 UNSAT BIND CAPA (LOINC:2171-7)</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB31) Anemia Related Studies\B12USAT\LOINC:2171-7\</item_key> <item_icon>LA</item_icon> <tooltip>Labtests \ Chemistry \ Anemia Related Studies \ B12 Unsaturated Binding (Group:B12USAT) \ Vitamin b12 unsat bind capa (LOINC:2171-7)</tooltip> <class>ENC</class> <constrain_by_value> <value_operator>LE</value_operator> <value_constraint>1000</value_constraint> <value_unit_of_measure>ng/l</value_unit_of_measure> <value_type>NUMBER</value_type> </constrain_by_value> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Anemia Related Studies</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB31) Anemia Related Studies\</item_key> <item_icon>FA</item_icon> <tooltip>Labtests \ Chemistry \ Anemia Related Studies</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances where Vitamin B12 Unsaturated Binding Capacity (LOINC:2171-7) lab test results were recorded with a value less than or equal to 100 ng/l, within any timeframe, and grouped under the Anemia Related Studies section in the Chemistry category of the Lab tests module.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>(t) Certain conditiCongenital malf@16:36:00</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <subquery_constraint> <first_query> <query_id>Observation A</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Observation B</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Observation A</query_id> <query_type>EVENT</query_type> <query_name>Observation A</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>0</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Observation B</query_id> <query_type>EVENT</query_type> <query_name>Observation B</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>0</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Congenital malformations, deformations and chromosomal abnormalities (q00-q99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(Q00-Q99) Cong~t96i\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Congenital malformations, deformations and chromosomal abnormalities (q00-q99)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find patients who have a record of being diagnosed with certain conditions originating in the perinatal period (p0-p96) and congenital malformations, deformations, and chromosomal abnormalities (q0-q9) at any time during their medical history, with the condition in the perinatal period occurring before the congenital malformations.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory system@23:25:20</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system (ICD-9 codes 390-459) with a specificity scale of 0 and a panel accuracy scale of 100, covering any time period, and displaying the results in a panel with a single item that is not a synonym and has a class of ENC.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name> 0-9 years old@12:52: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> 0-9 years old</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Age\0-9 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Demographics \ Age \ 0-9 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients aged 0-9 years old, with any specificity and accuracy, in the demographics category of age, at any time, using the i2b2 query builder.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Digestive syste@11:28:44</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find diagnoses related to the digestive system (ICD codes 520-579) with any specificity scale, any timing, and 100% panel accuracy.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Digestive syste@11:28: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>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find diagnoses related to the digestive system (ICD codes 520-579) with a high level of specificity (100) and no inversion, covering any time period, 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>Conditions in t@11:29:39</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Conditions in the perinatal period</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Conditions in the perinatal period (760-779)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Conditions in the perinatal period</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find diagnoses related to conditions in the perinatal period (76-79) with any specificity and accuracy, using the panel named "Conditions in the perinatal period" within the category "Diagnoses" in the i2b2 query builder.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name> 0-9 years old@12:15:30</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name> 0-9 years old</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Age\0-9 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Demographics \ Age \ 0-9 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who are 0-9 years old, with any specificity and accuracy, at any time, and with a total of 1 item occurrence in the panel.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Certain infectious and parasitic diseases (a00-b99)@10:12:46</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain infectious and parasitic diseases (a00-b99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to certain infectious and parasitic diseases (categories A0-B9) within the ICD-10 and ICD-9 coding systems, with a high level of specificity (1000% accuracy) 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>Certa-Disea-Disea@16:36: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>1</hlevel> <item_name>Certain conditions originating in the perinatal period (p00-p96)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(P00-P96) Cert~6976\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain conditions originating in the perinatal period (p00-p96)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>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> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Diseases of the ear and mastoid process (h60-h95)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(H60-H95) Dise~nko6\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Diseases of the ear and mastoid process (h60-h95)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with diagnoses related to certain conditions originating in the perinatal period (codes P0-P96), diseases of the circulatory system (codes I0-I9), and diseases of the ear and mastoid process (codes H60-H95) without any specific timing or accuracy scale, and with no inversion.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Principal Diagn@17:47:06</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Principal Diagnosis</modifier_name> <modifier_key>\\i2b2_DIAG\Principal Diagnosis\</modifier_key> <applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system (ICD codes 390-459) that are marked as principal diagnoses in the i2b2 database, with a specificity scale of 0 and a panel accuracy scale of 100, regardless of the timing, and the results should be displayed on the first panel.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Visit at age &gt;=@11:36: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>Visit at age &gt;= 65 years old</item_name> <item_key>\\i2b2_VISIT\i2b2\Visit Details\Age at visit\&gt;= 65 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Visit Details \ Age at visit \ &gt;= 65 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all visits where the patient's age is greater than or equal to 65 years old. This query will look for encounters where the patient was at least 65 years old at the time of their visit. The query is not specific to any time period and is set to have a high accuracy scale of 100. It is not inverted and will return a total of one item, which is the age of the patient 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> 18-34 years o@12:15:49</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name> 18-34 years old</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Age\18-34 years old\</item_key> <item_icon>FA</item_icon> <tooltip>Demographics \ Age \ 18-34 years old</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients who are between the ages of 18 and 34 years old, with any timing and 100% accuracy scale, within a specificity scale of 0 and an inverted value of 0, and this query will be part of panel 1 with a total of 1 item occurrence. The query will be focused on demographic information related to age, specifically those within the 18-34 age range, using the i2b2 query builder.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory sys@16:47:48</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system (ICD-9 codes 390-459) with a specificity scale of 0, accuracy scale of 100, and a panel timing of "ANY". The query should be named "Circulatory sys@16:47:48" and have a panel number of 1, with the total item occurrences set to 1. The hierarchy level is set to 2 and the icon used for this query is "FA". This query is not a synonym.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory sys@17:45:39</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>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 accuracy, including any time frame, and display the results in a panel with a total of one item occurrence, 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>Circula-Anticoa@17:59:30</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <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>Anticoagulants</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME125) coagulation modifiers\(LME126) anticoagulants\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ coagulation modifiers \ anticoagulants</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find diagnoses related to the circulatory system and medications related to anticoagulants for any time period with a high level of accuracy and specificity.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Admit Diagnosis@17:46:52</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <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 patients with a diagnosis related to the circulatory system (ICD codes 390-459) who were admitted to the hospital.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Seconda-Arteria@17:47:43</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <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> <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>Arterial vascular disease</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Arterial vascular disease (440-447)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Arterial vascular disease</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all cases where a patient has a secondary diagnosis related to arterial vascular disease within the circulatory system, specifically in the range of ICD-9 codes 40-47, with a high level of specificity and accuracy.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>(t) Circulatory system-Circulatory system@13:25:42</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <subquery_constraint> <first_query> <query_id>Event 1</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Event 2</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> </subquery_constraint> <subquery> <query_id>Event 1</query_id> <query_type>EVENT</query_type> <query_name>Event 1</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key> <applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Event 2</query_id> <query_type>EVENT</query_type> <query_name>Event 2</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>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> </subquery> </ns4:query_definition> ```
I want to find all patients with a diagnosis of Circulatory system (ICD codes 390-459) listed as either their primary or secondary diagnosis at any time during their hospital stay. The primary diagnosis must have occurred before the secondary diagnosis.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Admit Diagnosis@17:51: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>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Admit Diagnosis</modifier_name> <modifier_key>\\i2b2_DIAG\Admit Diagnosis\</modifier_key> <applied_path>\i2b2\Diagnoses\Circulatory system (390-459)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the circulatory system (ICD codes 390-459) that were recorded as the admit diagnosis, with a specificity scale of 0, accuracy scale of 100, and a single occurrence in any time frame.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Anticoagulants@18:01: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>Anticoagulants</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME125) coagulation modifiers\(LME126) anticoagulants\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ coagulation modifiers \ anticoagulants</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of patients who have been prescribed anticoagulants (coagulation modifiers) at any time in their medical history, with a specificity scale of 0 and an accuracy scale of 100, using the i2b2 query builder.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Medications@13:56:27</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Rx Sig</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\RxSig\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>LIKE[exact]</value_operator> <value_constraint>test test test</value_constraint> <value_type>TEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all medication records in the i2b2 database with the exact constraint value of "test test" in the Rx Sig field, and the specificity scale is set to 0, meaning all records will be returned regardless of their relevance to the search criteria. The panel timing is set to ANY, indicating that the search is not limited to a specific time frame, and the accuracy scale is set to 100, meaning the search is highly accurate. The query name is "Medications@13:56:27", and the query timing is also set to ANY, meaning the search can be conducted at any time. The panel number is 1, and the total number of items to be searched is 1. The class of the item is ENC, and the icon is set to FA. The tooltip for the item is "Medications", providing a brief description 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>Medications@13:58: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>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Patient Instructions</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>CONTAINS[database]</value_operator> <value_constraint>(Test:MED:INST)</value_constraint> <value_type>LARGETEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all medications where the patient instructions contain the text "Test:MED:INST" at any time, with 1000% accuracy and specificity, and display the results in a panel named "Medications@13:58:43" 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>Circula-Anticoa@18:00: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>1</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <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>Anticoagulants</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME125) coagulation modifiers\(LME126) anticoagulants\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ coagulation modifiers \ anticoagulants</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with diagnoses related to the circulatory system who have also been prescribed anticoagulant 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>Neoplas-Diagnos@10:51:37</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\</item_key> <item_icon>FA</item_icon> <tooltip>i2b2 \ Diagnoses \ Neoplasms</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>Diagnoses</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\</item_key> <item_icon>FA</item_icon> <tooltip>i2b2 \ Diagnoses</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to neoplasms within the i2b2 database using the query builder. The query will search for any neoplasm diagnoses and will not be restricted by time or specificity. The first panel will focus on neoplasms, while the second panel will include all diagnoses within the i2b2 database. The results will be displayed with an accuracy scale of 100 and will 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>Circulatory system@13:20: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>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the Circulatory system (ICD-9 codes 390-459) within the i2b2 system, with a specificity scale of 0, accuracy scale of 100, and any time frame.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Medications@13:56:27</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Medications</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\</item_key> <item_icon>FA</item_icon> <tooltip>Medications</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Rx Sig</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\RxSig\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>EQ</value_operator> <value_constraint>@</value_constraint> <value_type>FLAG</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all medications that have been prescribed to patients within the i2b2 database, regardless of the timing or specificity, and display the results on a single panel with a high accuracy scale of 100, and the class type is ENC (Encounter). The query will be constrained by the modifier "Rx Sig" and the value constraint will be equal to the flag symbol "@". The query will not include synonyms.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Anticoa-Circula@18:01: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>1</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Anticoagulants</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME125) coagulation modifiers\(LME126) anticoagulants\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ coagulation modifiers \ anticoagulants</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>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 patients who have taken anticoagulant medications and have a diagnosis related to the circulatory system.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Respira-Respira@18:11:31</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Respiratory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Respiratory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Respiratory agents</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients who have any diagnoses related to the respiratory system (ICD codes 460-519) and have been prescribed any medications categorized as respiratory agents (LME219) 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>Distant metasta@13:13: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>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Distant metastasis cannot be evaluated</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Metastisis\MX\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Involvement of regional lymph nodes / extent of spread</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Nodes\N1\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Metastasized to distant lymph nodes and / organs</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Stage\IV\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with malignant neoplasms (cancerous tumors) where distant metastasis cannot be evaluated, involvement of regional lymph nodes/extent of spread is present, and metastasis has occurred to distant lymph nodes and organs.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Malignant neoplasms@13:14:21</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Distant metastasis cannot be evaluated</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Metastisis\MX\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Involvement of regional lymph nodes / extent of spread</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Nodes\N1\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> <item> <hlevel>3</hlevel> <item_name>Malignant neoplasms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Neoplasms \ Malignant neoplasms</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Metastasized to distant lymph nodes and / organs</modifier_name> <modifier_key>\\i2b2_DIAG\TNM\Stage\IV\</modifier_key> <applied_path>\i2b2\Diagnoses\Neoplasms (140-239)\Malignant neoplasms (140-208)\%</applied_path> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of malignant neoplasms (ICD-10 code range 140-208) with no information on distant metastasis, involvement of regional lymph nodes, or metastasis to distant lymph nodes and organs in the i2b2 database.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Respira-Events @18:03: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>2</hlevel> <item_name>Respiratory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Respiratory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Events of pregnancy</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Events of pregnancy (630-677)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Events of pregnancy</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find diagnoses related to the respiratory system and events of pregnancy in the i2b2 database with any timing and a specificity scale of 0, with a panel accuracy scale of 100 and no inversion applied. The respiratory system diagnoses are located under the key "\\i2b2_DIAG\i2b2\Diagnoses\Respiratory system (460-519)" and the events of pregnancy diagnoses are located under the key "\\i2b2_DIAG\i2b2\Diagnoses\Events of pregnancy (630-67)". The query will return diagnoses of these categories with a class of ENC (Encounter) and the items are not synonyms.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>(t) Digesti-ALT (SGALT (SGDigesti@16:24: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>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>ALT (SGPT) (LOINC:1742-6)</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key> <item_icon>LA</item_icon> <tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <subquery_constraint> <first_query> <query_id>Observation A</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </first_query> <operator>LESS</operator> <second_query> <query_id>Observation B</query_id> <join_column>STARTDATE</join_column> <aggregate_operator>FIRST</aggregate_operator> </second_query> <span> <operator>GREATEREQUAL</operator> <span_value>3</span_value> <units>MONTH</units> </span> </subquery_constraint> <subquery> <query_id>Observation A</query_id> <query_type>EVENT</query_type> <query_name>Observation A</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>0</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>ALT (SGPT) (LOINC:1742-6)</item_name> <item_key>\\i2b2_LABS\i2b2\Labtests\LAB\(LLB16) Chemistry\(LLB25) Liver Function Tests\SGPT\LOINC:1742-6\</item_key> <item_icon>LA</item_icon> <tooltip>Labtests \ Chemistry \ Liver Function Tests \ ALT (SGPT) (Group:SGPT) \ ALT (SGPT) (LOINC:1742-6)</tooltip> <class>ENC</class> <constrain_by_value> <value_operator>GT</value_operator> <value_constraint>35</value_constraint> <value_unit_of_measure>u/l</value_unit_of_measure> <value_type>NUMBER</value_type> </constrain_by_value> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> <subquery> <query_id>Observation B</query_id> <query_type>EVENT</query_type> <query_name>Observation B</query_name> <query_timing>SAMEINSTANCENUM</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>0</panel_number> <panel_timing>SAMEINSTANCENUM</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </subquery> </ns4:query_definition> ```
I want to find all patients who have had an ALT (SGPT) test result greater than 35 u/l (Labtests > Chemistry > Liver Function Tests > ALT (SGPT) (Group: SGPT) > ALT (SGPT) (LOINC:1742-6)) and have a diagnosis in the Digestive System (Diagnoses > Digestive system (520-579)) within the same encounter or visit. Additionally, I want to limit the search to only include patients where the ALT (SGPT) test result occurred within 3 months before or after the Digestive System diagnosis.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Circulatory system@13:18:40</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Circulatory system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses related to the Circulatory system (ICD codes 390-459) in the i2b2 database, with a specificity scale of 0, accuracy scale of 100, and a timing set to "ANY" for any time frame, with a single panel and no inversion of 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>Congenital anomalies@13:19:44</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Congenital anomalies</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Congenital anomalies (740-759)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Congenital anomalies</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of congenital anomalies (diagnosis codes 740-759) in the i2b2 database, with no specific time constraint, and with a high level of accuracy (100), grouped into a single panel with no inversion, and a single occurrence required.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Digesti-Gastroi@23:52:29</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Digestive system</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Digestive system (520-579)\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Digestive system</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Gastrointestinal agents</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME136) gastrointestinal agents\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ gastrointestinal agents</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find diagnoses related to the digestive system (codes 520-579) and medications related to gastrointestinal agents (LME136) within the i2b2 database, with any timing and a specificity scale of 0, accuracy scale of 100, and no inversion. The query should include two panels, one for the digestive system diagnoses and another for gastrointestinal medications. The panels will have a total of one item occurrence each, and the class will be ENC (encounter).
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Patient Instruc@14:38:10</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>5</hlevel> <item_name>Singulair 5mg tablet chewable Merck &amp; Co. Inc</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME229) leukotriene modifiers\montelukast\00006027531\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents \ leukotriene modifiers \ montelukast \ singulair 5mg tablet chewable merck &amp; co. inc</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Patient Instructions</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>CONTAINS</value_operator> <value_constraint>test</value_constraint> <value_type>LARGETEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find medications named "Singulair 5mg tablet chewable Merck & Co. Inc" that have a patient instruction containing the word "test" in the description, with a high level of specificity and a time frame of any occurrence.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Coronavirus inf@12:16: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>Coronavirus infection, unspecified</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\(B25-B34) Othe~mcam\(B34) Viral in~t8uh\(B34.2) Corona~3546\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99) \ Other viral diseases (b25-b34) \ Viral infection of unspecified site \ Coronavirus infection, unspecified</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all cases of Coronavirus infection, unspecified, with any timing and 100% accuracy, using the ICD10 and ICD9 codes for diagnoses of certain infectious and parasitic diseases, other viral diseases, and viral infections of unspecified sites.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Acute articular@14:11:30</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Acute articular rheumatism</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Acute Rheumatic fever (390-392)\(390) Rheumatic fever without men~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Acute Rheumatic fever \ Rheumatic fever without mention of heart involvement</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients with a diagnosis of acute rheumatic fever without mention of heart involvement within the Circulatory system category in the Diagnoses section of the ICD-9-CM 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>Acute articular rheumatism@14:12:48</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Rheumatic fever without mention of heart involvement</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Acute Rheumatic fever (390-392)\(390) Rheumatic fever without men~\</item_key> <item_icon>LA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Acute Rheumatic fever \ Rheumatic fever without mention of heart involvement</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find diagnoses of acute rheumatic fever without mention of heart involvement in the circulatory system category using the i2b2 query builder.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Coronavirus as @12:28:21</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>0</hlevel> <item_name>(PrevQuery)Coronavirus as @23:25:58</item_name> <item_key>masterid:28417</item_key> <tooltip>Coronavirus as @23:25:58</tooltip> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of the term "Coronavirus" in the data, with any timing specification, using a specificity scale of 0, accuracy scale of 100, and panel number 1. The query should include only one item, which is a synonym of the term "Coronavirus as @23:25:58" with the key "masterid:28417".
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Certain-Other v@12: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>1</hlevel> <item_name>Certain infectious and parasitic diseases (a00-b99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <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>Other viral diseases (b25-b34)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\(B25-B34) Othe~mcam\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99) \ Other viral diseases (b25-b34)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with diagnoses related to certain infectious and parasitic diseases (ICD codes A0-B9) and other viral diseases (ICD codes B25-B34) with a specificity scale of 0 and a panel accuracy scale of 100, regardless of the timing.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Other peripheral vascular disease@14:16: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>Other peripheral vascular disease</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Arterial vascular disease (440-447)\(443) Other peripheral vascular d~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Arterial vascular disease \ Other peripheral vascular disease</tooltip> <class>ENC</class> <item_is_synonym>true</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all patients who have been diagnosed with other peripheral vascular disease at any point in time, including cases where the condition may be specified 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>Other peripheral vascular disease@14:16: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>Other peripheral vascular disease</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Circulatory system (390-459)\Arterial vascular disease (440-447)\(443) Other peripheral vascular d~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Circulatory system \ Arterial vascular disease \ Other peripheral vascular disease</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of "Other peripheral vascular disease" in the i2b2 database, with a specificity scale of 0 and accuracy scale of 100, looking for any occurrence of this diagnosis in the "Circulatory system" category, under the subcategory "Arterial vascular disease" with a hierarchy level of 4, and the time frame is not restricted.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Certa-Encou-Sympt@12:32:59</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain infectious and parasitic diseases (a00-b99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <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>Encounter for screening for infectious and parasitic diseases</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(Z00-Z99) Fact~rmj9\(Z00-Z13) Pers~m0l3\(Z11) Encounte~xfu3\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Factors influencing health status and contact with health services (z00-z99) \ Persons encountering health services for examinations (z00-z13) \ Encounter for screening for infectious and parasitic diseases</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>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>Symptoms involving respiratory system and other chest symptoms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Symptoms, signs, and ill-defined conditions (780-799)\Symptoms (780-789)\(786) Symptoms involving respirat~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Symptoms, signs, and ill-defined conditions \ Symptoms \ Symptoms involving respiratory system and other chest symptoms</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find diagnoses related to certain infectious and parasitic diseases (ICD-10 codes A0-B9), encounters for screening for infectious and parasitic diseases (ICD-10 codes Z0-Z13), and symptoms involving respiratory system and other chest symptoms (ICD-10 codes 786) with a high level of specificity (100) and any timing (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>Singulair 5mg tablet chewable Merck &amp;amp;amp; Co. Inc@15:15:52</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Singulair 5mg tablet chewable Merck &amp; Co. Inc</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME229) leukotriene modifiers\montelukast\00006027531\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents \ leukotriene modifiers \ montelukast \ singulair 5mg tablet chewable merck &amp; co. inc</tooltip> <class>ENC</class> <constrain_by_modifier> <modifier_name>Patient Instructions</modifier_name> <modifier_key>\\i2b2_MEDS\Medication\Instructions\</modifier_key> <applied_path>\i2b2\Medications\%</applied_path> <constrain_by_value> <value_operator>CONTAINS</value_operator> <value_constraint>test</value_constraint> <value_type>LARGETEXT</value_type> </constrain_by_value> </constrain_by_modifier> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all instances of patients who have taken Singulair 5mg tablet chewable manufactured by Merck & Co. Inc., within any timeframe, with a high level of accuracy and specificity, and where the medication instructions contain the word "test".
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Diagnoses@14:42:05</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Diagnoses</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find all diagnoses recorded in the i2b2 database with any specificity scale, any timing, and a 1000% accuracy scale, using the "Diagnoses" panel with a hierarchy level of 1 and the key "\\i2b2_DIAG\i2b2\Diagnoses\". This query is not inverted and has a single item occurrence. The query is named "Diagnoses@14:42:05" and the tooltip for the item is "Diagnoses". The class of the item is ENC, and it is not a synonym.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Coronavirus as @12:15: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>4</hlevel> <item_name>Coronavirus as the cause of diseases classified elsewhere</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\(B95-B97) Bact~28iq\(B97) Viral ag~m3ak\(B97.2) Corona~1804\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99) \ Bacterial and viral infectious agents (b95-b97) \ Viral agents as the cause of diseases classified elsewhere \ Coronavirus as the cause of diseases classified elsewhere</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find cases where Coronavirus is the cause of diseases classified elsewhere, including bacterial and viral infectious agents, with a high level of specificity (hlevel 4) and a total item occurrence of 1, using the ICD10_ICD9 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>Income@14:44:51</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>2</hlevel> <item_name>Income</item_name> <item_key>\\i2b2_DEMO\i2b2\Demographics\Income\</item_key> <item_icon>FA</item_icon> <tooltip>Demographics \ Income</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find any patient demographic information related to income at a specificity scale of 0 and accuracy scale of 100, with a single item occurrence, using the i2b2 query builder with the panel named "Income@14:44:51".
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Certa-Encou-Sympt@12:32:27</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>1</hlevel> <item_name>Certain infectious and parasitic diseases (a00-b99)</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(A00-B99) Cert~ugmm\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Certain infectious and parasitic diseases (a00-b99)</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <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>Encounter for screening for infectious and parasitic diseases</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(Z00-Z99) Fact~rmj9\(Z00-Z13) Pers~m0l3\(Z11) Encounte~xfu3\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Factors influencing health status and contact with health services (z00-z99) \ Persons encountering health services for examinations (z00-z13) \ Encounter for screening for infectious and parasitic diseases</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>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>Symptoms involving respiratory system and other chest symptoms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Symptoms, signs, and ill-defined conditions (780-799)\Symptoms (780-789)\(786) Symptoms involving respirat~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Symptoms, signs, and ill-defined conditions \ Symptoms \ Symptoms involving respiratory system and other chest symptoms</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find patients with diagnoses related to certain infectious and parasitic diseases (ICD10-B9), who have had encounters for screening for infectious and parasitic diseases (Z0-Z13), and also have symptoms involving respiratory system and other chest symptoms (786).
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Encou-Sympt-Budes@12:35: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>Encounter for screening for infectious and parasitic diseases</item_name> <item_key>\\ICD10_ICD9\Diagnoses\(Z00-Z99) Fact~rmj9\(Z00-Z13) Pers~m0l3\(Z11) Encounte~xfu3\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Factors influencing health status and contact with health services (z00-z99) \ Persons encountering health services for examinations (z00-z13) \ Encounter for screening for infectious and parasitic diseases</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>2</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Symptoms involving respiratory system and other chest symptoms</item_name> <item_key>\\i2b2_DIAG\i2b2\Diagnoses\Symptoms, signs, and ill-defined conditions (780-799)\Symptoms (780-789)\(786) Symptoms involving respirat~\</item_key> <item_icon>FA</item_icon> <tooltip>Diagnoses \ Symptoms, signs, and ill-defined conditions \ Symptoms \ Symptoms involving respiratory system and other chest symptoms</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> <panel> <panel_number>3</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>4</hlevel> <item_name>Budesonide</item_name> <item_key>\\i2b2_MEDS\i2b2\Medications\MUL\(LME219) respiratory agents\(LME232) respiratory inhalant products\budesonide\</item_key> <item_icon>FA</item_icon> <tooltip>medications \ respiratory agents \ respiratory inhalant products \ budesonide</tooltip> <class>ENC</class> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find encounters for screening of infectious and parasitic diseases (panel 1), symptoms involving respiratory system and other chest symptoms (panel 2), and budesonide medication use (panel 3) within the specified time frame (ANY), with 100% accuracy scale and no inversion.
```xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns4:query_definition xmlns:ns2="http://www.i2b2.org/xsd/cell/crc/psm/1.1/" xmlns:ns4="http://www.i2b2.org/xsd/cell/crc/psm/querydefinition/1.1/" xmlns:ns3="http://www.i2b2.org/xsd/cell/crc/psm/analysisdefinition/1.1/"> <query_name>Coronavirus as @12:28:21@14:28:3</query_name> <query_timing>ANY</query_timing> <specificity_scale>0</specificity_scale> <panel> <panel_number>1</panel_number> <panel_timing>ANY</panel_timing> <panel_accuracy_scale>100</panel_accuracy_scale> <invert>0</invert> <total_item_occurrences>1</total_item_occurrences> <item> <hlevel>0</hlevel> <item_name>(PrevQuery) Coronavirus as @12:28:21</item_name> <item_key>masterid:28659</item_key> <tooltip>Coronavirus as @12:28:21 [6-7-2023] [demo]</tooltip> <item_is_synonym>false</item_is_synonym> </item> </panel> </ns4:query_definition> ```
I want to find any patient records containing the term "Coronavirus" in the data repository, with a high level of specificity and accuracy, and with the query being applied to all available time periods.