modified-dicom-pacs 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
package/bin/dicomweb-pacs CHANGED
@@ -16,9 +16,17 @@ console.log('starting modified-dicom-pacs...');
16
16
  process.chdir('./node_modules/modified-dicom-pacs');
17
17
  const ls = spawn('node', ['src/app.js']);
18
18
 
19
- let TestsTxtFile = path.join(baseDir, 'webpacsApp', 'node_modules', 'modified-dicom-pacs', 'Testss.Txt');
20
- let getTxtFile = path.join(baseDir, 'webpacsApp', 'node_modules', 'modified-dicom-pacs', 'getText.txt');
21
- let DataNativeFolder = path.join(baseDir, 'data', 'Native');
19
+ // let TestsTxtFile = path.join(baseDir, 'webpacsApp', 'node_modules', 'modified-dicom-pacs', 'Testss.Txt');
20
+ // let getTxtFile = path.join(baseDir, 'webpacsApp', 'node_modules', 'modified-dicom-pacs', 'getText.txt');
21
+
22
+ // let DataNativeFolder = path.join(baseDir, 'data', 'Native');
23
+
24
+ let mainUrl = 'D:/markematics/work.hassaan/projects/react practice/OfficeTry/Helical-version2';
25
+ let DataNativeFolder = `${mainUrl}/data/Native`;
26
+
27
+ let TestsTxtFile = `${mainUrl}/webpacsApp/node_modules/modified-dicom-pacs/Testss.Txt`;
28
+ let getTxtFile = `${mainUrl}/webpacsApp/node_modules/modified-dicom-pacs/getText.txt`;
29
+
22
30
 
23
31
  ls.stdout.on('data', (data) => {
24
32
  console.log(`stdout mao out: ${data}`)
package/config/default.js CHANGED
@@ -1,7 +1,11 @@
1
1
  const path = require('path');
2
2
 
3
3
  let baseDir = path.resolve(__dirname.split('webpacsApp')[0]);
4
- let DataNativeFolder = path.join(baseDir, 'data', 'Native');
4
+ // let DataNativeFolder = path.join(baseDir, 'data', 'Native');
5
+
6
+ let mainUrl = 'D:/markematics/work.hassaan/projects/react practice/OfficeTry/Helical-version2';
7
+ let DataNativeFolder = `${mainUrl}/data/Native`;
8
+
5
9
 
6
10
  const config = {
7
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "modified-dicom-pacs",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "A modified version of DICOM PACS implementation",
5
5
  "main": "app.js",
6
6
  "scripts": {
package/src/app.js CHANGED
@@ -11,11 +11,18 @@ const fs1 = require('fs-extra');
11
11
  // let DataNativeFolder = `${__dirname.split("\\node_modules\\dicomweb-pacs\\")[0]}\\data\\Native`;
12
12
  // let DataNativeFolder = `${__dirname.split('\\DicomPacs\\dicomweb-pacs\\src')[0]}\\data\\Native`;
13
13
 
14
+
14
15
  let baseDir = path.resolve(__dirname.split('webpacsApp')[0]);
15
- let DataNativeFolder = path.join(baseDir, 'data', 'Native');
16
- let DataTargerFolder = path.join(baseDir, 'data', 'Target');
17
- let getTxtFile = path.join(baseDir, 'webpacsApp', 'calling.txt');
18
- let databaseFile = path.join(baseDir, 'database.sqlite3');
16
+ // let DataNativeFolder = path.join(baseDir, 'data', 'Native');
17
+ // let DataTargerFolder = path.join(baseDir, 'data', 'Target');
18
+ // let getTxtFile = path.join(baseDir, 'webpacsApp', 'calling.txt');
19
+ // let databaseFile = path.join(baseDir, 'database.sqlite3');
20
+
21
+ let mainUrl = 'D:/markematics/work.hassaan/projects/react practice/OfficeTry/Helical-version2';
22
+ let DataNativeFolder = `${mainUrl}/data/Native`;
23
+ let DataTargerFolder = `${mainUrl}/data/Target`;
24
+ let getTxtFile = `${mainUrl}/webpacsApp/calling.txt`;
25
+ let databaseFile = `${mainUrl}/database.sqlite3`;
19
26
 
20
27
  // console.log(`${__dirname.split("\\\Pacs2\\dicomweb-pacs\\src")[0]}\\database.sqlite3`,"*******Path DataNative********")
21
28
  console.log(DataNativeFolder, '*******Path DataNative********');
package/src/utils.js CHANGED
@@ -11,7 +11,12 @@ let sql;
11
11
  let baseDir = path.resolve(__dirname.split('webpacsApp')[0]);
12
12
  // // open database in memory
13
13
  // console.log("path=-=", path.join(__dirname, '../../../database.sqlite3'));
14
- let databaseFile = path.join(baseDir, 'database.sqlite3');
14
+ // let databaseFile = path.join(baseDir, 'database.sqlite3');
15
+
16
+
17
+ let mainUrl = 'D:/markematics/work.hassaan/projects/react practice/OfficeTry/Helical-version2';
18
+ let databaseFile = `${mainUrl}/database.sqlite3`;
19
+
15
20
  //connect to db
16
21
  let db = new sqlite3.Database(databaseFile, sqlite3.OPEN_READWRITE, (err) => {
17
22
  if (err) {