Hello everyone. I am working on the issue -
I had a doubt. Is it that always the person in Obs and its encounter must be same before being persisted to the database?. If so then why don’t we always make the person in encounter same as the person in obs just before persisting the obs. Looking at the saveObs() method of ObsSevice it appears that there are 3 cases being checked before persisting and in 2 of them we are are making the person in encounter to be equal to person in obs.
Reason why the test given in issue fails is that the 3rd case is being called where we do not make the person in obs same as person in its encounter.