If you know the encounter you can call the ObsService.getObservations
method:
getobservations method in
javadoc<http://resources.openmrs.org/doc/org/openmrs/api/ObsService.html#getObservations%28java.util.List,%20java.util.List,%20java.util.List,%20java.util.List,%20java.util.List,%20java.util.List,%20java.util.List,%20java.lang.Integer,%20java.lang.Integer,%20java.util.Date,%20java.util.Date,%20boolean%29>

If you need to find the most recent encounter, you can use the
EncounterService.getEncountersByPatient method and take the first one off
the list.
getencountersbypatient method in
javadoc<http://resources.openmrs.org/doc/org/openmrs/api/EncounterService.html#getEncountersByPatient%28org.openmrs.Patient%29>

Ben

On Mon, Oct 17, 2011 at 4:47 PM, Erick Mugoma <[email protected]>wrote:

> Is there any method that can be used to pull the observation details of the
> last encounter of a given patient?
>
> Thanks
>
> Erick
> ------------------------------
> Click here to 
> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from 
> OpenMRS Developers' mailing list

_________________________________________

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]

Reply via email to