use of org.akaza.openclinica.domain.datamap.DnEventCrfMap in project OpenClinica by OpenClinica.
the class GenerateClinicalDataServiceImpl method fetchDiscrepancyNotes.
private DiscrepancyNotesBean fetchDiscrepancyNotes(EventCrf eventCrf) {
LOGGER.info("Fetching the discrepancy notes..");
List<DnEventCrfMap> dnEventCrfMaps = eventCrf.getDnEventCrfMaps();
DiscrepancyNotesBean dnNotesBean = new DiscrepancyNotesBean();
dnNotesBean.setEntityID(eventCrf.getCrfVersion().getCrf().getOcOid());
DiscrepancyNoteBean dnNoteBean = new DiscrepancyNoteBean();
ArrayList<DiscrepancyNoteBean> dnNotes = new ArrayList<DiscrepancyNoteBean>();
boolean addDN = true;
for (DnEventCrfMap dnItemDataMap : dnEventCrfMaps) {
DiscrepancyNote dn = dnItemDataMap.getDiscrepancyNote();
addDN = true;
fillDNObject(dnNoteBean, dnNotes, addDN, dn, dnItemDataMap.getDnEventCrfMapId().getColumnName());
}
dnNotesBean.setDiscrepancyNotes(dnNotes);
return dnNotesBean;
}
Aggregations