LAUREL BRIDGE

Program Class

DICOM Connectivity Framework V3.4
This example demonstrates several approaches on how to generate custom UIDs.
Inheritance Hierarchy

SystemObject
  LaurelBridge.DCF.Examples.CustomUIDGenerationProgram

Namespace:  LaurelBridge.DCF.Examples.CustomUIDGeneration
Assembly:  CustomUIDGeneration (in CustomUIDGeneration.exe) Version: DCF34 r11232 DCF_3_4_20
Syntax

C#
public class Program

The Program type exposes the following members.

Constructors

  NameDescription
Public methodProgram
Initializes a new instance of the Program class
Top
Methods

  NameDescription
Public methodStatic memberMain
Main entry point for the CustomUIDGeneration example.
Top
Remarks

When there is a need for a UID, the DCF library will call the CreateUid method to generate one. Unless overridden, the DataDictionary uses the default UidFactory to generate a well-formed UID.

PS3.5 B.2 of the DICOM specification describes how to create a UUID derived UID. See the UuidDerivedUidFactory class in this example for a reference implementation.

The UID factory may be overridden by constructing an instance of UidFactory with organization and prefix string arguments. Further, the UidFactory may be extended to for implementations that wish to use their own ISO registration number and/or implement their own UID generation algorithm.

See Also

Reference

IUidFactory
UidFactory
DataDictionary.CreateUid
DataDictionary.UidFactory