FHIR Chat · use of toQuantity in a SearchParameter expression · implementers

Stream: implementers

Topic: use of toQuantity in a SearchParameter expression


view this post on Zulip Lee Surprenant (Jun 23 2020 at 22:19):

I'm brainstorming potential solutions for FHIR#25174 and I had a couple questions about search parameter expressions:

  1. Is there any rule (formal or informal) that all core searchparameters must have both an xpath and a fhirpath expression?
  2. Is there any rule (formal or informal) that all core searchparameters fhirpath expressions must be limited to "SimplePath" (a simple subset of FHIRPath)?

view this post on Zulip Lee Surprenant (Jun 23 2020 at 22:21):

in this particular issue, the CDS group wanted to define a single search parameter which can search over their choice of either decimal (which maps to number) or Range (which maps to quantity) and so I was wondering if it might be possible to "cast" the decimal to a quantity within the search parameter expression

view this post on Zulip Brian Postlethwaite (Jun 23 2020 at 23:03):

The search engine would likely need to canonicalize the units so that comparison is actually possible in many cases.

view this post on Zulip Lee Surprenant (Jun 23 2020 at 23:22):

in this particular case the unit is fixed to %

view this post on Zulip Lee Surprenant (Jun 23 2020 at 23:22):

which is why I thought it might be possible to do safely

view this post on Zulip Lee Surprenant (Jun 23 2020 at 23:23):

I think they would have used a decimal range instead of Quantity Range if there were such a type...

view this post on Zulip Lee Surprenant (Jun 24 2020 at 17:08):

at the request of committee, we opened a new issue FHIR#27875 instead of re-opening FHIR#25174 (seems the JIRA re-open process is set up for ballot-comment re-opens and thus has too-stringent rules). Anyway, new tracker but same issue.


Last updated: Apr 12 2022 at 19:14 UTC