dicom3.0和dcmtk学习笔记

dcmtk学习笔记

DCMTK开源库更偏重于按照层(Layer)来实现DICOM应用实体(AE)之间的连接(ACSE)及消息传输(DIMSE),主要分为DIMSE(应用层)、ACSE(属于OSI七层协议中的应用层)和DUL(Dicom Upper Layer层,该层与OSI中的TCP/IP层对接)三大部分。用户通过使用DCMTK提供的DICOM协议中规定的各层的数据结构和操作函数,按照DICOM标准中规定的流程来实现自己的DICOM服务。

find

findscu 10.9.19.82 11112 -to 60 -ta 60 -td 60 -aec DCM4CHEE -aet test_186
  1. -to 发送连接请求的timeout

  2. -ta ACSE messages(连接控制服务元素/应用实体之间的连接)信息获取的timeout

  3. -td DIMSE messages(数据交换)信息获取的timeout

    每种DIMSE消息所传输的内容各有不同,请求消息(request)中主要包括: Message ID:在连接中每个消息的唯一标识。

    Affected SOP Class UID:DIMSE消息中指定的SOP Class,即Pressentation Context 中指定的Abstarct Synatax。

    Affected SOP Instance UID:真正传输的实体数据标识符。

    Priority:消息的优先级,分为High、Normal、Low三种,但是大多数接收端都忽略。

    Data Set:传输的数据。

     

总结:查询的根目录模型决定查询的key要怎么写,查询到哪一级别,上面的级别都可以是条件,比如检查日期为筛选条件查询级别可以是series或者image。具体哪个查询级别能返回什么值参考标准查询/检索信息模型下表内容,可以返回上一级别可返回的信息。

 

move

move是哪个级别,path信息要精确到该级别。级别只有四种:patient,study,series,image。

  1. patient 级别拉取数据

    movescu.exe -P -v -aec DCM4CHEE -aet test_40 -aem test_40 -to 60 -ta 60 -td 60 10.9.19.186 11112 -k 0008,0052=PATIENT -k 0010,0020=8002269089

    注释:patient根目录模型,patient级别拉取数据。

  2. study级别拉取数据

    movescu.exe -P -v -aec DCM4CHEE -aet test_40 -aem test_40 -to 60 -ta 60 -td 60 10.9.19.186 11112 -k 0008,0052=STUDY -k 0010,0020=8002269089 -k 0020,000D=1.2.840.113619.2.359.3.2474927632.59.1580795874.870

    注释:patient根目录模型,study级别拉取数据。

    movescu.exe -S -v -aec DCM4CHEE -aet test_40 -aem test_40 -to 60 -ta 60 -td 60 10.9.19.186 11112 -k 0008,0052=STUDY -k 0020,000D=1.2.840.113619.2.359.3.2474927632.59.1580795874.870

    注释:study根目录模型, series级别拉取数据。

     

  3. series级别拉取数据

    movescu.exe -P -v -aec DCM4CHEE -aet test_40 -aem test_40 -to 60 -ta 60 -td 60 10.9.19.186 11112 -k 0008,0052=SERIES -k 0010,0020=8002269089 -k 0020,000D=1.2.840.113619.2.359.3.2474927632.59.1580795874.870 -k 0020,000E=1.2.840.113619.2.359.3.2474927632.59.1580795874.875

    注释:patient根目录模型,series级别拉取数据。

    movescu.exe -S -v -aec DCM4CHEE -aet test_40 -aem test_40 -to 60 -ta 60 -td 60 10.9.19.186 11112 -k 0008,0052=SERIES -k 0020,000D=1.2.840.113619.2.359.3.2474927632.59.1580795874.870 -k 0020,000E=1.2.840.113619.2.359.3.2474927632.59.1580795874.875

    注释:study根目录模型,series级别拉取数据。

  4. image级别拉取数据

    movescu.exe -P -v -aec DCM4CHEE -aet test_40 -aem test_40 -to 60 -ta 60 -td 60 10.9.19.186 11112 -k 0008,0052=IMAGE -k 0010,0020=8002269089 -k 0020,000D=1.2.840.113619.2.359.3.2474927632.59.1580795874.870 -k 0020,000E=1.2.840.113619.2.359.3.2474927632.59.1580795874.875 -k 0008,0018=1.2.840.113619.2.359.3.2474927632.59.1580795874.877.1

    注释:patient根目录模型,image级别拉取数据。

    movescu.exe -S -v -aec DCM4CHEE -aet test_40 -aem test_40 -to 60 -ta 60 -td 60 10.9.19.186 11112 -k 0008,0052=IMAGE -k 0020,000D=1.2.840.113619.2.359.3.2474927632.59.1580795874.870 -k 0020,000E=1.2.840.113619.2.359.3.2474927632.59.1580795874.875 -k 0008,0018=1.2.840.113619.2.359.3.2474927632.59.1580795874.877.1

    注释:study根目录模型,image级别拉取数据。

 

 

 

标准查询/检索信息模型(DICOM3.0标准)

额外的一些tag值。

Table Additional Query/Retrieve Attributes

Attribute Name Tag Attribute Description
Number of Patient Related Studies (0020,1200) The number of studies that match the Patient level Query/Retrieve search criteria
Number of Patient Related Series (0020,1202) The number of series that match the Patient level Query/Retrieve search criteria
Number of Patient Related Instances (0020,1204) The number of Composite Object Instances that match the Patient level Query/Retrieve search criteria
Number of Study Related Series (0020,1206) The number of series that match the Study level Query/Retrieve search criteria
Number of Series Related Instances (0020,1209) The number of Composite Object Instances in a Series that match the Series level Query/Retrieve search criteria
Number of Study Related Instances (0020,1208) The number of Composite Object Instances that match the Study level Query/Retrieve search criteria
Modalities in Study (0008,0061) All of the distinct values used for Modality (0008,0060) in the Series of the Study.
SOP Classes in Study (0008,0062) The SOP Classes contained in the Study.
Anatomic Regions in Study Code Sequence (0008,0063) The anatomic regions of interest in this Study (i.e., external anatomy, surface anatomy, or general region of the body).One or more Items are permitted in this Sequence.NoteIf the Instances in the Study contain Anatomic Region Sequence (0008,2218), then the Items of this Sequence may be the union of the codes in the Instances. Alternatively, multiple (usually contiguous) anatomic regions might be combined into a single code. E.g., (51185008, SCT, "Chest"), (113345001, SCT, "Abdomen") and (12921003, SCT, "Pelvis") might be combined into (416775004, SCT, "Chest, Abdomen and Pelvis").If Instances in the Study do not contain Anatomic Region Sequence (0008,2218) but do contain Body Part Examined (0018,0015), then codes equivalent to recognized values of Body Part Examined (0018,0015) may be used. See Annex L “Correspondence of Anatomic Region Codes and Body Part Examined Defined Terms” in PS3.16 for standard equivalent values. E.g., if an Instance contained Body Part Examined (0018,0015) with a value of "CHEST", then this Sequence might contain (51185008, SCT, "Chest").
Alternate Representation Sequence (0008,3001) A Sequence of Items, each identifying an alternate encoding of an image that matc
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值