{
  "resourceType": "OperationDefinition",
  "id": "haste-health-evaluate-policy",
  "url": "https://haste.health/OperationDefinition/evaluate-policy",
  "version": "4.0.1",
  "name": "EvaluateAccessPolicy",
  "status": "draft",
  "kind": "operation",
  "date": "2023-11-15T22:29:23+00:00",
  "publisher": "HasteHealth",
  "description": "Evaluate an Access Policy.",
  "code": "evaluate-policy",
  "resource": [
    "AccessPolicyV2"
  ],
  "system": false,
  "type": false,
  "instance": true,
  "parameter": [
    {
      "name": "user",
      "use": "in",
      "min": 0,
      "max": "1",
      "documentation": "The user to evaluate the policy against. Defaults to logged in user if not present.",
      "type": "Reference"
    },
    {
      "name": "request",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "The requests to evaluate against the policy.",
      "type": "Bundle"
    },
    {
      "name": "return",
      "use": "out",
      "min": 1,
      "max": "1",
      "documentation": "The result of the policy evaluation.",
      "type": "OperationOutcome"
    }
  ]
}