通过中间服务“pfdcm”(不包括)查询pacs。

pacsquer的Python项目详细描述


https://img.shields.io/github/tag/fnndsc/pl-pacsquery.svg?style=flat-square:target:https://github.com/FNNDSC/pl-pacsqueryhttps://img.shields.io/docker/build/fnndsc/pl-pacsquery.svg?style=flat-square:target:https://hub.docker.com/r/fnndsc/pl-pacsquery/

摘要

用于查询远程pacs的多维数据集“fs”插件。

名称

pacsquery.py

概要

。代码块::bash

pacsquery.py –pfdcm <PACserviceIP:port> \
[–msg <jsonMsgString>] \ [–patientID <patientID>] \ [–PACSservice <PACSservice>] \ [–summaryKeys <keylist>] \ [–summaryFile <summaryFile>] \ [–resultFile <resultFile>] \ [–numberOfHitsFile <numberOfHitsFile>] \ <outputdir>

说明

‘pacsquery.py’ is a “FeedStarter” (FS) ChrisApp plugin that is used to query a PACS and start a new Feed.

Importantly, this app does not actually talk to a PACS directly; instead it interacts with an intermediary service, typically ‘pfdcm’. This intermediary service actually connects to a PACS and performs queries, which it returns to this app.

Thus, it is important to understand that this app does not need specific details on the PACS IP, port, AETITLE, etc. All of this information is managed by ‘pfdcm’. This does mean of course, that ‘pfdcm’ needs to be intantiated correctly. Please see the ‘pfdcm’ github wiki for specific instructions.

Note though that it is possible to pass to this app a ‘pfdcm’ compliant message string using the [–msg <jsonMsgString>]. This <jsonMsgString> can be used to set ‘pfdcm’ internal lookup and add new PACS entries. This <jsonMsgString> can also be used to perform a query.

However, most often, the simplest mechanism of query will be through the ‘–patientID’ and ‘PACSservice’ flags.

Finally, the <outputdir> positional argument is MANDATORY and defines the output directory (or relative dir when called through the CHRIS API) for result tables/files.

结果

Results from this app are typically three files in the <outputdir>. These are:

o summary file of the hits, using <keyList>, <summaryFile> o JSON formatted results from ‘pfdcm’, <resultFile> o hit file containing number of hits, <numberOfHitsFile>

参数

--pfdcm <PACserviceIP:port>
The IP and port specifier of the ‘pfdcm’ service.

—msg <jsonMsgString>]

A ‘pfdcm’ conforming message string. If sent to this app, the message string is passed through unaltered to ‘pfdcm’. This allows for setting up internals of ‘pfdcm’ and/or doing queries and interactions directly.

USE WITH CARE.

-patientid<;patientid>;]

The <patientID> string to query.

-pacsservice<;pacsservice>;]

The “name” of the PACS to query within ‘pfdcm’. This is used to look up the PACS IP, port, AETitle, etc.

-摘要键<;键列表>;]

A comma separated list of ‘keys’ to include in the summary report. Typically:

PatientID,PatientAge,StudyDescription,StudyInstanceUID,SeriesDescription,SeriesInstanceUID,NumberOfSeriesRelatedInstances

-摘要文件<;摘要文件>;]

The name of the file in the <outputdir> to contain the summary report.

-结果文件<;结果文件>;]

The name of the file in the <outputdir> to contain the results.

-数字文件<;数字文件>;]

The name of the file in the <outputdir> to contain the number of hits.

<;outputdir>;

The output directory.

运行

使用docker run

docker run -t --rm                      \
  -v $(pwd)/output:/output              \
  fnndsc/pl-pacsquery pacsquery.py      \
  --pfdcm localhost:5015                \
  --PACSservice orthanc                 \
  --PatientID 1234567\
  /output

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
带条纹的java开源CMS?   Java中的模板类   java为我的圣诞树建造底座   算法首次用户输入尝试不起作用(Java)   简单服务器客户端程序中的java EOF和SocketException   java的OpenJPA与OSGi配合使用吗   arraylist中的java排序   Java工具创建的WSDL文件存在WCF序列化问题   java公共布尔removeStudent(int-id)   正则表达式java正则表达式需要字符串验证   JavaSpring任务调度   java表“places”没有名为“smallDesc”的列   java将枚举集转换为整数数组   java将int数组转换为byte数组,反之亦然,最有效的方法是什么?   java错误:找不到适合添加的方法(字符串,类<RouterRequestManagerFragment>)   java JComponent不可见   javasocket编程中线程“awteventque0”java.lang.NullPointerException“异常”错误