I got my initial medical with state A.
Then did my yearly revalidation with state B.
Got a license from state B.
Then got my next medical revalidation in state C.
Now I'm working in state D.
At some point I plan to work in state C and get my license transferred there.
An EASA medical is valid in all EASA states, as is an EASA license.