Creates variables and domains in medical alerts