Zzzzzz: Thread safe counter/Random Number Uniqueness across different systems/applications cannot be guaranteed.Ĭ] More Complex 1.2.840.xxxxx.30.152.99999.235.20.Multi-threaded environment is an issue.Other technique generally used is to append time stamp (with ticks) to organization root. Does not guarantee uniqueness across different systems/applications.In multi-threaded environment, enough care should be taken.When the instance is deleted and next instance is created, the earlier counter should not be used.So say your SeriesInstanceUID is "1.1.1.1.1" then your SOPInstanceUID may be "1.1.1.1. One simple logic is to get your SeriesInstanceUID and increment it by 1. Refer this answer for more details about DICOM UID.Ī] Increment the counters Return "2.25." + new BigInteger(littleEndianOrder).ToString(CultureInfo.InvariantCulture) public static string GuidToUidStringUsingStringAndParse(Guid value) The sample code code below creates a valid DICOM UID in C# based on a GUID value. Most programming languages have build in support to create a UUID. UIDs for things like Study UID, Series UID, SOP Instance UID can be created by converting a UUID to a DICOM UID. The later method was added to the DICOM standard with CP-1156 in 2012. ![]() One based on a registered UID root and one based on a UUID. There are 2 ways in DICOM to create UIDs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |