...
- Third actor in the FP-Akka QC workflow.
- Akka actor for validating the specimen collector an collection date fields.
- Uses the class injected into the singleDateValidationService field (fp.services.InternalDateValidationService) to carry out validation tasks.
- Receives individual SpecimenRecord instances from upstream MongoDBReader.
- For each specimen record:
- Disassembles the specimen record into fields.
- Calls the validateDate() method on the singleDateValidationService (implemented by fp.services.InternalDateValidationService) passing the individual field values extracted from the record.
- Calls getters getCurationStatus(), getCorrectedDate(), getComment(), getServiceName() on the singleDateValidationService to extract validation results.
- If the result returned by getCurationStatus() is CURATED or Filled_In, replaces the eventDate field in the input specimen record with the results from getCorrectedDate().
- Adds to the input specimen record three fields with labels dateComment, dateStatus, and dateSource using the results from getCurationStatus(), getComment(), and getServiceName() on the singleDateValidationService.
- Forwards the updated specimen record to downstream actors in workflow.
fp.services.InternalDateValidationService [FP-KurationServices module]
- Implements date validation methods called by akka.fp.InternalDateValidator.
- Most of name validation logic is defined in validateDate() method which calls methods on other objects and services.
akka.fp.GEORefValidator [FP-Akka module]
...