Gets the second value.
public string SecondValue {get;}
Public ReadOnly Property SecondValue As String
public:
property String^ SecondValue {
String^ get();
}
The value of the second DICOM element used in the comparison.
This example compares two datasets with different patient IDs.
using Leadtools.Dicom.Common.Anonymization;
using Leadtools.Dicom;
using Leadtools.Dicom.Common.Compare;
public void CompareSample()
{
string dicomFileNameIn = Path.Combine(LEAD_VARS.ImagesDir, "IMAGE3.dcm");
using (DicomDataSet dataset1 = new DicomDataSet())
{
dataset1.Load(dicomFileNameIn, DicomDataSetLoadFlags.None);
using (DicomDataSet dataset2 = new DicomDataSet())
{
List<Difference> differences = null;
dataset2.Copy(dataset2, null, null);
//
// Set a different value for patient id
//
dataset2.InsertElementAndSetValue(DicomTag.PatientID, "DifferentValue");
differences = dataset1.Compare(dataset2);
foreach (Difference difference in differences)
{
if (difference.IsChanged())
{
string info = string.Format("{0} has changed from {1} to {2}.", difference.Name, difference.FirstValue, difference.SecondValue);
Console.WriteLine(info);
Console.WriteLine("Html Diff");
Console.WriteLine("\t{0}", difference.HtmlDiff);
}
}
}
}
}
static class LEAD_VARS
{
public const string ImagesDir = @"C:\Users\Public\Documents\LEADTOOLS Images";
}
Imports Leadtools.Dicom.Common.Anonymization
Imports Leadtools.Dicom
Imports Leadtools.Dicom.Common.Compare
Public Sub CompareSample()
Dim dicomFileNameIn As String = Path.Combine(LEAD_VARS.ImagesDir, "IMAGE3.dcm")
Using dataset1 As New DicomDataSet()
dataset1.Load(dicomFileNameIn, DicomDataSetLoadFlags.None)
Using dataset2 As New DicomDataSet()
Dim differences As List(Of Difference) = Nothing
dataset2.Copy(dataset2, Nothing, Nothing)
'
' Set a different value for patient id
'
dataset2.InsertElementAndSetValue(DicomTag.PatientID, "DifferentValue")
differences = dataset1.Compare(dataset2)
For Each difference As Difference In differences
If difference.IsChanged() Then
Dim info As String = String.Format("{0} has changed from {1} to {2}.", difference.Name, difference.FirstValue, difference.SecondValue)
Console.WriteLine(info)
Console.WriteLine("Html Diff")
Console.WriteLine(vbTab & "{0}", difference.HtmlDiff)
End If
Next
End Using
End Using
End Sub
Public NotInheritable Class LEAD_VARS
Public Const ImagesDir As String = "C:\Users\Public\Documents\LEADTOOLS Images"
End Class
Products |
Support |
Feedback: SecondValue Property - Leadtools.Dicom.Common |
Introduction |
Help Version 19.0.2017.6.23
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.