The sum of processes performed by a pharmacist in drug preparation including the calculations, mixing, assembling, packaging, or labeling of a drug: as the result of a prescription or drug order by a physician, dentist, or veterinarian and for the purpose of, or in relation to, research, teaching, or chemical analysis