From e2803aa005ae8c6f079dfb124805c5c67c570ba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edg=C3=AAncio=20da=20Calista?= Date: Wed, 12 Feb 2020 17:10:29 +0200 Subject: [PATCH] Converts Observation objects to string --- .../feed/openerp/domain/encounter/OpenMRSObservation.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/openerp-atomfeed-service/src/main/java/org/bahmni/feed/openerp/domain/encounter/OpenMRSObservation.java b/openerp-atomfeed-service/src/main/java/org/bahmni/feed/openerp/domain/encounter/OpenMRSObservation.java index a90f9af1..eb3d315c 100644 --- a/openerp-atomfeed-service/src/main/java/org/bahmni/feed/openerp/domain/encounter/OpenMRSObservation.java +++ b/openerp-atomfeed-service/src/main/java/org/bahmni/feed/openerp/domain/encounter/OpenMRSObservation.java @@ -28,7 +28,11 @@ public String getValue() { return value; } - public void setValue(String value) { - this.value = value; + public void setValue(Object value) { + if(value != null) { + this.value = value.toString(); + }else{ + this.value = null; + } } }