@Override
public PageGeneric initPanel(DiseaseLocal delegate, PageContainer pageContainer) throws ClipsException {
ClientLocal client = delegate.getEmcLocal().getClient();
if (delegate.isMedexam()){
return new PanelMedexamEdit(pageContainer, client, delegate.getMedexamLocal());
}
if (delegate.isProfcheckup()){
ProfcheckupSearchLocal search = new ProfcheckupSearchLocal(new AuditManager());
List<ProfcheckupItemLocal> items = search.getItemsBy(delegate);
return new PanelProfcheckupItemsList(pageContainer, items);