// accurately.
boolean overrideDate = false;
Iterator statusSpecialDateItr = FSUtil.getAnnotationsIteratorInSpan(jcas, DateAnnotation.type, ssid.getEnd(), drugTokenAnt.getBegin());
while (statusSpecialDateItr.hasNext() && !overrideDate)
{
DateAnnotation specialDate = (DateAnnotation) statusSpecialDateItr.next();
Iterator findLF = FSUtil.getAnnotationsIteratorInSpan(jcas,
NewlineToken.type, ssid.getEnd(), specialDate.getBegin());
if (!findLF.hasNext())
{
// if (specialDate.getEnd() <=
// drugTokenAnt.getBegin() ){
drugTokenAnt.setStartDate(specialDate.getCoveredText());
overrideDate = true;
}
}
DrugChangeStatusAnnotation dsa = null;