Changes between Version 3 and Version 4 of i2b2 HowTo Create an Ontology
- Timestamp:
- 10/03/13 10:00:34 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
i2b2 HowTo Create an Ontology
v3 v4 126 126 @DataDatabaseName VARCHAR(50) -- The name of the Data Database in which to create the Ontology, e.g. 'i2b2_b1_data' 127 127 128 SET @OntologyName = 'Test CiviCRM'128 SET @OntologyName = 'TestCiviCRM' -- Must not contain spaces 129 129 SET @Prefix = 'TestGenCV' 130 130 SET @OntologyDescription = 'TestGenvasc Study Details from CiviCRM' … … 214 214 SET @OntologyID = SCOPE_IDENTITY(); 215 215 216 SELECT @OntologyID;217 218 216 -- Create the ontology base code 219 217 … … 259 257 ,[VALUETYPE_CD] 260 258 FROM [i2b2ClinDataIntegration].[dbo].[i2b2Ontology] 261 WHERE OntologyID = ' + @OntologyID;259 WHERE OntologyID = ' + CONVERT(VARCHAR(10), @OntologyID); 262 260 263 261 EXEC (@TCreateBaseInOntologyTable); … … 280 278 ,[UPLOAD_ID] 281 279 FROM [i2b2ClinDataIntegration].[dbo].[i2b2OntologyConceptCodes] 282 WHERE OntologyID = ' + @OntologyID280 WHERE OntologyID = ' + + CONVERT(VARCHAR(10), @OntologyID); 283 281 284 282 EXEC (@TCreateBaseConceptTable); … … 288 286 ---------------------------------------------------------------- 289 287 290 291 }}} 288 }}}