ctakes-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Finan, Sean" <Sean.Fi...@childrens.harvard.edu>
Subject RE: Flagging Medical Record Number
Date Wed, 16 Sep 2015 17:15:16 GMT
Hi Andrew,

I'm not sure if this is what you are looking for, but you can look at the org.apache.ctakes.typesystem.type.structured.MetaData
class, which has a setPatientID(long) method.
org.apache.ctakes.core.util. SourceMetadataUtil has a getPatientNum(JCas) method.

I don't know of any good examples that use setPatientID(long), but basically:
      final Metadata metadata = new Metadata( jCas );
      metadata.setPatientID( 1000 ) );
      jCas.addFsToIndexes( metadata );

If you want to add metadata for a specific note/visit, there is a little bit more:
      final SourceData sourcedata = new SourceData( jCas );
      sourcedata.setSourceEncounterId( "Visit For Hiccups" );
      metadata.setSourceData( sourcedata );

org.apache.ctakes.typesystem.type.structured.SourceData has some other useful methods.


Sean



-----Original Message-----
From: Sehr, Andrew J [mailto:asehr@IUHealth.org] 
Sent: Wednesday, September 16, 2015 11:28 AM
To: dev@ctakes.apache.org
Subject: Flagging Medical Record Number

Hello,

Is there a way to flag the medical record number when running a ctakes job?

Thanks,
Andrew Sehr
Enterprise Architect
Indiana University Health
950 N Meridian St, Indianapolis, IN 46204
317-963-0249
asehr@iuhealth.org


Mime
View raw message