This code system https://fhir.nhs.uk/CodeSystem/Ambulance-GenderIdentity defines the following codes:

CodeDisplay
01Male (including trans man)
02Female (including trans woman)
03Non-binary
04Other (not listed)
XNot Known (not recorded)
ZNot Stated (person asked but declined to provide a response)