{
  "resourceType": "StructureDefinition",
  "id": "recare-deletion",
  "url": "http://fhir.recaresolutions.com/StructureDefinition/recare-deletion",
  "version": "0.1.0",
  "name": "RecareDeletion",
  "title": "Recare Deletion",
  "status": "active",
  "experimental": false,
  "publisher": "Recare Deutschland GmbH",
  "description": "Task used in document_revoked bundles to request deletion/revocation of a document.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Task",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Task.status",
        "path": "Task.status",
        "patternCode": "requested"
      },
      {
        "id": "Task.intent",
        "path": "Task.intent",
        "patternCode": "order"
      },
      {
        "id": "Task.priority",
        "path": "Task.priority",
        "min": 1,
        "patternCode": "urgent"
      },
      {
        "id": "Task.code",
        "path": "Task.code",
        "min": 1
      },
      {
        "id": "Task.code.coding",
        "path": "Task.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.code.coding.system",
        "path": "Task.code.coding.system",
        "min": 1,
        "fixedUri": "http://fhir.recaresolutions.com/CodeSystem/task-type"
      },
      {
        "id": "Task.code.coding.code",
        "path": "Task.code.coding.code",
        "min": 1,
        "fixedCode": "deletion"
      },
      {
        "id": "Task.for",
        "path": "Task.for",
        "min": 1
      },
      {
        "id": "Task.authoredOn",
        "path": "Task.authoredOn",
        "min": 1
      },
      {
        "id": "Task.requester",
        "path": "Task.requester",
        "min": 1
      },
      {
        "id": "Task.owner",
        "path": "Task.owner",
        "min": 1
      },
      {
        "id": "Task.reasonCode",
        "path": "Task.reasonCode",
        "min": 1
      },
      {
        "id": "Task.reasonCode.coding",
        "path": "Task.reasonCode.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.reasonCode.coding.system",
        "path": "Task.reasonCode.coding.system",
        "min": 1,
        "fixedUri": "http://fhir.recaresolutions.com/CodeSystem/document-revocation-reason"
      },
      {
        "id": "Task.reasonCode.coding.code",
        "path": "Task.reasonCode.coding.code",
        "min": 1
      },
      {
        "id": "Task.input",
        "path": "Task.input",
        "min": 1
      },
      {
        "id": "Task.input.type.coding",
        "path": "Task.input.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.input.type.coding.system",
        "path": "Task.input.type.coding.system",
        "min": 1,
        "fixedUri": "http://fhir.recaresolutions.com/CodeSystem/task-input-type"
      },
      {
        "id": "Task.input.type.coding.code",
        "path": "Task.input.type.coding.code",
        "min": 1,
        "fixedCode": "Document"
      },
      {
        "id": "Task.input.value[x]",
        "path": "Task.input.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Task.input.value[x]:valueReference",
        "path": "Task.input.value[x]",
        "sliceName": "valueReference",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "Task.input.value[x]:valueReference.identifier",
        "path": "Task.input.value[x].identifier",
        "min": 1
      },
      {
        "id": "Task.input.value[x]:valueReference.identifier.system",
        "path": "Task.input.value[x].identifier.system",
        "min": 1,
        "fixedUri": "urn:ietf:rfc:3986"
      },
      {
        "id": "Task.input.value[x]:valueReference.identifier.value",
        "path": "Task.input.value[x].identifier.value",
        "min": 1
      }
    ]
  }
}