QuestionAnswer Class

The QuestionAnswer class integrates with the Cúram Intelligent Evidence Gathering runtime editor (see Questionnaire Integration with IEG2). Its main purpose is to help users maintain the answers to questionnaires which will be run through the Decision Matrix to reach a decision. It provides the View Questions and Answers panel which displays the questions asked, the answers received, and, if there are multiple sources, the name of the source who provided the answer.

The main attributes for the DeterminationAnswer entity include:

The following table describes the business processes that make up the QuestionAnswer Class:

Table 1. Description of QuestionAnswer Business Processes
Business Process Description
viewQuestionAnswers Reads the answer details for a question within a determination. The answer details contain information relating to answers, which includes the source of the answers, the case participant name, the consolidation details, and the question details which include the questionnaire name, questionnaire version number and the question text.
viewAssessmentAnswers Returns a list of questions and answers for an assessment.
answerQuestionnare Reads an IEG execution key associated with the questionnaire for a determination. If the IEG execution key doesn't exist, then a new IEG execution object is created and its key will be returned.
saveAnswers Saves answers of an IEG execution object associated with the determination and the questionnaire. If answers do not already exist for the questions, then they are created. Answers which already exist for the questions are replaced with the newly provided answers. All the answers for the unanswered questions are removed. Consolidation details are modified for the determination questionnaire.
consolidateAnswers Consolidates the answers for the questions of a determination, where answers for a question are received from different sources. The system sets the consolidation indicator to true for all the answers in the inputted xml. After consolidation, the system modifies the consolidation status and date for the determination questionnaire.
readAnswersForConsolidation Reads the details of the questions and answers of a determination questionnaire in an xml format for the purpose of consolidation.
readConsolidatedAnswers Reads the consolidated answers in an xml format for a determination questionnaire. If an answer for a question is from a third party, then the system reads the answer from the third party request.
readDeterminationDetails Reads the details of a determination for an IEG execution object.
viewQuestionnaireAnswersDetails Reads a questionnaire name and the list of of questions and answers in an xml format for a determination and questionnaire.
viewDeterminationAnswers Returns a list of questions and answers for a determination.