make parent property a link

This commit is contained in:
Grahame Grieve 2023-09-12 15:47:35 -07:00
parent ef401d0fe8
commit aa46d3698d
2 changed files with 3 additions and 1 deletions

View File

@ -4,4 +4,4 @@
## Other code changes
* no changes
* Library changes for IG-publisher

View File

@ -541,6 +541,8 @@ public class CodeSystemRenderer extends TerminologyRenderer {
td.addText(pcv.getValueCoding().getCode());
} else if (pcv.hasValueStringType() && Utilities.isAbsoluteUrlLinkable(pcv.getValue().primitiveValue())) {
td.ah(pcv.getValue().primitiveValue()).tx(pcv.getValue().primitiveValue());
} else if ("parent".equals(pcv.getCode())) {
td.ah("#"+cs.getId()+"-"+pcv.getValue().primitiveValue()).addText(pcv.getValue().primitiveValue());
} else {
td.addText(pcv.getValue().primitiveValue());
}