Uploaded image for project: 'i2b2 Core Software'
  1. i2b2 Core Software
  2. CORE-273

SHRINEACT queries with date constraints are losing the constraints on i2b2ACT side

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.09c
    • None
    • None
    • Query Tool
    • Constraints - Date
    • All Web Browsers

    Description

      Create any query on SHRINEACT and put some date constraints on any of the concepts. Execute the query and let it finish. Access the same query from i2b2 local webclient, the date constraint does not show up. On the database side, the SQL created for the SHRINE query saves the constraint, but the xml in the QT_Query_Master table does not save it resulting in this issue.

      Attachments

        Activity

          nich Nich added a comment -
          The SHRINE is sending DATE and not DATETIME in the XML. If a date constraint is in the form of a date and not datetime, the generated SQL is fine (and automatically makes it a datetime in the SQL), but the XML saved is blank. This affects both date constraints set at the <panel> level (the old way) and date constraints set at the <item> level (the new way & workbench way).

          For example, here are two problematic request messages:

                          <panel>
                              <panel_number>1</panel_number>
                              <panel_timing>ANY</panel_timing>
                              <panel_accuracy_scale>100</panel_accuracy_scale>
                              <panel_date_from>2016-12-01</panel_date_from>
                              <panel_date_to>2017-08-14</panel_date_to>
                              <invert>0</invert>
                              <total_item_occurrences>1</total_item_occurrences>
                              <item>
                                  <hlevel>2</hlevel>
                                  <item_name>Circulatory system</item_name>
                                  <item_key>\\i2b2metadata\i2b2metadata\Diagnosis\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>1</panel_number>
                              <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>\\i2b2metadata\i2b2metadata\Diagnosis\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>
                                  <constrain_by_date>
                                      <date_from>2016-12-01</date_from>
                                      <date_to>2017-08-14</date_to>
                                  </constrain_by_date>
                              </item>
                          </panel>
          nich Nich added a comment - The SHRINE is sending DATE and not DATETIME in the XML. If a date constraint is in the form of a date and not datetime, the generated SQL is fine (and automatically makes it a datetime in the SQL), but the XML saved is blank. This affects both date constraints set at the <panel> level (the old way) and date constraints set at the <item> level (the new way & workbench way). For example, here are two problematic request messages:                 <panel>                     <panel_number>1</panel_number>                     <panel_timing>ANY</panel_timing>                     <panel_accuracy_scale>100</panel_accuracy_scale>                     <panel_date_from>2016-12-01</panel_date_from>                     <panel_date_to>2017-08-14</panel_date_to>                     <invert>0</invert>                     <total_item_occurrences>1</total_item_occurrences>                     <item>                         <hlevel>2</hlevel>                         <item_name>Circulatory system</item_name>                         <item_key>\\i2b2metadata\i2b2metadata\Diagnosis\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>1</panel_number>                     <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>\\i2b2metadata\i2b2metadata\Diagnosis\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>                         <constrain_by_date>                             <date_from>2016-12-01</date_from>                             <date_to>2017-08-14</date_to>                         </constrain_by_date>                     </item>                 </panel>
          2017-Nov-22
          Tested with the latest build and the dates are not being carried forward to the local client when they are added within the SHRINE client.
          jmd86 Janice Donahoe added a comment - 2017-Nov-22 Tested with the latest build and the dates are not being carried forward to the local client when they are added within the SHRINE client.
          Mike tested this again with the latest changes and he said it is now working correctly. It was testing in a SHRINE environment.
          jmd86 Janice Donahoe added a comment - Mike tested this again with the latest changes and he said it is now working correctly. It was testing in a SHRINE environment.

          People

            jmd86 Janice Donahoe
            bg845 Bhaswati Ghosh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: