If we update a person's birthdate in the webapp and run the following:

context.read(patient.getPatientId(), context.getLogicDataSource("person"), "BIRTHDATE").toDatetime();

We get the old birthdate instead of the new one. I drilled down into the logic code and the criteria.list is actually getting executed so the issue is not that the rule result is cached. The issue seems to be that hibernate is caching the birthdate and not updating it with the new value when criteria.list is called. Here is the criteria getting executed:

CriteriaImpl(org.openmrs.Person:this[Subcriteria(names:name)][personId in (28039)])

It is line 108 of HibernateLogicPersonDAO.

Any ideas?

Thanks,

Tammy Dugan

--
Tammy Dugan
CHIRDL Technical Lead
Children's Health Services Research
IU School of Medicine

_________________________________________

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