=== modified file 'dhis-2/dhis-services/dhis-service-mobile/src/main/java/org/hisp/dhis/api/mobile/model/PatientAttribute.java' --- dhis-2/dhis-services/dhis-service-mobile/src/main/java/org/hisp/dhis/api/mobile/model/PatientAttribute.java 2012-06-22 02:59:28 +0000 +++ dhis-2/dhis-services/dhis-service-mobile/src/main/java/org/hisp/dhis/api/mobile/model/PatientAttribute.java 2012-10-02 06:59:33 +0000 @@ -42,6 +42,10 @@ private String value; + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + public PatientAttribute( String name, String value ) { this.name = name; @@ -52,6 +56,10 @@ { } + // ------------------------------------------------------------------------- + // Gettes && Setters + // ------------------------------------------------------------------------- + @XmlAttribute public String getName() { === modified file 'dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/hibernate/HibernatePatientStore.java' --- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/hibernate/HibernatePatientStore.java 2012-10-02 06:23:53 +0000 +++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/hibernate/HibernatePatientStore.java 2012-10-02 06:59:33 +0000 @@ -47,7 +47,6 @@ import org.hisp.dhis.jdbc.StatementBuilder; import org.hisp.dhis.organisationunit.OrganisationUnit; import org.hisp.dhis.patient.Patient; -import org.hisp.dhis.patient.PatientAttribute; import org.hisp.dhis.patient.PatientStore; import org.hisp.dhis.program.Program; import org.hisp.dhis.program.ProgramStageInstance; === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties 2012-09-28 08:42:22 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties 2012-10-02 06:59:33 +0000 @@ -279,7 +279,6 @@ please_fill_out_only_one_of_these_fields = Please fill only one of these fields age_year = Age (years) create = Create -change_patient_location = Change person location enroll_for = Enroll for identifier_and_attribute = Identifier/Attribute unenrollment = Un-enrollment @@ -466,4 +465,5 @@ history = History use_calendar = Use calendar export_xls = Export XLS -stage_skipped = Stage is skipped \ No newline at end of file +stage_skipped = Stage is skipped +location = Location \ No newline at end of file === 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 2012-09-27 08:00:40 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientDashboard.vm 2012-10-02 06:59:33 +0000 @@ -14,9 +14,9 @@
$i18n.getString("demographics") - + «$i18n.getString("edit_profile")» #if( $auth.hasAccess( "dhis-web-caseentry", "getPatientLocation" ) ) - + «$i18n.getString("change_location")» #end
@@ -27,6 +27,10 @@ $!patient.getFullName() + $i18n.getString("location") + $!patient.organisationUnit.name + + $i18n.getString("gender") $i18n.getString($!patient.gender) @@ -67,7 +71,19 @@ #foreach( $attributeValue in $attributeValues ) $attributeValue.patientAttribute.name - $attributeValue.value + + #if($attributeValue.patientAttribute.valueType=='YES/NO') + #if($attributeValue.value=='true') + $i18n.getString("yes") + #else + $i18n.getString("no") + #end + #elseif($attributeValue.patientAttribute.valueType=='DATE') + $format.formatDate( $attributeValue.value ) + #else + $attributeValue.value + #end + #end @@ -79,7 +95,7 @@
$i18n.getString("active_programs") - + «$i18n.getString("enroll_program")»
@@ -156,8 +172,8 @@
$i18n.getString("relationships") - - + «$i18n.getString("management")» + «$i18n.getString("add_new_patient")»
=== 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 2012-09-28 09:03:34 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientForm.vm 2012-10-02 06:59:33 +0000 @@ -22,7 +22,7 @@ - + === 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 2012-09-24 05:02:17 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientLocation.vm 2012-10-02 06:59:33 +0000 @@ -5,7 +5,7 @@

$i18n.getString( 'patient_management' )$i18n.getString( 'patient_dashboard' ) - • $i18n.getString( "change_patient_location" ) + • $i18n.getString( "change_location" )

=== 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 2012-09-26 09:16:02 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientRegistrationList.vm 2012-10-02 06:59:33 +0000 @@ -130,7 +130,7 @@ $i18n.getString( "edit_profile" ) $i18n.getString( "manage_relationship" ) #if( $auth.hasAccess( "dhis-web-caseentry", "getPatientLocation" ) ) - $i18n.getString( "change_patient_location" ) + $i18n.getString( "change_patient_location" ) #end $i18n.getString( "remove" ) $i18n.getString( "patient_details_and_history" )