I think there is a bug in the way to fetch observations in Bahmni Apps.
observationService.fetch() in BahmniApps is returning one observation per locale available in the Concept translations, when the Fully Qualified Name is identical in each locale.
In other words, if a concept translation is provided in ‘en’ and ‘sp’ with the same FQN, and we record ONE observation to it, then TWO observations are returned by the ObservationService. That makes the obs appear twice in a number of Display Controls.
For instance, let’s take the concept ‘HEIGHT’ (id:118 on the demo) and add the ‘Spanish’ locale’s Fully Qualfied Name as ‘HEIGHT’ too.
Then the observations returned by the ObservationService are duplicated, which makes it displayed twice in the dashboard:
Hi @mksrom, thank you for identifying the bug. Can you create an issue in github repo with the above details so that it will be tracked. In case if you are interested in contributing the fix for this bug please go ahead and let us know if you need any help.
This is something we’ll need be fixed soon before end of June… (either by Bahmni team or ourselves).
Could I have the link to the Mingle card (even just read-only)? There may be some additional information on there to help troubleshooting the bug.