dot-getCheckId function

Internal function to define the id of each check.