Risk Assessment Submissions
We’ve added the ability to query answers for the new question types that have been added to the matter risk assessment. This replaces the existing model that we had for the answers field on the RiskSubmission.
New types
- Changed
RiskSubmissionAnswerto an interface - Added
ScoredRiskSubmissioninterface - Added
YesNoRiskSubmissionAnswertype - Added
TextRiskSubmissionAnswertype - Added
OptionsRiskSubmissionAnswertype
Example query
query RiskSubmission($caseId: String!) {
caseDetails(caseId: $caseId) {
... on CaseInformation {
riskAssessmentSubmission {
completedOn
comment
totalScore
answers {
question
comment
notApplicable
... on ScoredRiskSubmissionAnswer {
score
}
... on YesNoRiskSubmissionAnswer {
answer
}
... on TextRiskSubmissionAnswer {
text
}
... on OptionsRiskSubmissionAnswer {
selectedOptions
}
}
}
}
}
}