使用orthanc搭建自己的DICOM服务器

OHIF框架里的studyList和影像是需要读取一个dicom服务器才能显示的,框架提供了一个默认的服务器地址:
https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs
如果希望读取本地dicom数据,就需要先开启一个服务器,让OHIF给本地服务器发送请求。

技术选型:

在这里插入图片描述
首先要去官网安装适合自己版本的orthanc,也可以在这里下载和我一样的版本:https://download.csdn.net/download/qq_38853948/19803437?spm=1001.2014.3001.5503

跟着步骤安装好后,打开安装目录下的Orthanc Server文件夹,先双击OrthancService.exe,会出现一个命令行界面一闪而过,找到并打开README.txt说明文档,里边有这么一段:

By default, Orthanc listens to incoming DICOM connections on TCP port 4242 and incoming HTTP connections on TCP port 8042.

用浏览器打开8042端口就可以使用。
界面是这样的:
在这里插入图片描述
服务器需要手动上传dicom文件
点击右上角Upload按钮,出现以下界面:
在这里插入图片描述
点击Select files to upload,然后选择要上传的dicom文件即可,选择好后点击Start the upload等待进度条满了就可以了,上传好后点击左上角Lookup回退到初始界面,点击All patients/All studies/Do lookup这三个按钮都可以看到上传的dicom数据的相关信息。

当然,配置到这里只能说是把数据传到本地服务器上了,还有很多关键信息需要注意,打开./Orthanc Server/Configuration可以看到有很多的json文件,这些都是是Orthanc的配置文件。

首先打开dicomweb.json,为了后续使用,配置文件需要稍作修改:

{
  /**
     * The following options control the configuration of the Orthanc
     * plugin adding support of WADO and DICOMweb.
     **/
  "DicomWeb": {
    "Enable": true, // Whether DICOMweb support is enabled
    "Root": "/dicom-web/", // Root URI of the DICOMweb API (for QIDO-RS, STOW-RS and WADO-RS)
    "EnableWado": true, // Whether WADO-URI (aka. WADO) support is enabled
    "WadoRoot": "/wado", // Root URI of the WADO-URI (aka. WADO) API
    "Host": "localhost", // Hard-codes the name of the host for subsequent WADO-RS requests
    "Ssl": false, // Whether HTTPS should be used for subsequent WADO-RS requests
    "QidoCaseSensitive": true,
    "studiesMetadata": "Full",
    "SeriesMetadata": "Full"
  }
}

其中Root,WadoRoot,Host这三个参数非常重要。

然后打开orthanc.json文件,其中的HttpPort用于配置端口,文件默认给的值是8042

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐