Interface ILightBeaconService
- Namespace
- adas_core.Application.Services.Interfaces
- Assembly
- adas-core.Application.dll
public interface ILightBeaconService
- Extension Methods
Methods
GenerateColorAlert(PatientObservation)
Generates a color-coded alert based on the provided patient observation.
void GenerateColorAlert(PatientObservation obs)
Parameters
obsPatientObservationThe patient observation used to determine the alert level and color.
GetColor(ObjectId)
Asynchronously retrieves the LightBeaconColor associated with the specified point of care identifier.
Task<LightBeaconColor> GetColor(ObjectId pocId)
Parameters
pocIdObjectIdThe identifier of the point of care whose light beacon color is being requested.
Returns
- Task<LightBeaconColor>
A task that represents the asynchronous operation, containing the LightBeaconColor for the specified point of care.
GetColor(PointOfCare)
Asynchronously retrieves the light beacon color associated with the specified point of care.
Task<LightBeaconColor> GetColor(PointOfCare poc)
Parameters
pocPointOfCareThe point of care for which to look up the light beacon color.
Returns
- Task<LightBeaconColor>
A task that represents the asynchronous operation. The task result contains the LightBeaconColor for the specified point of care.
GetPaginatedBeacons(PaginationFilter)
Asynchronously retrieves a paginated collection of light beacons based on the specified pagination filter.
Task<PaginationResponse<LightBeacon>> GetPaginatedBeacons(PaginationFilter request)
Parameters
requestPaginationFilterThe pagination filter containing the criteria used to page the beacon results.
Returns
- Task<PaginationResponse<LightBeacon>>
A task that represents the asynchronous operation, containing a pagination response with the requested light beacons.
GetSearchByName(string)
Asynchronously searches for light beacons by name using the specified search text.
Task<List<LightBeacon>> GetSearchByName(string textToSearch)
Parameters
textToSearchstringThe text used to search for matching light beacons by name.
Returns
- Task<List<LightBeacon>>
A task that represents the asynchronous operation. The task result contains a list of LightBeacon objects matching the search criteria.
InsertOne(LightBeacon)
Inserts a single light beacon into the data store.
Task<LightBeacon?> InsertOne(LightBeacon beacon)
Parameters
beaconLightBeaconThe light beacon entity to insert.
Returns
- Task<LightBeacon>
A task that resolves to the inserted LightBeacon, or
nullwhen no result is produced.
PowerOffLed(ObjectId)
Asynchronously powers off the LED associated with the specified point of connection identifier.
Task PowerOffLed(ObjectId pocId)
Parameters
pocIdObjectIdThe identifier of the point of connection whose LED will be turned off.
Returns
PowerOffLed(PointOfCare)
Asynchronously powers off the LED indicator associated with the specified point of care.
Task PowerOffLed(PointOfCare poc)
Parameters
pocPointOfCareThe point of care whose LED indicator should be turned off.
Returns
SendBeaconBroadcast(ObjectId, LightBeaconColor)
Sends a broadcast signal to the beacon associated with the specified point of care identifier using the given beacon color.
Task SendBeaconBroadcast(ObjectId poc, LightBeaconColor color)
Parameters
pocObjectIdThe identifier of the point of care (or beacon) that will receive the broadcast.
colorLightBeaconColorThe color of the light beacon used for the broadcast.
Returns
SendBeaconBroadcast(PointOfCare, LightBeaconColor)
Sends a light beacon broadcast for the specified point of care, setting the beacon to display the specified color.
Task SendBeaconBroadcast(PointOfCare poc, LightBeaconColor color)
Parameters
pocPointOfCareThe point of care device or location whose beacon will be updated.
colorLightBeaconColorThe color to display on the light beacon.
Returns
SendColor(ObjectId, LightBeaconColor)
Sends the specified color command to the light beacon associated with the given point of control identifier.
Task SendColor(ObjectId pocId, LightBeaconColor color)
Parameters
pocIdObjectIdThe identifier of the point of control that targets the light beacon.
colorLightBeaconColorThe color to apply to the light beacon.
Returns
SendColor(PointOfCare, LightBeaconColor)
Sends a color command to the light beacon of the specified point of care device, updating its visual indicator to reflect the requested state.
Task SendColor(PointOfCare pocId, LightBeaconColor color)
Parameters
pocIdPointOfCareThe identifier of the point of care device whose light beacon will be updated.
colorLightBeaconColorThe color to apply to the light beacon.
Returns
- Task
A task that represents the asynchronous color send operation.
UpdateOne(LightBeacon)
Updates a single light beacon record in the data store. Returns null when the beacon to update cannot be found.
Task<LightBeacon?> UpdateOne(LightBeacon beacon)
Parameters
beaconLightBeaconThe light beacon containing the updated values to persist.
Returns
- Task<LightBeacon>
A task that represents the asynchronous operation, containing the updated LightBeacon, or null if no matching beacon was found.