Self employed Medicare Deduction if disabled

I understand that someone on social security who is self employed can deduct their Medicare B premiums.

Is the same true if someone is on social security dissability and is self employed? Will IRS distiquish them as different?

Thank you in advance.