{
  "resourceType": "StructureDefinition",
  "id": "patient-recordedSexAndGender",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pa"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 1
    }
  ],
  "url": "http://hl7.org/fhir/StructureDefinition/patient-recordedSexAndGender",
  "version": "4.6.0",
  "name": "recordedSexAndGender",
  "title": "recordedSexAndGender",
  "status": "draft",
  "date": "2022-01-28",
  "publisher": "HL7",
  "description": "The recorded sex and gender is to be used to differentiate existing sex or gender data. This element is used for existing 'sex' or 'gender' elements in a document or record when the intent and meaning is unclear. For example, the person's birth certificate information, passport information, and national identity document information may all be present. This is necessary because an individual's documents may be updated at different rates or for different reasons. Sex assigned at birth (SAAB), while very common and considered essential in some jurisdictions, is considered a recorded sex and gender entry.",
  "fhirVersion": "4.6.0",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Patient"
    },
    {
      "type": "element",
      "expression": "RelatedPerson"
    },
    {
      "type": "element",
      "expression": "Person"
    },
    {
      "type": "element",
      "expression": "Practitioner"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "A recorded sex or gender property for the person",
        "definition": "A sex or gender property for the person from a document or other record",
        "min": 0
      },
      {
        "id": "Extension.extension:value",
        "path": "Extension.extension",
        "sliceName": "value",
        "short": "The recorded sex or gender property for the person",
        "definition": "A sex or gender property for the person from a document or other record",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Extension.extension:value.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:value.url",
        "path": "Extension.extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "value"
      },
      {
        "id": "Extension.extension:value.value[x]",
        "path": "Extension.extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "recordedSexAndGender"
            }
          ],
          "strength": "example",
          "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.6.0"
        }
      },
      {
        "id": "Extension.extension:sourceDocument",
        "path": "Extension.extension",
        "sliceName": "sourceDocument",
        "short": "The source document where this sex or gender property is initially recorded.",
        "definition": "The source document where this sex or gender property is initially recorded.",
        "comment": "For example, if a driver's license is scanned, this property may reference that scanned document.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Extension.extension:sourceDocument.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:sourceDocument.url",
        "path": "Extension.extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "sourceDocument"
      },
      {
        "id": "Extension.extension:sourceDocument.value[x]",
        "path": "Extension.extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "CodeableReference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Extension.extension:jurisdiction",
        "path": "Extension.extension",
        "sliceName": "jurisdiction",
        "short": "The jurisdiction or organization that issued the document from which the sex or gender was aquired",
        "definition": "The jurisdiction or organization that issued the document from which the sex or gender was aquired",
        "comment": "For example, a patient's driver's license or passport would be issued by a specific state or country.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Extension.extension:jurisdiction.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:jurisdiction.url",
        "path": "Extension.extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "jurisdiction"
      },
      {
        "id": "Extension.extension:jurisdiction.value[x]",
        "path": "Extension.extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Extension.extension:effectivePeriod",
        "path": "Extension.extension",
        "sliceName": "effectivePeriod",
        "short": "The time period during which the recorded sex or gender value applies to the patient",
        "definition": "The time period during which the recorded sex or gender value applies to the patient",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Extension.extension:effectivePeriod.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:effectivePeriod.url",
        "path": "Extension.extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "effectivePeriod"
      },
      {
        "id": "Extension.extension:effectivePeriod.value[x]",
        "path": "Extension.extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "Extension.extension:comment",
        "path": "Extension.extension",
        "sliceName": "comment",
        "short": "Further explaination about the context or source of the recorded sex or gender value",
        "definition": "Further explaination about the context or source of the recorded sex or gender value",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "id": "Extension.extension:comment.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:comment.url",
        "path": "Extension.extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "comment"
      },
      {
        "id": "Extension.extension:comment.value[x]",
        "path": "Extension.extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/patient-recordedSexAndGender"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "min": 0,
        "max": "0"
      }
    ]
  }
}