Partial string comparison checks whether one string matches only part of another, rather than requiring the complete values to be equal. This can be useful for searching or filtering, but it is unsafe when an identifier must select one exact record.
In cyber security, a partial match can cause software to authorize the wrong object or apply a destructive action to unintended data. For example, a quota-eviction routine that compares only the textual prefixes of DICOM Study Instance UIDs may delete a different study whose identifier begins with the same characters. Use exact equality for security-sensitive decisions such as authorization, deletion, replacement, and retention; validate identifiers consistently and test for values that share prefixes.


