China is fighting the coronavirus with a digital QR code. Here’s how it works

Imagine your daily routine being entirely dependent on a smart phone app. Leaving your home, taking the subway, going to work, entering cafes, restaurants and shopping malls — each move, dictated by the color shown on your screen. Green: you’re free to proceed. Amber or Red: you’re barred from entry.