Provincial legislation, especially Quebec's, complements the Criminal Code, and the two can work together. Provincial laws serve to establish accountability mechanisms, create complaint or report management committees and empower inspectors, all in an effort to give facilities that provide care to vulnerable individuals more structure. What the Criminal Code does is basically criminalize conduct committed by individuals with criminal intent.
The two pieces of legislation can coexist while trying to achieve different things, although they can have aspects that overlap at certain times. The greater the role of mens rea in the conduct or the more criminal the conduct, the more it moves away from provincial and territorial regulation, at one end of the spectrum, towards the Criminal Code, at the other.