All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.ctakes.fhir.resource.ParagraphParser Maven / Gradle / Ivy

package org.apache.ctakes.fhir.resource;

import org.apache.ctakes.typesystem.type.textspan.Paragraph;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.uima.jcas.JCas;
import org.hl7.fhir.dstu3.model.Basic;


/**
 * @author SPF , chip-nlp
 * @version %I%
 * @since 1/22/2018
 */
final public class ParagraphParser implements FhirBasicParser {

   static private final Logger LOGGER = LoggerFactory.getLogger( "ParagraphBasicParser" );

   public Paragraph parseResource( final JCas jCas, final Basic resource ) {
      final Paragraph paragraph = new Paragraph( jCas );
      addTextSpan( paragraph, resource, LOGGER );
      return paragraph;
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy