Class DateHelper
Inheritance
System.Object
DateHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace:EvilDICOM.Anonymization.Helpers
Assembly:EvilDICOM.dll
Syntax
public class DateHelper
Properties
View SourceBaseDate
Declaration
public static DateTime BaseDate { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
RandomDate
Declaration
public static DateTime RandomDate { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
Methods
View SourceDateRelativeBaseDate(Nullable<DateTime>, Nullable<DateTime>)
Declaration
public static DateTime? DateRelativeBaseDate(DateTime? original, DateTime? reference)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<System.DateTime> | original | |
| System.Nullable<System.DateTime> | reference |
Returns
| Type | Description |
|---|---|
| System.Nullable<System.DateTime> |
YoungerThan89(String)
Checks to see if the patient age is less than 89 years old
Declaration
public static bool YoungerThan89(string file)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | file | Path to DICOM file containing patient information |
Returns
| Type | Description |
|---|---|
| System.Boolean | boolean indication test |