Commit 9f110ba1 authored by R.W.Majeed's avatar R.W.Majeed

find visit by public id

parent 76f17a41
......@@ -602,7 +602,15 @@ public class PostgresVisitStore extends PostgresExtension<I2b2Visit>{
return INSTANCE_TYPES;
}
/**
* Find a visit. Does not create the visit if it doesn't exist.
* @param id visit id/alias
* @return visit or {@code null} if not found.
*/
public I2b2Visit findVisit(String id){
return idCache.get(id);
}
// TODO unify method with PostgresVisitStore
@Override
public void deleteWhereSourceId(String sourceId) throws SQLException {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment