added code to actually set the patient if wirecloud sends an event
corrected patient id stripping
deep watchin selected patient so that callback won't fire when it is not necessary