mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-02 01:19:14 +00:00
fix for NPE rendering references to contained value setes in Questionnaires that don't resolve
This commit is contained in:
parent
752918a80a
commit
655c072d64
@ -709,8 +709,9 @@ public class QuestionnaireRenderer extends TerminologyRenderer {
|
||||
if (i.hasAnswerValueSet()) {
|
||||
ValueSet vs = null;
|
||||
if (i.getAnswerValueSet().startsWith("#")) {
|
||||
vs = (ValueSet) q.getContained(i.getAnswerValueSet().substring(1)).copy();
|
||||
vs = (ValueSet) q.getContained(i.getAnswerValueSet().substring(1));
|
||||
if (vs != null && !vs.hasUrl()) {
|
||||
vs = vs.copy();
|
||||
vs.setUrl("urn:uuid:"+UUID.randomUUID().toString().toLowerCase());
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user