=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/GetPatientAction.java' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/GetPatientAction.java 2014-01-09 16:45:15 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/GetPatientAction.java 2014-01-09 18:28:38 +0000 @@ -238,8 +238,21 @@ Collection programs = programService.getAllPrograms(); for ( Program p : programs ) { - identifierTypes.removeAll( p.getIdentifierTypes() ); - attributes.removeAll( p.getAttributes() ); + for ( PatientIdentifierType identifierType : p.getIdentifierTypes() ) + { + if ( !identifierType.getDisplayInListNoProgram() ) + { + identifierTypes.remove( identifierType ); //TODO bad + } + } + + for ( PatientAttribute attribute : p.getAttributes() ) + { + if ( !attribute.getDisplayInListNoProgram() ) + { + attributes.remove( attribute ); + } + } } } else