# HealthcareElement

## Create a healthcare element with the current user.

<mark style="color:green;">`POST`</mark> `https://demo.icure.cloud/rest/v1/helement`

Returns an instance of created healthcare element.

#### Request Body

| Name | Type          | Description |
| ---- | ------------- | ----------- |
| body | HealthElement |             |

{% tabs %}
{% tab title="200 default response" %}

```
```

{% endtab %}
{% endtabs %}

## Delete healthcare elements..

<mark style="color:red;">`DELETE`</mark> `https://demo.icure.cloud/rest/v1/helement/{healthElementIds}`

Response is a set containing the ID's of deleted healthcare elements.

#### Path Parameters

| Name             | Type   | Description |
| ---------------- | ------ | ----------- |
| healthElementIds | String |             |

{% tabs %}
{% tab title="200 default response" %}

```
```

{% endtab %}
{% endtabs %}

## Filter healthcare elements for the current user (HcParty).

<mark style="color:green;">`POST`</mark> `https://demo.icure.cloud/rest/v1/helement/filter`

Returns a list of healthcare elements along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.

#### Request Body

| Name | Type                     | Description |
| ---- | ------------------------ | ----------- |
| body | FilterChainHealthElement |             |

{% tabs %}
{% tab title="200 default response" %}

```
```

{% endtab %}
{% endtabs %}

## List healthcare elements found By Healthcare Party and secret foreign keyelementIds..

<mark style="color:blue;">`GET`</mark> `https://demo.icure.cloud/rest/v1/helement/byHcPartySecretForeignKeys`

Keys hast to delimited by coma

#### Query Parameters

| Name        | Type   | Description |
| ----------- | ------ | ----------- |
| hcPartyId   | String |             |
| secretFKeys | String |             |

{% tabs %}
{% tab title="200 default response" %}

```
```

{% endtab %}
{% endtabs %}

## List helement stubs found By Healthcare Party and secret foreign keys..

<mark style="color:blue;">`GET`</mark> `https://demo.icure.cloud/rest/v1/helement/byHcPartySecretForeignKeys/delegations`

Keys must be delimited by coma

#### Query Parameters

| Name        | Type   | Description |
| ----------- | ------ | ----------- |
| hcPartyId   | String |             |
| secretFKeys | String |             |

{% tabs %}
{% tab title="200 default response" %}

```
```

{% endtab %}
{% endtabs %}

## Get a healthcare element.

<mark style="color:blue;">`GET`</mark> `https://demo.icure.cloud/rest/v1/helement/{healthElementId}`

#### Path Parameters

| Name            | Type   | Description |
| --------------- | ------ | ----------- |
| healthElementId | String |             |

{% tabs %}
{% tab title="200 default response" %}

```
```

{% endtab %}
{% endtabs %}

## Modify a healthcare element.

<mark style="color:orange;">`PUT`</mark> `https://demo.icure.cloud/rest/v1/helement`

Returns the modified healthcare element.

#### Request Body

| Name | Type          | Description |
| ---- | ------------- | ----------- |
| body | HealthElement |             |

{% tabs %}
{% tab title="200 default response" %}

```
```

{% endtab %}
{% endtabs %}

## Modify a batch of healthcare elements.

<mark style="color:orange;">`PUT`</mark> `https://demo.icure.cloud/rest/v1/helement/batch`

Returns the modified healthcare elements.

#### Request Body

| Name | Type | Description |
| ---- | ---- | ----------- |
| body | List |             |

{% tabs %}
{% tab title="200 default response" %}

```
```

{% endtab %}
{% endtabs %}

## Delegates a healthcare element to a healthcare party.

<mark style="color:green;">`POST`</mark> `https://demo.icure.cloud/rest/v1/helement/{healthElementId}/delegate`

It delegates a healthcare element to a healthcare party (By current healthcare party). Returns the element with new delegations.

#### Path Parameters

| Name            | Type   | Description |
| --------------- | ------ | ----------- |
| healthElementId | String |             |

#### Request Body

| Name | Type | Description |
| ---- | ---- | ----------- |
| body | List |             |

{% tabs %}
{% tab title="200 default response" %}

```
```

{% endtab %}
{% endtabs %}

## Update delegations in healthElements..

<mark style="color:green;">`POST`</mark> `https://demo.icure.cloud/rest/v1/helement/delegations`

Keys must be delimited by coma

#### Request Body

| Name | Type | Description |
| ---- | ---- | ----------- |
| body | List |             |

{% tabs %}
{% tab title="200 default response" %}

```
```

{% endtab %}
{% endtabs %}
