Pātuhitia tēnei: Hermaphrodites and the medical invention of sex