FHIR Chat · questionnaireresponse with observatioin Fhir resource · implementers

Stream: implementers

Topic: questionnaireresponse with observatioin Fhir resource


view this post on Zulip Radhakrishnan (May 06 2021 at 06:40):

I am new to FHIR resource, I need to create a simple survey form with questions and answers for preliminary screening using observation resource. But all observation resources of having code how to create a new set of code to handle questions with answers. kindly provide any sample.

view this post on Zulip Morten Ernebjerg (May 06 2021 at 07:05):

Hi & welcome :wave: In FHIR, a survey/questionnaire is captured using an instance of the Questionnaire resource. The matching answers would then come in the form of QuestionnaireResponse resources. Once you have a QuestionnaireResponse, you can map it to appropriate other resources, such as Observation. I believe there are guidelines for this in the Structured Data Capture (SDC) Implementation guide, see in particular the section on data extraction.

view this post on Zulip Radhakrishnan (May 06 2021 at 10:44):

Thanks a lot, I am looking into the urls which you had mentioned, Does this can be done programmatically or manually to map the questionnaire response resource to the Observation resource

view this post on Zulip Morten Ernebjerg (May 06 2021 at 13:45):

The mapping QuestionnaireResponse --> Observation can be done programatically, but the mapping itself must of course be defined beforehand (cf. the various extraction methods discussed in the SDC implementation guide e.g. the section on observation-based extraction).However, I must confess that I am not an expert on the details of this & to which extent "canned logic" exists. For existing tools/libraries to support this, see e.g. this list of SDC tooling.

BTW, it is of course also possible to create e.g. Observations resources directly from app input without going via Questionnaire/QuestionnaireResponse, but the latter give a clear specification of what is being asked & a format for capturing the "raw" data. There are also a number of standard libraries for designing Questionnaire resources and/or generating a survey UI from a Questionnaire resource & capturing the answers - see the the SDC tool page I linked above.


Last updated: Apr 12 2022 at 19:14 UTC