Objective: To create a natural language processing (NLP) algorithm to identify transgender patients in electronic health records.
Design: We developed an NLP algorithm to identify patients (keyword + billing codes). Patients were manually reviewed, and their health care services categorized by billing code.