use of org.akaza.openclinica.domain.datamap.DnStudyEventMap in project OpenClinica by OpenClinica.
the class GenerateClinicalDataServiceImpl method fetchDiscrepancyNotes.
private DiscrepancyNotesBean fetchDiscrepancyNotes(StudyEvent studyEvent) {
List<DnStudyEventMap> dnMaps = studyEvent.getDnStudyEventMaps();
DiscrepancyNotesBean dnNotesBean = new DiscrepancyNotesBean();
dnNotesBean.setEntityID(studyEvent.getStudyEventDefinition().getOc_oid());
DiscrepancyNoteBean dnNoteBean = new DiscrepancyNoteBean();
ArrayList<DiscrepancyNoteBean> dnNotes = new ArrayList<DiscrepancyNoteBean>();
boolean addDN = true;
for (DnStudyEventMap dnMap : dnMaps) {
DiscrepancyNote dn = dnMap.getDiscrepancyNote();
addDN = true;
fillDNObject(dnNoteBean, dnNotes, addDN, dn, dnMap.getDnStudyEventMapId().getColumnName());
}
dnNotesBean.setDiscrepancyNotes(dnNotes);
return dnNotesBean;
}
Aggregations