pynetdicom.utils.validate_uid¶
- 
pynetdicom.utils.validate_uid(uid)[source]¶
- Return True if uid is considered valid. - If - ENFORCE_UID_CONFORMANCEis- Truethen the following rules apply:- 1-64 characters, inclusive 
- Each component may not start with 0 unless the component itself is 0 
- Components are separated by - .
- Valid component characters are 0-9 of the Basic G0 Set of the International Reference Version of ISO 646:1990 (ASCII) 
 - If - ENFORCE_UID_CONFORMANCEis- Falsethen the following rules apply:- 1-64 characters, inclusive 
 - Parameters
- uid (pydicom.uid.UID) – The UID to check for validity. 
- Returns
- Trueif the value is considered valid,- Falseotherwise.
- Return type