validate Questionnaire Response
Validates QuestionnaireResponse using the constraints defined in the Questionnaire.
Each item in the QuestionnaireResponse must have a corresponding item in the Questionnaire with the same
linkId
andtype
The order of items in the QuestionnaireResponse must be the same as the order of the items in the Questionnaire - Items nested under group and items nested under answer should follow the same rules recursively
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.