Stream: implementers
Topic: Questionnaire Reference type
Michael Christensen (Nov 14 2017 at 13:26):
I am constructing a questionnaire where one of the questions goes along the lines of "At what hospital did you get the examination in question done?". There's a limited set of Hospitals that the user may choose from. So, a dropdown with the list of choices sounds like the way to go. I was thinking that I'd make the answer a "Reference" type referencing the hospitals as organization objects. However, I'm a bit stuck there. How do I specify that allowed answers should reference only Organization resources and that it may not be all Organization resources hosted on the server that should be listed but only a specific set of them?
While waiting for an answer I am simply coding it as type "option" with a valueCoding for each hospital.
Lloyd McKenzie (Nov 14 2017 at 15:11):
The questionnaire-allowedResource and questionnaire-allowedProfile extensions might do what you need. You can also use questionnaire-referenceFilter
Michael Christensen (Nov 15 2017 at 09:10):
Thx, looks like what I was looking for.
How to use the questionnaire-referenceFilter is a bit unclear to me though. What attributes in a referenced resource would it match on?
Lloyd McKenzie (Nov 15 2017 at 09:24):
It could use a bit more in the description couldn't it - feel free to submit a change request asking for that.
The intention is that it represents the string that appears after the "?" when doing a search on the target resource. (With the ability to substitue in the current patient and/or encounter)
Brian Postlethwaite (Nov 16 2017 at 09:28):
More text on that would be good (and also include the logged in practitioner from SMART, if that was the source of the Patient ref also)
Kevin Mayfield (Jul 30 2018 at 14:39):
Is it possible to specify the resource type of reference (Questionnaire.item[x].type = QuestionnaireItemType.reference). So I could say for this question I am expecting a reference to a Condition?
Or would this have to be an extension.
Lloyd McKenzie (Jul 30 2018 at 14:50):
There are standard extensions to indicate the type of resource, the profile it must comply with and/or the query to use in displaying the list of candidates.
Christiaan Knaap (Jul 31 2018 at 04:40):
For your convenience, the allowedResource extension Lloyd mentioned is on Simplifier and the spec.
Kevin Mayfield (Jul 31 2018 at 12:54):
Thanks, just mocking this at the moment to help my understanding.
Can I confirm, where I have a question I would ideally like a resource reference but accept text instead I would follow this guidance https://www.hl7.org/fhir/questionnaire.html#2.38.5.8
Kevin Mayfield (Jul 31 2018 at 12:55):
So ideally a form would link to an existing Condition but if a provider can't do that we could accept text (or something else) instead.
Lloyd McKenzie (Jul 31 2018 at 14:12):
Yes, that approach of a nested question could work here too.
Last updated: Apr 12 2022 at 19:14 UTC