Class DicomUIDGenerator
Class for generating DICOM UIDs.
Inherited Members
Namespace: Dicom
Assembly: cs.temp.dll.dll
Syntax
public class DicomUIDGenerator
Methods
Generate()
Declaration
[Obsolete("Will be deprecated. Use static method GenerateNew or GenerateFromDerivedUUID instead.")]
public DicomUID Generate()
Returns
| Type | Description |
|---|---|
| DicomUID |
Generate(DicomUID)
If sourceUid is known, return associated destination UID, otherwise generate and return
a new destination UID for the specified sourceUid.
Declaration
public DicomUID Generate(DicomUID sourceUid)
Parameters
| Type | Name | Description |
|---|---|---|
| DicomUID | sourceUid | Source UID. |
Returns
| Type | Description |
|---|---|
| DicomUID | Known or generated UID. |
GenerateDerivedFromUUID()
Generate a UUID-derived UID, according to http://medical.nema.org/medical/dicom/current/output/html/part05.html#sect_B.2
Declaration
public static DicomUID GenerateDerivedFromUUID()
Returns
| Type | Description |
|---|---|
| DicomUID | A new UID with 2.25 prefix. |
GenerateNew()
Generate a new DICOM UID.
Declaration
[Obsolete("This method may return statistically non-unique UIDs and is deprecated, use the method GenerateDerivedFromUUID()")]
public static DicomUID GenerateNew()
Returns
| Type | Description |
|---|---|
| DicomUID | Generated UID. |
RegenerateAll(DicomDataset)
Regenerate all UIDs in a DICOM dataset.
Declaration
public void RegenerateAll(DicomDataset dataset)
Parameters
| Type | Name | Description |
|---|---|---|
| DicomDataset | dataset | Dataset in which UIDs should be regenerated. |