Search in sources :

Example 1 with DnStudyEventMap

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;
}
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) DnStudyEventMap(org.akaza.openclinica.domain.datamap.DnStudyEventMap)

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 DnStudyEventMap (org.akaza.openclinica.domain.datamap.DnStudyEventMap)1