Search in sources :

Example 1 with ODMcomplexTypeDefinitionSubjectData

use of org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionSubjectData in project OpenClinica by OpenClinica.

the class OdmStudySubjectController method createOdm.

private ODM createOdm(StudyBean studyBean, StudySubjectBean studySubjectBean) {
    ODM odm = new ODM();
    ODMcomplexTypeDefinitionClinicalData clinicalData = null;
    if (studyBean != null) {
        clinicalData = generateClinicalData(studyBean);
        if (studySubjectBean != null) {
            ODMcomplexTypeDefinitionSubjectData subjectData = generateSubjectData(studySubjectBean);
            clinicalData.getSubjectData().add(subjectData);
        }
        odm.getClinicalData().add(clinicalData);
    }
    return odm;
}
Also used : ODMcomplexTypeDefinitionClinicalData(org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionClinicalData) ODM(org.cdisc.ns.odm.v130_api.ODM) ODMcomplexTypeDefinitionSubjectData(org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionSubjectData)

Example 2 with ODMcomplexTypeDefinitionSubjectData

use of org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionSubjectData in project OpenClinica by OpenClinica.

the class OdmStudySubjectController method generateSubjectData.

private ODMcomplexTypeDefinitionSubjectData generateSubjectData(StudySubjectBean studySubject) {
    ODMcomplexTypeDefinitionSubjectData subjectData = new ODMcomplexTypeDefinitionSubjectData();
    subjectData.setSubjectKey(studySubject.getOid());
    subjectData.setStudySubjectID(studySubject.getLabel());
    subjectData.setStatus(studySubject.getStatus().getName());
    return subjectData;
}
Also used : ODMcomplexTypeDefinitionSubjectData(org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionSubjectData)

Example 3 with ODMcomplexTypeDefinitionSubjectData

use of org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionSubjectData in project OpenClinica by OpenClinica.

the class OdmController method generateSubjectData.

private ODMcomplexTypeDefinitionSubjectData generateSubjectData(StudySubjectBean studySubject) {
    ODMcomplexTypeDefinitionSubjectData subjectData = new ODMcomplexTypeDefinitionSubjectData();
    subjectData.setSubjectKey(studySubject.getOid());
    subjectData.setStudySubjectID(studySubject.getLabel());
    subjectData.setStatus(studySubject.getStatus().getName());
    return subjectData;
}
Also used : ODMcomplexTypeDefinitionSubjectData(org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionSubjectData)

Example 4 with ODMcomplexTypeDefinitionSubjectData

use of org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionSubjectData in project OpenClinica by OpenClinica.

the class OdmController method createOdm.

private ODM createOdm(StudyBean study, StudySubjectBean studySubjectBean, StudyEventBean nextEvent, List<ODMcomplexTypeDefinitionFormData> formDatas) {
    ODM odm = new ODM();
    ODMcomplexTypeDefinitionClinicalData clinicalData = generateClinicalData(study);
    ODMcomplexTypeDefinitionSubjectData subjectData = generateSubjectData(studySubjectBean);
    ODMcomplexTypeDefinitionStudyEventData studyEventData = generateStudyEventData(nextEvent);
    // Create the object graph
    studyEventData.getFormData().addAll(formDatas);
    subjectData.getStudyEventData().add(studyEventData);
    clinicalData.getSubjectData().add(subjectData);
    odm.getClinicalData().add(clinicalData);
    return odm;
}
Also used : ODMcomplexTypeDefinitionClinicalData(org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionClinicalData) ODM(org.cdisc.ns.odm.v130_api.ODM) ODMcomplexTypeDefinitionSubjectData(org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionSubjectData) ODMcomplexTypeDefinitionStudyEventData(org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionStudyEventData)

Aggregations

ODMcomplexTypeDefinitionSubjectData (org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionSubjectData)4 ODM (org.cdisc.ns.odm.v130_api.ODM)2 ODMcomplexTypeDefinitionClinicalData (org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionClinicalData)2 ODMcomplexTypeDefinitionStudyEventData (org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionStudyEventData)1