From 58afc3444b5ace4c0b997afcd1195b18b8cb6645 Mon Sep 17 00:00:00 2001 From: Matti Uusitalo Date: Thu, 8 Nov 2018 13:52:06 +0200 Subject: [PATCH] Added default operator type EQUALS --- .../org/hl7/fhir/convertors/VersionConvertor_30_40.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hapi-fhir-converter/src/main/java/org/hl7/fhir/convertors/VersionConvertor_30_40.java b/hapi-fhir-converter/src/main/java/org/hl7/fhir/convertors/VersionConvertor_30_40.java index fb040d87e1e..63a24230ffc 100644 --- a/hapi-fhir-converter/src/main/java/org/hl7/fhir/convertors/VersionConvertor_30_40.java +++ b/hapi-fhir-converter/src/main/java/org/hl7/fhir/convertors/VersionConvertor_30_40.java @@ -16304,8 +16304,10 @@ public class VersionConvertor_30_40 { tgt.setOperator(org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemOperator.EXISTS); tgt.setAnswer(convertType(src.getHasAnswerElement())); } - else if (src.hasAnswer()) - tgt.setAnswer(convertType(src.getAnswer())); + else if (src.hasAnswer()) { + tgt.setOperator(org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemOperator.EQUAL); + tgt.setAnswer(convertType(src.getAnswer())); + } return tgt; }