Skip to content

Commit

Permalink
Merge pull request #459 from Nictiz/fixTerminologyDownloadScript
Browse files Browse the repository at this point in the history
Fix for terminology download script to be more specific about ValueSet references
  • Loading branch information
pieter-edelman-nictiz authored Sep 26, 2024
2 parents 9f83ed4 + ed0b4aa commit 47c7383
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 47c7383

Please sign in to comment.