Changes between Version 12 and Version 13 of i2b2 HowTo Upgrade to Version 1.6


Ignore:
Timestamp:
08/28/13 10:17:29 (11 years ago)
Author:
Richard Bramley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • i2b2 HowTo Upgrade to Version 1.6

    v12 v13  
    747414. Copy the file {{{i2b2_config_data.js}}} from the backed up web client folder to the new web client folder.
    757515. Copy plugins from the backed up web client folder to the new web client folder.
     7616. Because modifiers are now being used, the Instance_Num column of the Observation_Fact table becomes very important.  Therefore we need to create instance numbers for observation facts that didn't have them before using this script:
     77
     78{{{#!sql
     79BEGIN TRANSACTION
     80
     81UPDATE o
     82SET INSTANCE_NUM = a.rnum
     83FROM Observation_Fact o
     84JOIN (
     85        SELECT  row_number() OVER(PARTITION BY encounter_num, patient_num, concept_cd, provider_id, start_date, modifier_cd ORDER BY encounter_num, patient_num, concept_cd, provider_id, start_date, modifier_cd ) as rnum,
     86                        obf.*
     87        FROM    Observation_Fact obf
     88        ) a ON  a.Encounter_Num = o.Encounter_Num
     89                AND a.Concept_Cd = o.Concept_Cd
     90                AND a.Provider_Id = o.Provider_Id
     91                AND a.Start_Date = o.Start_Date
     92                AND     a.Modifier_Cd = o.Modifier_Cd
     93
     94-- COMMIT
     95}}}