Stream: IG creation
Topic: StructureDefinitions mappings uri not resolved as link
Gabriel Kleinoscheg (Jan 21 2022 at 07:24):
Why does only a specified set (within IG publisher's StructureDefinitionRenderer#getUrlForUri
) of URIs get resolved as links within using StructureDefinition.mapping.uri
?
Lloyd McKenzie (Jan 21 2022 at 23:04):
@Grahame Grieve
Grahame Grieve (Jan 27 2022 at 03:06):
it's driven by the file mapping-spaces.xml in the FHIR source itself, I think
Gabriel Kleinoscheg (Feb 03 2022 at 11:27):
Where could that file be found?
Currently, I believe that the reason is connected with https://github.com/HL7/fhir-ig-publisher/blob/master/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/renderers/StructureDefinitionRenderer.java#L1270 and https://github.com/HL7/fhir-ig-publisher/blob/master/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/renderers/StructureDefinitionRenderer.java#L1299
Grahame Grieve (Feb 03 2022 at 22:19):
yes that code needs some work. the URI is not a reliable link (it might be right sometimes, but there's no way to tell, from the code). But we could add an extension that goes on StructureDefinition.mapping that provides a link to the source, and if that extension is present, it will use that in preference to that code.
Last updated: Apr 12 2022 at 19:14 UTC