It only says “medical emergency”. It does not say mandatory court appearances. By my reading of the bill, and with the limited knowledge I have of the Corrections and Conditional Release Act, the form of your bill may not accomplish exactly what you intended.
I think that's an important question that we'll perhaps have to get legal advice on, if you don't have that today.