FHIR Core / OpenSRP 2 is a Kotlin application for delivering offline-capable, mobile-first healthcare project implementations from local community to national and international scale using FHIR and WHO Smart Guidelines on Android.
Pre-poluation of Questionnaires for edit works by specifying the type as EDIT in the QuestionnaireConfig . This works for cases where all the required information resides in the corresponding QuestionnaireResponse
There is a usecase that has a questionnaire for adding/removing conditions. These conditions are represented in the questionnaire using mulit-select checkboxes. There catch being that the conditions are recorded using different questionnaires/workflows. In such a scenario it is currently (to the best of my knowledge) not possible to pre-populate all these conditions from the various forms into the add/remove conditions questionnaire.
The enhancement would allow the implementer to define the codes for answer options to be selected in the multi-select questionnaire.
Describe the feature request.
Pre-poluation of Questionnaires for edit works by specifying the
type
asEDIT
in the QuestionnaireConfig . This works for cases where all the required information resides in the correspondingQuestionnaireResponse
There is a usecase that has a questionnaire for adding/removing conditions. These conditions are represented in the questionnaire using mulit-select checkboxes. There catch being that the conditions are recorded using different questionnaires/workflows. In such a scenario it is currently (to the best of my knowledge) not possible to pre-populate all these conditions from the various forms into the add/remove conditions questionnaire.
The enhancement would allow the implementer to define the codes for answer options to be selected in the multi-select questionnaire.
Sample answer item for multi-select choice item
Sample answer item for single-select choice item
Acceptance criteria Ability to pre-populate multi-select checkbox items from resources that were created from processing different questionnaires.
Implementation plan (For Engineers)
ActionParameter.value
to hold a string containing comma separated codes or introduce a new variable that holds a list of codesQuestionnaireItemAnswerOptionComponent
from the codes provided in the configs