2017-06-15 30 views

回答

2

试试这个

dicomdataset.InsertElementAndSetValue(DicomTag.PatientName, "Namrata"); 

DicomElement element = ds.FindFirstElement(null, DicomTag.PatientName, false); 
    if (element == null) 
    { 
    element = ds.InsertElement(null, false, DicomTag.PatientName, DicomVRType.PN, false, 0); 
    } 
+0

但我怎么插入了患者姓名虚值? – Namrata

+0

dicomdataset.InsertElementAndSetValue(DicomTag.PatientName,“Namrata”) – Eklavya

+0

如果它有帮助,那么你可以将它标记为答案:) – Eklavya