{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2022-01-29T10:33:13.066+00:00"
  },
  "url": "https://example.org/fhir/StructureDefinition/PATIENTHPI",
  "name": "PatientHPI",
  "status": "draft",
  "description": "This is a test profile for HPI",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:GKVID",
        "path": "Patient.identifier",
        "sliceName": "GKVID",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier:GKVID.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.de/CodeSystem/identifier-type-de-basis"
      },
      {
        "id": "Patient.identifier:GKVID.value",
        "path": "Patient.identifier.value",
        "min": 1,
        "fixedString": "1234567890"
      },
      {
        "id": "Patient.photo",
        "path": "Patient.photo",
        "max": "0"
      },
      {
        "id": "Patient.contact.extension",
        "path": "Patient.contact.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Patient.contact.extension:contactrole",
        "path": "Patient.contact.extension",
        "sliceName": "contactrole",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/contactrole"
            ]
          }
        ]
      },
      {
        "id": "Patient.link",
        "path": "Patient.link",
        "max": "0"
      }
    ]
  }
}