Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitk::DICOMweb Class Reference

#include <mitkDICOMweb.h>

Public Types

typedef web::http::uri_builder MitkUriBuilder
 
typedef web::http::http_request MitkRequest
 
typedef web::http::http_response MitkResponse
 
typedef web::http::methods MitkRESTMethods
 

Public Member Functions

 DICOMweb ()
 
 DICOMweb (utility::string_t baseURI)
 Creates a DICOMweb service instance which allow basic DICOM operations on the given base URI. More...
 
pplx::task< void > SendSTOW (utility::string_t filePath, utility::string_t studyUID)
 Sends a STOW request with the file in the given path to the study given bei its UID. More...
 
pplx::task< void > SendWADO (utility::string_t filePath, utility::string_t studyUID, utility::string_t seriesUID, utility::string_t instanceUID)
 Sends a WADO request for an DICOM object instance matching the given uid parameters and stores it at the given file path. More...
 
pplx::task< std::string > SendWADO (utility::string_t folderPath, utility::string_t studyUID, utility::string_t seriesUID)
 Sends a WADO request for an DICOM object series matching the given uid parameters and stores all the containing instances at the given folder path. More...
 
pplx::task< web::json::value > SendQIDO (mitk::RESTUtil::ParamMap map)
 Sends a QIDO request containing the given parameters to filter the query. More...
 

Detailed Description

Definition at line 39 of file mitkDICOMweb.h.

Member Typedef Documentation

◆ MitkRequest

◆ MitkResponse

◆ MitkRESTMethods

◆ MitkUriBuilder

typedef web::http::uri_builder mitk::DICOMweb::MitkUriBuilder

Definition at line 42 of file mitkDICOMweb.h.

Constructor & Destructor Documentation

◆ DICOMweb() [1/2]

mitk::DICOMweb::DICOMweb ( )

Definition at line 15 of file mitkDICOMweb.cpp.

◆ DICOMweb() [2/2]

mitk::DICOMweb::DICOMweb ( utility::string_t  baseURI)

Creates a DICOMweb service instance which allow basic DICOM operations on the given base URI.

Parameters
baseURIthe uri for the PACS server: for example a dcm4chee http://<ip:port>/dcm4chee-arc/aets/DCM4CHEE/

Definition at line 17 of file mitkDICOMweb.cpp.

References mitk::RESTUtil::convertToUtf8(), and MITK_INFO.

Member Function Documentation

◆ SendQIDO()

pplx::task< web::json::value > mitk::DICOMweb::SendQIDO ( mitk::RESTUtil::ParamMap  map)

Sends a QIDO request containing the given parameters to filter the query.

Example Map: mitk::RESTUtil::ParamMap seriesInstancesParams; seriesInstancesParams.insert(mitk::RESTUtil::ParamMap::value_type(U("limit"), U("1")));

Parameters
mapthe map of parameters to filter the query
Returns
the task to wait for, which unfolds the result JSON response for the request when finished

Definition at line 196 of file mitkDICOMweb.cpp.

References mitk::IRESTManager::Get, us::GetModuleContext(), and mitk::IRESTManager::SendJSONRequest().

Referenced by SendWADO().

◆ SendSTOW()

pplx::task< void > mitk::DICOMweb::SendSTOW ( utility::string_t  filePath,
utility::string_t  studyUID 
)

Sends a STOW request with the file in the given path to the study given bei its UID.

Parameters
filePaththe path to a valid DICOM file which should be send
studyUIDthe DICOM study uid
thetask to wait for

Definition at line 56 of file mitkDICOMweb.cpp.

References mitk::RESTUtil::convertToUtf8(), MITK_INFO, MITK_WARN, mitk::IRESTManager::Post, and mitk::IRESTManager::SendBinaryRequest().

◆ SendWADO() [1/2]

pplx::task< void > mitk::DICOMweb::SendWADO ( utility::string_t  filePath,
utility::string_t  studyUID,
utility::string_t  seriesUID,
utility::string_t  instanceUID 
)

Sends a WADO request for an DICOM object instance matching the given uid parameters and stores it at the given file path.

Parameters
filePaththe path at which the retrieved DICOM object instance will be stored
studyUIDthe DICOM study uid
seriesUIDthe DICOM series uid
instanceUIDthe DICOM instance uid
Returns
the task to wait for, which unfolds no value when finished

Definition at line 118 of file mitkDICOMweb.cpp.

References mitk::IRESTManager::Get, mitkThrow, and mitk::IRESTManager::SendJSONRequest().

Referenced by SendWADO().

◆ SendWADO() [2/2]

pplx::task< std::string > mitk::DICOMweb::SendWADO ( utility::string_t  folderPath,
utility::string_t  studyUID,
utility::string_t  seriesUID 
)

Sends a WADO request for an DICOM object series matching the given uid parameters and stores all the containing instances at the given folder path.

Parameters
folderPaththe path at which the retrieved DICOM object instances of the retrieved series will be stored
studyUIDthe DICOM study uid
seriesUIDthe DICOM series uid
Returns
the task to wait for, which unfolds the name of the first DICOM object file within the folder path

Definition at line 137 of file mitkDICOMweb.cpp.

References MITK_ERROR, mitkThrow, SendQIDO(), and SendWADO().


The documentation for this class was generated from the following files: