Assessments are associated with a particular subject, hence they are managed wrt to their corresponding subject. A simplified class diagram for Subject Assessment Management section is provided in Figure 5.1. ServiceFactory handles the actual creation of the implementation of ISubjectAssessmentManagement based on the database configuration and the database ID provided by the user. The logic of some of the important methods in ISubjectAssessmentManagement is summarized below.
The insertScoreValues method, first retrieves the Storedassessment record for the assessment of the subject for the given experiment, visit and segment. If the record is not available, it throws an SubjectAssessmentManagementException. For each of the provided score values calls the insertScoreValue method to insert the score value to corresponding NC_ASSESSMENTXXXX table , also handling the missing value(s) if any.
The insertAssessmentValues method, looks for a corrsponding Storedassessment record in the database, if not creates a new one. It also updates informant information (if necessary) and for each of the provided score values calls the insertScoreValue method to insert the score value to corresponding NC_ASSESSMENTXXXX table , also handling the missing value(s) if any.