more code for the handling of medication registry