Thailand has built a connected healthcare system to track people’s health even in rural villages.