Skip to content

Commit

Permalink
Fix for terminology download script to be more specific about ValueSe…
Browse files Browse the repository at this point in the history
…t references
  • Loading branch information
pieter-edelman-nictiz committed Sep 26, 2024
1 parent 9f83ed4 commit ed0b4aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions util/downloadTerminology/downloadTerminology.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@
<xsl:param name="alreadyHandled" as="element(reference)*"/>

<xsl:variable name="urls"
select="collection(concat($sourceDir, '?select=*.xml;recurse=yes'))/(f:StructureDefinition | f:ConceptMap | f:ValueSet)//@value[starts-with(., 'http://decor.nictiz.nl/fhir/')][not(parent::f:source/parent::f:meta)]" as="attribute()*"/>

select="collection(concat($sourceDir, '?select=*.xml;recurse=yes'))/(f:StructureDefinition//f:binding/f:valueSet | f:ValueSet//f:include/f:valueSet | f:ConceptMap/f:sourceCanonical | f:ConceptMap/f:targetCanonical)/@value[starts-with(., 'http://decor.nictiz.nl/fhir/')]" as="attribute()*"/>
<xsl:variable name="references" as="element(reference)*">
<xsl:for-each-group select="$urls" group-by="string(.)">
<xsl:if test="not($alreadyHandled[string(@url) = current-grouping-key()])">
Expand Down

0 comments on commit ed0b4aa

Please sign in to comment.