# Interface IConfigUnitsService

Namespace
  adas_core.Application.Services.Interfaces

Assembly
  adas-core.Application.dll

    public interface IConfigUnitsService

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## Methods

### Map(PumpObservation)

Asynchronously maps the specified PumpObservation to a resulting PumpObservation.

    Task<PumpObservation> Map(PumpObservation obs)

#### Parameters

`obs` PumpObservation

  The pump observation to be mapped.

#### Returns

Task<PumpObservation>

  A task that represents the asynchronous mapping operation, containing the resulting PumpObservation.

### Map<T>(T)

Maps a patient observation of type `T` to a corresponding output representation.

    Task<T> Map<T>(T obs) where T : BasePatientObservation

#### Parameters

`obs` T

  The patient observation instance to be mapped.

#### Returns

Task<T>

  A task that represents the asynchronous mapping operation, yielding the mapped patient observation.

#### Type Parameters

`T`

  The specific patient observation type, constrained to BasePatientObservation.