Stream: implementers
Topic: Search for newer ValueSet
Shamil Nizamov (Feb 21 2020 at 16:47):
I'm trying to GET a value set only if a newer version is available. ValueSet.version is a token type however searching for example for:
http://hapi.fhir.org/baseR4/ValueSet?title=AdministrativeGender&version:above=4.0.0
gives an error - Invalid token specified for parameter version - No code specified: (missing)|4.0.0
Other attempts against HAPI FHIR test server look strange as well:
GET http://hapi.fhir.org/baseR4/ValueSet/administrative-gender - returns expected result
GET http://hapi.fhir.org/baseR4/ValueSet?url=http://hapi.fhir.org/baseR4/ValueSet/administrative-gender - does not return anything
GET http://hapi.fhir.org/baseR4/ValueSet?url:above=http://hapi.fhir.org/baseR4/ValueSet/administrative-gender/_history/1 - returns a bundle with patient, practitioner, location and other resources
Lloyd McKenzie (Feb 21 2020 at 17:49):
Versions do not have a guaranteed ordering. There is no notion of 'above'. For the get specifying the URL, did you escape the URL properly? That should have returned information. Note that you typically will see multiple resource entries with the same URL - one for each version, so searching history isn't going to find what you need. Do you want to submit a change request? We should come up with a technical mechanism that supports getting the "most recent" version.
Shamil Nizamov (Feb 21 2020 at 23:40):
Done - FHIR-26370
Last updated: Apr 12 2022 at 19:14 UTC