Stream: implementers
Topic: StuctureMaps in xver packages
Declan Kieran (Dec 20 2021 at 12:03):
Hi
I have a question around the URL used for the StructureDefintion targets in the StructureMaps included in the xver packages. Is there a reason to not use full versioned URL as opposed the generic latest URL?
I had a look in both the hl7.fhir.xver.r3 and hl7.fhir.xver.r4 packages and for all of the 3to4 StructureMaps, in both packages, the target StructureDefintion is http://hl7.org/fhir/StructureDefintion/<resource>, as opposed to http://hl7.org/fhir/4.0/StructureDefintion/<resource>. I had thought maybe there was an inference based on the version of the package, but the r4 and r3 xver packages are the same. Also the source in both sets of StructureMaps is http://hl7.org/fhir/3.0/StructureDefintion/<resource>
Based on this inconsistency it seems like this will cause problems, for example when moving to r5, if r4 is used implicitly as the latest version.
Declan Kieran (Dec 20 2021 at 12:41):
I suppose another question that comes from this is, does the value of the target even matter, is this address even used to determine / retrieve the content of the StructureMap JSON object?
The reason I ask this question is it does seem to be used to search in other packages in the conversion process, so it does seem to have more importance that being just a name, and depending on the package, the unversioned URL may return different StructureDefinition versions. It would be good to know any other functional use for it.
Declan Kieran (Dec 20 2021 at 14:08):
Here's what I used to have a scan through the values in question, just in cases its useful, the second grep can be changed to source etc...
find ~/.fhir/packages/hl7.fhir.xver.r4#1.2.0 -name "*StructureMap*3to4*" | xargs -n 1 -I {} jq -s '.' {} | grep -A 1 url | grep -B 1 target
Lloyd McKenzie (Dec 20 2021 at 15:23):
@Grahame Grieve
Last updated: Apr 12 2022 at 19:14 UTC