Iirc, a precedent had been set because a woman (probably a young girl) had a 'penis' constructed but kept her female genitalia at least until the wrong sex hormones cause them to atrophy.
The American who sued the British Government because he couldn't have nonbinary on his passport, etc.* has also had this type of surgery.
I wish they'd stop calling these creations genitalia or worse vaginas. They're not, they're nothing like. It makes as much sense to call them a second anus. Do they line it with colon? If they do it makes more sense to call it a second anus.
*last I heard he'd lost, was several tens of thousands short on his crowdfund but claimed to be planning to appeal 🤡