Can doctors dispense medicines to their patients in their clinic? Are there any rules for dispensing and stocking medicines in clinic? If so how much worth drugs can be kept in a clinic?

Please give suggestions.