c# 獲取病人檢查圖像(dicom Q/R)

點擊查看詳細信息

DICOM Query/Retrieve 

本程序未採用任何第三方控件

支持二次深度開發

解釋:

Query/retrieve 簡化序列圖 (只有一個c-move-rsp 回合)

 

對於SCU (發起方)

 

通俗來講Query 是指請求對方系統把 請求某個級別(Patient/Study/Series/Image)的信息傳送給自己。當然也可以進行關聯查詢要求對方把各個級別的信息都返回給自己。

 

Retrieve是指SCU通過Query 拿到信息後,要求對方根據請求級別 (Patient/Study/Series/Image) 發送影像給己方。

 

對於SCP (服務提供方)

 

需要提供各個級別的服務供SCU Query/Retrieve.

 

C-Find/C-Move 有幾個重要的概念

 

一個是 模型(Information model),

 

Patient root

 

Study root

 

Patientstudy root

 

一個是 級別(Query/retrieve level)

 

Patient level, study level, series level, image level

 

Patient root 下可有包含patient Level 在內的四個level

 

Study root 下只有三個level, study root 下不能q/r patient level 信息與影像。

 

C-find

 

既然需要依據某個條件查詢一組或某個patient/study/series/image, 必須需要一個或一組查詢鍵值, 同時需要告訴對方應該返回什麼, 還有怎樣區分每組數據。DICOM 中定義的query key, return key and unique key.

 

Unique key 爲 patient id, study instance UID, series instance UID, SOP instance UID.

 

Query key 對應每個level 有不同的值,常見的比如檢查級的studydate, 序列級的modality等,具體參見DICOM和IHE.

 

Unique key 必須在返回列中,否則SCU無法區分各組數據。

 

有些Q/R SCP 支持關聯查詢,SCU 可以根據Study level的query key來獲取series.

 

C-move 相對簡單

 

SCU 發送請求前,啓動一個storage SCP 用於接收影像,

 

依據c-find 的返回結果,讀取unique key,

 

Patient root

 

Patient level Patient id

 

Study level patient id, study instance UID

 

Series level patient id, study instance UID, series instance UID

 

Image level patient id, study instance UID, series instance UID, SOP instance UID

 

Study root

 

Study level study instance UID

 

Series level study instance UID, series instance UID

 

Image level study instance UID, series instance UID, SOP instance UID

 

每個level, 自己及上一個級別的unique key 必須提供作爲query key.

 

C-move 中還有一個概念叫Retrieve Destination AE. 通俗講,就是告訴對方應該發送影像到什麼地方。對於SCU, 通常它可以讓他發送給自己,也可以讓它發送給另一個AE(甚至另一臺機器,系統)。這一點也是C-move 和C-Get的區別所在,C-get 只能要求對方發給自己。

 

Q/R SCU告訴對方(Q/R SCP) unique key 和retrieve destination, SCP通過解析retrieve destination AE title 獲取在SCP方註冊的IP和端口,發送影像至此storage SCP, 同時發送c-move-rsp 到 Q/R SCU. 當影像發送結束後會發送實際統計結果至Q/R SCU.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章