- The server MUST enforce authentication and authorisation before processing this operation. Callers that are not authenticated or not authorised to claim requests MUST receive a `401 Unauthorized` or `403 Forbidden` response respectively.
- The `groupTask` output is returned for result codes `ok`, `fulfillment-active`, and `already-fulfiller`.
- The `result` Coding indicates the outcome of the claim attempt.

### Parameters

| Direction | Name | Type | Card. | Description |
|-----------|------|------|-------|-------------|
| in | requisition | Identifier | 1..1 | The group identifier for the request, typically the barcode. |
| in | organization | Reference(GSOrganization) | 1..1 | Reference to the brand Organization claiming the request. |
| out | groupTask | Reference(EOrdersTaskFulfillmentGroup) | 0..1 | Reference to the group Task assigned to the claiming organization.  Present when result is `ok`, `fulfillment-active`, or `already-fulfiller`. |
| out | result | Coding | 1..1 | The result of the claim attempt, bound to the claim result code system. |
{: .table-bordered}

### Result Codes

| Code | Display | Description |
|------|---------|-------------|
| ok | OK | Claim successful; a new fulfillment Task set has been created for the claiming organization. |
| fulfillment-active-elsewhere | Fulfillment is in-progress with another organization | The request is actively being fulfilled by a different organization. |
| fulfillment-active | Fulfillment is in-progress with the provided organization | The provided organization is already actively fulfilling the request. |
| already-fulfiller | Fulfillment is already claimed by the provided organization | The provided organization has already claimed but not yet started fulfillment. |
| fulfillment-cancelled | Fulfillment was cancelled | The fulfillment has been cancelled. |
| requisition-not-found | Requisition Not Found | No request matching the supplied identifier was found. |
| organization-not-found | Organisation Not Found | The referenced Organization could not be resolved. |
| claim-in-progress | Claim is already in progress | A concurrent claim attempt is already underway for this request. |
{: .table-bordered}

### Example Response

    {
      "resourceType": "Parameters",
      "parameter": [
        {
          "name": "groupTask",
          "valueReference": {
            "reference": "Task/b1c3d456-e789-4abc-def0-123456789abc"
          }
        },
        {
          "name": "result",
          "valueCoding": {
            "system": "http://fhir.geniesolutions.io/CodeSystem/eorder-claim-result-type-codesystem",
            "code": "ok",
            "display": "OK"
          }
        }
      ]
    }
