Hi Erick, You can get the person object from the personId by doing something like: Person person = Context.getPersonService().getPerson(personId);
And get the concept object with something like: Concept concept = Context.getConceptService().getConcept(conceptId); On Fri, Oct 21, 2011 at 12:03 PM, Erick Mugoma <[email protected]>wrote: > Hi Yves, Ben, > > Am try to learn how write a simple object that pulls the patient > observation given the concept id and the person. > Am having problems with how to pass the person argument as required by the > getObservationsByPersonAndConcept(Person, Concept) method; > > Any help on how this can be done. A Simple example will be of great help. > > Thanks > > Erick > ------------------------------ > Click here to > unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from > OpenMRS Developers' mailing list -- If we keep uppermost in our minds the unkind and unjust acts of others, we shall find it impossible to love them as Christ has loved us; but if our thoughts dwell upon the wondrous love and pity of Christ for us, the same spirit will flow out to others. _________________________________________ To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to [email protected] with "SIGNOFF openmrs-devel-l" in the body (not the subject) of your e-mail. [mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

