fix map rendering in value sets
This commit is contained in:
parent
9f4bb7b15d
commit
e47ffbd32e
|
@ -119,9 +119,6 @@ public abstract class TerminologyRenderer extends ResourceRenderer {
|
|||
XhtmlNode td = tr.td();
|
||||
XhtmlNode b = td.b();
|
||||
String link = m.getLink();
|
||||
if (!Utilities.isAbsoluteUrl(link)) {
|
||||
link = getContext().getSpecificationLink()+link;
|
||||
}
|
||||
XhtmlNode a = b.ah(link);
|
||||
a.addText(m.getDetails().getName());
|
||||
if (m.getDetails().isDoDescription() && m.getMap().hasDescription())
|
||||
|
|
|
@ -75,7 +75,7 @@ public class ValueSetRenderer extends TerminologyRenderer {
|
|||
}
|
||||
|
||||
public boolean render(XhtmlNode x, ValueSet vs, boolean header) throws FHIRFormatError, DefinitionException, IOException {
|
||||
List<UsedConceptMap> maps = findReleventMaps(vs);
|
||||
List<UsedConceptMap> maps = findReleventMaps(vs);
|
||||
|
||||
boolean hasExtensions;
|
||||
if (vs.hasExpansion()) {
|
||||
|
@ -1158,6 +1158,21 @@ public class ValueSetRenderer extends TerminologyRenderer {
|
|||
addDesignationsToRow(c, designations, tr);
|
||||
addLangaugesToRow(c, langs, tr);
|
||||
}
|
||||
for (UsedConceptMap m : maps) {
|
||||
td = tr.td();
|
||||
List<TargetElementComponentWrapper> mappings = findMappingsForCode(c.getCode(), m.getMap());
|
||||
boolean first = true;
|
||||
for (TargetElementComponentWrapper mapping : mappings) {
|
||||
if (!first)
|
||||
td.br();
|
||||
first = false;
|
||||
XhtmlNode span = td.span(null, mapping.comp.getRelationship().toString());
|
||||
span.addText(getCharForRelationship(mapping.comp));
|
||||
addRefToCode(td, mapping.group.getTarget(), m.getLink(), mapping.comp.getCode());
|
||||
if (!Utilities.noString(mapping.comp.getComment()))
|
||||
td.i().tx("("+mapping.comp.getComment()+")");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (inc.getFilter().size() > 0) {
|
||||
|
|
Loading…
Reference in New Issue