checkQuestionnaireResponse

fun checkQuestionnaireResponse(questionnaire: Questionnaire, questionnaireResponse: QuestionnaireResponse)

Checks that the QuestionnaireResponse is structurally consistent with 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.

Throws

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

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