So In lahi we have requirement for dashboard Interested but not applied to get latest general encounter Program Eligibility and check Status is "Interested but not applied" or not. For that we are currently using individual.findLatestObservationFromEncounters() to get that but when there are two general encounter it is giving proper data.
Requirement :
For general encounter create one method to get observation from last completed encounter.
Acceptance Criteria :
method should give observation form the last completed encounter.
Context :
So In lahi we have requirement for dashboard Interested but not applied to get latest general encounter Program Eligibility and check Status is "Interested but not applied" or not. For that we are currently using individual.findLatestObservationFromEncounters() to get that but when there are two general encounter it is giving proper data.
Requirement :
For general encounter create one method to get observation from last completed encounter.
Acceptance Criteria :
method should give observation form the last completed encounter.