For years, transgender and nonbinary patients have been misgendered, at times addressed by the wrong name, because medical records did not reflect their identity.