Risk Assessment Submissions
The answers field on a RiskSubmission now returns a dedicated type for date, address, email and phone number questions. Each carries its typed value, a notApplicable flag, and implements ScoredRiskSubmissionAnswer.
New types
DateRiskSubmissionAnswerAddressRiskSubmissionAnswerEmailRiskSubmissionAnswerPhoneNumberRiskSubmissionAnswer
Scores on text answers
TextRiskSubmissionAnswer now implements ScoredRiskSubmissionAnswer as well.
The value given to these questions is never scored, but marking one as not applicable can carry risk points, and those points count towards the totalScore of the submission. score returns those points where the question was marked not applicable, and null otherwise.
Example query
query RiskSubmission($caseId: String!) {
caseDetails(caseId: $caseId) {
... on CaseInformation {
riskAssessmentSubmission {
completedOn
comment
totalScore
answers {
question
comment
notApplicable
... on ScoredRiskSubmissionAnswer {
score
}
... on DateRiskSubmissionAnswer {
date
}
... on AddressRiskSubmissionAnswer {
address {
address1
city
postCode
}
}
... on EmailRiskSubmissionAnswer {
email
}
... on PhoneNumberRiskSubmissionAnswer {
phoneNumber
}
}
}
}
}
}