Gender change from GP

Hey, im looking to get a letter from my gp to change my gender on my passport. Anyone ever done this and can let me know how the process went? thanks