The heart rate is different while dancing, studying and riding a bike because the amount of blood needed for each activity is different. Blood pumps as fast as it as needed by the cells, which is why riding a bike has fast heart rate while studying has a regular heart rate.
The Hippa law that addresses this privileged communication is called the Privacy Law