Quantifying Fine-Grained Privacy Risk and Representativeness in Medical Data