Changes between Initial Version and Version 1 of i2b2 HowTo Add the Concept codes to the Observation_Fact table


Ignore:
Timestamp:
09/15/16 16:51:05 (8 years ago)
Author:
dan.lawday
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • i2b2 HowTo Add the Concept codes to the Observation_Fact table

    v1 v1  
     1you will need to update the Load_observation_''source'' Proc. \\ \\
     2If this is not yet created in the Programmability folder for you database then create one based on the Brave or Briccs one.
     3\\ \\
     4within the Proc there are two CTE*s the first of which is the **!StudyData** CTE`* and the second **Facts** which is made up of some union joins, it's the **Facts** area you will need to update.
     5\\^*CTE = Common Table Expression^
     6\\ \\
     7**!StudyData** get the create record observations (for Redcap you'll have two, one for Gelnfield, Redcap and another for external, Redcap ext)
     8\\
     9  NB: In the LOAD_Observations_RedCap you will see this listed as 'create record' however in the LOAD_Observations_CiviCRM it will done via a series of joins e.g the LOAD_ValidEnrollments view joined to \\
     10  civicrm_contact joined to... \\
     11  ... civicrm_value_genvasc_recruitment_data_5
     12The Second CTE is the **Facts** which have many many many union joins all for different types of data. including, but not limited to, the following:
     13
     14- **Date Fields**
     15- **Exist if '1' Fields**
     16- **Text and Enum Fields**
     17- **Numeric Fields**
     18- Recruitment Site
     19- Age at Interview