implemented patients-request and onPatientsResponse trigger