Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSoC 2018 Patient Clinical Summary Enhancement Changes For reveiew #38

Open
wants to merge 52 commits into
base: master
from
Open
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
57e6f86
added first changes
dilekamadushan Jun 16, 2018
f77149f
commented changes in liquibase.xml
dilekamadushan Jun 17, 2018
7a5e7da
completed ui designs
dilekamadushan Jun 20, 2018
7b9fbf0
added controllers to get access database
dilekamadushan Jun 20, 2018
c975a99
Merge branch 'master' of https://github.com/muzima/openmrs-module-muz…
dilekamadushan Jun 20, 2018
6219746
added debug lines
dilekamadushan Jun 21, 2018
3cce4da
added liquibase changes
dilekamadushan Jun 21, 2018
a5a4d98
Merge branch 'master' into gsoc_task1
dilekamadushan Jun 21, 2018
f7f02ad
added values to database
dilekamadushan Jun 21, 2018
2015716
added insert of report functionality
dilekamadushan Jun 22, 2018
54e0271
added search functionality
dilekamadushan Jun 23, 2018
c5bf58a
added getReports method in controller
dilekamadushan Jun 24, 2018
94c7d5d
added reporting dependency
dilekamadushan Jun 26, 2018
daedd78
Merge branch 'master' of https://github.com/muzima/openmrs-module-muz…
dilekamadushan Jun 26, 2018
f8c7e2a
added dependency to poms
dilekamadushan Jun 27, 2018
eb5e00c
added dependency to poms
dilekamadushan Jun 27, 2018
cbf8811
changed mvn version
dilekamadushan Jun 28, 2018
4ecdd2c
changed mvn version
dilekamadushan Jun 28, 2018
1f2668c
added reporting version
dilekamadushan Jun 28, 2018
86f07c9
started creating ReportGeneration task
dilekamadushan Jun 29, 2018
861f43d
added method to bring reportDefinitions
dilekamadushan Jun 29, 2018
73a0d94
added method to generate reports
dilekamadushan Jul 1, 2018
593890f
get names of reports and cohorts
dilekamadushan Jul 1, 2018
8ad905b
Merge branch 'masterUpstream' into gsoc_task
dilekamadushan Jul 1, 2018
05ec7f6
improved report generation task
dilekamadushan Jul 1, 2018
1c86e88
improved editing of report configurations
dilekamadushan Jul 2, 2018
31c750b
added endpoint to download generated reports
dilekamadushan Jul 3, 2018
a17fb56
modified code
dilekamadushan Jul 3, 2018
e7ea8eb
added functionality to listen to report log
dilekamadushan Jul 10, 2018
4f9a5b4
modified logic in report generation process
dilekamadushan Jul 11, 2018
33b8bd5
added a try catch when getting reportService
dilekamadushan Jul 12, 2018
1454af8
improved task
dilekamadushan Jul 13, 2018
5b3a8f5
added checkbox
dilekamadushan Jul 18, 2018
a8cbf25
commit for muzima scrum
dilekamadushan Jul 20, 2018
5eb742f
removed comment
dilekamadushan Jul 20, 2018
d76e99e
added new method to get generatedReport by patientUuid
dilekamadushan Jul 21, 2018
c4e4fb4
added priority column to generated report table
dilekamadushan Jul 22, 2018
7e5ac5e
liquidbase change
dilekamadushan Jul 22, 2018
00cdcf8
Merge branch 'masterUpstream' into gsoc_task
dilekamadushan Jul 22, 2018
7033fe3
added Generated report resource
dilekamadushan Jul 23, 2018
0df87f3
modified logging
dilekamadushan Jul 27, 2018
150073a
bug in omod
dilekamadushan Jul 28, 2018
e560222
changed reportJson field to blob
dilekamadushan Jul 29, 2018
ae94559
modified for debug
dilekamadushan Jul 31, 2018
e845024
renamed endpoint
dilekamadushan Aug 3, 2018
3134eda
renamed endpoint param
dilekamadushan Aug 7, 2018
d7f977d
tried to remove code
dilekamadushan Aug 7, 2018
f9d6d3c
removed debug lines
dilekamadushan Aug 7, 2018
d32bb05
added comments for functions
dilekamadushan Aug 10, 2018
052e78b
Merge branch 'masterUpstream' into for_reveiew
dilekamadushan Aug 10, 2018
10fd8f0
renamed methods
dilekamadushan Aug 10, 2018
d6e827d
added comments to the task
dilekamadushan Aug 10, 2018
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+18 −14
Diff settings

Always

Just for now

commit for muzima scrum

  • Loading branch information...
dilekamadushan committed Jul 20, 2018
commit a8cbf2523cd26923a4c0aaf3d6aa24665ca6f92f
@@ -119,11 +119,12 @@ public MuzimaGeneratedReport getMuzimaGeneratedReportById(Integer id) {

@Override
public MuzimaGeneratedReport getLastMuzimaGeneratedReportByPatientId(Integer patientId) {
System.out.println("aaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbb");
Criteria criteria = session().createCriteria(mappedClass);
criteria.add(Restrictions.eq("patientId", patientId));
criteria.add(Restrictions.eq("retired", Boolean.FALSE));
criteria.setProjection(Projections.max("dateCreated"));

//criteria.setProjection(Projections.max("dateCreated"));
System.out.println("dddddddddddddddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbb"+criteria.uniqueResult());
return (MuzimaGeneratedReport) criteria.uniqueResult();

}
@@ -91,6 +91,9 @@ public void processAllReports() {
for (String patientIdString : patientList) {
Integer patientId = Integer.valueOf(patientIdString);
System.out.println("ffffffffffffffffff5555555555555555555" + patientId);

System.out.println("ffffffffffffffffff555555555555555555cccccccccccc5" + patientId+" kkkk"+ muzimaGeneratedReportService
.getLastMuzimaGeneratedReportByPatientId(patientId));

MuzimaGeneratedReport generatedReport = muzimaGeneratedReportService
.getLastMuzimaGeneratedReportByPatientId(patientId);
@@ -1247,12 +1247,12 @@
<addForeignKeyConstraint constraintName="muzima_cohort_report_config_retired_by"
baseTableName="muzima_cohort_report_config" baseColumnNames="retired_by"
referencedTableName="users" referencedColumnNames="user_id"/>
<addForeignKeyConstraint constraintName="muzima_cohort_report_config_cohort_uuid"
<!-- <addForeignKeyConstraint constraintName="muzima_cohort_report_config_cohort_uuid"
baseTableName="muzima_cohort_report_config" baseColumnNames="cohort_uuid"
referencedTableName="cohort" referencedColumnNames="uuid"/>
<addForeignKeyConstraint constraintName="muzima_cohort_report_config_report_design_uuid"
baseTableName="muzima_cohort_report_config" baseColumnNames="report_design_uuid"
referencedTableName="reporting_report_design" referencedColumnNames="uuid"/>
referencedTableName="reporting_report_design" referencedColumnNames="uuid"/>-->
</changeSet>

<changeSet id="muzima-20180630154129" author="dileka">
@@ -101,11 +101,9 @@ public void saveReportConfiguration(final @RequestBody Map<String, Object> map)
if (Context.isAuthenticated()) {
System.out.println("rrrrrrrrrrrrr22222222222222222222");
String uuid = (String) map.get("uuid");
String priorityString = (String) map.get("priority");
Boolean priority = false;
if("1".equals(priorityString)){

priority = true;
Boolean priority = (Boolean) map.get("priority");
if(priority ==null){
priority = false;
}

ReportConfigurationService reportConfigurationService = Context.getService(ReportConfigurationService.class);
@@ -163,7 +161,7 @@ public void saveReportConfiguration(final @RequestBody Map<String, Object> map)
reportConfiguration.setReportDesignUuid(s1);
reportConfiguration.setCohortUuid(cohortUuid);
reportConfiguration.setPriority(priority);
// reportConfigurationService.saveReportConfiguration(reportConfiguration);
//reportConfigurationService.saveReportConfiguration(reportConfiguration);
}
}
System.out.println("qqqqqqqqqqqqqqqqqqqqqqqqqqqConfigs are saved");
@@ -292,6 +292,8 @@ private static String readAsString(final String jsonObject, final String path) {
map.put("report", Context.getService(ReportService.class).getReportDesignByUuid(reportConfiguration.getReportDesignUuid()).getName());
map.put("cohort", Context.getCohortService().getCohortByUuid(reportConfiguration.getCohortUuid()).getName());
map.put("user",reportConfiguration.getCreator().toString());
map.put("priority",reportConfiguration.getPriority());

}
return map;
}
@@ -4,7 +4,7 @@ function ReportConfigurationCtrl($scope, $routeParams, $location, $muzimaReportC
$scope.selected = {cohorts: '', reports: ''};
$scope.configReports = [];
$scope.checkboxModel = {
priority : true
priority : false
};

var createJson = function () {
@@ -61,7 +61,7 @@ function ReportConfigurationCtrl($scope, $routeParams, $location, $muzimaReportC
};

$scope.save = function (reportConfiguration) {
$muzimaReportConfigurations.saveReportConfiguration(reportConfiguration.uuid, $scope.search.cohorts.uuid, createJson(),$scope.checkboxModel.priority).
$muzimaReportConfigurations.saveReportConfiguration(reportConfiguration.uuid, $scope.search.cohorts.uuid, createJson(),reportConfiguration.priority)//$scope.checkboxModel.priority).
then(function () {
$location.path("/reportConfigs");
})
@@ -26,7 +26,7 @@
</div>

<div class="row">
<input type="checkbox" name="priority" value="priority" ng-model="checkboxModel.priority"> High Priority<br>
<input type="checkbox" name="priority" value="priority" ng-model="reportConfiguration.priority"> High Priority<br>
</div>

<div class="row" style="margin-top: 14px; padding: 0">
@@ -51,7 +51,7 @@
</div>

<div class="row">
<input type="checkbox" name="priority" value="priority" ng-model="checkboxModel.priority"> High Priority<br>
<input type="checkbox" name="priority" value="priority" ng-model="reportConfiguration.priority"> High Priority<br>
</div>

<div class="panel panel-default panel-body col-lg-12">
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.