## parametersToMedicationCartManageResponse() function

Decodes the `Parameters` response from the `$remove-cart-medication` / `$clear-cart` custom operations into a typed [MedicationCartManageResponse](/content/docs/sdk/core.medicationcartmanageresponse). Throws [INVALID_MEDICATION_CART_RESPONSE](/content/docs/sdk/core.invalid_medication_cart_response/index.html) when required top-level fields are missing.

**Signature:**

```typescript
export declare function parametersToMedicationCartManageResponse(params: Parameters): MedicationCartManageResponse;
```

## Parameters

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

**Returns:**

[MedicationCartManageResponse](/content/docs/sdk/core.medicationcartmanageresponse)

A vendor-neutral [MedicationCartManageResponse](/content/docs/sdk/core.medicationcartmanageresponse).

- [parametersToMedicationCartManageResponse() function](/content/docs/sdk/core.parameterstomedicationcartmanageresponse#parameterstomedicationcartmanageresponse-function/index.html) 
- [Parameters](/content/docs/sdk/core.parameterstomedicationcartmanageresponse#parameters/index.html)
