File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ const url = 'http://localhost:8080/dicomweb';
4444const client = new DICOMwebClient.api.DICOMwebClient ({url});
4545const studyInstanceUID = ' 1.2.3.4' ;
4646const seriesInstanceUID = ' 1.2.3.5' ;
47+ const searchInstanceOptions = {
48+ studyInstanceUID,
49+ seriesInstanceUID
50+ };
4751client .searchForInstances (searchInstanceOptions).then ((instances ) => {
4852 const promises = []
4953 for (let i = 0 ; i < instances .length ; i++ ) {
@@ -55,10 +59,9 @@ client.searchForInstances(searchInstanceOptions).then((instances) => {
5559 };
5660 const promise = client .retrieveInstanceMetadata (retrieveInstanceOptions).then (metadata => {
5761 const imageType = metadata[0 ][" 00080008" ][" Value" ];
58- if ( imageType[2 ] ! == " VOLUME" ) {
59- return (null );
62+ if (imageType[2 ] = == " VOLUME" ) {
63+ return (metadata[ 0 ] );
6064 }
61- return (metadata[0 ]);
6265 });
6366 promises .push (promise);
6467 }
You can’t perform that action at this time.
0 commit comments