The client code is an HMAC of the user id. Rotating
CLIENT_CODE_HMAC_KEY orphans every existing scan, so it is never rotated casually.
Rules every change must follow
- An identity-to-health join happens only in a backend function, and writes an AccessLog row.
- No health data in emails, notification text, calendar titles, Pipedrive, or analytics.
- A doctor’s email never reaches a client-facing response.
- New entities hold no health values.