The hospital ended up creating a "Jane Doe" account so the *medical equipment* could monitor Lee's contractions etc.
Why should the software that runs medical equipment care about the patient's legal gender? If they have a uterus, they have a uterus, period.