What is the science bringing up the rear 'miracle' recovery, and can we implement it into popular pills?

I'm referring to the x-factor, like almost an extreme placebo effect that undermines a doctor's zero casual prediction of survival, or recovery from a permanent ailment. It seems that surrounded by general, a positive outlook can sometimes produce such results, but (as far as I know) we don't really understand what is going on in the body/brain that cause it. Are we now, or will we ever be, capable of studying this anomaly, and if so, how could we implement it to advance popular fields of treatment?
Answers:
I know that patients who manage to come to grips with the reality that they are going to die are the ones that usually end up with a "miraculous" recovery. This is one of the reason doctors advise terminally ill patients to seek psychiatric help.
Nature heals but prognostication is human

Related Questions:
How long will vyvanse stay contained by my system?   Post-colonoscopy throbbing?   Sleepwalkers - what happenned to you?   Physicians is this correct?   Are cures for diseases possible and they are newly undiscovered?  
  • In medication is IU alike as element?
  • Is calcium citrate better than calcium carbonate?
  • Does Suboxone affect Vicodin use?