There are legal provisions on this. New Brunswick has a such thing as a cross-border license, for American practicing physicians who occasionally practice in Canada. I imagine if the time was split more equally, you may be required hold a license in the province and state you are practicing in, and the length of residency may matter as well.