You may find the term p.r.n. on a prescription meaning "whenever necessary".