{
  "resourceType": "OperationDefinition",
  "id": "RevokeConsent",
  "url": "http://electronichealth.se/fhir/NDI/OperationDefinition/RevokeConsent",
  "description": "Revokes a Consent resource.",
  "resource": [
    "Consent"
  ],
  "parameter": [
    {
      "name": "revokedBy",
      "documentation": "Identifier of person who is revoking the Consent, with system and value.",
      "use": "in",
      "min": 1,
      "max": "1",
      "type": "Identifier"
    },
    {
      "name": "provisioningDestination",
      "documentation": "Identifier of organization to which the Consent revokation should be provisioned, with system and value.",
      "use": "in",
      "min": 0,
      "max": "1",
      "type": "Identifier"
    },
    {
      "name": "return",
      "documentation": "Outcome of operation",
      "use": "out",
      "min": 1,
      "max": "1",
      "type": "OperationOutcome"
    }
  ],
  "status": "draft",
  "version": "0.1.0",
  "kind": "operation",
  "affectsState": true,
  "system": false,
  "type": false,
  "instance": true,
  "code": "revoke",
  "name": "RevokeConsent"
}