Stream: implementers
Topic: ValueSetURL
Jennifer Ellison (Aug 02 2017 at 12:54):
In FHIR DSTU2 ValueSets contained inline CodeSystems, however in FHIR STU3 ValueSets and CodeSystems have their own separate resource instances. There doesn’t appear to be a clear way of differentiating which FHIR standard each conforms with.
In DSTU2 we used a resolvable ValueSet URL, much like the FHIR standard. In the move to adopt STU3 if we use the same ValueSet URL we wouldn’t be able to differentiate which version of FHIR the ValueSet conforms to.
The FHIR standard has retrospectively applied DSTU2 to the resolvable URL, however the defining URL (canonical URL) for the ValueSet remains the same between versions. E.g. https://www.hl7.org/fhir/DSTU2/valueset-administrative-gender.html and http://hl7.org/fhir/valueset-administrative-gender.html.
Do you have any advice on how we should manage this?
Kevin Mayfield (Aug 02 2017 at 13:09):
Deleted
Kevin Mayfield (Aug 02 2017 at 13:12):
Deleted
Grahame Grieve (Aug 02 2017 at 20:56):
the advice depends on context. I don't know how to offer any more useful advice unless you can describe your context more
Kevin Mayfield (Aug 03 2017 at 07:35):
Second try.
@Jennifer Ellison
Is this an example of the issue: we have a dstu2 profile for Patient and the ValueSet for administrative gender points to http://hl7.org/fhir/valueset-administrative-gender which is a STU3 ValueSet, should this point to http://hl7.org/fhir/DSTU2/valueset-administrative-gender
In our profile renderer we change the link URL's to the correct version but display the canonical url.
Kevin Mayfield (Aug 03 2017 at 07:38):
i.e. The link to http://hl7.org/fhir/valueset-administrative-gender (this is displayed in the profile) is http://hl7.org/fhir/DSTU2/valueset-administrative-gender.html and this is the page you go to when you follow the links.
Jennifer Ellison (Aug 03 2017 at 07:51):
Yes, there are almost 2 problems that we have, one is that the ValueSet URLs in the XML for DSTU2 profiles now go to STU3 ValueSets.
However, the problem we are facing is in how we handle our own ValueSets going forward. We host the ValueSets on a server and when we created the DSTU2 ValueSets, we made the ValueSet URL is the same as the resolvable URL, like the FHIR standard originally was. But, as we move forward to recreate some of our profiles in STU3, if we recreate these ValueSets with the same ValueSet URL in STU3, you cannot have the same resolvable URL as the structure of the ValueSet resource has changed and there doesn't appear to be a way to distinguish which version of FHIR they belong to.
The FHIR standard has handled this by retrospectively changing the resolvable URL for DSTU2 ValueSets. The question is around what would be the best way for us to handle ValueSet URLs between versions of FHIR, as the FHIR standard states that "Ideally, the URL should also be the location of the master version of the value set" (http://hl7.org/fhir/valueset.html#4.8.3.1)
Lloyd McKenzie (Aug 03 2017 at 15:11):
The real challenge is that canonical URLs resolve to "current official" with no way to navigate to other versions (like the yellow box we have at the top of the page you get to when you use the canoncial URL for the spec itself).
Lloyd McKenzie (Aug 03 2017 at 15:12):
Doing that would mean a fair bit of work for each release. (And even more work if we wanted to account for the times we rename things)
Last updated: Apr 12 2022 at 19:14 UTC