dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #22823
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11099: Put the comment of risk case into program-instance report
------------------------------------------------------------
revno: 11099
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-05-30 09:20:29 +0700
message:
Put the comment of risk case into program-instance report
modified:
dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramInstanceService.java
--
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-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramInstanceService.java'
--- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramInstanceService.java 2013-05-28 06:42:25 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramInstanceService.java 2013-05-30 02:20:29 +0000
@@ -376,6 +376,15 @@
}
}
+ PatientComment patientComment = programInstance.getPatientComment();
+ if( patientComment != null )
+ {
+ grid.addRow();
+ grid.addValue( i18n.getString( "comment" ) + " " + i18n.getString( "on" ) + " "
+ + format.formatDateTime( patientComment.getCreatedDate() ) );
+ grid.addValue( patientComment.getCommentText() );
+ }
+
// Get sms of the program-instance
List<OutboundSms> messasges = programInstance.getOutboundSms();