improper vs what the doctor ordered

improper

adj
  • unsuitable to needs or circumstances; inappropriate; inapt 

  • Not properly named; See, for example, improper fraction 

  • Not in keeping with conventional mores or good manners; indecent or immodest 

  • Not consistent with established facts; incorrect 

  • Of a complex random variable, correlated with its conjugate 

  • Not according to facts; inaccurate or erroneous 

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 improper and what the doctor ordered occurred in a corpus of books? (source: Google Ngram Viewer )