I am running openmrs Version: 2.1.2 and i am attempting to create a new cohort of patients with a certain encounter type - which is successful but returns 0 results yet the database has the information
I’ve also tested this on Bahmni 0.90 (…which is running OpenMRS 2.1.1) and found the same issue. All Cohort builder queries are returning 0.
Composition queries from the reporting module are also returning wrong results. Maybe this is related to this commit. All composition queries return the value from the first cohort query in the composition as describe on this post.
The log file doesn’t show any errors, it just logs a warning message:
[WARN ] HibernateConceptDAO - No concept found for 'REASON ORDER STOPPED'
(Yes, I’m not surprised that Cohort Builder is broken due to the Platform
2.1.x changes. It would be good if some dev can research exactly what’s
broken and how to fix it. (“This commit” that Bailly links to is relevant,
but it doesn’t seem to be the latest code.)
changes introduced in Platform 2.1.x have broken the cohort builder module
I’m proposing a change to the platform (see that other thread) that will address this in the “right way”
someone is working on this ticket now
this will require releasing a new Platform 2.1.3
Now that I write this I realize we should consider doing a quick-hack fix purely in the cohort builder code. @dkayiwa, thinking back to the original fix you proposed, would it be possible to do something like this purely within the module? (This would let us get the module fixed immediately for people running the latest platform release.)
@aramirez are you running a new query? Or just looking at existing ones? Which new query did you run? And how did you update the module? Can you also confirm by going to the Administration Manage modules page to confirm that the version is 2.0.5-snapshot?