Search in sources :

Example 1 with ODMcomplexTypeDefinitionFormDef

use of org.cdisc.ns.odm.v130.ODMcomplexTypeDefinitionFormDef in project OpenClinica by OpenClinica.

the class OdmImportServiceImpl method saveOrUpdateCrf.

private void saveOrUpdateCrf(UserAccount userAccount, Study study, List<ODMcomplexTypeDefinitionMetaDataVersion> odmMetadataVersions, Form[] fmCrfs) {
    for (ODMcomplexTypeDefinitionFormDef odmFormDef : odmMetadataVersions.get(0).getFormDef()) {
        String crfOid = odmFormDef.getOID();
        List<OCodmComplexTypeDefinitionFormLayoutDef> formLayoutDefs = odmFormDef.getFormLayoutDef();
        // String crfDescription = odmFormDef.getFormDetails().getDescription();
        String crfName = odmFormDef.getName();
        saveOrUpdateCrfAndFormLayouts(crfOid, formLayoutDefs, fmCrfs, userAccount, study, crfName);
    }
}
Also used : OCodmComplexTypeDefinitionFormLayoutDef(org.openclinica.ns.odm_ext_v130.v31.OCodmComplexTypeDefinitionFormLayoutDef) ODMcomplexTypeDefinitionFormDef(org.cdisc.ns.odm.v130.ODMcomplexTypeDefinitionFormDef)

Aggregations

ODMcomplexTypeDefinitionFormDef (org.cdisc.ns.odm.v130.ODMcomplexTypeDefinitionFormDef)1 OCodmComplexTypeDefinitionFormLayoutDef (org.openclinica.ns.odm_ext_v130.v31.OCodmComplexTypeDefinitionFormLayoutDef)1