标签:
杂谈 |
The application in this article will allow easy storing of electrocariographs (ECGs) to a DICOM PACS.
http://www.codeproject.com/KB/cs/ECGtoPACS.aspx
ECG 工具包
http://sourceforge.net/projects/ecgtoolkit-cs/
https://lrf1ga.blu.livefilestore.com/y1mnTEOuF12-5pzeB5kEa7VsNPwfYhFJs0pyoWtrbRBO-0za0GPlfSbLoH2Uyaz5uu2bX7_-VR5hKMZ813YWXgGtNt1cDB8LXS3pvMzJlPs2twVLfNSX6Lh3S38ew9bIuYDveBzas-6p7_icpKVBLCJ4g/image_thumb[2]%20528FB2B0.png
上面是Labview的图形查看工具和格式转换软件。
根据上面描述的,可以发现者个程序还支持Client-Server模式,可以通过网络进行远程调用,进行格式转换的。
即Web Access to DICOM Persistent Objects (WADO),讲述了如何用Http协议来传输DICOM文件。
这个软件里面包换了WADO接口转换成PACS的格式。
http://www.codeproject.com/KB/cs/ECGtoPACS.aspx
To configure the application, change the values specified in ECGtoPACS.exe.config:
http://www.codeproject.com/images/copy_16.png格式分析转换软件" TITLE="ECG
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="ImportDir" value="C:\ecg2pacs" />
<add key="EraseOnSuccess" value="true" />
<!-- configuration items for the DICOM-ECG format -->
<add key="Mortara Compatibility" value="true" />
<!-- configuration items for the DICOM PACS -->
<add key="Server" value="127.0.0.1" />
<add key="AESCU" value="ANYSCU" />
<add key="AESCP" value="STORESCP" />
<add key="Port" value="104" />
</appSettings>
</configuration>
Place a SCP-ECG, HL7 aECG or DICOM-ECG file into the ImportDir. Example ECG files can be found here.
Using the Code
Reading an ECG of unknown type can be done by:
http://www.codeproject.com/images/copy_16.png格式分析转换软件" TITLE="ECG
UnknownReader reader = new UnknownReader();
IECGFormat src = reader.Read(sFilePath);
if (reader.getError() != 0)
{
ServiceLogger.Instance.Log("Reading ECG error: " +
reader.getErrorMessage() + "!", EventLogEntryType.FailureAudit);
return;
}
if ((src == null)
|| !src.Works())
{
ServiceLogger.Instance.Log("Unknown error during reading of ECG!",
EventLogEntryType.FailureAudit);
return;
}
Sending ECG to PACs is performed by:
http://www.codeproject.com/images/copy_16.png格式分析转换软件" TITLE="ECG
IECGManagementSystem pacs = ECGConverter.Instance.getECGManagementSystem("PACS");
pacs.Config.Set(_SystemConfig); // set configuration of PACS
// save ECG to PACS providing an PatientID (null) and DICOM format configuration.
if (pacs.SaveECG(src, null, _FormatConfig) != 0)
{
ServiceLogger.Instance.Log("Storing ECG to PACS failed!",
EventLogEntryType.FailureAudit);
return;
}

加载中…