# Interface IObservationDemoService

Namespace
  adas_core.Application.Services.Interfaces

Assembly
  adas-core.Application.dll

    public interface IObservationDemoService

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

## Methods

### GenerateAlarmByField(Patient, List<Field>)

Generates a list of patient observation alarms for the specified patient based on the provided data alarm fields.

    Task<List<PatientObservationAlarm>> GenerateAlarmByField(Patient patient, List<Field> dataAlarmfields)

#### Parameters

`patient` Patient

  The patient for whom the observation alarms are generated.

`dataAlarmfields` List<Field>

  The list of fields used to determine and generate the data alarms.

#### Returns

Task<List<PatientObservationAlarm>>

  A task that represents the asynchronous operation, containing a list of PatientObservationAlarm objects generated for the patient.

### GenerateGroupedObservation(Patient, GroupedField)

Generates a grouped observation for the specified patient based on the provided grouped field configuration.

    Task<GroupedObservation> GenerateGroupedObservation(Patient patient, GroupedField groupedField)

#### Parameters

`patient` Patient

  The patient for whom the grouped observation is generated.

`groupedField` GroupedField

  The grouped field definition that determines the grouping criteria for the observation.

#### Returns

Task<GroupedObservation>

  A task that represents the asynchronous operation. The task result contains the generated GroupedObservation.

### GenerateObservationByField(Patient, List<Field>)

Generates a list of patient observations by evaluating the specified data fields for the given patient.

    Task<List<PatientObservation>> GenerateObservationByField(Patient patient, List<Field> dataFields)

#### Parameters

`patient` Patient

  The patient for whom the observations are being generated.

`dataFields` List<Field>

  The collection of fields used to drive the observation generation.

#### Returns

Task<List<PatientObservation>>

  A task representing the asynchronous operation that returns the list of generated patient observations.