What you describe more or less exists here in Spain. The (mandatory) national ID is a NFC smart card with a PKI key [1]. With that (among a lot of other things) I can login into my regional government website [2] and look at my (single-payer) healthcare medical history, download it, see who has requested access to it, restrict access to some parts of it, make an appointment, ask for a new doctor, etc. etc. Of course it is sadly more closed-source, proprietary, lowest-bidder work than your vision, but at least the idea is out there and available for millions of people already.
Comments
What you describe more or less exists here in Spain. The (mandatory) national ID is a NFC smart card with a PKI key [1]. With that (among a lot of other things) I can login into my regional government website [2] and look at my (single-payer) healthcare medical history, download it, see who has requested access to it, restrict access to some parts of it, make an appointment, ask for a new doctor, etc. etc. Of course it is sadly more closed-source, proprietary, lowest-bidder work than your vision, but at least the idea is out there and available for millions of people already.
[1] https://www.dnielectronico.es/PortalDNIe/PRF1_Cons02.action?...
[2] http://www.san.gva.es/web/portalhse/inicio