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

Feature/epic 12880 dashboard disease clickable details #13118

Open
wants to merge 89 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
f041ee7
#12880 -
user-yormen Nov 16, 2021
b79acd2
Added the css for the card, grid table and map
user-yormen Dec 10, 2021
4a39119
Added and removed the required variables and constructors
user-yormen Dec 10, 2021
99fc961
Added the facade for the implementation of the disease details and re…
user-yormen Dec 10, 2021
a578fbc
Added the Map component title#12880
user-yormen Dec 10, 2021
b9d049e
Added and called the disease name from the caption properties file#12880
user-yormen Dec 10, 2021
588f954
Added the disease details needed by the components#12880
user-yormen Dec 10, 2021
36a5a8d
added a function to get all regions
user-yormen Dec 10, 2021
252873c
Added the implementation to get outbreak district name#12880
user-yormen Dec 10, 2021
35de9e6
Removed this class because it was not used
user-yormen Dec 10, 2021
6659db0
Added the implementation that will be used by the disease dashboard#1…
user-yormen Dec 10, 2021
f0fc2bd
Removed and added implementation that will be applicable for the dise…
user-yormen Dec 10, 2021
4be4a45
Removed the redundant codes#12880
user-yormen Dec 10, 2021
61d689e
Made modification to the regional graph table#12880
user-yormen Dec 10, 2021
723b707
Made modification to the regional graph table
user-yormen Dec 10, 2021
7809463
Made modifications to the Disease detail layout, thus with their posi…
user-yormen Dec 10, 2021
438a61e
Added the needed functions and variables
user-yormen Dec 10, 2021
4b3f6d8
Modified the disease card component#12880
user-yormen Dec 10, 2021
cc440f2
Added the function to communicate with the appropriate classes#12880
user-yormen Dec 10, 2021
2f95147
WiP
user-yormen Dec 10, 2021
2392162
fix regional grid bug of data mismatch
daveotengo Feb 2, 2024
1f0b75d
Merge pull request #12934 from ePareto-Information-System/feature/EPI…
daveotengo Feb 2, 2024
ae72990
Update to Captions,Strings and refatoring done to pass test cases#12880
daveotengo Feb 9, 2024
a9ec484
Merge pull request #12954 from ePareto-Information-System/feature/EPI…
daveotengo Feb 9, 2024
b9b50a0
Added @Audited annotation to parameter classes of getDiseaseForDashbo…
daveotengo Feb 12, 2024
348fd68
@AuditedClass annotation to classes that need them#12880
daveotengo Feb 12, 2024
cce8129
Merge pull request #12961 from ePareto-Information-System/feature/EPI…
daveotengo Feb 12, 2024
3fd40c5
Merge branch 'development' of https://github.com/SORMAS-Foundation/SO…
daveotengo Feb 14, 2024
bb30524
Merge branch 'development' of https://github.com/SORMAS-Foundation/SO…
daveotengo Feb 14, 2024
e7b94db
Merge branch 'development' of https://github.com/SORMAS-Foundation/SO…
daveotengo Feb 15, 2024
6a83872
Merge branch 'development' of https://github.com/SORMAS-Foundation/SO…
daveotengo Feb 15, 2024
7146dde
fixed methods which were not passing test cases#12880
daveotengo Feb 17, 2024
c89434c
Merge branch 'development' of https://github.com/SORMAS-Foundation/SO…
daveotengo Feb 17, 2024
89e8613
Merge branch 'development' of https://github.com/SORMAS-Foundation/SO…
daveotengo Feb 17, 2024
91dc3a3
Merge branch 'feature/EPIC-12880-dashboard-disease-clickable-details'…
daveotengo Feb 18, 2024
e5257e9
Merge pull request #12977 from ePareto-Information-System/feature/EPI…
daveotengo Feb 18, 2024
dd0887b
fix dashboard bug after merge#12880
daveotengo Feb 18, 2024
c094227
fix bug to pass test cases#12880
daveotengo Feb 18, 2024
708d961
Merge branch 'feature/EPIC-12880-dashboard-disease-clickable-details'…
daveotengo Feb 18, 2024
305d4ca
Merge pull request #12980 from ePareto-Information-System/feature/EPI…
daveotengo Feb 18, 2024
65a4c1b
fixed outbreak date one day delay bug
daveotengo Jun 24, 2024
72e3759
Merge branch 'development' of https://github.com/SORMAS-Foundation/SO…
daveotengo Jun 24, 2024
9a63266
compilation error fixed after branch update
daveotengo Jun 25, 2024
1fa0a89
fixing date bug for outbreak and disease drilldown count
daveotengo Jun 25, 2024
6b758c8
clean up unnessary comment
daveotengo Jun 25, 2024
b571d00
104 of 284 issues on sonarcloud fixed
daveotengo Jun 26, 2024
3d7e2e4
119 of 217 sonar cloud issues fixed
daveotengo Jun 27, 2024
0b59f86
124 of 124 sonar cloud issues fixed
daveotengo Jun 27, 2024
b419ffe
76 of 76 sonar cloud issues fixed
daveotengo Jun 27, 2024
0af7215
writing test cases and fixing duplicates
daveotengo Jun 27, 2024
4e769d3
fix for duplicates and uncovered methods - sonar cloud
daveotengo Jun 28, 2024
06675c6
test case fix on outbreakFacadeEjbTest
daveotengo Jun 28, 2024
e501d76
additional test cases for disease facade
daveotengo Jun 28, 2024
3506221
additional test for regionfacadeejb
daveotengo Jul 16, 2024
8740021
additional test case for regionfacadeejb
daveotengo Jul 16, 2024
0ece291
additional test cases to dashboardfacadeejb
daveotengo Jul 16, 2024
17bdbfc
additional test cases get greater or equal 65% coverage on sonarcloud
daveotengo Jul 17, 2024
c3a8527
fix for duplicate line on dashboardmapcomponent
daveotengo Jul 18, 2024
85eedbc
fix to pass duplicate threshold on sonarcloud
daveotengo Jul 18, 2024
2db1e94
Duplicate line fix on dashboardMapComponent
daveotengo Jul 18, 2024
db3c8c5
sampleservicetest updated
daveotengo Jul 18, 2024
83e3b28
clean up after review
daveotengo Sep 13, 2024
4c58f11
Merge branch 'development' of https://github.com/SORMAS-Foundation/SO…
daveotengo Sep 16, 2024
0081db4
clean up after review
daveotengo Sep 16, 2024
2f19f25
clean up after review
daveotengo Sep 16, 2024
6e48a5d
clean up after review
daveotengo Sep 16, 2024
8d7ab41
clean up after review
daveotengo Sep 16, 2024
1d09aa6
clean up after review
daveotengo Sep 16, 2024
394a5e2
clean up after review
daveotengo Sep 17, 2024
14c7543
Merge branch 'development' of https://github.com/SORMAS-Foundation/SO…
daveotengo Oct 28, 2024
0a7e288
updates to take out white space after review
daveotengo Oct 28, 2024
6508926
cleaning white space
daveotengo Oct 28, 2024
08d76d0
clean up white space
daveotengo Oct 29, 2024
681e979
clean up white space
daveotengo Oct 29, 2024
e76ec5b
clean up space
daveotengo Oct 29, 2024
08cc854
clean space
daveotengo Oct 29, 2024
ebe670c
clean white space
daveotengo Oct 29, 2024
d40c820
clean
daveotengo Oct 29, 2024
0a00257
clean up white space
daveotengo Oct 29, 2024
03d4713
clean up white space
daveotengo Oct 29, 2024
8b4b9a9
clean up space
daveotengo Oct 29, 2024
abd7f51
Added DiseaseDetails Rights
daveotengo Oct 29, 2024
62774dd
cleanning unnessary white space
daveotengo Oct 30, 2024
1a8c958
Merge branch 'development' of https://github.com/SORMAS-Foundation/SO…
daveotengo Nov 4, 2024
dd4b4bf
update on sormas_schema.sql
daveotengo Nov 4, 2024
ece33a1
method guidelines
daveotengo Nov 7, 2024
b26aa17
reordering imports
daveotengo Nov 7, 2024
aad5608
update with license
daveotengo Nov 11, 2024
b3a5b52
Merge branch 'development' of https://github.com/SORMAS-Foundation/SO…
daveotengo Nov 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import de.symeda.sormas.api.infrastructure.district.DistrictReferenceDto;
import de.symeda.sormas.api.infrastructure.region.RegionReferenceDto;
import de.symeda.sormas.api.utils.criteria.BaseCriteria;
import de.symeda.sormas.api.caze.NewCaseDateType;

public class BaseDashboardCriteria<SELF extends BaseDashboardCriteria<?>> extends BaseCriteria {

Expand All @@ -34,6 +35,7 @@ public class BaseDashboardCriteria<SELF extends BaseDashboardCriteria<?>> extend
private Date dateTo;
private Date previousDateFrom;
private Date previousDateTo;
protected NewCaseDateType dateTypeClass;

protected BaseDashboardCriteria(final Class<SELF> selfClass) {
self = selfClass.cast(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import de.symeda.sormas.api.CaseMeasure;
import de.symeda.sormas.api.utils.criteria.CriteriaDateType;
import de.symeda.sormas.api.caze.CaseClassification;
import de.symeda.sormas.api.caze.CaseOutcome;
import de.symeda.sormas.api.caze.NewCaseDateType;

public class DashboardCriteria extends BaseDashboardCriteria<DashboardCriteria> {

Expand All @@ -10,6 +13,9 @@ public class DashboardCriteria extends BaseDashboardCriteria<DashboardCriteria>
private boolean showMinimumEntries;
private CaseMeasure caseMeasure;
private boolean includeNotACaseClassification;
private CaseClassification caseClassification;
private NewDateFilterType dateFilterType;
private CaseOutcome outcome;

public DashboardCriteria() {
super(DashboardCriteria.class);
Expand Down Expand Up @@ -48,4 +54,42 @@ public boolean isShowMinimumEntries() {
public CaseMeasure getCaseMeasure() {
return caseMeasure;
}

public CaseClassification getCaseClassification() {

return caseClassification;
}

public DashboardCriteria caseClassification(CaseClassification caseClassification) {

this.caseClassification = caseClassification;
return this;
}

public NewDateFilterType getDateFilterType() {

return dateFilterType;
}

public DashboardCriteria dateFilterType(NewDateFilterType dateFilterType) {

this.dateFilterType = dateFilterType;
return this;
}

public void setOutcome(CaseOutcome outcome) {

this.outcome = outcome;
}

public CaseOutcome getOutcome() {

return outcome;
}

public DashboardCriteria setDateTypeClass(NewCaseDateType dateTypeClass) {

this.dateTypeClass = dateTypeClass;
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import de.symeda.sormas.api.person.PresentCondition;
import de.symeda.sormas.api.sample.PathogenTestResultType;
import de.symeda.sormas.api.utils.criteria.CriteriaDateType;
import de.symeda.sormas.api.Disease;

@Remote
public interface DashboardFacade {
Expand Down Expand Up @@ -59,4 +60,28 @@ List<DiseaseBurdenDto> getDiseaseBurden(
Date previousFromDate,
Date previousToDate,
CriteriaDateType newCaseDateType);

DiseaseBurdenDto getDiseaseForDashboard(
RegionReferenceDto regionRef,
DistrictReferenceDto districtRef,
Disease disease,
Date fromDate,
Date toDate,
Date previousFromDate,
Date previousToDate,
CriteriaDateType newCaseDateType,
CaseClassification caseClassification
);

DiseaseBurdenDto getDiseaseGridForDashboard(
RegionReferenceDto regionRef,
DistrictReferenceDto districtRef,
Disease disease,
Date from,
Date to,
Date previousFromDate,
Date previousToDate,
CriteriaDateType newCaseDateType,
CaseClassification caseClassification
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*******************************************************************************
* SORMAS® - Surveillance Outbreak Response Management & Analysis System
* Copyright © 2016-2018 Helmholtz-Zentrum für Infektionsforschung GmbH (HZI)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*******************************************************************************/
package de.symeda.sormas.api.dashboard;

public enum NewDateFilterType {
TODAY,
YESTERDAY,
THIS_WEEK,
LAST_WEEK,
THIS_YEAR,
CUSTOM;
}
Loading
Loading