Add function to generate MD5 for observations