From 6c157c08511ee26dff9e3d0ce6529a6c43dae8c3 Mon Sep 17 00:00:00 2001 From: biruk Date: Wed, 23 Sep 2020 14:05:23 +0300 Subject: [PATCH] added json property binding to OpenMRSObservation domain model to prevent observations with coded values to cause a parse error as caused by forms created using implementers interface with no grouping of concepts used --- .../feed/openerp/domain/encounter/OpenMRSObservation.java | 2 ++ 1 file changed, 2 insertions(+) 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..f48446b1 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 @@ -1,11 +1,13 @@ package org.bahmni.feed.openerp.domain.encounter; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; @JsonIgnoreProperties(ignoreUnknown = true) public class OpenMRSObservation { private String orderUuid; private String conceptNameToDisplay; + @JsonProperty("valueAsString") private String value; public String getOrderUuid() {