Stream: implementers
Topic: Questionnaire.item - valueReference
Kevin Mayfield (Jul 10 2019 at 13:35):
On a number of items in a Questionnaire we are wanting references to Observation.
I was going to use Questionnaire.answerValueSet to specify a valueSet for the codes but I'm thinking this is wrong.
Instead I could use ObservationDefinition to link the code to a valueSet (and this also specifies units if necessary). Is this correct?
Paul Lynch (Jul 10 2019 at 15:31):
Do you mean that you would want the answer to a question to be a reference to an Observation?
Kevin Mayfield (Jul 10 2019 at 15:38):
yes. So similar to this http://build.fhir.org/ig/HL7/sdc/populate.html#designing-questionnaires-to-support-populate. With results being Observations
Kevin Mayfield (Jul 10 2019 at 15:38):
SO example item from a Questionnaire
Kevin Mayfield (Jul 10 2019 at 15:39):
Kevin Mayfield (Jul 10 2019 at 15:40):
This has a corresponding ObservationDefinition
pasted image
Kevin Mayfield (Jul 10 2019 at 15:40):
which links to a ValueSet
Paul Lynch (Jul 10 2019 at 16:34):
I'm still a bit confused. Is the Questionnaire being prepoluated with an Observation reference as an answer, or is the user selecting the Observation (via that blue "Observation" button)?
I'm not sure how a ValueSet enters the picture... not that that is wrong, but I'm not seeing it.
What is the question that is being asked of the user? (Is it "Learning finding"? What are they supposed to do?)
Kevin Mayfield (Jul 10 2019 at 17:02):
That would be in the QuestionnaireResponse, the image shows a Questionnaire (Definition).
The required response is an Observation, the code for the Observation is 'learning finding'.
This code is CodeableConcept Observation and has a list of valid codes for the Observation.valueCodeableConcepts (which are in the ValueSet).
Paul Lynch (Jul 10 2019 at 19:14):
So, if I understand correctly, you could have answerValueSet point to the ValueSet with the allowed values that you want for the Observation.valueCodeableConcept, and then use observationLinkPeriod to signal that you want that value prepopulated from an Observation and/or extracted to an Observation. The type of the item itself in this case would be "choice" and you would get a valueCoding in the response.
Last updated: Apr 12 2022 at 19:14 UTC