Table of Contents

Interface IRecordingAlertService

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

Methods

Archive(Patient)

Asynchronously archives the specified patient, moving their record out of the active set.

Task Archive(Patient patient)

Parameters

patient Patient

The patient to archive.

Returns

Task

ArchiveByPatientId(ObjectId)

Archives the records associated with the specified patient identifier.

Task ArchiveByPatientId(ObjectId id)

Parameters

id ObjectId

The MongoDB.Bson.ObjectId identifying the patient whose related records should be archived.

Returns

Task

DeleteByPatientId(ObjectId)

Deletes records associated with the specified patient identifier.

Task DeleteByPatientId(ObjectId id)

Parameters

id ObjectId

The unique identifier of the patient whose related records should be removed.

Returns

Task

FindLastRecordingAlert(ObjectId, int)

Retrieves the most recent patient recording alerts for the specified patient.

Task<List<PatientRecordingAlert>> FindLastRecordingAlert(ObjectId patientId, int num = 2)

Parameters

patientId ObjectId

The identifier of the patient whose recording alerts are being queried.

num int

The maximum number of most recent recording alerts to return. Defaults to 2.

Returns

Task<List<PatientRecordingAlert>>

A task representing the asynchronous operation, containing a list of the patient's most recent recording alerts.

UpdateManyObjectId(string, ObjectId, ObjectId)

Updates multiple records by replacing the oldId with the new id in entries identified by nameId.

Task UpdateManyObjectId(string nameId, ObjectId id, ObjectId oldId)

Parameters

nameId string

The identifier used to select the target records to update.

id ObjectId

The new ObjectId value to assign to the matching records.

oldId ObjectId

The existing ObjectId value to be replaced in the matching records.

Returns

Task