Skip to content

Commit

Permalink
when value of observation is null then it should not be saved
Browse files Browse the repository at this point in the history
  • Loading branch information
petmongrels authored and vindeolal committed Mar 1, 2021
1 parent 166e596 commit d6632dd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public static ObservationCollection createObservations(Map<String, Object> obser
String conceptDataType = concept.getDataType();
Object obsValue;
Object entryValue = entry.getValue();

if (entryValue == null) continue; //Ignore null values as in Avni there is no difference between null value and non-existence of an observation

switch (ConceptDataType.valueOf(conceptDataType)) {
case Coded: {
if (entryValue instanceof Collection<?>) {
Expand Down

0 comments on commit d6632dd

Please sign in to comment.