com.goldenhammer.dicom
Class DICOMFieldGenerator

java.lang.Object
  extended bycom.goldenhammer.dicom.DICOMFieldGenerator

public class DICOMFieldGenerator
extends java.lang.Object

Class to generate random values for a subset of DICOM header fields.


Method Summary
static DICOMFieldGenerator getInstance()
          Returns the unique instance of this class.
 java.lang.String getPatientID()
          Returns a 10 character string composed of a random string of integers to represent a patient ID.
 java.lang.String getStudyID()
          Returns a 4 character string composed of a random string of integers to represent a study ID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DICOMFieldGenerator getInstance()
Returns the unique instance of this class.

Returns:
the unique instance of this class

getPatientID

public java.lang.String getPatientID()
Returns a 10 character string composed of a random string of integers to represent a patient ID.

Returns:
a random patient ID

getStudyID

public java.lang.String getStudyID()
Returns a 4 character string composed of a random string of integers to represent a study ID

Returns:
a random study ID