Changes between Version 3 and Version 4 of i2b2 HowTo Create a Project


Ignore:
Timestamp:
07/16/13 10:08:04 (11 years ago)
Author:
Richard Bramley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • i2b2 HowTo Create a Project

    v3 v4  
    6060  * db.project.data.username
    6161  * db.project.data.password
    62   * db.project.meta.databasename
     62  * db.project.meta.databasename [1]
    6363  * db.project.meta.username
    6464  * db.project.meta.password
     
    8686  * JAVA_HOME
    8787
    88 iiii. Edit the following SQL scripts in the following ways:
     88iv. Edit the following SQL scripts in the following ways:
    8989
    9090  * sql/sqlserver/meta/tables/create_sqlserver_metadata_tables.sql
    9191   * Remove the creation of BIRN table.
    92    * Rename the ONYX table to something appropriate to the new project's ontology. [1]
     92   * Rename the ONYX table to something appropriate to the new project's ontology. [2]
    9393
    9494  * sql/sqlserver/meta/inserts/schemes_insert_data.sql
    95    * Edit the values for C_KEY, C_NAME and C_DESCRIPTION [2]
     95   * Edit the values for C_KEY, C_NAME and C_DESCRIPTION [3]
    9696
    9797  * sql/sqlserver/meta/inserts/table_access_insert_data.sql
    98    * Use the ontology table name (from [1]) for C_TABLE_CD and C_TABLE_NAME.
    99    * Give the ontology a root node name and use it for C_HLEVEL and C_DIMCODE. [3]
    100    * Use the ontology description (from [2] C_DESCRIPTION) for the C_FULLNAME and C_TOOLTIP.
     98   * Use the {ontology table name from [2]} for C_TABLE_CD and C_TABLE_NAME.
     99   * Give the ontology a root node name and use it for C_HLEVEL and C_DIMCODE. [4]
     100   * Use the {ontology description from [3] C_DESCRIPTION} for the C_FULLNAME and C_TOOLTIP.
    101101
    102102  * sql/sqlserver/work/inserts/workplace_access_insert_data.sql
    103103   * Change the C_TABLE_CD for both records to the project name.
     104
     105=== 3. Run the project creation scripts
     106
     107Whilst in the procedures directory do the following commands:
     108
     109  * sudo su root (And enter your password)
     110  * export I2B2_PROCEDURES_HOME=$PWD
     111  * bin/project-install/1-project-install.sh [Project Name]
     112  * bin/project-install/2-update-datasources.sh [Project Name]
     113
     114=== 4. Create the ontology
     115
     116Creating the ontology is beyond the scope of this page.  But if you want to create the minimum required to stop an error when clicking the top-level node of the ontology, run the following SQL script:
     117
     118  {{{
     119  #!sql
     120
     121  INSERT INTO {MetaData database name from [1]}.dbo.{Ontology table name from [2]}
     122           ([C_HLEVEL]
     123           ,[C_FULLNAME]
     124           ,[C_NAME]
     125           ,[C_SYNONYM_CD]
     126           ,[C_VISUALATTRIBUTES]
     127           ,[C_TOTALNUM]
     128           ,[C_BASECODE]
     129           ,[C_METADATAXML]
     130           ,[C_FACTTABLECOLUMN]
     131           ,[C_TABLENAME]
     132           ,[C_COLUMNNAME]
     133           ,[C_COLUMNDATATYPE]
     134           ,[C_OPERATOR]
     135           ,[C_DIMCODE]
     136           ,[C_COMMENT]
     137           ,[C_TOOLTIP]
     138           ,[UPDATE_DATE]
     139           ,[DOWNLOAD_DATE]
     140           ,[IMPORT_DATE]
     141           ,[SOURCESYSTEM_CD]
     142           ,[VALUETYPE_CD])
     143     VALUES
     144           (0
     145           ,'{Ontology root node name from [4]}'
     146           ,'{Ontology description from [3]}'
     147           ,'N'
     148           ,'CA'
     149           ,NULL
     150           ,NULL
     151           ,NULL
     152           ,'concept_cd'
     153           ,'concept_dimension'
     154           ,'concept_path'
     155           ,'N'
     156           ,'LIKE'
     157           ,'{Ontology root node name from [4]}'
     158           ,NULL
     159           ,'{Ontology description from [3]}'
     160           ,GETDATE()
     161           ,NULL
     162           ,NULL
     163           ,'{A suitable source perhaps Ontology description from [3]}'
     164           ,NULL)
     165GO
     166
     167  }}}