expectorating

verb
  1. coughing up and spitting out phlegm or mucus from the respiratory tract
  2. Usage: medical/formal

Examples