-
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.
Merge pull request #348 from MORE-Platform/develop
Develop
- Loading branch information
Showing
108 changed files
with
2,241 additions
and
490 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
8 changes: 8 additions & 0 deletions
8
studymanager-core/src/main/java/io/redlink/more/studymanager/core/io/SimpleParticipant.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
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
32 changes: 32 additions & 0 deletions
32
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,32 @@ | ||
/* | ||
* 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; | ||
|
||
/** | ||
* Represents a data view with information, chart type, and data. | ||
* | ||
* @param viewInfo the information about the data view | ||
* @param chartType the type of chart to be displayed | ||
* @param data the data to be displayed in the view | ||
*/ | ||
public record DataView( | ||
DataViewInfo viewInfo, | ||
ChartType chartType, | ||
DataViewData data | ||
) { | ||
/** | ||
* Enumeration of possible chart types. | ||
*/ | ||
public enum ChartType { | ||
LINE, | ||
BAR, | ||
PIE | ||
} | ||
} | ||
|
23 changes: 23 additions & 0 deletions
23
studymanager-core/src/main/java/io/redlink/more/studymanager/core/ui/DataViewData.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,23 @@ | ||
/* | ||
* 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; | ||
|
||
/** | ||
* Represents the data in a data view. | ||
* | ||
* @param labels the labels for the data | ||
* @param rows the rows of data | ||
*/ | ||
public record DataViewData( | ||
List<String> labels, | ||
List<DataViewRow> rows | ||
) { | ||
} |
51 changes: 51 additions & 0 deletions
51
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,51 @@ | ||
/* | ||
* 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 interface DataViewInfo { | ||
/** | ||
* Gets the name of the data view. | ||
* The name is the identifier of a specific view. | ||
* | ||
* @return the name of the data view | ||
*/ | ||
String name(); | ||
|
||
/** | ||
* Gets the label of the data view. | ||
* The label is a short indicator to differ between multiple views. | ||
* | ||
* @return the label of the data view | ||
*/ | ||
String label(); | ||
|
||
/** | ||
* Gets the title of the data view. | ||
* The title is a short textual information about the observation data. | ||
* | ||
* @return the title of the data view | ||
*/ | ||
String title(); | ||
|
||
/** | ||
* Gets the description of the data view. | ||
* The description explains what the given observation data shows. | ||
* | ||
* @return the description of the data view | ||
*/ | ||
String description(); | ||
|
||
/** | ||
* Gets the chart type of the data view. | ||
* The chartType indicates how the given observation data is visually shown. | ||
* | ||
* @return the chart type of the data view | ||
*/ | ||
DataView.ChartType chartType(); | ||
} |
23 changes: 23 additions & 0 deletions
23
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,23 @@ | ||
/* | ||
* 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; | ||
|
||
/** | ||
* Represents a row of data in a data view. | ||
* | ||
* @param label the label of the data row | ||
* @param values the list of values in the data row | ||
*/ | ||
public record DataViewRow( | ||
String label, | ||
List<Double> values | ||
) { | ||
} |
Oops, something went wrong.