mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-09 22:34:42 +00:00
Improve rendering of coded values
This commit is contained in:
parent
93c7c3da68
commit
44b6888cb8
@ -1318,18 +1318,14 @@ public class DataRenderer extends Renderer implements CodeResolver {
|
||||
if (Utilities.noString(s))
|
||||
s = lookupCode(c.primitiveValue("system"), c.primitiveValue("version"), c.primitiveValue("code"));
|
||||
|
||||
CodeSystem cs = context.getWorker().fetchCodeSystem(c.primitiveValue("system"));
|
||||
String sn = displaySystem(c.primitiveValue("system"));
|
||||
String link = getLinkForCode(c.primitiveValue("system"), c.primitiveValue("version"), c.primitiveValue("code"));
|
||||
XhtmlNode xi = link != null ? x.ah(context.prefixLocalHref(link)) : x;
|
||||
xi.tx(sn);
|
||||
xi.tx(" ");
|
||||
|
||||
String sn = cs != null ? crPresent(cs) : displaySystem(c.primitiveValue("system"));
|
||||
String link = getLinkForCode(c.primitiveValue("system"), c.primitiveValue("version"), c.primitiveValue("code"));
|
||||
if (link != null) {
|
||||
x.ah(context.prefixLocalHref(link)).tx(sn);
|
||||
} else {
|
||||
x.tx(sn);
|
||||
}
|
||||
|
||||
x.tx(" ");
|
||||
x.tx(c.primitiveValue("code"));
|
||||
xi.tx(c.primitiveValue("code"));
|
||||
|
||||
if (!Utilities.noString(s)) {
|
||||
x.tx(": ");
|
||||
x.tx(s);
|
||||
|
Loading…
x
Reference in New Issue
Block a user