FHIR Chat · extension SearchParameter expressions · implementers

Stream: implementers

Topic: extension SearchParameter expressions


view this post on Zulip 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

view this post on Zulip Grahame Grieve (May 14 2020 at 20:22):

second

view this post on Zulip 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

view this post on Zulip Grahame Grieve (May 14 2020 at 20:22):

where in the base spec and IGs?

view this post on Zulip Lee Surprenant (May 14 2020 at 20:23):

https://www.hl7.org/fhir/patient-profiles.html#search mothersMaidenName

view this post on Zulip Lee Surprenant (May 14 2020 at 20:23):

oh wait

view this post on Zulip Lee Surprenant (May 14 2020 at 20:23):

i mayube read that wrong

view this post on Zulip Lee Surprenant (May 14 2020 at 20:23):

here is the one that we ACTAULLY hit

view this post on Zulip 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')

view this post on Zulip Lee Surprenant (May 14 2020 at 20:23):

i tried to find a simpler one for clarity

view this post on Zulip Lee Surprenant (May 14 2020 at 20:24):

I actually like that mothersMaidenName one...it uses the fhirpath extension function

view this post on Zulip Grahame Grieve (May 14 2020 at 20:25):

yes that's a little more concise. Same meaning though

view this post on Zulip Lee Surprenant (May 14 2020 at 20:25):

ok, so either one would resolve to the Extension and not the Extension.value, right?

view this post on Zulip Lee Surprenant (May 14 2020 at 20:26):

whereas we'd expect it to get all the way to the value

view this post on Zulip Grahame Grieve (May 14 2020 at 20:26):

yes. We don't really discuss this, except for here:

view this post on Zulip Grahame Grieve (May 14 2020 at 20:26):

http://hl7.org/fhir/searchparameter.html#srch

view this post on Zulip Grahame Grieve (May 14 2020 at 20:26):

which doesn't help.

view this post on Zulip 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

view this post on Zulip 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"

view this post on Zulip 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?

view this post on Zulip Grahame Grieve (May 14 2020 at 20:29):

definitely worth clarifying.

view this post on Zulip Lee Surprenant (May 14 2020 at 21:09):

FHIR#27134

view this post on Zulip 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