forked from OHDSI/Broadsea
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path100_populate_source_source_daimon.sql
More file actions
20 lines (15 loc) · 1.05 KB
/
100_populate_source_source_daimon.sql
File metadata and controls
20 lines (15 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
-- remove any previously added database connection configuration data
truncate webapi.source;
truncate webapi.source_daimon;
-- OHDSI CDM source
INSERT INTO webapi.source( source_id, source_name, source_key, source_connection, source_dialect)
VALUES (1, 'OHDSI Eunomia Demo Database', 'EUNOMIA',
'jdbc:postgresql://broadsea-atlasdb:5432/postgres?user=postgres&password=mypass', 'postgresql');
-- CDM daimon
INSERT INTO webapi.source_daimon( source_daimon_id, source_id, daimon_type, table_qualifier, priority) VALUES (1, 1, 0, 'demo_cdm', 0);
-- VOCABULARY daimon
INSERT INTO webapi.source_daimon( source_daimon_id, source_id, daimon_type, table_qualifier, priority) VALUES (2, 1, 1, 'demo_cdm', 10);
-- RESULTS daimon
INSERT INTO webapi.source_daimon( source_daimon_id, source_id, daimon_type, table_qualifier, priority) VALUES (3, 1, 2, 'demo_cdm_results', 0);
-- EVIDENCE daimon - no evidence data to load in demo dataset
-- INSERT INTO webapi.source_daimon( source_daimon_id, source_id, daimon_type, table_qualifier, priority) VALUES (4, 1, 3, 'demo_cdm_results', 0);