Pharmaceutical compounding and extemporaneous preparation