A doctor would lose his/her license for releasing confidential information. the only situation in which they're allowed to release information is if you tell them you plan to hurt or kill somebody. Even if the doctor told the cops you were smoking a joint right in front of him, it would be inadmissable in court.