States with state income taxes already tax their citizens' income regardless of where it's earned (AFAIK -- the states I've dealt with do, but I'm not familiar with the east coast). Wouldn't that cover it? If residency of Maryland is a requirement for the medical coverage, that would also achieve the tax collection to pay for it.
How does that solve the problem? Live in a low-tax state until your medical risk reaches a threshold, move (perhaps across a nearby state line, as would likely be the case with states like Illinois and Maryland where the major metros are a short drive away from red-state borders) to a higher-tax state when the payoff becomes worth it. Isn't this a textbook adverse selection problem?