Commit 2e305673 authored by R.W.Majeed's avatar R.W.Majeed
Browse files

Log context (line number and concept) for duplicate modifier errors

parent f903724f
......@@ -350,7 +350,13 @@ public class FlatObservationSupplier extends AbstractObservationParser implement
// TODO compare patid, encounter, timestamp
// parse and add value
Value value = parseValue(record);
fact.addModifier(record.getConcept()).setValue(value);
try{
fact.addModifier(record.getConcept()).setValue(value);
}catch( IllegalArgumentException e ){
log.severe("Unable to add modifier in line "+lineNo+": "+record.getConcept());
// TODO FIX line numbers not incremented correctly (line 220000 lines but should be 220006)
throw e;
}
}
@Override
......
Supports Markdown
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