Exemple #1
0
        public void SubscribeToPatientAlerts(string doctorId)
        {
            ICallbackDoctorMonitoringService callbackChannel = OperationContext.Current.GetCallbackChannel <ICallbackDoctorMonitoringService>();
            AlertMonitorList alertList = AlertMonitorList.Instance;

            alertList.Subscribe(doctorId, callbackChannel.ReceiveAlerts);
        }
Exemple #2
0
        public void SubscribeToVitals(string patientId, string doctorId)
        {
            ICallbackDoctorMonitoringService callbackChannel = OperationContext.Current.GetCallbackChannel <ICallbackDoctorMonitoringService>();
            VitalsMonitorList vitalsList = VitalsMonitorList.Instance;

            vitalsList.Subscribe(patientId, doctorId, callbackChannel.ReceiveVitals);
        }