Changes between Version 9 and Version 10 of i2b2 HowTo Create an Ontology


Ignore:
Timestamp:
07/22/14 16:12:14 (10 years ago)
Author:
Richard Bramley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • i2b2 HowTo Create an Ontology

    v9 v10  
    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 = 'PrimaryCareData' -- Must not contain spaces
    129 SET @Prefix = 'PCD'
    130 SET @OntologyDescription = 'Primary Care Data from GEM'
    131 SET @OntologyBaseNode = 'PrimaryCareData'
     128SET @OntologyName = 'EMISPrimaryCareData' -- Must not contain spaces
     129SET @Prefix = 'EMISPCD'
     130SET @OntologyDescription = 'EMIS Primary Care Data from GEM'
     131SET @OntologyBaseNode = 'EMISPrimaryCareData'
    132132SET @SourceSystem = 'Gem Risk Stratification'
    133133SET @MetaDatabaseName = 'i2b2_app03_genvasc_MetaData'
     
    178178
    179179SET @UpgradeOntology1_6A = '
     180   USE ' + @MetaDatabaseName + ';
     181
    180182    ALTER TABLE ' + @OntologyName + '
    181183        ADD m_applied_path varchar(700) NULL
     
    196198
    197199SET @UpgradeOntology1_6B = '
     200   USE ' + @MetaDatabaseName + ';
     201
    198202    UPDATE ' + @OntologyName + '
    199203    SET m_applied_path = ''@''