Advertisement
rahul0611

error

Jul 21st, 2011
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. if (!(givenName == null && familyName == null)) {
  2.  
  3. List<Patient> patients = Context.getPatientService().getPatients(
  4. givenName + " " + familyName, null, null, false);
  5. Iterator<Patient> i1 = patients.iterator();
  6. int h = 2;
  7. //) {
  8. int sizeOfPatients=patients.size();//2
  9. int sizeofrsp=0;
  10. while(sizeOfPatients>=1){
  11. sizeOfPatients--;
  12. System.out.println(2);
  13. Patient p = i1.next();
  14. String pid = "";
  15. if (p != null && p.getIdentifiers() != null) {
  16. for (PatientIdentifier identifier : p.getIdentifiers()) {
  17. if (identifier.getIdentifierType()
  18. .getPatientIdentifierTypeId() == 1) {
  19. pid = identifier.getIdentifier();
  20. break;
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement