public DischargeDetailsVo save(DischargeDetailsVo dd, PatientDiagnosisEDischargeVoCollection diags, SummaryRefVo summary) throws StaleObjectException, UniqueKeyViolationException, DomainInterfaceException { if (diags!=null) { for (int i = 0 ; i < diags.size() ; i++) { saveDiagnosisVo(diags.get(i),summary); } } return saveDischargeDetails(dd, summary); }