Fix concept link rendering problem
This commit is contained in:
parent
0148208a14
commit
3fbb505722
|
@ -115,7 +115,11 @@ public abstract class TerminologyRenderer extends ResourceRenderer {
|
|||
for (UsedConceptMap m : maps) {
|
||||
XhtmlNode td = tr.td();
|
||||
XhtmlNode b = td.b();
|
||||
XhtmlNode a = b.ah(getContext().getSpecificationLink()+m.getLink());
|
||||
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())
|
||||
addMarkdown(td, m.getMap().getDescription());
|
||||
|
|
|
@ -844,14 +844,15 @@ public class ValueSetRenderer extends TerminologyRenderer {
|
|||
}
|
||||
|
||||
private void addRefToCode(XhtmlNode td, String target, String vslink, String code) {
|
||||
CodeSystem cs = getContext().getWorker().fetchCodeSystem(target);
|
||||
String cslink = getCsRef(cs);
|
||||
XhtmlNode a = null;
|
||||
if (cslink != null)
|
||||
a = td.ah(getContext().getSpecificationLink()+cslink+"#"+cs.getId()+"-"+code);
|
||||
else
|
||||
a = td.ah(getContext().getSpecificationLink()+vslink+"#"+code);
|
||||
a.addText(code);
|
||||
addCodeToTable(false, target, code, null, td);
|
||||
// CodeSystem cs = getContext().getWorker().fetchCodeSystem(target);
|
||||
// String cslink = getCsRef(cs);
|
||||
// String link = cslink != null ? cslink+"#"+cs.getId()+"-"+code : vslink+"#"+code;
|
||||
// if (!Utilities.isAbsoluteUrl(link)) {
|
||||
// link = getContext().getSpecificationLink()+link;
|
||||
// }
|
||||
// XhtmlNode a = td.ah(link);
|
||||
// a.addText(code);
|
||||
}
|
||||
|
||||
private boolean generateComposition(XhtmlNode x, ValueSet vs, boolean header, List<UsedConceptMap> maps) throws FHIRException, IOException {
|
||||
|
|
Loading…
Reference in New Issue