## parametersToMedicationCheckoutResponse() function

Decodes the `Parameters` response from the `$checkout-medications` custom operation into a typed [MedicationCheckoutResponse](/content/docs/sdk/core.medicationcheckoutresponse). Throws `INVALID_MEDICATION_CHECKOUT_RESPONSE` when required top-level fields are missing.

The repeating `items` parameter is collected across every occurrence (each is one queued/failed line); the scalar `approvalUrl` / `vendorPatientId` are read once.

**Signature:**

```typescript
export declare function parametersToMedicationCheckoutResponse(params: Parameters): MedicationCheckoutResponse;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| params | Parameters | The `Parameters` resource returned by the operation. |

**Returns:**

[MedicationCheckoutResponse](/content/docs/sdk/core.medicationcheckoutresponse)

A vendor-neutral [MedicationCheckoutResponse](/content/docs/sdk/core.medicationcheckoutresponse).
