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;
}
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;
}
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;
}
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;
}
Aggregations