> For the complete documentation index, see [llms.txt](https://docs.covestlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.covestlabs.com/covest-insaas-protocol/insaas-smart-contracts/policyholder/claim-manager/others.md).

# Others

### cancelClaim

```solidity
function cancelClaim(uint256 _claimId_) external returns (bool)
```

Cancel a claim.

Requirements:

* `nonReentrant` The function must not be reentrant.
* `whenNotPaused` The function must not be paused.

Events:

* `ClaimAssessmentConsensusReached` Emitted when the claim is canceled successfully.

| Name      | Type    | Description   |
| --------- | ------- | ------------- |
| *claimId* | uint256 | The claim id. |

| Name | Type | Description                                 |
| ---- | ---- | ------------------------------------------- |
| \[0] | bool | True if the claim is canceled successfully. |

#### ClaimAssessmentConsensusReached

```solidity
event ClaimAssessmentConsensusReached(uint256 claimId, ClaimStatus status)
```

This event is emitted when the claim is consensus.

| Name    | Type                                                                                           | Description       |
| ------- | ---------------------------------------------------------------------------------------------- | ----------------- |
| claimId | uint256                                                                                        | The claim id.     |
| status  | [ClaimStatus](/covest-insaas-protocol/insaas-smart-contracts/claim-case-states.md#claimstatus) | The claim status. |

### getClaimData

```solidity
function getClaimData(uint256 _claimId_) external view returns (ClaimData)
```

Get the claim data.

| Name      | Type    | Description   |
| --------- | ------- | ------------- |
| *claimId* | uint256 | The claim id. |

| Name | Type                                                                                       | Description     |
| ---- | ------------------------------------------------------------------------------------------ | --------------- |
| \[0] | [ClaimData](/covest-insaas-protocol/insaas-smart-contracts/claim-case-states.md#claimdata) | The claim data. |

### getClaimsData

```solidity
function getClaimsData(uint256[] _claimIds_) external view returns (ClaimData[])
```

Get the claims data.

| Name       | Type       | Description    |
| ---------- | ---------- | -------------- |
| *claimIds* | uint256\[] | The claim ids. |

| Name | Type                                                                                           | Description      |
| ---- | ---------------------------------------------------------------------------------------------- | ---------------- |
| \[0] | [ClaimData\[\]](/covest-insaas-protocol/insaas-smart-contracts/claim-case-states.md#claimdata) | The claims data. |

### getClaimStatus

```solidity
function getClaimStatus(uint256 _claimId_) external view returns (ClaimStatus)
```

Get the claim status.

| Name      | Type    | Description   |
| --------- | ------- | ------------- |
| *claimId* | uint256 | The claim id. |

| Name | Type                                                                                           | Description       |
| ---- | ---------------------------------------------------------------------------------------------- | ----------------- |
| \[0] | [ClaimStatus](/covest-insaas-protocol/insaas-smart-contracts/claim-case-states.md#claimstatus) | The claim status. |

### getClaimsStatus

```solidity
function getClaimsStatus(uint256[] _claimIds_) external view returns (ClaimStatus[])
```

Get the claims status.

| Name       | Type       | Description    |
| ---------- | ---------- | -------------- |
| *claimIds* | uint256\[] | The claim ids. |

| Name | Type                                                                                               | Description        |
| ---- | -------------------------------------------------------------------------------------------------- | ------------------ |
| \[0] | [ClaimStatus\[\]](/covest-insaas-protocol/insaas-smart-contracts/claim-case-states.md#claimstatus) | The claims status. |
