<?xml version="1.0" encoding="UTF-8"?>

<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="gender-identity"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml">
            <p>This code system http://hl7.org/fhir/gender-identity defines the following codes:</p>
            <table class="codes">
              <tr>
                <td style="white-space:nowrap">
                  <b>Code</b>
                </td>
                <td>
                  <b>Display</b>
                </td>
                <td>
                  <b>Definition</b>
                </td>
              </tr>
              <tr>
                <td style="white-space:nowrap">transgender-female
                  <a name="gender-identity-transgender-female"> </a>
                </td>
                <td>transgender female</td>
                <td>the patient identifies as transgender male-to-female</td>
              </tr>
              <tr>
                <td style="white-space:nowrap">transgender-male
                  <a name="gender-identity-transgender-male"> </a>
                </td>
                <td>transgender male</td>
                <td>the patient identifies as transgender female-to-male</td>
              </tr>
              <tr>
                <td style="white-space:nowrap">non-binary
                  <a name="gender-identity-non-binary"> </a>
                </td>
                <td>non-binary</td>
                <td>the patient identifies with neither/both female and male</td>
              </tr>
              <tr>
                <td style="white-space:nowrap">male
                  <a name="gender-identity-male"> </a>
                </td>
                <td>male</td>
                <td>the patient identifies as male</td>
              </tr>
              <tr>
                <td style="white-space:nowrap">female
                  <a name="gender-identity-female"> </a>
                </td>
                <td>female</td>
                <td>the patient identifies as female</td>
              </tr>
              <tr>
                <td style="white-space:nowrap">other
                  <a name="gender-identity-other"> </a>
                </td>
                <td>other</td>
                <td>other gender identity</td>
              </tr>
              <tr>
                <td style="white-space:nowrap">non-disclose
                  <a name="gender-identity-non-disclose"> </a>
                </td>
                <td>does not wish to disclose</td>
                <td>the patient does not wish to disclose his gender identity</td>
              </tr>
            </table>
          </div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/package-source">
    <extension url="packageId">
      <valueId value="hl7.fhir.uv.xver-r4b.r4"/>
    </extension>
    <extension url="version">
      <valueString value="0.0.1-snapshot-2"/>
    </extension>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="pa"/>
  </extension>
  <url value="http://hl7.org/fhir/gender-identity"/>
  <version value="4.3.0"/>
  <name value="GenderIdentity"/>
  <status value="draft"/>
  <experimental value="true"/>
  <date value="2025-09-13T16:38:45-04:00"/>
  <publisher value="Patient Administration"/>
  <contact>
    <name value="Patient Administration"/>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/pafm"/>
    </telecom>
  </contact>
  <description value="This example code System defines a set of codes that can be used to indicate a patient's gender identity."/>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="001"/>
      <display value="World"/>
    </coding>
  </jurisdiction>
  <caseSensitive value="true"/>
  <content value="complete"/>
  <concept>
    <code value="transgender-female"/>
    <display value="transgender female"/>
    <definition value="the patient identifies as transgender male-to-female"/>
  </concept>
  <concept>
    <code value="transgender-male"/>
    <display value="transgender male"/>
    <definition value="the patient identifies as transgender female-to-male"/>
  </concept>
  <concept>
    <code value="non-binary"/>
    <display value="non-binary"/>
    <definition value="the patient identifies with neither/both female and male"/>
  </concept>
  <concept>
    <code value="male"/>
    <display value="male"/>
    <definition value="the patient identifies as male"/>
  </concept>
  <concept>
    <code value="female"/>
    <display value="female"/>
    <definition value="the patient identifies as female"/>
  </concept>
  <concept>
    <code value="other"/>
    <display value="other"/>
    <definition value="other gender identity"/>
  </concept>
  <concept>
    <code value="non-disclose"/>
    <display value="does not wish to disclose"/>
    <definition value="the patient does not wish to disclose his gender identity"/>
  </concept>
</CodeSystem>