C-WORKLIST服务
标准方式标签写入不了设备的可通过如下方式解决:
OFCondition result1;
DcmItem *ditem1 = NULL;
result1 = ds->findOrCreateSequenceItem(DCM_ScheduledProcedureStepSequence, ditem1);
if (result1.good())
{
ditem1->putAndInsertString(DCM_Modality, modality.c_str());
ditem1->putAndInsertString(DCM_ScheduledProcedureStepStartDate, study_date.c_str());
ditem1->putAndInsertString(DCM_SourceApplicationEntityTitle, study_time.c_str());
}
C-STORE服务
1.注意设置传输超时的时长。
2.注意设置上一次传输完成的时常。
OFCondition status = dcff.saveFile(fullpath.c_str());
其中第二个参数(const E_TransferSyntax writeXfer = EXS_Unknown,)
可以设置对应的压缩类型
virtual OFCondition saveFile(const OFFilename &fileName,
const E_TransferSyntax writeXfer = EXS_Unknown,
const E_EncodingType encodingType = EET_UndefinedLength,
const E_GrpLenEncoding groupLength = EGL_recalcGL,
const E_PaddingEncoding padEncoding = EPD_noChange,
const Uint32 padLength = 0,
const Uint32 subPadLength = 0,
const E_FileWriteMode writeMode = EWM_fileformat);
还属于初学阶段,对应dicom协议还需要多加学习,记录一下平时踩过的坑。