Resolution: Change Request Cancelled
Affects Version/s: None
Fix Version/s: None
Consider this following scenario
- Search for Patient-A
- Search for Patient-B
- Search for Patient-C
- Search for Patient-D
Then somehow, We deleted or removed the patient-B from the system. So the system couldn't find the Patient-B thorough the existing location uuid.
After that when you go to the findPatient dashboard, you can only see the Patient-A. But you should see the list of Patient-A, Patient-C, and Patient-D.
The reason was, In the EMRAPI module - this line of code contains an API throw mechanism. So when this method checks for Patient-B in the order (since it was also viewed recently), it will throw the exception. See more here,
So the last viewed patient list can’t contain the patients after that patient-B.
We should add a debug log to that line instead of throwing an exception.