You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Issue _include=Library:depends-on does not filter the ValueSets based on the version specified in the relatedArtifact entry when relatedArtifact resources are referenced in canonical|version format.
{
"resourceType": "Library",
"id": "version-repro-library-1",
"url": "http://tes.aimsplatform.org/fhir/Library/version-repro-library",
"name": "VersionRelatedArtifactRepro",
"version": "2.0.0",
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/library-type",
"code": "asset-collection"
}
]
},
"description": "Defines a Library with relatedArtifacts entries unable where _include=Library:depends-on does not pull the proper versions",
"relatedArtifact": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/artifact-isOwned",
"valueBoolean": true
}
],
"type": "depends-on",
"resource": "https://tes.tools.aimsplatform.org/api/fhir/ValueSet/ceef5555-ce1a-42ff-a124-6508eec46658|2.0.1"
}
]
}
{
"resourceType": "ValueSet",
"id": "test-vs-a",
"url": "https://tes.tools.aimsplatform.org/api/fhir/ValueSet/ceef5555-ce1a-42ff-a124-6508eec46658",
"version": "2.0.1",
"name": "version201",
"description": "should be only value set returned with depends-on specified in library"
}
{
"resourceType": "ValueSet",
"id": "test-vs-b",
"url": "https://tes.tools.aimsplatform.org/api/fhir/ValueSet/ceef5555-ce1a-42ff-a124-6508eec46658",
"version": "2.0.0",
"name": "version200",
"description": "should not be returned as part of the depends-on specified in library"
}
Expected behavior
Bundle is returned with Library and only the ValueSet version that is specified in the relatedArtifact entry.
Actual results are that all ValueSets with the same canonical URL are returned, regardless of version.
The text was updated successfully, but these errors were encountered:
Describe the Issue
_include=Library:depends-on
does not filter the ValueSets based on the version specified in the relatedArtifact entry when relatedArtifact resources are referenced incanonical|version
format.The HAPI docs state that versioned canonicals in _include references are not followed, but this is a very common way to represent references within RelatedArtifacts.
Environment (please complete the following information):
Additional Context
Steps to reproduce the behavior:
GET {{fhirBaseUrl}}/Library?url=http://tes.aimsplatform.org/fhir/Library/version-repro-library&version=2.0.0&_include=Library:depends-on
Expected behavior
Bundle is returned with Library and only the ValueSet version that is specified in the relatedArtifact entry.
Actual results are that all ValueSets with the same canonical URL are returned, regardless of version.
The text was updated successfully, but these errors were encountered: