{
  "resourceType": "StructureDefinition",
  "id": "EcpPatient",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-imposeProfile",
      "valueCanonical": "https://gematik.de/fhir/ti/StructureDefinition/ti-patient|1.1.1"
    }
  ],
  "url": "https://thieme-compliance.de/fhir/StructureDefinition/EcpPatient",
  "version": "1.0.0",
  "name": "EcpPatient",
  "title": "ECP Patient",
  "status": "draft",
  "date": "2025-10-29",
  "publisher": "Thieme Compliance GmbH",
  "contact": [
    {
      "name": "Thieme Compliance GmbH",
      "telecom": [
        {
          "system": "url",
          "value": "https://thieme-compliance.de/",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Patientenressource für die ECP-Dateneinleitung",
  "copyright": "Copyright 2020-2025 Thieme Compliance GmbH",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "https://gematik.de/fhir/isik/StructureDefinition/ISiKPatient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.extension:konfession",
        "path": "Patient.extension",
        "sliceName": "konfession",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/patient-religion"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.extension:konfession.value[x]",
        "path": "Patient.extension.value[x]",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:Versichertennummer_PKV",
        "path": "Patient.identifier",
        "sliceName": "Versichertennummer_PKV",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:sozialversicherungsnummer",
        "path": "Patient.identifier",
        "sliceName": "sozialversicherungsnummer",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:sozialversicherungsnummer.type",
        "path": "Patient.identifier.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:sozialversicherungsnummer.type.coding",
        "path": "Patient.identifier.type.coding",
        "patternCoding": {
          "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
          "code": "SS"
        }
      },
      {
        "id": "Patient.identifier:sozialversicherungsnummer.system",
        "path": "Patient.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:sozialversicherungsnummer.value",
        "path": "Patient.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.telecom:eMail",
        "path": "Patient.telecom",
        "sliceName": "eMail",
        "min": 0,
        "max": "1",
        "patternContactPoint": {
          "system": "email"
        },
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:privatePhone",
        "path": "Patient.telecom",
        "sliceName": "privatePhone",
        "min": 0,
        "max": "1",
        "patternContactPoint": {
          "system": "phone",
          "use": "home"
        },
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:privatePhone.use",
        "path": "Patient.telecom.use",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.telecom:sms",
        "path": "Patient.telecom",
        "sliceName": "sms",
        "min": 0,
        "max": "1",
        "patternContactPoint": {
          "system": "sms"
        },
        "mustSupport": true
      }
    ]
  }
}