Social Security isn't likely to grant disability for insomnia alone, but when combined with other physical or mental problems, it could tip the scales in your favor.
If, after hip replacement surgery, you continue to experience symptoms of pain and restricted motion beyond the typical recovery time, you may be entitled to disability benefits.