=== 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 2013-04-26 15:24:15 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/GetPatientAction.java 2013-05-29 09:41:18 +0000 @@ -195,7 +195,6 @@ if ( customRegistrationForm == null ) { - // ------------------------------------------------------------------------- // Get identifier-types && attributes // ------------------------------------------------------------------------- @@ -209,14 +208,19 @@ identifierTypes = patientIdentifierTypeService.getAllPatientIdentifierTypes(); Collection patientAttributesInProgram = new HashSet(); + noGroupAttributes = patientAttributeService.getPatientAttributesWithoutGroup(); + Collection programs = programService.getAllPrograms(); programs.remove(program); + for ( Program _program : programs ) { identifierTypes.removeAll( _program.getPatientIdentifierTypes() ); patientAttributesInProgram.removeAll( _program.getPatientAttributes() ); + noGroupAttributes.removeAll( _program.getPatientAttributes() ); } + attributeGroups = new ArrayList( attributeGroupService.getAllPatientAttributeGroups() ); Collections.sort( attributeGroups, new PatientAttributeGroupSortOrderComparator() ); @@ -231,9 +235,7 @@ } } - noGroupAttributes = patientAttributeService.getPatientAttributesWithoutGroup(); - noGroupAttributes.removeAll( patientAttributesInProgram ); - + // ------------------------------------------------------------------------- // Get data // ------------------------------------------------------------------------- === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientDashboard.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientDashboard.vm 2013-05-29 08:36:29 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientDashboard.vm 2013-05-29 09:41:18 +0000 @@ -129,7 +129,7 @@ #if( $status!=1 && $status!=5 && $flag=='false') + onclick='javascript:setFieldValue("programIdAddPatient",$programInstance.program.id);loadActiveProgramStageRecords("$programInstance.id", "$programStageInstance.id")' > $programInstance.program.displayName ($format.formatDate($programInstance.enrollmentDate)) @@ -178,7 +178,7 @@ #set($programStageInstanceId = $programStageInstance.id) #end #end - + $programInstance.program.displayName ($format.formatDate($programInstance.enrollmentDate)) === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientForm.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientForm.vm 2013-04-26 15:24:15 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientForm.vm 2013-05-29 09:41:18 +0000 @@ -1,3 +1,4 @@ + #if($!customRegistrationForm) $customRegistrationForm #else