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

Queries built using patient sets create incorrect SQL

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • None
    • TBD
    • None
    • None
    • Query Tool
    • Filters - Patient Sets
    • Oracle
    • All Web Browsers

    Description

      Case:

      User creates a patient set. User then uses that patient set as a filter on a subsequent query. The following SQL is generated and produces an error.

      =====
      select f.patient_num
      from i2b2crc.observation_fact f
      where
      f. patient_num IN (select patient_num from i2b2crc.qt_patient_set_collection where result_instance_id = )
      group by f.patient_num
      =====
      This fails because the where clause is incomplete.

      Attachments

        Activity

          mem61 Mike Mendis added a comment -
          I attempted to reproduce this, I am unable to. What version of i2b2 is this and what database vendor are you using?
          mem61 Mike Mendis added a comment - I attempted to reproduce this, I am unable to. What version of i2b2 is this and what database vendor are you using?
          v1.7.10
          PostgreSQL

          Thanks!
          akvallejos Andrew Vallejos added a comment - v1.7.10 PostgreSQL Thanks!
          rm302 Reeta Metta added a comment -
          We tried to reproduce this in postgresSQLDemo and did not see any issue.
          rm302 Reeta Metta added a comment - We tried to reproduce this in postgresSQLDemo and did not see any issue.

          People

            mem61 Mike Mendis
            akvallejos Andrew Vallejos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: