I am writing a Python routine to generate DICOM files. In that case, I need to specify the Instance Creator UID tag, that is used to uniquely identify the device that created the DICOM file. So I would need a function that generates such a UID for a given machine and a specific user that launched the DICOM creation routine.
I guess that the UUID could be created from the MAC adress and the user name. However, UID generated with the uuid
module in python are random, so the UID is different each time that the routine is called.
Is there a way to generate deterministic UID, that would depend on the MAC address and user name?