{
  "resourceType": "StructureDefinition",
  "id": "d008bf3f-3cf8-4a3f-a1e1-f7500b142e7f",
  "meta": {
    "lastUpdated": "2021-07-28T14:23:13.666+00:00"
  },
  "url": "http://christiandewes/test/StructureDefinition/MeinPatient",
  "name": "MeinPatient",
  "title": "Profil für RS-Type Patient",
  "status": "draft",
  "date": "2021-07-28T13:53:11.4019854Z",
  "description": "Das ist ein Profil für den Ressourcentyp <Patient>",
  "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.extension",
        "path": "Patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.extension:spezies",
        "path": "Patient.extension",
        "sliceName": "spezies",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://christiandewes.de/test/StructureDefinition/SpeziesExtension"
            ]
          }
        ]
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.identifier:buergerid",
        "path": "Patient.identifier",
        "sliceName": "buergerid",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier:buergerid.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.ufp/NamingSystem/ufp-citizen-id"
      },
      {
        "id": "Patient.identifier:buergerid.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:gkvId",
        "path": "Patient.identifier",
        "sliceName": "gkvId",
        "max": "1"
      },
      {
        "id": "Patient.identifier:gkvId.system",
        "path": "Patient.identifier.system",
        "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
        "min": 1,
        "fixedUri": "http://fhir.de/NamingSystem/gkv/kvid-10"
      },
      {
        "id": "Patient.identifier:gkvId.value",
        "path": "Patient.identifier.value",
        "min": 1,
        "constraint": [
          {
            "key": "InvalidGkvIdFormat",
            "severity": "warning",
            "human": "Versicherten-Nr. (GkvId) muss speziellen Format haben (Bsp. f. FHIRPath Expression with Perl-Regexp)",
            "expression": "matches('^[A-Z][0-9]{9}$')"
          }
        ]
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "min": 1
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "min": 1
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "min": 1
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "mustSupport": true
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "min": 1,
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://christiandewes/test/StructureDefinition/MeineAdresse"
            ]
          }
        ]
      },
      {
        "id": "Patient.contact.address",
        "path": "Patient.contact.address",
        "type": [
          {
            "code": "Address",
            "profile": [
              "http://christian-dewes/test/StructureDefinition/MeineAdresse"
            ]
          }
        ]
      }
    ]
  }
}