Package org.openmrs.module.htmlformentry.element

Examples of org.openmrs.module.htmlformentry.element.PersonStub


        user.getPersonName().setMiddleName("middleName");
        Context.getUserService().saveUser(user, null);
        Assert.assertEquals(1, service.getUsersAsPersonStubs("Clinician").size());
       
        //lets look at the PersonStub for the Clinician:
        PersonStub ps = service.getUsersAsPersonStubs("Clinician").get(0);
        Assert.assertNull(ps.getGivenName());
        Assert.assertNull(ps.getFamilyName());
        Assert.assertNotNull(ps.getId());
    }
View Full Code Here


      for(Integer id : results)
      {
        Person person = Context.getPersonService().getPerson(id);
        if(person != null && !personsToExclude.contains(person))
        {
          PersonStub pStub = new PersonStub();
          pStub.setGivenName(person.getGivenName());
          pStub.setFamilyName(person.getFamilyName());
          pStub.setMiddleName(person.getMiddleName());
        pStub.setId(id);
          stubs.add(pStub);
        }
      }
    }
    return stubs;
View Full Code Here

TOP

Related Classes of org.openmrs.module.htmlformentry.element.PersonStub

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.