FHIR Chat · answers() function? · questionnaire

Stream: questionnaire

Topic: answers() function?


view this post on Zulip Paul Lynch (Jul 10 2020 at 17:34):

Did the proposed answers() function get into the SDC specification somewhere? I see the example PHQ-9 is using "answers().sum(value.ordinal())" in a calculatedExpression, but I can't find where those functions are documented. I went looking for it because I was wondering whether answers() would include the calculatedExpression answer, which could be a problem.

view this post on Zulip Lloyd McKenzie (Jul 10 2020 at 17:51):

I don't actually remember. Is it referenced in a tracker?

view this post on Zulip Paul Lynch (Jul 10 2020 at 18:00):

I found these related tracker items: J#24672, J#16243, J#15669 (which says it is published, and there should be an example), and J#19528. But, I don't see the "answers()" function mentioned.

view this post on Zulip Lloyd McKenzie (Jul 10 2020 at 18:03):

If it's not mentioned in a tracker, then it probably doesn't exist. Where was it originally discussed?

view this post on Zulip Paul Lynch (Jul 10 2020 at 21:55):

Boston DevDays (2018), and http://www.healthintersections.com.au/?p=2835

view this post on Zulip Paul Lynch (Jul 10 2020 at 22:07):

BTW, J#19528 says ordinalValue can appear in QuestionnaireResponse, and that the change is applied, but I don't see a mention of QuestionnaireResponse at http://build.fhir.org/extension-ordinalvalue.html

view this post on Zulip Lloyd McKenzie (Jul 10 2020 at 23:29):

@Paul Lynch can you submit a change request wrt 'answers()'
@Joee Garcia Do you know what happened with J#19628?

view this post on Zulip Joee Garcia (Jul 11 2020 at 00:52):

@Lloyd McKenzie The changes committed for http://jira.hl7.org/browse/FHIR-19628 are still there:
https://github.com/HL7/sdc/commit/de2362b05aa226c2d3680a8d77d28bfcf26073ab
The changes were only on the SDC QuestionnaireResponse Profile and not on http://build.fhir.org/extension-ordinalvalue.html.
At the current SDC Questionnaire Profile: http://build.fhir.org/ig/HL7/sdc/StructureDefinition-sdc-questionnaireresponse.html, the ordinalValue element appears under item.answer.valueCoding:
ordinalvalue.png

view this post on Zulip Paul Lynch (Jul 16 2020 at 19:57):

Lloyd McKenzie said:

Paul Lynch can you submit a change request wrt 'answers()'

J#28082 (which will keep until next week's call).


Last updated: Apr 12 2022 at 19:14 UTC