AnsweredAssumed Answered

How to get people list with filter in java

Question asked by anakin59490 on Apr 27, 2018
Latest reply on Apr 27, 2018 by rupeshsawaliya@gmail.com

Hi,

i get patient lastname and firstname as parameters

I need to retrieve the people list by using these parameters as fliters.

 

I don't know what is the best way to do that in java.

 

I have found this javascript function used in my project but it's in javascript and i need to know what is the best way to do that in java :

 

var group = "GROUP_PATIENTS";
var personRefs = people.getPeoplePaging("*", paging, "lastName", true);

for each(var personRef in personRefs){
   if(isPersonInGroup(personRef, group)){
      logger.log("personRef = " + personRef);

   }

}

There is a lot of function in PersonService.class or SiteService.class....and I don't know which one is  the most suitable

 

Thank you

Outcomes