Skip to content

Commit

Permalink
feat: studies level QIDO-RS retrieval is enable
Browse files Browse the repository at this point in the history
  • Loading branch information
JieuTang committed Jul 12, 2022
1 parent 3a7fed7 commit 86b4adb
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 4 deletions.
2 changes: 0 additions & 2 deletions DICOMwebQIDORS.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,4 @@ class DICOMwebQIDORS {
}
}



export default DICOMwebQIDORS;
127 changes: 127 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
},
"dependencies": {
"lodash": "^4.17.21",
"node-fetch": "^3.2.7",
"url-parse": "^1.5.10"
},
"config": {
Expand Down
21 changes: 19 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,25 @@ import QIDO from "./DICOMwebQIDORS.js";
let qido = new QIDO();

(async function () {
console.log("Hello World! Here is DICOMwebQIDORS package.");
console.log(qido);

await qido.init();

qido.queryMode = "studies";
qido.hostname = "test.dicom.tw";
qido.pathname = "/dicomWeb";
qido.protocol = "http";
qido.port = "999";

let tempQueryParameter = {};

tempQueryParameter.PatientID = '*';
tempQueryParameter.limit = "10";
tempQueryParameter.offset = "0";

qido.queryParameter = tempQueryParameter;

await qido.query();
console.log(qido.response);
})();


Expand Down

0 comments on commit 86b4adb

Please sign in to comment.