UNPKG

659 BJavaScriptView Raw
1var DocumentStore = require('ewd-document-store');
2var interface = require('nodem');
3var db = new interface.Gtm();
4var ok = db.open();
5var documentStore = new DocumentStore(db);
6var fs = require('fs');
7
8var contentStore = new documentStore.DocumentNode('qewdContentStore');
9var json = contentStore.getDocument(true);
10fs.writeFileSync('contentStore.json', JSON.stringify(json, null, 2), 'utf-8');
11
12var clinicalStatements = new documentStore.DocumentNode('rippleClinStatements');
13json = clinicalStatements.getDocument(true);
14fs.writeFileSync('clinicalStatements.json', JSON.stringify(json, null, 2), 'utf-8');
15
16console.log('done');
17
18db.close();
\No newline at end of file