I wish that were true, and I'd love to change OpenMRS to enforce this (and to have names be "keys" where the display name is a localized message based on this unique key), but I don't believe it is currently the case or possible to assume.  I think I'm say more something along the lines of:
a) Should we change from random uuids to non-random "uuids" that are something like "EncounterType-XRay" (probably bad)
b) Just have a single place where these constants are defined in java, have these exposed into a globally accessible javascript object, and then refer to things throughout Java by the constant and throughout javascript by a javascript property that is human readable.