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 )

abstract public class AbstractPatientConsumer extends JCasAnnotator_ImplBase implements NamedEngine

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

@Override public String getEngineName()

{@inheritDoc}

@Override public void initialize( final UimaContext context ) throws ResourceInitializationException

{@inheritDoc}

@Override public void process( final JCas jCas ) throws AnalysisEngineProcessException

{@inheritDoc}

@Override public void collectionProcessComplete() throws AnalysisEngineProcessException

{@inheritDoc}

abstract protected void processPatientCas( final JCas patientJcas ) throws AnalysisEngineProcessException

  • Parameters:
    • patientJcas JCas containing multiple views for a single patient.
  • Exceptions:
    • AnalysisEngineProcessException if there is some problem.
⚠️ **GitHub.com Fallback** ⚠️