This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, February 20, 2013 1:20:36 AM(UTC)
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
#2
Posted
:
Thursday, February 21, 2013 3:47:12 AM(UTC)
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.
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.