# Signals resource

Canonical page: https://docs.ovok.com/flutter-sdk/reference/ovok_sdk/signals-resource

{/* Generated by scripts/generate_reference.dart; do not edit. */}

## SignalsResource [#signalsresource]

```dart
class SignalsResource
```

Signals monitoring for patients. Reached through `ovok.signals`.

Every request throws an `OvokException` subclass when it fails.

### Constructors [#constructors]

#### SignalsResource.new [#signalsresourcenew]

```dart
SignalsResource(HttpClient http)
```

Built by `Ovok`; use `ovok.signals` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `http` | `HttpClient` | positional |  |

### Properties [#properties]

#### SignalsResource.undeliverable [#signalsresourceundeliverable]

```dart
final UndeliverableResource undeliverable
```

Residents whose Signals configuration could not be delivered.

### Methods [#methods]

#### SignalsResource.enable [#signalsresourceenable]

```dart
Future<JsonMap> enable(String patientId)
```

Enables Signals for a patient.

Calls `POST fhir/Patient/{patientId}/$enable-signals`. Idempotent: a
failed call leaves nothing half done, and a retry completes it. Readings
saved through Ovok reach Signals without a second submit.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `patientId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.


## UndeliverableResource [#undeliverableresource]

```dart
class UndeliverableResource
```

Signals configuration that could not be delivered.

Reached through `ovok.signals.undeliverable`.

### Constructors [#constructors-1]

#### UndeliverableResource.new [#undeliverableresourcenew]

```dart
UndeliverableResource(HttpClient _http)
```

Built by `Ovok`; use `ovok.signals.undeliverable` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods-1]

#### UndeliverableResource.list [#undeliverableresourcelist]

```dart
Future<JsonMap> list()
```

Lists the undeliverable residents. Calls `GET signals/config/undeliverable`.

Returns `Future<Map<String, dynamic>>`.

#### UndeliverableResource.repair [#undeliverableresourcerepair]

```dart
Future<JsonMap> repair([JsonMap request = const {}])
```

Delivers the configuration again.

Calls `POST signals/config/undeliverable/repair`. Without `patientIds`,
repairs the residents [`list`](#undeliverableresourcelist) shows.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `request` | `JsonMap` | optional positional | `const {}` |

Returns `Future<Map<String, dynamic>>`.
