diff --git a/package/docker/bahmni-reports/Dockerfile b/package/docker/bahmni-reports/Dockerfile
index 6a426b0e..19b181f9 100644
--- a/package/docker/bahmni-reports/Dockerfile
+++ b/package/docker/bahmni-reports/Dockerfile
@@ -4,7 +4,7 @@ ENV SERVER_PORT=8051
ENV BASE_DIR=/var/run/bahmni-reports
ENV CONTEXT_PATH=/bahmnireports
ENV WAR_DIRECTORY=/var/run/bahmni-reports/bahmni-reports
-ENV SERVER_OPTS="-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m"
+ENV SERVER_OPTS="-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m -Dsun.net.client.defaultConnectTimeout=600000 -Dsun.net.client.defaultReadTimeout=600000"
ENV DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,address=8003,server=y,suspend=n"
RUN mkdir -p /var/log/bahmni-reports
diff --git a/pom.xml b/pom.xml
index cc5326a7..96428f34 100644
--- a/pom.xml
+++ b/pom.xml
@@ -133,6 +133,10 @@
xml-apis
xml-apis
+
+ org.apache.commons
+ commons-lang3
+
@@ -140,6 +144,11 @@
dynamicreports-adhoc
${dynamicreports.version}
+
+ org.apache.commons
+ commons-lang3
+ 3.8.1
+
net.sourceforge.dynamicreports
dynamicreports-googlecharts
diff --git a/src/main/java/org/bahmni/reports/extensions/ResultSetExtension.java b/src/main/java/org/bahmni/reports/extensions/ResultSetExtension.java
new file mode 100644
index 00000000..a815d9ba
--- /dev/null
+++ b/src/main/java/org/bahmni/reports/extensions/ResultSetExtension.java
@@ -0,0 +1,20 @@
+package org.bahmni.reports.extensions;
+
+import net.sf.dynamicreports.jasper.builder.JasperReportBuilder;
+import org.apache.commons.lang3.StringUtils;
+
+import java.util.Collection;
+import java.util.Map;
+
+public interface ResultSetExtension {
+ static final String EMPTY_STRING = "";
+
+ void enrich(Collection