diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/QuestionnaireRenderer.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/QuestionnaireRenderer.java index 9d601c685..20d3166f0 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/QuestionnaireRenderer.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/QuestionnaireRenderer.java @@ -152,6 +152,12 @@ public class QuestionnaireRenderer extends TerminologyRenderer { text = v.primitiveValue("code"); } } + if (value == null) { + value = "??"; + } + if (text == null) { + text = "??"; + } boolean selected = "true".equals(opt.primitiveValue("initialSelected")); x.option(value, text, selected); }