Search in sources :

Example 1 with ODMcomplexTypeDefinitionClinicalData

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

the class OdmController method generateClinicalData.

private ODMcomplexTypeDefinitionClinicalData generateClinicalData(StudyBean study) {
    ODMcomplexTypeDefinitionClinicalData clinicalData = new ODMcomplexTypeDefinitionClinicalData();
    clinicalData.setStudyName(study.getName());
    clinicalData.setStudyOID(study.getOid());
    return clinicalData;
}
Also used : ODMcomplexTypeDefinitionClinicalData(org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionClinicalData)

Example 2 with ODMcomplexTypeDefinitionClinicalData

use of org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionClinicalData 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 3 with ODMcomplexTypeDefinitionClinicalData

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

the class OdmStudySubjectController method generateClinicalData.

private ODMcomplexTypeDefinitionClinicalData generateClinicalData(StudyBean study) {
    ODMcomplexTypeDefinitionClinicalData clinicalData = new ODMcomplexTypeDefinitionClinicalData();
    clinicalData.setStudyName(study.getName());
    clinicalData.setStudyOID(study.getOid());
    return clinicalData;
}
Also used : ODMcomplexTypeDefinitionClinicalData(org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionClinicalData)

Example 4 with ODMcomplexTypeDefinitionClinicalData

use of org.cdisc.ns.odm.v130_api.ODMcomplexTypeDefinitionClinicalData 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

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