bool Login(out int UserID); Must be implemented by a User Manager. When Noah Client has a need for a user (e.g. a module connects to Noah Client) Noah Client will start the preferred User Manager (if not running). Noah Client will call the User Managers implementation of the Login interface. If returning true a valid User ID will be returned in UserID and Noah Client will set this UserID as the logged in User. The User Manager should not call SetCurrentUserID as Noah Client set the User ID and the and the User manager will received a UserChanged event. This may be a little surprising, but it is consistent with the rule that the initiator of an action that causes an event do not receive the event but all other applications will receive the event. An example: bool GetPatientIDsByInfo(object PatientInfo, out int[] PatientID); // NOT USED bool SetPatientIDByInfo(int [] PatientIDs, out int PatientID) Given a number of patient id’s the PatientManager verifies the id’s and displays the GUI that gives the user the option to select a patient (if more than one). If only one patient id is given the id is verified and the function returns immediately without showing the GUI. If PatientIDs is null, the patient GUI is shown, and the user can select a patient. If a valid patient is returned the function returns true and the patient is set to active in Noah Client. This is the same scenario as calling Login (described above). The patient manger should not call SetCurrentPatientID as the patient manager will received a PatientChanged event. Figure 6 Transparent Module, Connect Figure 7 SetPatientIdByInfo
Manage space
Manage content
Integrations