Hi Dmytro
My understanding is that the uid needs only to be unique with respect to the whole treestructure and as the ou's are diffrent the uid=abcd adresses a diffrent object. This is at least valid with respect to the LDAP definition.
Your sample shows very well the usecasse. A HCRegulatedOrganisation can not be the same object as a HCProfessional, even if the uid's are the same. At least the HPD would not prohibit this. It may even make much sense to allow the same uid in difrent tree contextes.
Your sample seems rather unlikely to me (at least in the swiss context). But it is in a genaral context sill possible that there are difrent assigers, creating the uid's for the difrent treebranches, using the same generation pattern, so assignig vlues out of the same range.
Best regards Heinz