Fix wrong reference to CDA classes for unscoped class names
This commit is contained in:
parent
07e071b5b5
commit
14758663cf
|
@ -578,14 +578,16 @@ public abstract class ResourceRenderer extends DataRenderer {
|
||||||
protected void renderUri(RenderingStatus status, XhtmlNode x, ResourceWrapper uri) throws FHIRFormatError, DefinitionException, IOException {
|
protected void renderUri(RenderingStatus status, XhtmlNode x, ResourceWrapper uri) throws FHIRFormatError, DefinitionException, IOException {
|
||||||
if (!renderPrimitiveWithNoValue(status, x, uri)) {
|
if (!renderPrimitiveWithNoValue(status, x, uri)) {
|
||||||
String v = uri.primitiveValue();
|
String v = uri.primitiveValue();
|
||||||
|
boolean local = false;
|
||||||
|
|
||||||
if (context.getContextUtilities().isResource(v)) {
|
if (context.getContextUtilities().isResource(v)) {
|
||||||
v = "http://hl7.org/fhir/StructureDefinition/"+v;
|
v = "http://hl7.org/fhir/StructureDefinition/"+v;
|
||||||
|
local = true;
|
||||||
}
|
}
|
||||||
if (v.startsWith("mailto:")) {
|
if (v.startsWith("mailto:")) {
|
||||||
x.ah(v).addText(v.substring(7));
|
x.ah(v).addText(v.substring(7));
|
||||||
} else {
|
} else {
|
||||||
ResourceWithReference rr = resolveReference(uri);
|
ResourceWithReference rr = local ? resolveReference(uri.resource(), v, true) : resolveReference(uri);
|
||||||
if (rr != null) {
|
if (rr != null) {
|
||||||
if (rr.getResource() == null) {
|
if (rr.getResource() == null) {
|
||||||
x.ah(context.prefixLocalHref(rr.getWebPath())).addText(rr.getUrlReference());
|
x.ah(context.prefixLocalHref(rr.getWebPath())).addText(rr.getUrlReference());
|
||||||
|
|
Loading…
Reference in New Issue