{
  "resourceType": "StructureDefinition",
  "id": "PatientCaseReference",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Base.Individuals"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "patient"
    }
  ],
  "url": "http://gematik.de/fhir/TIM/CaseReference/StructureDefinition/PatientCaseReference",
  "version": "1.0.0",
  "name": "PatientCaseReference",
  "status": "active",
  "publisher": "gematik GmbH",
  "description": "A profile of the Patient resource for TI-Messenger communication related to a patients case reference.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "loinc",
      "uri": "http://loinc.org",
      "name": "LOINC code for the element"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.id",
        "path": "Patient.id",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:KVNR",
        "path": "Patient.identifier",
        "sliceName": "KVNR",
        "min": 1,
        "max": "*"
      },
      {
        "id": "Patient.identifier:KVNR.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.de/StructureDefinition/identifier-kvid-10",
        "patternIdentifier": {
          "type": {
            "coding": [
              {
                "code": "PRN",
                "system": "http://terminology.hl7.org/CodeSystem/v2-0203"
              }
            ]
          }
        }
      },
      {
        "id": "Patient.identifier:PKVID",
        "path": "Patient.identifier",
        "sliceName": "PKVID",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Patient.identifier:PKVID.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.de/StructureDefinition/identifier-pkv",
        "patternIdentifier": {
          "type": {
            "coding": [
              {
                "code": "PRN",
                "system": "http://terminology.hl7.org/CodeSystem/v2-0203"
              }
            ]
          }
        }
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1,
        "max": "1",
        "mustSupport": true
      }
    ]
  }
}