0

我需要在 fo-dicom 中实现一个取消令牌,但没有找到任何合适的解决方案或示例,基于此我可以获得一个想法或帮助,所以如果有人已经实现或有任何示例,请在此处发布。非常感谢,

                DicomDataset sqContent = new DicomDataset
                {
                    { DicomTag.Modality, "OT" },
                    { DicomTag.ScheduledProcedureStepStartDate, DateTime.Now.Date }
                }; //Content of the sequence

                DicomSequence sq = new DicomSequence(DicomTag.ScheduledProcedureStepSequence, sqContent); // Create sequence, add content
                ds.AddOrUpdate(sq);
                byte[] videoBytes = File.ReadAllBytes(dicomModel.UploadMediaModel.Files[0].FileName);
                MemoryByteBuffer buffer = new MemoryByteBuffer(videoBytes);
                pixelData.AddFrame(buffer);
                DicomFile dicomfile = new DicomFile(ds);
                dicomfile.FileMetaInfo.TransferSyntax = DicomTransferSyntax.Lookup(DicomUID.MPEG4HP41);
                dicomfile.Save(fileName);

                await client.AddRequestAsync(new DicomCStoreRequest(dicomfile));
                await client.SendAsync();
4

0 回答 0