Advertisement
Guest User

Untitled

a guest
Dec 29th, 2012
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1.         //Gets the value of the global property
  2.         Integer identifierId = Integer
  3.                 .parseInt(Context.getAdministrationService().getGlobalProperty("global property name"));
  4.         //Gets the patient
  5.         Patient patient = Context.getPatientService().getPatient(patientId);//Edit this patientId
  6.         //Gets the Parpar identifier
  7.         PatientIdentifier identifier = patient.getPatientIdentifier(identifierId);
  8.         //Checkes Whether this patient really has that identifier
  9.         if (identifier != null) {
  10.             String thisIsWhatYouNeed = identifier.getIdentifier();//Change this variable name and concatinate this to the href string
  11.         } else {
  12.             //do something (like - don't add the link)
  13.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement