1 | var DocumentStore = require('ewd-document-store');
|
2 | var interface = require('nodem');
|
3 | var db = new interface.Gtm();
|
4 | var ok = db.open();
|
5 | var documentStore = new DocumentStore(db);
|
6 | var fs = require('fs');
|
7 |
|
8 | var text = fs.readFileSync('node_modules/qewd-ripple/data/contentStore.json', 'utf-8');
|
9 | var json = JSON.parse(text);
|
10 |
|
11 | var contentStore = new documentStore.DocumentNode('qewdContentStore');
|
12 | contentStore.setDocument(json);
|
13 |
|
14 | text = fs.readFileSync('node_modules/qewd-ripple/data/clinicalStatements.json', 'utf-8');
|
15 | json = JSON.parse(text);
|
16 | var clinicalStatements = new documentStore.DocumentNode('rippleClinStatements');
|
17 | clinicalStatements.setDocument(json);
|
18 |
|
19 | console.log('done');
|
20 |
|
21 | db.close();
|