{
  "resourceType": "StructureDefinition",
  "id": "dk-core-patient",
  "url": "http://hl7.org/fhir/dk/core/StructureDefinition/dk-core-patient",
  "version": "1.0.0",
  "name": "DkCorePatient",
  "title": "Danish Core Patient Profile",
  "status": "draft",
  "date": "2019-11-02",
  "fhirVersion": "4.0.0",
  "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.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            },
            {
              "type": "value",
              "path": "use"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Patient.identifier:dk-core-crn-identifier",
        "path": "Patient.identifier",
        "sliceName": "dk-core-crn-identifier",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": "http://hl7.org/fhir/dk/core/StructureDefinition/dk-core-crn-identifier"
          }
        ]
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1
      },
      {
        "id": "Patient.name.extension",
        "path": "Patient.name.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.name.extension:middleName",
        "path": "Patient.name.extension",
        "sliceName": "middleName",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.nordic/fhir/StructureDefinition/nordic-middlename"
          }
        ]
      },
      {
        "id": "Patient.address.extension",
        "path": "Patient.address.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.address.extension:municipalityCode",
        "path": "Patient.address.extension",
        "sliceName": "municipalityCode",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/dk/core/StructureDefinition/dk-core-municipalityCodes"
          }
        ]
      },
      {
        "id": "Patient.address.extension:regionalSubDivisionCodes",
        "path": "Patient.address.extension",
        "sliceName": "regionalSubDivisionCodes",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/dk/core/StructureDefinition/dk-core-RegionalSubDivisionCodes"
          }
        ]
      }
    ]
  }
}