prepareQuestionsForEditing

fun List<Questionnaire.QuestionnaireItemComponent>.prepareQuestionsForEditing(path: String = "QuestionnaireResponse.item", readOnlyLinkIds: List<String>? = emptyList())

Set all questions that are not of type Questionnaire.QuestionnaireItemType.GROUP to readOnly if readOnlyLinkIds item are there while editing the form. This also generates the correct FHIRPath population expression for each question when mapped to the corresponding QuestionnaireResponse