{
  "resourceType": "StructureDefinition",
  "id": "mitz-consent-provide",
  "language": "nl-NL",
  "url": "http://vzvz.nl/fhir/otv/StructureDefinition/mitz-consent-provide",
  "name": "MitzConsentProvide",
  "status": "draft",
  "publisher": "VZVZ",
  "contact": [
    {
      "name": "VZVZ",
      "telecom": [
        {
          "system": "email",
          "value": "standaardisatie@vzvz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Notification of a care provider to Mitz registry that the 'consent button' is used on behalf of the patient",
  "jurisdiction": [
    {
      "coding": [
        {
          "code": "NL",
          "system": "urn:iso:std:iso:3166",
          "display": "Netherlands"
        }
      ]
    }
  ],
  "copyright": "VZVZ",
  "fhirVersion": "4.3.0",
  "kind": "resource",
  "abstract": false,
  "type": "Consent",
  "baseDefinition": "http://vzvz.nl/fhir/otv/StructureDefinition/mitz-base-consent",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Consent.status",
        "path": "Consent.status",
        "fixedCode": "active"
      },
      {
        "id": "Consent.category",
        "path": "Consent.category",
        "definition": "Category is required but actual data catagory is defined by the situation code. Therefore fixed value INFA.",
        "max": "1"
      },
      {
        "id": "Consent.category.coding",
        "path": "Consent.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Consent.category.coding.system",
        "path": "Consent.category.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ActCode"
      },
      {
        "id": "Consent.category.coding.code",
        "path": "Consent.category.coding.code",
        "fixedCode": "INFA"
      },
      {
        "id": "Consent.policyRule",
        "path": "Consent.policyRule",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://vzvz.nl/fhir/otv/ValueSet/situatiecode",
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ConsentPolicyRule"
            }
          ]
        }
      },
      {
        "id": "Consent.policyRule.coding.system",
        "path": "Consent.policyRule.coding.system",
        "min": 1
      },
      {
        "id": "Consent.policyRule.coding.version",
        "path": "Consent.policyRule.coding.version",
        "short": "Version of the system",
        "definition": "Catalog version, version conforming to the relevant consent catalog",
        "min": 1
      },
      {
        "id": "Consent.policyRule.coding.code",
        "path": "Consent.policyRule.coding.code",
        "short": "Situation code",
        "definition": "Situation code",
        "min": 1
      },
      {
        "id": "Consent.provision.actor",
        "path": "Consent.provision.actor",
        "definition": "Source provider. Only required when the consent is given to a specific provider.",
        "max": "1"
      },
      {
        "id": "Consent.provision.actor.role.coding.code",
        "path": "Consent.provision.actor.role.coding.code",
        "short": "Custodian",
        "fixedCode": "CST"
      }
    ]
  }
}