What factors are considered when classifying plants based on their medical uses?