Skip to content

Commit

Permalink
docs: change README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JieuTang committed Jul 17, 2022
1 parent 8be1812 commit eb28033
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,31 @@ import WADO from "csy-dicomweb-wado-rs-uri";
//實體化
let wado = new WADO();

//"必須"自己初始化
//查詢模式設定:rs、uri
wado.queryMode = "rs";

//查詢階層設定:studies、series、instances
// wado.queryLevel = "studies";
//查詢階層設定:studies、series、instances
// wado.queryLevel = "studies";
//有使用到的套件參數設定:url-parse package
wado.hostname = "test.dicom.tw";
wado.pathname = "/dicom-web";
wado.protocol = "https";
wado.port = "443";
wado.studyInstanceUID = '1.3.46.670589.45.1.1.4993912214784.1.5436.1538560373543';

//設定 Token:現在尚未啟用
// let myHeaders = {};
// myHeaders.token = "jf903j2vunf9843nvyf934qc";
// await qido.setUseToken(myHeaders);

//有使用到的套件參數設定:url-parse package
wado.hostname = "test.dicom.tw";
wado.pathname = "/dicom-web";
wado.protocol = "https";
wado.port = "443";
wado.studyInstanceUID = '1.3.46.670589.45.1.1.4993912214784.1.5436.1538560373543';
//"必須"自己初始化
await wado.init();

//設定 Token:現在尚未啟用
// let myHeaders = {};
// myHeaders.token = "jf903j2vunf9843nvyf934qc";
// await qido.setUseToken(myHeaders);
//只查詢到 Series
await wado.querySeriesByStudy();

//"必須"自己初始化
await wado.init();
console.log(wado.response);
//查詢 Series 底下所有的 Instance 還有底下所有的 Frame
await wado.queryInstanceBySeries();



Expand Down

0 comments on commit eb28033

Please sign in to comment.