No laws prevent medical professionals from reporting ongoing or current criminal acts, such as possession of illegal drugs. The law does not discourage people from reporting criminal acts occuring in front of them (e.g. even your priest or lawyer could report drugs you bring with you to the confessional booth or the attorney's office). So this is legal.