Stream: hapi
Topic: Wrong ValueSet URL?
Paul Lynch (Jun 21 2019 at 22:26):
http://hapi.fhir.org/baseR4/ValueSet/medication-status/$expand reports the system URI as "http://hl7.org/fhir/medication-status", but per https://www.hl7.org/fhir/STU3/valueset-medication-status.html, it should be http://hl7.org/fhir/ValueSet/medication-status. Also http://hapi.fhir.org/baseR4/ValueSet/$expand?url=http://hl7.org/fhir/ValueSet/medication-status returns a null pointer exception, and http://hapi.fhir.org/baseR4/ValueSet/$expand?url=http://hl7.org/fhir/medication-status does not find anything. (Is this the best place to report these issues?)
Rob Hausam (Jun 22 2019 at 00:50):
@Paul Lynch
The HAPI server is mostly (but not entirely) behaving correctly:
(1) http://hapi.fhir.org/baseR4/ValueSet/medication-status/$expand reports the system URI as "http://hl7.org/fhir/medication-status", but per https://www.hl7.org/fhir/STU3/valueset-medication-status.html, it should be http://hl7.org/fhir/ValueSet/medication-status.
No, the way that HAPI displays this is correct. The 'system' URL is always the URL for the code system (http://hl7.org/fhir/medication-status), not the URL for the value set - just as HAPI is displaying it.
(2) Also http://hapi.fhir.org/baseR4/ValueSet/$expand?url=http://hl7.org/fhir/ValueSet/medication-status returns a null pointer exception,
This one is an issue and should be reported, as this should be expanding correctly, not giving a NPE. The instance invocation for the same value set does work: http://hapi.fhir.org/baseR4/ValueSet/medication-status/$expand
(3) and http://hapi.fhir.org/baseR4/ValueSet/$expand?url=http://hl7.org/fhir/medication-status does not find anything.
This behavior is also correct, because the URL that you provided is for the code system, not for the value set - so there is no value set being specified for the operation to expand.
Probably the best place to report issues with the HAPI server is in the HAPI FHIR Google group at:
https://groups.google.com/forum/#!forum/hapi-fhir
I think for that purpose it is likely monitored more closely and probably will be responded to more quickly.
Paul Lynch (Jun 25 2019 at 15:09):
It looks like in R4 the code system URI has changed to http://hl7.org/fhir/CodeSystem/medication-status, yet HAPI is reporting http://hl7.org/fhir/medication-status.
James Agnew (Oct 04 2019 at 01:56):
So... a bit late, but (2) is fixed now :)
Last updated: Apr 12 2022 at 19:14 UTC