validateQuestionnaireResponse

suspend fun validateQuestionnaireResponse(questionnaire: Questionnaire, questionnaireResponse: QuestionnaireResponse, context: Context, questionnaireItemParentMap: Map<Questionnaire.QuestionnaireItemComponent, Questionnaire.QuestionnaireItemComponent> = mapOf(), launchContextMap: Map<String, Resource>? = mapOf(), xFhirQueryResolver: XFhirQueryResolver? = null): Map<String, List<ValidationResult>>

Validates QuestionnaireResponse using the constraints defined in the Questionnaire.

Note that although all the items in the Questionnaire SHOULD be included in the QuestionnaireResponse, we do not throw an exception for missing items. This allows the QuestionnaireResponse to not include items that are not enabled due to enableWhen.

Return

a maplinkIdToValidationResultMap of linkIds to list of ValidationResult

Throws

if multiple answers are provided for a non-repeat questionnaire item

See http://www.hl7.org/fhir/questionnaireresponse.html#link for more information.