The idiom just what the doctor ordered means exactly what is required or wanted. Example: Alan: Orange juice? Greg: Thanks! Orange juice is just what the doctor ordered.