Search in sources :

Example 1 with DnEventCrfMap

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;
}
Also used : DiscrepancyNotesBean(org.akaza.openclinica.bean.odmbeans.DiscrepancyNotesBean) DiscrepancyNote(org.akaza.openclinica.domain.datamap.DiscrepancyNote) DiscrepancyNoteBean(org.akaza.openclinica.bean.odmbeans.DiscrepancyNoteBean) ArrayList(java.util.ArrayList) DnEventCrfMap(org.akaza.openclinica.domain.datamap.DnEventCrfMap)

Aggregations

ArrayList (java.util.ArrayList)1 DiscrepancyNoteBean (org.akaza.openclinica.bean.odmbeans.DiscrepancyNoteBean)1 DiscrepancyNotesBean (org.akaza.openclinica.bean.odmbeans.DiscrepancyNotesBean)1 DiscrepancyNote (org.akaza.openclinica.domain.datamap.DiscrepancyNote)1 DnEventCrfMap (org.akaza.openclinica.domain.datamap.DnEventCrfMap)1