Uploaded image for project: 'i2b2 Web Client'
  1. i2b2 Web Client
  2. WEBCLIENT-361

Single apostrophe in ontology term causes ERROR: ERROR in 1.7.13

    XMLWordPrintable

Details

    • Bug
    • Status: New
    • Critical
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      If the ontology term has a single apostrophe in it, and it is early enough in the term that it is included in the path, the query will result in an error and will not run. Below is a Generated SQL example that will cause the error:

      with t as (
       select f.patient_num
      from i2b2crcdata.dbo.diag_obs_fact f
      where
      f.concept_cd IN (select concept_cd from i2b2crcdata.dbo.concept_dimension where concept_path LIKE '\Diagnoses\(A00-B99) Cert~ugmm\(B50-B64) Prot~crln\(B57) Chagas'~ppxe\%')
      group by f.patient_num
       )
      insert into #global_temp_table (patient_num, panel_count)
      select t.patient_num, 0 as panel_count from t
      <*>
       insert into #dx ( patient_num ) select * from ( select distinct patient_num from #global_temp_table where panel_count = 0 ) q

      Attachments

        Activity

          People

            Unassigned Unassigned
            sthorson Stacy Thorson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: