description: 'To map and write gender codes defined by the Saudi-Health-Data-Dictionary-v2.pdf. There are additional codes than just male and female defined by this specification. Use this extension along with Patient.gender element. \r\nSaudi-Health-Data-Dictionary-v2.pdf includes a data element for Sex, intended to support the exchange of a recorded sex value. This extension aligns with this definition of Sex: \"This field contains a code which defines the sex of the patient.\" It enables systems to share the sex value as it was documented in a particular context. ' package_name: lean.sa.fhir.core derivation: constraint name: LeanGenderExtension type: Extension elements: extension: {index: 0} url: pattern: {type: Uri, value: 'http://lean.sa/fhir/lean/core/StructureDefinition/extension-gender'} index: 1 value: choices: [valueCodeableConcept] index: 3 valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 4} package_version: 0.0.1 extensions: {} class: extension kind: complex-type url: http://lean.sa/fhir/lean/core/StructureDefinition/extension-gender base: http://hl7.org/fhir/StructureDefinition/Extension version: 1.0.0 required: [value, valueCodeableConcept]