My understanding is it's a mix of your medical record, your referral statement from your pcm, and your non medical assessment from your CoC.
The severity, likelihood of recovery, and affect on your ability to do your job are the factors used.
I, for example, just started my terminal leave...