It’s regulated by a law and the health card, the health IC card says specifically only medical institutions can write to the card. It is true that if you go to a clinic and later on to a hospital, they would be able to read each other’s record that they have put on the card but as expressly authorized by the legislature.