inappropriate vs what the doctor ordered

inappropriate

adj
  • Improper; adult; sexual. 

  • Not appropriate; not suitable for the situation, time, or place. 

what the doctor ordered

noun
  • Exactly what is necessary or useful in a given situation; something very beneficial or desirable. 

How often have the words inappropriate and what the doctor ordered occurred in a corpus of books? (source: Google Ngram Viewer )