Changes between Version 3 and Version 4 of i2b2 HowTo Create an Ontology


Ignore:
Timestamp:
10/03/13 10:00:34 (11 years ago)
Author:
Richard Bramley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • i2b2 HowTo Create an Ontology

    v3 v4  
    126126                @DataDatabaseName VARCHAR(50) -- The name of the Data Database in which to create the Ontology, e.g. 'i2b2_b1_data'
    127127               
    128 SET @OntologyName = 'Test CiviCRM'
     128SET @OntologyName = 'TestCiviCRM' -- Must not contain spaces
    129129SET @Prefix = 'TestGenCV'
    130130SET @OntologyDescription = 'TestGenvasc Study Details from CiviCRM'
     
    214214SET @OntologyID = SCOPE_IDENTITY();
    215215
    216 SELECT @OntologyID;
    217 
    218216-- Create the ontology base code
    219217
     
    259257      ,[VALUETYPE_CD]
    260258  FROM [i2b2ClinDataIntegration].[dbo].[i2b2Ontology]
    261   WHERE OntologyID = ' + @OntologyID;
     259  WHERE OntologyID = ' + CONVERT(VARCHAR(10), @OntologyID);
    262260   
    263261EXEC (@TCreateBaseInOntologyTable);
     
    280278      ,[UPLOAD_ID]
    281279  FROM [i2b2ClinDataIntegration].[dbo].[i2b2OntologyConceptCodes]
    282   WHERE OntologyID = ' + @OntologyID
     280  WHERE OntologyID = ' +  + CONVERT(VARCHAR(10), @OntologyID);
    283281   
    284282EXEC (@TCreateBaseConceptTable);
     
    288286----------------------------------------------------------------
    289287
    290 
    291 }}}
     288}}}