private String getOpcCode(PatientProcedureForSummaryOverviewVo actualProcedure) { if (actualProcedure == null || !actualProcedure.getProcedureIsNotNull() || !actualProcedure.getProcedure().getTaxonomyMapIsNotNull()) return null; for (int i = 0 ; i < actualProcedure.getProcedure().getTaxonomyMap().size() ; i++) { if (actualProcedure.getProcedure().getTaxonomyMap().get(i).getTaxonomyName().getID() == TaxonomyType.OPCS4.getID()) return actualProcedure.getProcedure().getTaxonomyMap().get(i).getTaxonomyCode(); } return null; }