From d82bec0f907bac6a935a1064fa0983e4cae5062d Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Wed, 29 Mar 2023 15:03:08 +1100 Subject: [PATCH] Add binding.description to markdown fields that get their URLs processed --- .../r5/conformance/profile/ProfileUtilities.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfileUtilities.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfileUtilities.java index 918535e4e..2ea201427 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfileUtilities.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/profile/ProfileUtilities.java @@ -1651,14 +1651,21 @@ public class ProfileUtilities extends TranslatingUtilities { } if (webUrl != null) { // also, must touch up the markdown - if (element.hasDefinition()) + if (element.hasDefinition()) { element.setDefinition(processRelativeUrls(element.getDefinition(), webUrl, context.getSpecUrl(), context.getResourceNames(), masterSourceFileNames, null, false)); - if (element.hasComment()) + } + if (element.hasComment()) { element.setComment(processRelativeUrls(element.getComment(), webUrl, context.getSpecUrl(), context.getResourceNames(), masterSourceFileNames, null, false)); - if (element.hasRequirements()) + } + if (element.hasRequirements()) { element.setRequirements(processRelativeUrls(element.getRequirements(), webUrl, context.getSpecUrl(), context.getResourceNames(), masterSourceFileNames, null, false)); - if (element.hasMeaningWhenMissing()) + } + if (element.hasMeaningWhenMissing()) { element.setMeaningWhenMissing(processRelativeUrls(element.getMeaningWhenMissing(), webUrl, context.getSpecUrl(), context.getResourceNames(), masterSourceFileNames, null, false)); + } + if (element.hasBinding() && element.getBinding().hasDescription()) { + element.getBinding().setDescription(processRelativeUrls(element.getBinding().getDescription(), webUrl, context.getSpecUrl(), context.getResourceNames(), masterSourceFileNames, null, false)); + } } } return element; @@ -2335,6 +2342,7 @@ public class ProfileUtilities extends TranslatingUtilities { if (dest.hasPattern()) { checkTypeOk(dest, dest.getPattern().fhirType(), srcSD, "pattern"); } + //updateURLs(url, webUrl, dest); } private void addMappings(List destination, List source) {