openmrs-android-sdk/src/main/java/com/openmrs/android_sdk/library/dao/ObservationDAO.java
/**
     * Find observation by encounter id list.
     *
     * @param encounterID the encounter id
     * @return the list
     */
Find observation by encounter id list.
@param encounterID the encounter id
@return the list
Find observation by encounter id list . @param encounterID the encounter id @return the list
public List<Observation> findObservationByEncounterID(Long encounterID) {
        List<Observation> observationList;
        List<ObservationEntity> observationEntityList;
        try {
            observationEntityList = observationRoomDAO.findObservationByEncounterID(encounterID).blockingGet();
            observationList = AppDatabaseHelper.convert(observationEntityList);
            return observationList;
        } catch (Exception e) {
            return new ArrayList<>();
        }
    }
public List < Observation > findObservationByEncounterID ( Long encounterID ) { List < Observation > observationList ; List < ObservationEntity > observationEntityList ; try { observationEntityList = observationRoomDAO . findObservationByEncounterID ( encounterID ) . blockingGet ( ) ; observationList = AppDatabaseHelper . convert ( observationEntityList ) ; return observationList ; } catch ( Exception e ) { return new ArrayList < > ( ) ; } }
Find observation by encounter id list.
Find observation by encounter id list .