# Saving observations

**URL:** <https://talk.openmrs.org/t/saving-observations/11019>\
**Category:** Ask OpenMRS\
**Tags:** observations, encounters\
**Created:** [April 11, 2017, 10:45am UTC](https://talk.openmrs.org/t/saving-observations/11019 "2017-04-11T10:45:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![markgromantigue](https://talk.openmrs.org/user_avatar/talk.openmrs.org/markgromantigue/32/3979_2.png) [@markgromantigue](https://talk.openmrs.org/u/markgromantigue)\
**Post date:** [April 11, 2017, 10:45am UTC](https://talk.openmrs.org/t/saving-observations/11019/1 "2017-04-11T10:45:43Z")

</div>

**Application Name:** Platform **Version Number:** 2.0.1 **Question:** Are observations (obs) saved together with the encounter when you invoke the method **encounterService.saveEncounter(encounter)**?

I’m asking because I seem to be unable to save observations (i.e. complaints, diagnosis) even though I’ve already added them using **encounter.addObs(obs)**. Any help would be greatly appreciated! 🙂

---

<div class="post-metadata">

**Author:** ![darius](https://talk.openmrs.org/user_avatar/talk.openmrs.org/darius/32/8082_2.png) [@darius](https://talk.openmrs.org/u/darius)\
**Post date:** [April 11, 2017, 4:31pm UTC](https://talk.openmrs.org/t/saving-observations/11019/2 "2017-04-11T16:31:25Z")

</div>

Yes, observations are supposed to be automatically saved when you call encounterService.saveEncounter().

Can you share the code where this is failing (or ideally show the failure in the form of a unit test?)

-Darius

---

<div class="post-metadata">

**Author:** ![markgromantigue](https://talk.openmrs.org/user_avatar/talk.openmrs.org/markgromantigue/32/3979_2.png) [@markgromantigue](https://talk.openmrs.org/u/markgromantigue)\
**Post date:** [April 13, 2017, 9:45am UTC](https://talk.openmrs.org/t/saving-observations/11019/3 "2017-04-13T09:45:40Z")

</div>

Thanks for that! 🙂 I’ve figured it out. Turns out I just failed to get my patient object.
