Interface ISubscriberGroupedService
- Namespace
- adas_core.Application.Services.Interfaces
- Assembly
- adas-core.Application.dll
public interface ISubscriberGroupedService
- Extension Methods
Methods
AddSubscriberGrouped(WsSubscriberGrouped)
Adds a new subscriber together with its associated group information to the system.
void AddSubscriberGrouped(WsSubscriberGrouped wsSubscriberGrouped)
Parameters
wsSubscriberGroupedWsSubscriberGroupedThe web service representation of the subscriber and its group assignments to be added.
CheckEmptySubscriberGroup(WsSubscriberGrouped)
Validates the provided WsSubscriberGrouped instance to identify empty subscriber groups.
List<string> CheckEmptySubscriberGroup(WsSubscriberGrouped wsl)
Parameters
wslWsSubscriberGroupedThe subscriber group instance to be checked for empty groups.
Returns
- List<string>
A List<T> containing validation messages for any empty subscriber groups found; returns an empty list if all groups are valid.
CheckOnSubscriptionGroup(GroupedField, ObjectId, string, string, GroupedObservation)
Checks subscription-related conditions for a grouped field and its associated grouped observation.
void CheckOnSubscriptionGroup(GroupedField groupedField, ObjectId patientId, string timeZoneId, string connectionId, GroupedObservation go)
Parameters
groupedFieldGroupedFieldThe grouped field to evaluate.
patientIdObjectIdThe identifier of the patient associated with the observation.
timeZoneIdstringThe time zone identifier used for the observation context.
connectionIdstringThe connection identifier for the current request or session.
goGroupedObservationThe grouped observation to be checked against the subscription.
GetGrouped()
Retrieves a list of subscribers organized into groups.
List<WsSubscriberGrouped> GetGrouped()
Returns
- List<WsSubscriberGrouped>
A list of WsSubscriberGrouped instances representing the grouped subscribers.
RemoveGroupedObsByPatientId(string)
Removes grouped observations associated with the specified patient identifier.
void RemoveGroupedObsByPatientId(string patientId)
Parameters
patientIdstringThe unique identifier of the patient whose grouped observations should be removed.
RemoveWsSubscriberByLocation(string, PatientLocation?)
Removes a WebSocket subscriber associated with the specified patient based on the provided location.
void RemoveWsSubscriberByLocation(string patientId, PatientLocation? newLocation)
Parameters
patientIdstringThe identifier of the patient whose WebSocket subscriber should be removed.
newLocationPatientLocationThe new patient location used to identify the subscriber to remove, or null to remove without location filtering.
RemoveWsSubscriberPatientIdAndWsId(string, string)
Removes the specified workstation identifier associated with a patient's WS subscriber entry.
void RemoveWsSubscriberPatientIdAndWsId(string patientId, string wsIdToRemove)
Parameters
patientIdstringThe identifier of the patient whose WS subscriber entry will be updated.
wsIdToRemovestringThe workstation identifier to remove from the patient's WS subscriber entry.
UpdateLastGroupedObsInGroup(string, GroupedObservation)
Updates the most recent grouped observation in the group identified by the specified hash code with the new grouped observation.
void UpdateLastGroupedObsInGroup(string wsgHashCode, GroupedObservation newGroupedObservation)
Parameters
wsgHashCodestringThe hash code identifying the group whose last grouped observation should be updated.
newGroupedObservationGroupedObservationThe new grouped observation to set as the last grouped observation in the group.