[James,Tim] Fixing issue with generating prescrption id