LAUREL BRIDGE

Program Class

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

SystemObject
  LaurelBridge.DCFExamples.CustomUIDGenerationProgram

Namespace:  LaurelBridge.DCFExamples.CustomUIDGeneration
Assembly:  CustomUIDGeneration (in CustomUIDGeneration.exe) Version: DCF34 r13043 DCF_3_4_56_20220408 NetFramework
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