And even if you manage to solve that problem, the blockchain still doesn't help with medical records, authenticity or anything else. You still have to trust the people entering those records. you still have to trust that the person who said "those pills are authentic" on the blockchain.
Smart contracts are also the biggest pile of hype. You can't have "code is law" because other wise you wind up with The DAO.... All code has bugs. All code has corner cases where assumptions fall apart. You can't code law.
Blockchain is pure, 100% hype. Almost every single use case falls apart under even a small amount of scrutiny. The only use the blockchain serves is as a platform for fraud. If you are a scammer, there is no better place to be than in crypto.