BMXNET 4.0 Developer API

Local event subscribers will have this event triggered.

Namespace:  IndianHealthService.BMXNet
Assembly:  BMXNET40 (in BMXNET40.dll)

Syntax

         
 C#  Visual Basic  Visual C++ 
event EventHandler<LocalEventArgs> ApplicationEvent
Event ApplicationEvent As EventHandler(Of LocalEventArgs)
 event EventHandler<LocalEventArgs^>^ ApplicationEvent {
	void add (EventHandler<LocalEventArgs^>^ value);
	void remove (EventHandler<LocalEventArgs^>^ value);
}

Remarks

The "REFRESH" event is filtered out and is triggered using the RefreshRequested event

Examples

The Well Child Module growth chart displays Height and Weight. When the EHR vitals component adds new Heights and Weights it publishes a LocalEvent with an EventType PCC*MSR. If the growth chart detects the Vitals update event it then refreshes the growth chart:
Copy Code
                public void Startup()
                {
                    this.LocalSession.EventServices.ApplicationEvent+= new EventHandler<LocalEventArgs>(Session_ApplicationEvent);
                }
                
            
             void Session_ApplicationEvent(object sender, LocalEventArgs e)
             {
                if (this.IsVitalsUpdatedEvent(e))
                {
                    this.RefreshAll();
                }
             }
             
             protected bool IsVitalsUpdatedEvent(LocalEventArgs anEvent)
             {
                return anEvent.EventType.StartsWith("PCC") && anEvent.EventType.EndsWith("MSR");
             }
            

See Also