<BUG>observationDAO.saveObservation(obs, encounterID);}</BUG><CONTEXT>long visitID = new VisitTable().insert(visit);if (visit.getEncounters() != null) {for (Encounter encounter : visit.getEncounters()) {long encounterID = encounterDAO.saveEncounter(encounter, visitID);for (Observation obs : encounter.getObservations()) {<extra_id_0>}}return visitID;</CONTEXT>
observationDAO.saveObservation(obs, encounterID).observeOn(Schedulers.io()).subscribe();