diff --git a/packages/openchs-android/package.json b/packages/openchs-android/package.json index 0c2bbe310..1531fa478 100644 --- a/packages/openchs-android/package.json +++ b/packages/openchs-android/package.json @@ -57,7 +57,7 @@ "lodash": "4.17.21", "moment": "2.29.4", "native-base": "3.4.9", - "openchs-models": "1.31.14", + "openchs-models": "1.31.16", "prop-types": "15.8.1", "react": "18.2.0", "react-native": "0.72.3", diff --git a/packages/openchs-android/src/service/draft/DraftEncounterService.js b/packages/openchs-android/src/service/draft/DraftEncounterService.js index 8825b60c6..dfc8a7de4 100644 --- a/packages/openchs-android/src/service/draft/DraftEncounterService.js +++ b/packages/openchs-android/src/service/draft/DraftEncounterService.js @@ -25,7 +25,7 @@ class DraftEncounterService extends BaseService { const cleanIndividualFromDB = this.findByUUID(encounter.individual.uuid, Individual.schema.name); draftEncounter.individual = cleanIndividualFromDB; - ObservationsHolder.convertObsForSave(encounter.observations); + ObservationsHolder.convertObsForSave(draftEncounter.observations); return this.db.write(() => { return db.create(DraftEncounter.schema.name, draftEncounter, true);