AbstractPatientConsumer - apache/ctakes GitHub Wiki
@PipeBitInfo( name = "AbstractPatientConsumer", description = "Abstract Engine to take action on a patient level instead of document level.", role = PipeBitInfo.Role.ANNOTATOR )
Extend this annotator to consume a patient cas once the current patient name has changed. For instance, when processing patientA doc1, patientA doc2, patientA doc3 this annotator does nothing. After the processing of patientB doc1 this annotator will process a cas containing all documents for patientA. At the end of the pipeline, the last unprocessed patient will be processed.
- Author: SPF , chip-nlp
- Version: %I%
-
Since: 9/27/2017
{@inheritDoc}
@Override public void initialize( final UimaContext context ) throws ResourceInitializationException
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
abstract protected void processPatientCas( final JCas patientJcas ) throws AnalysisEngineProcessException
-
Parameters:
-
patientJcasJCas containing multiple views for a single patient.
-
-
Exceptions:
-
AnalysisEngineProcessExceptionif there is some problem.
-