prepareQuestionsForReadingOrEditing

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

Set all questions that are not of type Questionnaire.QuestionnaireItemType.GROUP to readOnly if readOnly is true. This also generates the correct FHIRPath population expression for each question when mapped to the corresponding QuestionnaireResponse