{
  "resourceType": "OperationDefinition",
  "id": "ddfs-r6-purgeDeleted",
  "url": "https://docs.oracle.com/iaas/device-data-fhir/OperationDefinition/ddfs-r6-purgeDeleted.json",
  "version": "6.0.0-ballot4",
  "name": "DDFSR6PurgeDeleted",
  "title": "DDFS R6 Purge Deleted",
  "status": "active",
  "kind": "operation",
  "experimental": false,
  "date": "2026-06-01T00:00:00Z",
  "publisher": "Oracle",
  "description": "Permanently purges deleted resources of the requested type that were deleted before the required before dateTime, optionally limited to 1 through 50 resources. Inputs are supplied in the POST FHIR Parameters body. This type-level operation returns an OperationOutcome and requires both matching system/{Resource}.d delete authority and the exact custom scope https://docs.oracle.com/iaas/device-data-fhir/scopes/hard-delete.",
  "affectsState": true,
  "code": "purgeDeleted",
  "resource": [
    "Device",
    "DeviceAssociation",
    "Encounter",
    "Location",
    "Observation",
    "Patient",
    "Practitioner",
    "PractitionerRole",
    "Provenance",
    "Subscription",
    "SubscriptionTopic"
  ],
  "system": false,
  "type": true,
  "instance": false,
  "parameter": [
    {
      "name": "before",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "Required FHIR dateTime cutoff supplied as Parameters.parameter.valueDateTime; deleted resources before this instant are purged.",
      "type": "dateTime"
    },
    {
      "name": "limit",
      "use": "in",
      "min": 0,
      "max": "1",
      "documentation": "Optional maximum supplied as Parameters.parameter.valueInteger. The route accepts values from 1 through 50.",
      "type": "integer"
    },
    {
      "name": "return",
      "use": "out",
      "min": 1,
      "max": "1",
      "documentation": "OperationOutcome describing the purge result.",
      "type": "OperationOutcome"
    }
  ]
}
