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
RiskSubmissionAnswer
to an interface - Added
ScoredRiskSubmission
interface - Added
YesNoRiskSubmissionAnswer
type - Added
TextRiskSubmissionAnswer
type - Added
OptionsRiskSubmissionAnswer
type
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
}
}
}
}
}
}