Electronic phenotyping as coarsening at random: identifiability of clinical states from diagnosis codes | Synapse