All recorded internally at the practice for both medical history and posterity. Any outside requirement is dealt with on request and severity.
If the person or another persons life is in danger, the GP can make the relevant authorities aware.
You do realize that's what Kansas lawmakers almost want to do, right? They want to outlaw the act of anal sex, again. The only way they can verify that without eye witness testimony and/or personal confession is monitoring bedroom activities.