AuditDoc<MedSerrenResult> auditmsr = new AuditDoc<MedSerrenResult>(null, getCollaborator());
MedSerrenResult medSerrenResult = new MedSerrenResult();
medSerrenResult.setSerren(sm.serren);
manager.persist(medSerrenResult);
auditmsr.check(medSerrenResult);
AuditDetails details = persistAudit(auditmsr);
auditDetList.add(details);
}
if (serviceCheckupChunk.xml != null) {
AuditDoc<Checkup> auditCheckup = new AuditDoc<Checkup>(null, getCollaborator());
Checkup checkup = new Checkup();
checkup.setCheckupType(findEntity(CheckupType.class, serviceCheckupChunk.checkupTypeID));
auditCheckup.addFieldFormat("xml", checkup.getCheckupType().getMetadata());
checkup.setServiceRender(sm.serren);
checkup.setXml(serviceCheckupChunk.xml);
manager.persist(checkup);
manager.flush();
manager.refresh(checkup);
auditCheckup.check(checkup);
AuditDetails details = persistAudit(auditCheckup);
auditDetList.add(details);
}
}
return new ModificationInfo(chunk.diseaseID, auditDetList);