Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, February 20, 2013 1:20:36 AM(UTC)

kb7  
kb7

Groups: Registered
Posts: 71


Hello,

I am editing patient information using the above method.

I am able to edit PatientName, ReferringPhysicianName, Modality, PatientSex, Study Description.. But I don't know why is it not editing PatientAge.... I take the age in string and use the following code:

 string Age = txtBoxAge.Text;

  using (DicomDataSet ds = new DicomDataSet())
                    {
                        ds.Load(@"C:\test.dcm", DicomDataSetLoadFlags.LoadAndClose);
                        ds.InsertElementAndSetValue(DicomTag.PatientName, Name);
                        ds.InsertElementAndSetValue(DicomTag.PatientAge, Age);  //Not editing
                        ds.InsertElementAndSetValue(DicomTag.PatientSex, Gender);
                        ds.InsertElementAndSetValue(DicomTag.Modality, Mod);
                        ds.InsertElementAndSetValue(DicomTag.ReferringPhysicianName, Doc);
                        ds.InsertElementAndSetValue(DicomTag.StudyDescription, Desc);
                        ds.Save(k, DicomDataSetSaveFlags.None);
                     }

Can you please help me to edit or add PatientAge in the dicom image?

Thanks

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, February 21, 2013 3:47:12 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


The Patient Age element has a value representation of AS (Age String). For this type of element, you can insert it first using the InsertElement() method, then set its value using the SetConvertValue() method.
If you run into any problems and would like to discuss this issue further, please open a support ticket by sending an email from a valid address to support@leadtools.com and mention this forum post.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.051 seconds.