dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #26264
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13012: Use uid of patient instead of local id to show Person Dashboard
------------------------------------------------------------
revno: 13012
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-11-25 15:18:35 +0700
message:
Use uid of patient instead of local id to show Person Dashboard
modified:
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/ShowAddPatientFormAction.java
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/activityPlanRecords.vm
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/addPatientForm.vm
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/addRelationshipForm.vm
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataentryRecords.vm
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/patientLocation.vm
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientRegistrationList.vm
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentForm.vm
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentSelectForm.vm
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingList.vm
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingRecords.vm
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/relationshipList.vm
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/relationshipPatients.vm
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/updatePatientForm.vm
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== 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-11-04 03:49:17 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/PatientDashboardAction.java 2013-11-25 08:18:35 +0000
@@ -86,7 +86,7 @@
// Input && Output
// -------------------------------------------------------------------------
- private Integer patientId;
+ private String patientId;
private Patient patient;
@@ -190,7 +190,7 @@
this.patientService = patientService;
}
- public void setPatientId( Integer patientId )
+ public void setPatientId( String patientId )
{
this.patientId = patientId;
}
@@ -290,7 +290,7 @@
PeriodType.clearTimeOfDay( today );
Date date = today.getTime();
String visitor = currentUserService.getCurrentUsername();
- PatientAudit patientAudit = patientAuditService.getPatientAudit( patientId, visitor, date,
+ PatientAudit patientAudit = patientAuditService.getPatientAudit( patient.getId(), visitor, date,
PatientAudit.MODULE_PATIENT_DASHBOARD );
if ( patientAudit == null )
{
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/ShowAddPatientFormAction.java'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/ShowAddPatientFormAction.java 2013-10-25 05:00:41 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/ShowAddPatientFormAction.java 2013-11-25 08:18:35 +0000
@@ -161,6 +161,18 @@
return patientId;
}
+ private String patientUid;
+
+ public void setPatientUid( String patientUid )
+ {
+ this.patientUid = patientUid;
+ }
+
+ public String getPatientUid()
+ {
+ return patientUid;
+ }
+
private Integer relatedProgramId;
public void setRelatedProgramId( Integer relatedProgramId )
@@ -267,7 +279,7 @@
{
organisationUnit = selectionManager.getSelectedOrganisationUnit();
healthWorkers = organisationUnit.getUsers();
-
+
if ( programId == null )
{
patientRegistrationForm = patientRegistrationFormService.getCommonPatientRegistrationForm();
@@ -342,8 +354,8 @@
{
relatedProgram = programService.getProgram( relatedProgramId );
}
-
- if(related)
+
+ if ( related )
{
relationshipTypes = relationshipTypeService.getAllRelationshipTypes();
}
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/activityPlanRecords.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/activityPlanRecords.vm 2013-09-23 03:15:40 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/activityPlanRecords.vm 2013-11-25 08:18:35 +0000
@@ -58,7 +58,7 @@
</td>
#if( $auth.hasAccess( "dhis-web-caseentry", "accessPatientAttributes" ) )
- <td><a href="javascript:isDashboard=false;showPatientDashboardForm( '$patient.id' )">
+ <td><a href="javascript:isDashboard=false;showPatientDashboardForm( '$patient.uid' )">
#set($value="")
#foreach( $identifierType in $identifierTypes)
#foreach( $identifier in $patient.identifiers)
@@ -89,7 +89,7 @@
#set($value=$identifier.identifier)
#end
#end
- <td><a href="javascript:isDashboard=false;showPatientDashboardForm( '$patient.id' )">
+ <td><a href="javascript:isDashboard=false;showPatientDashboardForm( '$patient.uid' )">
$value
</a></td>
#end
@@ -97,7 +97,7 @@
<td><a href="javascript:loadDataEntryDialog( $programStageInstance.id, '$programStageInstance.programStage.uid' );">$programStageInstance.programStage.displayName</a></td>
<td>
- <a href="javascript:isDashboard=false;showPatientDashboardForm( '$patient.id' )" title="$i18n.getString( 'patient_dashboard' )"><img src="../images/enroll.png" alt='$i18n.getString( "patient_dashboard" )'></a>
+ <a href="javascript:isDashboard=false;showPatientDashboardForm( '$patient.uid' )" title="$i18n.getString( 'patient_dashboard' )"><img src="../images/enroll.png" alt='$i18n.getString( "patient_dashboard" )'></a>
<a href="javascript:loadDataEntryDialog( $programStageInstance.id, '$programStageInstance.programStage.uid' );" title="$i18n.getString( 'data_entry' )"><img src="images/data_entry.png" alt="$i18n.getString( 'data_entry' )"></a>
<a href="javascript:showPatientHistory('$patient.id')" title='$i18n.getString( "patient_details_and_history" )'><img src="../images/information.png" alt='$i18n.getString( "patient_details_and_history" )'></a>
</td>
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/addPatientForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/addPatientForm.vm 2013-10-25 05:00:41 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/addPatientForm.vm 2013-11-25 08:18:35 +0000
@@ -52,7 +52,7 @@
<h3 id='patientMamagementLink'>
<a href="javascript:loadPatientList();">$i18n.getString( 'patient_management' )</a>
#if($!relatedProgram)
- • <a href="javascript:showPatientDashboardForm($!patientId);">$i18n.getString( 'patient_dashboard' )</a>
+ • <a href="javascript:showPatientDashboardForm('$!patientUid');">$i18n.getString( 'patient_dashboard' )</a>
#end
• $i18n.getString( "add_new_patient" )
</h3>
@@ -92,7 +92,7 @@
<td colspan='2' id='actionButtons'>
#if($!relatedProgram)
<input type="submit" class="button" value="$i18n.getString( 'add' )" onclick="isContinue=false;" style="width:70px;" />
- <input type='button' class="button" value="$i18n.getString( 'cancel' )" onclick="showPatientDashboardForm($!patientId);" style="width:70px;" />
+ <input type='button' class="button" value="$i18n.getString( 'cancel' )" onclick="showPatientDashboardForm('$!patientUid');" style="width:70px;" />
#else
<input type="submit" class="button" value="$i18n.getString( 'add' )" onclick="isContinue=false;" style="width:70px;" />
<input type="submit" class="button" value="$i18n.getString( 'add_and_register_new' )" style="width:140px;" onclick="isContinue=true;"/>
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/addRelationshipForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/addRelationshipForm.vm 2013-10-25 05:00:41 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/addRelationshipForm.vm 2013-11-25 08:18:35 +0000
@@ -12,7 +12,7 @@
<h5>
<a name="mainPagelink" href="javascript:onClickBackBtn();">$i18n.getString( 'patient_management' )</a>
- • <a href="javascript:showPatientDashboardForm($!patient.id);">$i18n.getString( 'patient_dashboard' )</a>
+ • <a href="javascript:showPatientDashboardForm('$!patient.uid');">$i18n.getString( 'patient_dashboard' )</a>
• <a href="javascript:showRelationshipList( '$patient.id' )">$i18n.getString( "relationship_management" )</a>
</h5>
@@ -23,6 +23,7 @@
<form id="relationshipSelectForm" name="relationshipSelectForm" method="post" action="showAddRelationshipForm.action">
<input type="hidden" id="patientId" name="patientId" value="$patient.id"/>
+<input type="hidden" id="patientUid" name="patientUid" value="$patient.uid"/>
<table>
<tr>
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataentryRecords.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataentryRecords.vm 2013-09-27 11:13:20 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataentryRecords.vm 2013-11-25 08:18:35 +0000
@@ -59,7 +59,7 @@
</td>
#if( $auth.hasAccess( "dhis-web-caseentry", "accessPatientAttributes" ) )
- <td><a href="javascript:isDashboard=false;showPatientDashboardForm( '$patient.id' )">
+ <td><a href="javascript:isDashboard=false;showPatientDashboardForm( '$patient.uid' )">
#set($value="")
#foreach( $identifierType in $identifierTypes)
#foreach( $identifier in $patient.identifiers)
@@ -85,7 +85,7 @@
#set($value=$identifier.identifier)
#end
#end
- <td><a href="javascript:isDashboard=false;showPatientDashboardForm( '$patient.id' )">
+ <td><a href="javascript:isDashboard=false;showPatientDashboardForm( '$patient.uid' )">
$value
</a></td>
#end
@@ -93,7 +93,7 @@
<td><a href="javascript:loadDataEntryDialog( $programStageInstance.id );">$programStageInstance.programStage.displayName</a></td>
<td>
- <a href="javascript:isDashboard=false;showPatientDashboardForm( '$patient.id' )" title="$i18n.getString( 'patient_dashboard' )"><img src="../images/enroll.png" alt='$i18n.getString( "patient_dashboard" )'></a>
+ <a href="javascript:isDashboard=false;showPatientDashboardForm( '$patient.uid' )" title="$i18n.getString( 'patient_dashboard' )"><img src="../images/enroll.png" alt='$i18n.getString( "patient_dashboard" )'></a>
<a href="javascript:loadDataEntryDialog( $programStageInstance.id );" title="$i18n.getString( 'data_entry' )"><img src="images/data_entry.png" alt="$i18n.getString( 'data_entry' )"></a>
<a href="javascript:showPatientHistory('$patient.id')" title='$i18n.getString( "patient_details_and_history" )'><img src="../images/information.png" alt='$i18n.getString( "patient_details_and_history" )'></a>
</td>
=== 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-11-25 07:31:02 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientDashboard.vm 2013-11-25 08:18:35 +0000
@@ -228,7 +228,7 @@
<table>
#foreach( $rel in $relationships )
#if($rel.patientA.id==$patient.id)
- <tr onclick="showPatientDashboardForm($rel.patientB.id)" title='$i18n.getString( "move_to_dashboard_of" ) $rel.patientB.name'>
+ <tr onclick="showPatientDashboardForm('$rel.patientB.uid')" title='$i18n.getString( "move_to_dashboard_of" ) $rel.patientB.name'>
<td><a href='#'>$rel.relationshipType.bIsToA</a></td>
<td>
#set($patient=$rel.patientB)
@@ -248,7 +248,7 @@
</td>
</tr>
#else
- <tr onclick="showPatientDashboardForm($rel.patientA.id)" title='$i18n.getString( "move_to_dashboard_of" ) $!rel.patientB.name'>
+ <tr onclick="showPatientDashboardForm('$rel.patientA.uid')" title='$i18n.getString( "move_to_dashboard_of" ) $!rel.patientB.name'>
<td><a href='#'>$!rel.relationshipType.aIsToB</a></td>
<td><a href='#'>
#set($patient=$!rel.patientA)
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientLocation.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientLocation.vm 2013-09-23 03:15:40 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientLocation.vm 2013-11-25 08:18:35 +0000
@@ -5,7 +5,7 @@
<h3>
<a name="mainPagelink" href="javascript:onClickBackBtn();">$i18n.getString( 'patient_management' )</a>
- • <a href="javascript:showPatientDashboardForm($patientId);">$i18n.getString( 'patient_dashboard' )</a>
+ • <a href="javascript:showPatientDashboardForm('$patient.uid');">$i18n.getString( 'patient_dashboard' )</a>
• $i18n.getString( "change_location" )
</h3>
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientRegistrationList.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientRegistrationList.vm 2013-10-15 11:08:09 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientRegistrationList.vm 2013-11-25 08:18:35 +0000
@@ -121,7 +121,7 @@
#foreach( $identifierType in $identifierTypes)
#set($value="")
#if($identifierType.personDisplayName=='true')
- <td style="cursor:pointer;" onclick="javascript:isDashboard=true;showPatientDashboardForm( '$patient.id' )">
+ <td style="cursor:pointer;" onclick="javascript:isDashboard=true;showPatientDashboardForm( '$patient.uid' )">
#foreach( $identifier in $patient.identifiers)
#if($!identifier.identifierType.id==$identifierType.id)
#set($value=$identifier.identifier)
@@ -141,7 +141,7 @@
#set($value=$systemId)
#end
#if($personDisplayName=='false')
- <td style="cursor:pointer;" onclick="javascript:isDashboard=true;showPatientDashboardForm( '$patient.id' )">
+ <td style="cursor:pointer;" onclick="javascript:isDashboard=true;showPatientDashboardForm( '$patient.uid' )">
<a>$encoder.htmlEncode($value)</a>
</td>
#end
@@ -159,7 +159,7 @@
#end
<td>
- <a href="javascript:isDashboard=true;showPatientDashboardForm( '$patient.id' )" title='$i18n.getString( "patient_dashboard" )'><img src="../images/enroll.png" alt='$i18n.getString( "patient_dashboard" )'></a>
+ <a href="javascript:isDashboard=true;showPatientDashboardForm( '$patient.uid' )" title='$i18n.getString( "patient_dashboard" )'><img src="../images/enroll.png" alt='$i18n.getString( "patient_dashboard" )'></a>
<a href="javascript:isDashboard=false;showUpdatePatientForm( '$patient.id' )" title='$i18n.getString( "edit_profile" )'><img src="../images/edit.png" alt='$i18n.getString( "edit_profile" )'></a>
<a href="javascript:setFieldValue( 'isShowPatientList', 'false' ); showRelationshipList('$patient.id')" title='$i18n.getString( "manage_relationship" )'><img src="../images/relationship.png" alt='$i18n.getString( "manage_relationship" )'></a>
#if( $auth.hasAccess( "dhis-web-caseentry", "getPatientLocation" ) )
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentForm.vm 2013-09-23 04:29:22 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentForm.vm 2013-11-25 08:18:35 +0000
@@ -4,6 +4,7 @@
<input type='hidden' id='programInstanceId' name='programInstanceId' value='$programInstance.id' />
<input type='hidden' id='programStageInstanceId' name='programStageInstanceId' value='0'>
<input type='hidden' id='patientId' name='patientId' value='$programInstance.patient.id' />
+<input type='hidden' id='patientUid' name='patientUid' value='$programInstance.patient.uid' />
<input type='hidden' id='hasDataEntry' name='hasDataEntry' value='$hasDataEntry' />
<input type='hidden' name='editDataEntryForm' id='editDataEntryForm' value='$auth.hasAccess( "dhis-web-caseentry", "editDataEntryForm" )'>
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentSelectForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentSelectForm.vm 2013-09-03 14:59:12 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentSelectForm.vm 2013-11-25 08:18:35 +0000
@@ -16,6 +16,7 @@
<form id='programEnrollmentSelectDiv' name='programEnrollmentSelectDiv' method='POST' action='saveProgramEnrollment.action'>
<input type="hidden" id="patientId" name="patientId" value="$patient.id">
+ <input type="hidden" id="patientUid" name="patientUid" value="$patient.uid">
<table>
<tr>
<td class='text-column'><label for="programId">$i18n.getString( "program" )</label></td>
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingList.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingList.vm 2013-11-25 07:31:02 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingList.vm 2013-11-25 08:18:35 +0000
@@ -1,6 +1,6 @@
<h3>
<a href="javascript:onClickBackBtn();">$i18n.getString( 'program_tracking' )</a>
- • <a href="javascript:showPatientDashboardForm( $programStageInstance.programInstance.patient.id );">$i18n.getString( 'patient_dashboard' )</a>
+ • <a href="javascript:showPatientDashboardForm( '$programStageInstance.programInstance.patient.uid' );">$i18n.getString( 'patient_dashboard' )</a>
» $encoder.htmlEncode($programStageInstance.programStage.displayName)
</h3>
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingRecords.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingRecords.vm 2013-09-23 03:15:40 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingRecords.vm 2013-11-25 08:18:35 +0000
@@ -46,7 +46,7 @@
#end
</td>
- <td name='infor_$patient.id' class='$class'><a href="javascript:isDashboard=false;showPatientDashboardForm( '$patient.id' )">
+ <td name='infor_$patient.id' class='$class'><a href="javascript:isDashboard=false;showPatientDashboardForm( '$patient.uid' )">
#set($value="")
#foreach( $identifierType in $identifierTypes)
#foreach( $identifier in $patient.identifiers)
@@ -91,7 +91,7 @@
#if( $patientId != $patient.id )
<td class='$alterclass' name='opt_$patient.id'>
- <a href="javascript:isDashboard=false;showPatientDashboardForm( '$patient.id' )" title="$i18n.getString( 'patient_dashboard' )"><img src="../images/enroll.png" alt='$i18n.getString( "patient_dashboard" )'></a>
+ <a href="javascript:isDashboard=false;showPatientDashboardForm( '$patient.uid' )" title="$i18n.getString( 'patient_dashboard' )"><img src="../images/enroll.png" alt='$i18n.getString( "patient_dashboard" )'></a>
<a href="javascript:programTrackingReport( $programStageInstance.programInstance.id )" title='$i18n.getString( "program_report" )'><img src="../images/information.png" alt='$i18n.getString( "program_report" )'></a>
</td>
#else
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/relationshipList.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/relationshipList.vm 2013-10-25 05:00:41 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/relationshipList.vm 2013-11-25 08:18:35 +0000
@@ -1,6 +1,6 @@
<h5>
<a name="mainPagelink" href="javascript:onClickBackBtn();">$i18n.getString( 'patient_management' )</a>
- • <a href="javascript:showPatientDashboardForm($!patient.id);">$i18n.getString( 'patient_dashboard' )</a>
+ • <a href="javascript:showPatientDashboardForm('$!patient.uid');">$i18n.getString( 'patient_dashboard' )</a>
• $i18n.getString( "relationship_management" )
</h5>
<h3>
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/relationshipPatients.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/relationshipPatients.vm 2013-09-30 13:53:17 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/relationshipPatients.vm 2013-11-25 08:18:35 +0000
@@ -38,7 +38,7 @@
<td>$velocityCount</td>
- <td style="cursor:pointer;" onclick="javascript:isDashboard=true;showPatientDashboardForm( '$patient.id' )">
+ <td style="cursor:pointer;" onclick="javascript:isDashboard=true;showPatientDashboardForm( '$patient.uid' )">
<a>$!encoder.htmlEncode($patient.name)</a>
</td>
@@ -51,7 +51,7 @@
<td>$!patient.phoneNumber</td>
<td>
- <a href="javascript:isDashboard=true;showPatientDashboardForm( '$patient.id' )" title='$i18n.getString( "patient_dashboard" )'><img src="../images/enroll.png"></a>
+ <a href="javascript:isDashboard=true;showPatientDashboardForm( '$patient.uid' )" title='$i18n.getString( "patient_dashboard" )'><img src="../images/enroll.png"></a>
<a href="javascript:validateAddRelationship($patient.id);" title="$i18n.getString( 'assign_relationship' )" ><img src="../images/relationship.png" ></a>
<a href="javascript:showPatientHistory('$patient.id')" title='$i18n.getString( "patient_details_and_history" )'><img src="../images/information.png"></a>
</td>
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/updatePatientForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/updatePatientForm.vm 2013-10-24 08:31:35 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/updatePatientForm.vm 2013-11-25 08:18:35 +0000
@@ -63,7 +63,7 @@
<h3>
<a name="mainPagelink" href="javascript:onClickBackBtn();">$i18n.getString( 'patient_management' )</a>
- • <a href="javascript:showPatientDashboardForm($!patient.id);">$i18n.getString( 'patient_dashboard' )</a>
+ • <a href="javascript:showPatientDashboardForm('$!patient.uid');">$i18n.getString( 'patient_dashboard' )</a>
• $i18n.getString( "update_patient" )
</h3>
<p>