avniproject / avni-models

Avni data model to be used by front end clients
https://avniproject.org
GNU Affero General Public License v3.0
1 stars 4 forks source link

Create one method to get observation from last filled encounter from individual #50

Open vedfordev opened 11 months ago

vedfordev commented 11 months ago

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.

vinayvenu commented 10 months ago

@vedfordev