-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#287: Change logic for data previews to be modular
- Loading branch information
Showing
29 changed files
with
549 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
studymanager-core/src/main/java/io/redlink/more/studymanager/core/ui/DataPreview.java
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
studymanager-core/src/main/java/io/redlink/more/studymanager/core/ui/DataView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright LBI-DHP and/or licensed to LBI-DHP under one or more | ||
* contributor license agreements (LBI-DHP: Ludwig Boltzmann Institute | ||
* for Digital Health and Prevention -- A research institute of the | ||
* Ludwig Boltzmann Gesellschaft, Österreichische Vereinigung zur | ||
* Förderung der wissenschaftlichen Forschung). | ||
* Licensed under the Elastic License 2.0. | ||
*/ | ||
package io.redlink.more.studymanager.core.ui; | ||
|
||
import java.util.List; | ||
|
||
public record DataView( | ||
DataViewInfo viewInfo, | ||
ChartType chartType, | ||
List<String> labels, | ||
List<DataViewRow> data | ||
) { | ||
public enum ChartType { | ||
LINE, | ||
BAR, | ||
PIE | ||
} | ||
} | ||
|
16 changes: 16 additions & 0 deletions
16
studymanager-core/src/main/java/io/redlink/more/studymanager/core/ui/DataViewInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Copyright LBI-DHP and/or licensed to LBI-DHP under one or more | ||
* contributor license agreements (LBI-DHP: Ludwig Boltzmann Institute | ||
* for Digital Health and Prevention -- A research institute of the | ||
* Ludwig Boltzmann Gesellschaft, Österreichische Vereinigung zur | ||
* Förderung der wissenschaftlichen Forschung). | ||
* Licensed under the Elastic License 2.0. | ||
*/ | ||
package io.redlink.more.studymanager.core.ui; | ||
|
||
public record DataViewInfo( | ||
String id, | ||
String title, | ||
String description | ||
) { | ||
} |
17 changes: 17 additions & 0 deletions
17
studymanager-core/src/main/java/io/redlink/more/studymanager/core/ui/DataViewRow.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright LBI-DHP and/or licensed to LBI-DHP under one or more | ||
* contributor license agreements (LBI-DHP: Ludwig Boltzmann Institute | ||
* for Digital Health and Prevention -- A research institute of the | ||
* Ludwig Boltzmann Gesellschaft, Österreichische Vereinigung zur | ||
* Förderung der wissenschaftlichen Forschung). | ||
* Licensed under the Elastic License 2.0. | ||
*/ | ||
package io.redlink.more.studymanager.core.ui; | ||
|
||
import java.util.List; | ||
|
||
public record DataViewRow( | ||
String label, | ||
List<Integer> values | ||
) { | ||
} |
44 changes: 44 additions & 0 deletions
44
studymanager-core/src/main/java/io/redlink/more/studymanager/core/ui/ViewConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* Copyright LBI-DHP and/or licensed to LBI-DHP under one or more | ||
* contributor license agreements (LBI-DHP: Ludwig Boltzmann Institute | ||
* for Digital Health and Prevention -- A research institute of the | ||
* Ludwig Boltzmann Gesellschaft, Österreichische Vereinigung zur | ||
* Förderung der wissenschaftlichen Forschung). | ||
* Licensed under the Elastic License 2.0. | ||
*/ | ||
package io.redlink.more.studymanager.core.ui; | ||
|
||
import java.util.List; | ||
|
||
public record ViewConfig( | ||
List<Filter> filters, | ||
Aggregation rowAggregation, | ||
Aggregation seriesAggregation, | ||
Operation operation | ||
) { | ||
|
||
public record Filter( | ||
|
||
) { | ||
} | ||
|
||
public enum Aggregation { | ||
TIME, | ||
STUDY_GROUP, | ||
PARTICIPANT, | ||
} | ||
|
||
public record Operation( | ||
Operator operator, | ||
String field | ||
) { | ||
} | ||
|
||
public enum Operator { | ||
AVG, | ||
SUM, | ||
MIN, | ||
MAX, | ||
COUNT | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.