Stream: implementers
Topic: extension SearchParameter expressions
Lee Surprenant (May 14 2020 at 20:21):
This came up on the PlanNet track today: if you have an extension and you'd like the value to be searchable, which of these is the right expression?
Type.extension.where(url='extensionUrl')
or
Type.extension.where(url='extensionUrl').value
Grahame Grieve (May 14 2020 at 20:22):
second
Lee Surprenant (May 14 2020 at 20:22):
our server was expecting the latter, but what we found in IGs (and even base spec) is the former
Grahame Grieve (May 14 2020 at 20:22):
where in the base spec and IGs?
Lee Surprenant (May 14 2020 at 20:23):
https://www.hl7.org/fhir/patient-profiles.html#search mothersMaidenName
Lee Surprenant (May 14 2020 at 20:23):
oh wait
Lee Surprenant (May 14 2020 at 20:23):
i mayube read that wrong
Lee Surprenant (May 14 2020 at 20:23):
here is the one that we ACTAULLY hit
Lee Surprenant (May 14 2020 at 20:23):
Practitioner.qualification.extension.where(url='http://hl7.org/fhir/uv/vhdir/StructureDefinition/practitioner-qualification').extension.where(url='whereValid')
Lee Surprenant (May 14 2020 at 20:23):
i tried to find a simpler one for clarity
Lee Surprenant (May 14 2020 at 20:24):
I actually like that mothersMaidenName one...it uses the fhirpath extension
function
Grahame Grieve (May 14 2020 at 20:25):
yes that's a little more concise. Same meaning though
Lee Surprenant (May 14 2020 at 20:25):
ok, so either one would resolve to the Extension and not the Extension.value, right?
Lee Surprenant (May 14 2020 at 20:26):
whereas we'd expect it to get all the way to the value
Grahame Grieve (May 14 2020 at 20:26):
yes. We don't really discuss this, except for here:
Grahame Grieve (May 14 2020 at 20:26):
http://hl7.org/fhir/searchparameter.html#srch
Grahame Grieve (May 14 2020 at 20:26):
which doesn't help.
Grahame Grieve (May 14 2020 at 20:26):
but I'd say, based on the examples, that you'll have to be able to cope with either
Lee Surprenant (May 14 2020 at 20:26):
i have now patched our server with custom logic that says "if the expression leads to an Extension and that Extension has a child named value, then index the value instead"
Lee Surprenant (May 14 2020 at 20:28):
worth opening a jira item for clarification? or maybe we're the only ones that tripped on this?
Grahame Grieve (May 14 2020 at 20:29):
definitely worth clarifying.
Lee Surprenant (May 14 2020 at 21:09):
Paul Church (Aug 10 2020 at 17:53):
Just to revive this topic, we have also run into this in the Google implementation and we're planning to hack it to accept both with or without .value
so we can accept the existing examples. +1 to implementers tripping over this.
Last updated: Apr 12 2022 at 19:14 UTC