Table of Contents

Interface IRecordingService

Namespace
adas_core.Application.Services.Interfaces
Assembly
adas-core.Application.dll
public interface IRecordingService : IApiRequestService
Inherited Members
Extension Methods

Methods

GetRecordings(int)

Retrieves the list of recordings associated with the specified room.

Task<List<RecordingData>?> GetRecordings(int roomName)

Parameters

roomName int

The identifier of the room whose recordings are being requested.

Returns

Task<List<RecordingData>>

A task that returns a list of RecordingData for the room, or null if no recordings are available.

SendAutoRecordingData(Patient, PointOfCare, RecordingData)

Asynchronously sends automatic recording data for a patient at the specified point of care.

Task<bool> SendAutoRecordingData(Patient patient, PointOfCare poc, RecordingData automaticRecording)

Parameters

patient Patient

The patient associated with the automatic recording data.

poc PointOfCare

The point of care where the recording was taken.

automaticRecording RecordingData

The automatic recording data to be sent.

Returns

Task<bool>

A task that represents the asynchronous operation, containing a boolean indicating whether the data was sent successfully.

SendCancelRecordingToRecordingApi(Patient, PointOfCare)

Asynchronously sends a cancel recording request to the recording API for the specified patient and point of care.

Task<bool> SendCancelRecordingToRecordingApi(Patient patient, PointOfCare poc)

Parameters

patient Patient

The patient whose recording should be cancelled.

poc PointOfCare

The point of care associated with the recording to be cancelled.

Returns

Task<bool>

A task that represents the asynchronous operation, containing a boolean value indicating the outcome of the cancel recording request.

SendRecordingData(Patient, PointOfCare, ManualRecording, bool)

Asynchronously sends manual recording data for the specified patient at the given point of care, using the provided manual recording and a flag indicating whether to start the recording.

Task SendRecordingData(Patient patient, PointOfCare poc, ManualRecording manualRecording, bool start)

Parameters

patient Patient

The patient whose recording data is being sent.

poc PointOfCare

The point of care associated with the recording.

manualRecording ManualRecording

The manual recording payload to transmit.

start bool

A flag indicating whether the recording is being started or stopped.

Returns

Task

SendRecordingDataToQueue(Patient, PointOfCare, DateTime?, DateTime?, DateTime?, Name?, Severity, string?, bool, Type)

Queues alarm recording data for the specified patient at the given point of care, using the provided alarm details to be processed asynchronously.

Task SendRecordingDataToQueue(Patient patient, PointOfCare poc, DateTime? date, DateTime? endDate, DateTime? eventDate, AlarmEnum.Name? alarmName, AlarmEnum.Severity severity, string? alarmDescription, bool start = true, AlarmEnum.Type type = Type.Manual)

Parameters

patient Patient

The patient associated with the recording data.

poc PointOfCare

The point of care where the recording originated.

date DateTime?

The start date of the recording, if applicable.

endDate DateTime?

The end date of the recording, if applicable.

eventDate DateTime?

The date of the event, if applicable.

alarmName AlarmEnum.Name?

The name of the alarm, if applicable.

severity AlarmEnum.Severity

The severity level of the alarm.

alarmDescription string

The description of the alarm, if applicable.

start bool

Indicates whether to start the recording (default is true).

type AlarmEnum.Type

The type of alarm (default is Manual).

Returns

Task