FHIR Chat · answerExpression and scores? · questionnaire

Stream: questionnaire

Topic: answerExpression and scores?


view this post on Zulip Paul Lynch (Sep 17 2020 at 23:10):

Is there a way for answerExpression to be used to support a list that has scores associated with the items?

view this post on Zulip David Winters (Sep 18 2020 at 10:33):

If the expression was CQL, couldn't that expression return a list of tuples?

view this post on Zulip Lloyd McKenzie (Sep 18 2020 at 13:03):

The ordinal extension is allowed in Coding I believe

view this post on Zulip Paul Lynch (Sep 18 2020 at 14:33):

Yes-- that's perfect. Somehow I missed that.

view this post on Zulip Paul Lynch (Sep 24 2020 at 22:42):

Unless the QuestionnaireResponse contains the optional ordinalValue extension for the answer, there is no way for FHIRPath (or anything else) to get the value of a score for an answer that came from answerExpression. So, if someone writes a Questionnaire that uses an answerExpression that resolves to scored Codings, it won't work unless the renderer generates a QuestionnaireResponse containing the ordinalValue.

view this post on Zulip Lloyd McKenzie (Sep 24 2020 at 23:10):

I thought we'd agreed to define a function that would allow FHIRPath to go find the ordinal?

view this post on Zulip Paul Lynch (Sep 24 2020 at 23:12):

That's J#22637, which needs some implementation experience before being published. The discussion for ordinalValue() assumed the scores would be sitting in the Questionnaire, which in this case they are not.

view this post on Zulip Lloyd McKenzie (Sep 24 2020 at 23:14):

I didn't presume that they'd be in the Questionnaire - I figured they may need to be retrieved from the terminology server

view this post on Zulip Paul Lynch (Sep 24 2020 at 23:20):

Okay, that sounds possible. I still have not attempted adding in asynchronous AJAX calls into my variable/calculatedValue processing logic.


Last updated: Apr 12 2022 at 19:14 UTC