以下是讨论 UID 唯一性的规范中的引用:
Unique Identifiers (UIDs) provide the capability to uniquely identify a wide variety of items. They guarantee uniqueness across multiple countries, sites, vendors and equipment. Different classes of objects, instance of objects and information entities can be distinguished from one another across the DICOM universe of discourse irrespective of any semantic context.
PS 3.5 2017a - Data Structures and Encoding - 9 Unique Identifiers (UIDs) http://dicom.nema.org/medical/dicom/current/output/html/part05.html#chapter_9
如果您要更改像素数据(将压缩(传输语法)更改为有损或一起覆盖),则必须更改SOP Instance UID (0008,0018)
.
About Media Storage SOP Instance UID (0002,0003)
正如您所注意到的,它属于第 2 组,即文件元信息标头。这些标签仅在您将实例序列化到硬盘时出现。这应该与以下值具有相同的值SOP Instance UID (0008,0018)
。因此,如果你改变其中之一,你也应该改变其他。请参阅this https://stackoverflow.com/q/32689446/5779732规范中的答案和以下部分:
C.12.1.1.1 SOP Class UID, SOP Instance UID
The SOP Class UID and SOP Instance UID Attributes are defined for all DICOM IODs. However, they are only encoded in Composite IODs with the Type equal to 1. See Section C.1.2.3. When encoded they shall be equal to their respective Attributes in the DIMSE Services and the File Meta Information header (see PS3.10 Media Storage).
PS3.3 2021a - Information Object Definitions - C.12.1.1.1 http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.12.html#sect_C.12.1.1.1
The Referenced SOP Instance UID (0008,1155)
是对其他实例的引用。这取决于您是否需要根据您的情况进行更改;一般不需要。请参阅this https://stackoverflow.com/a/60828951/5779732回答有关引用的 SOP 实例 UID 的更多详细信息。
The Transfer Syntax UID (0002,0010)
需要根据您应用的新传输语法进行更改。在覆盖像素数据时,如果要更改它,请相应地更改 UID。
The SOP Class UID (0008,0016)
and Media Storage SOP Class UID (0002,0002)
定义您的 SOP 类。仅更改像素数据并没有改变它。所以你不需要改变这个UID。
The Implementation Class UID (0002,0012)
与创建者相关联。无需改变。
关于的决定Study Instance UID (0020,000D)
and Series Instance UID (0020,000E)
取决于您的用例。这取决于您希望用户如何处理新创建的实例。比如说,在为研究创建报告时,许多实现不会更改研究 IUID,而是创建新系列(即新系列 IUID)。
更多详情请参考以下回答:
https://stackoverflow.com/a/46316162/5779732 https://stackoverflow.com/a/46316162/5779732
https://stackoverflow.com/a/53775161/5779732 https://stackoverflow.com/a/53775161/5779732