{
  "resourceType": "StructureDefinition",
  "id": "Patient",
  "url": "https://fhir.centraxx.de/StructureDefinition/Patient",
  "version": "2025.4.0",
  "name": "Patient",
  "status": "active",
  "publisher": "Kairos an IQVIA business",
  "description": "Represents a CentraXX Patient.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "closed"
        },
        "min": 0,
        "max": "2",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.extension:updateWithOverwrite",
        "path": "Patient.extension",
        "sliceName": "updateWithOverwrite",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.centraxx.de/extension/updateWithOverwrite"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.extension:ethnicities",
        "path": "Patient.extension",
        "sliceName": "ethnicities",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.centraxx.de/extension/patient/ethnicities"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://fhir.centraxx.de/StructureDefinition/IdContainerType"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "use"
            }
          ]
        },
        "max": "2",
        "mustSupport": true
      },
      {
        "id": "Patient.name:name",
        "path": "Patient.name",
        "sliceName": "name",
        "mustSupport": true
      },
      {
        "id": "Patient.name:name.extension",
        "path": "Patient.name.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "closed"
        },
        "min": 0,
        "max": "2",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.name:name.extension:title",
        "path": "Patient.name.extension",
        "sliceName": "title",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.centraxx.de/extension/patient/name/title"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.name:name.extension:affix",
        "path": "Patient.name.extension",
        "sliceName": "affix",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.centraxx.de/extension/patient/name/affix"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.name:name.use",
        "path": "Patient.name.use",
        "min": 1,
        "fixedCode": "OFFICIAL",
        "mustSupport": true
      },
      {
        "id": "Patient.name:name.family",
        "path": "Patient.name.family",
        "mustSupport": true
      },
      {
        "id": "Patient.name:name.given",
        "path": "Patient.name.given",
        "mustSupport": true
      },
      {
        "id": "Patient.name:birthName",
        "path": "Patient.name",
        "sliceName": "birthName",
        "mustSupport": true
      },
      {
        "id": "Patient.name:birthName.use",
        "path": "Patient.name.use",
        "min": 1,
        "fixedCode": "MAIDEN",
        "mustSupport": true
      },
      {
        "id": "Patient.name:birthName.family",
        "path": "Patient.name.family",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "use"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:phone1",
        "path": "Patient.telecom",
        "sliceName": "phone1",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:phone1.system",
        "path": "Patient.telecom.system",
        "min": 1,
        "max": "1",
        "fixedCode": "phone",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:phone1.value",
        "path": "Patient.telecom.value",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:phone1.rank",
        "path": "Patient.telecom.rank",
        "min": 1,
        "max": "1",
        "fixedPositiveInt": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:phone2",
        "path": "Patient.telecom",
        "sliceName": "phone2",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:phone2.system",
        "path": "Patient.telecom.system",
        "min": 1,
        "max": "1",
        "fixedCode": "phone",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:phone2.value",
        "path": "Patient.telecom.value",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:phone2.rank",
        "path": "Patient.telecom.rank",
        "min": 1,
        "max": "1",
        "fixedPositiveInt": 2,
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:email",
        "path": "Patient.telecom",
        "sliceName": "email",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:email.system",
        "path": "Patient.telecom.system",
        "min": 1,
        "max": "1",
        "fixedCode": "email",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:email.value",
        "path": "Patient.telecom.value",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:email.rank",
        "path": "Patient.telecom.rank",
        "min": 1,
        "max": "1",
        "fixedPositiveInt": 3,
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:mobile",
        "path": "Patient.telecom",
        "sliceName": "mobile",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:mobile.system",
        "path": "Patient.telecom.system",
        "min": 1,
        "max": "1",
        "fixedCode": "phone",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:mobile.value",
        "path": "Patient.telecom.value",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:mobile.rank",
        "path": "Patient.telecom.rank",
        "min": 1,
        "max": "1",
        "fixedPositiveInt": 4,
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:fax",
        "path": "Patient.telecom",
        "sliceName": "fax",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:fax.system",
        "path": "Patient.telecom.system",
        "min": 1,
        "max": "1",
        "fixedCode": "fax",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:fax.value",
        "path": "Patient.telecom.value",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:fax.rank",
        "path": "Patient.telecom.rank",
        "min": 1,
        "max": "1",
        "fixedPositiveInt": 5,
        "mustSupport": true
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "mustSupport": true
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "mustSupport": true
      },
      {
        "id": "Patient.deceased[x]",
        "path": "Patient.deceased[x]",
        "mustSupport": true
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.address.line",
        "path": "Patient.address.line",
        "comment": "The german address pattern is used. the first line describes the street, the second lne describes the house number. Example: line1: Some street line2: 42",
        "max": "5",
        "mustSupport": true
      },
      {
        "id": "Patient.address.city",
        "path": "Patient.address.city",
        "mustSupport": true
      },
      {
        "id": "Patient.address.state",
        "path": "Patient.address.state",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://fhir.centraxx.de/valueSet/iso3166-2"
        }
      },
      {
        "id": "Patient.address.postalCode",
        "path": "Patient.address.postalCode",
        "mustSupport": true
      },
      {
        "id": "Patient.address.country",
        "path": "Patient.address.country",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/iso3166-1-2"
        }
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.centraxx.de/StructureDefinition/Organization"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}