{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.nhs.uk/StructureDefinition/Extension-NHSEngland-KaryotypicSex",
  "version": "0.1",
  "name": "KaryotypicSex",
  "status": "draft",
  "date": "2022-09-14T11:24:05.5026109+00:00",
  "description": "Extension to capture Karyotypic Sex details of the patient.",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Patient"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://fhir.nhs.uk/StructureDefinition/Extension-NHSEngland-KaryotypicSex"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "A set of codes that define the karyotypic sex for the patient at the time of testing",
          "valueSet": "https://simplifier.net/hl7fhirukcorer4/ukcore-birthsex"
        }
      }
    ]
  }
}