{
  "resourceType": "StructureDefinition",
  "id": "zd-consent",
  "url": "http://zorgdomein.nl/fhir/StructureDefinition/zd-consent",
  "name": "ZD Consent",
  "status": "draft",
  "date": "2018-10-12T11:00:00+00:00",
  "publisher": "ZorgDomein",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "https://zorgdomein.nl"
        },
        {
          "system": "email",
          "value": "io@zorgdomein.nl"
        }
      ]
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Consent",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Consent",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Consent",
        "path": "Consent",
        "mustSupport": true
      },
      {
        "id": "Consent.text",
        "path": "Consent.text",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.category",
        "path": "Consent.category",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Consent.category:typeOfLivingWill",
        "path": "Consent.category",
        "sliceName": "typeOfLivingWill",
        "min": 1,
        "max": "1",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ConsentCategory"
            }
          ],
          "strength": "extensible",
          "description": "List of the different types of living wills.",
          "valueSetReference": {
            "reference": "http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.7.15.1--20171231000000"
          }
        }
      },
      {
        "id": "Consent.category:typeOfLivingWill.coding",
        "path": "Consent.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Consent.category:typeOfLivingWill.coding.system",
        "path": "Consent.category.coding.system",
        "min": 1
      },
      {
        "id": "Consent.category:typeOfLivingWill.coding.code",
        "path": "Consent.category.coding.code",
        "min": 1
      }
    ]
  }
}