render properties as links when they are URLs

This commit is contained in:
Grahame Grieve 2020-03-17 11:14:42 +11:00
parent ed315a03c0
commit 1cbb377040

View File

@ -3746,6 +3746,8 @@ public class NarrativeGenerator implements INarrativeGenerator {
if (first) first = false; else td.addText(", "); if (first) first = false; else td.addText(", ");
if (pcv.hasValueCoding()) { if (pcv.hasValueCoding()) {
td.addText(pcv.getValueCoding().getCode()); td.addText(pcv.getValueCoding().getCode());
} else if (pcv.hasValueStringType() && Utilities.isAbsoluteUrl(pcv.getValue().primitiveValue())) {
td.ah(pcv.getValue().primitiveValue()).tx(pcv.getValue().primitiveValue());
} else { } else {
td.addText(pcv.getValue().primitiveValue()); td.addText(pcv.getValue().primitiveValue());
} }