=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/GetPartnerAction.java' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/GetPartnerAction.java 2011-09-14 06:36:13 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/GetPartnerAction.java 2013-02-28 08:50:43 +0000 @@ -32,8 +32,6 @@ import org.hisp.dhis.patient.Patient; import org.hisp.dhis.patient.PatientAttribute; -import org.hisp.dhis.patient.PatientIdentifier; -import org.hisp.dhis.patient.PatientIdentifierService; import org.hisp.dhis.patient.PatientService; import org.hisp.dhis.patientattributevalue.PatientAttributeValue; import org.hisp.dhis.patientattributevalue.PatientAttributeValueService; @@ -60,13 +58,6 @@ this.patientService = patientService; } - private PatientIdentifierService patientIdentifierService; - - public void setPatientIdentifierService( PatientIdentifierService patientIdentifierService ) - { - this.patientIdentifierService = patientIdentifierService; - } - private ProgramService programService; public void setProgramService( ProgramService programService ) @@ -123,13 +114,6 @@ return partner; } - private PatientIdentifier patientIdentifier; - - public PatientIdentifier getPatientIdentifier() - { - return patientIdentifier; - } - private Collection programs; public Collection getPrograms() @@ -163,8 +147,6 @@ } } - patientIdentifier = patientIdentifierService.getPatientIdentifier( partner ); - for ( PatientAttribute patientAttribute : partner.getAttributes() ) { patientAttributeValueMap.put( patientAttribute.getId(), PatientAttributeValue.UNKNOWN ); @@ -175,8 +157,8 @@ for ( PatientAttributeValue patientAttributeValue : patientAttributeValues ) { - patientAttributeValueMap.put( patientAttributeValue.getPatientAttribute().getId(), patientAttributeValue - .getValue() ); + patientAttributeValueMap.put( patientAttributeValue.getPatientAttribute().getId(), + patientAttributeValue.getValue() ); } programs = programService.getAllPrograms(); === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/PatientDashboardAction.java' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/PatientDashboardAction.java 2013-02-27 14:39:27 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/PatientDashboardAction.java 2013-02-28 08:50:43 +0000 @@ -92,8 +92,6 @@ private Collection attributeValues; - private Collection relationship; - private Collection activeProgramInstances; private Collection completedProgramInstances; @@ -101,8 +99,8 @@ private Collection patientAudits; private Map attributeMap = new HashMap(); - - Collection relationships = new HashSet(); + + private Collection relationships = new HashSet(); // ------------------------------------------------------------------------- // Action implementation @@ -112,17 +110,17 @@ { this.patientAuditService = patientAuditService; } - + public Map getAttributeMap() { return attributeMap; } - + public void setFormat( I18nFormat format ) { this.format = format; } - + public void setPatientAttributeService( PatientAttributeService patientAttributeService ) { this.patientAttributeService = patientAttributeService; @@ -158,6 +156,11 @@ this.relationshipService = relationshipService; } + public Collection getRelationships() + { + return relationships; + } + public void setProgramInstanceService( ProgramInstanceService programInstanceService ) { this.programInstanceService = programInstanceService; @@ -178,11 +181,6 @@ return attributeValues; } - public Collection getRelationship() - { - return relationship; - } - public void setPatientService( PatientService patientService ) { this.patientService = patientService; @@ -233,7 +231,7 @@ // --------------------------------------------------------------------- relationships = relationshipService.getRelationshipsForPatient( patient ); - + Collection programInstances = programInstanceService.getProgramInstances( patient ); activeProgramInstances = new HashSet(); @@ -263,7 +261,8 @@ long dateOnly = (currentTime / millisInDay) * millisInDay; Date date = new Date( dateOnly ); String visitor = currentUserService.getCurrentUsername(); - PatientAudit patientAudit = patientAuditService.getPatientAudit( patientId, visitor, date, PatientAudit.MODULE_PATIENT_DASHBOARD ); + PatientAudit patientAudit = patientAuditService.getPatientAudit( patientId, visitor, date, + PatientAudit.MODULE_PATIENT_DASHBOARD ); if ( patientAudit == null ) { patientAudit = new PatientAudit( patient, visitor, date, PatientAudit.MODULE_PATIENT_DASHBOARD ); === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/META-INF/dhis/beans.xml' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/META-INF/dhis/beans.xml 2013-02-27 14:39:27 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/META-INF/dhis/beans.xml 2013-02-28 08:50:43 +0000 @@ -701,8 +701,6 @@ - === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/detailsPartner.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/detailsPartner.vm 2013-02-13 15:58:32 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/detailsPartner.vm 2013-02-28 08:50:43 +0000 @@ -33,8 +33,8 @@ #foreach( $patientIdentifier in $partner.identifiers ) - #if($!patientIdentifier.identifierType) $!patientIdentifier.identifierType.displayName - #else $i18n.getString( "patient_system_id") #end + #if($!patientIdentifier.identifierType) $!patientIdentifier.identifierType.displayName + #else $i18n.getString( "patient_system_id") #end : $patientIdentifier.identifier @@ -57,10 +57,10 @@   - + : #foreach( $program in $partner.programs ) - $encoder.htmlEncode($program.displayName) + - $encoder.htmlEncode($program.displayName)
#end === 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-02-27 14:39:27 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientDashboard.vm 2013-02-28 08:50:43 +0000 @@ -176,7 +176,7 @@

- #foreach( $rel in $relationship ) + #foreach( $rel in $relationships ) #if($rel.patientA.id==$patient.id)
$rel.relationshipType.bIsToA