-
Notifications
You must be signed in to change notification settings - Fork 23
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 #63 from RADAR-CNS/v0.2_release
V0.2 release
- Loading branch information
Showing
227 changed files
with
8,600 additions
and
1,129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,7 @@ trim_trailing_whitespace = false | |
# Gradle | ||
[*.gradle] | ||
indent_size = 4 | ||
|
||
# Java | ||
[*.java] | ||
indent_size = 4 |
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
.DS_Store | ||
build/ | ||
out/ | ||
.idea/ | ||
*.iml | ||
.gradle/ | ||
*.java | ||
.gradletasknamecache | ||
gradle.properties | ||
exchange.properties | ||
*.class |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM openjdk:8-jdk-alpine | ||
|
||
RUN mkdir -p /code/java-sdk | ||
WORKDIR /code/java-sdk | ||
|
||
COPY commons /code/commons | ||
COPY specifications /code/specifications | ||
COPY restapi /code/restapi | ||
COPY java-sdk/gradle /code/java-sdk/gradle | ||
COPY java-sdk/gradle.properties java-sdk/build.gradle java-sdk/settings.gradle java-sdk/gradlew /code/java-sdk/ | ||
RUN ./gradlew tasks | ||
COPY java-sdk/radar-schemas-commons/build.gradle /code/java-sdk/radar-schemas-commons/ | ||
COPY java-sdk/radar-schemas-commons/src /code/java-sdk/radar-schemas-commons/src | ||
RUN ./gradlew :radar-schemas-commons:classes | ||
COPY java-sdk/radar-schemas-tools/build.gradle /code/java-sdk/radar-schemas-tools/ | ||
COPY java-sdk/radar-schemas-tools/src /code/java-sdk/radar-schemas-tools/src | ||
RUN ./gradlew distTar && cd radar-schemas-tools/build/distributions && tar xzf radar-schemas-tools*.tar.gz | ||
|
||
FROM openjdk:8-jre-alpine | ||
|
||
COPY --from=0 /code/java-sdk/radar-schemas-tools/build/distributions/radar-schemas-tools-*/lib/* /usr/lib/ | ||
COPY --from=0 /code/java-sdk/radar-schemas-tools/build/distributions/radar-schemas-tools-*/bin/radar-schemas-tools /usr/bin/ | ||
|
||
WORKDIR /schemas | ||
VOLUME /schemas | ||
|
||
CMD ["radar-schemas-tools", "-h"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Commons | ||
|
||
This folder is organised as follow | ||
- [active](active) | ||
- [kafka](kafka) | ||
- [monitor](monitor) | ||
- [passive](passive) | ||
|
||
WIP |
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,24 @@ | ||
{ | ||
"namespace": "org.radarcns.active.questionnaire", | ||
"type": "record", | ||
"name": "Questionnaire", | ||
"doc": "General schema for questionnaire. Check the specification folder to see how the questionnaire has been defined. For each QuestionnaireType there is a JSON file reporting the questions set and possible answers if available.", | ||
"fields": [ | ||
{ "name": "time", "type": "double", "doc": "Timestamp in UTC (s) when the questionnaire is submitted to the subject." }, | ||
{ "name": "timeCompleted", "type": "double", "doc": "Timestamp in UTC (s) when subject marks the questionnaire as." }, | ||
{ "name": "name", "type": "string", "doc": "Questionnaire names." }, | ||
{ "name": "version", "type": "string", "doc": "It reports the questionnaire version stated in the JSON specification." }, | ||
{ "name": "answers", "type": { | ||
"type": "array", | ||
"items": { | ||
"name": "Answer", | ||
"type": "record", | ||
"doc": "Questionnaire answer.", | ||
"fields": [ | ||
{ "name": "value", "type": ["int", "string", "double"], "doc": "Subject answer." }, | ||
{ "name": "startTime", "type": "double", "doc": "Timestamp in UTC (s) when the question is shown." }, | ||
{ "name": "endTime", "type": "double", "doc": "Timestamp in UTC (s) when the question is answered." } | ||
] | ||
}}, "doc": "Answers list. The answers order must follow the questions order."} | ||
] | ||
} |
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 @@ | ||
{ | ||
"namespace": "org.radarcns.active.thincit", | ||
"type": "record", | ||
"name": "ThincItCodeBreaker", | ||
"doc": "THINC-it Assessment derived from Digit Symbol Substitution Test. As many trials as can be completed within 2 minutes. Each trial is a symbol/number to be matched.", | ||
"fields": [ | ||
{ "name": "time", "type": "double", "doc": "Timestamp in UTC (s) when the test is submitted to the subject." }, | ||
{ "name": "timeCompleted", "type": "double", "doc": "Timestamp in UTC (s) when the subject completes the test." }, | ||
{ "name": "score", "type": "int", "doc": "THINC-it index score - 0 to 4000." }, | ||
{ "name": "completed", "type": "int", "doc": "The number of completed trials." }, | ||
{ "name": "incorrect", "type": "int", "doc": "The number of incorrect responses." }, | ||
{ "name": "longestTrial", "type": "int", "doc": "Longest trial completion time expressed in milliseconds." }, | ||
{ "name": "iqrCompletion", "type": "int", "doc": "Mean of trial completion times within interquartile range." }, | ||
{ "name": "inputType", "type": "ThincItInputType", "doc": "Dominant input type used by the subject to answer.", "default": "UNKNOWN" }, | ||
{ "name": "quarterSummaryOne", "type": | ||
{ | ||
"type": "record", | ||
"name": "ThincItCodeBreakerQuarterSummary", | ||
"doc": "Trial summary for CodeBreaker assessmen.", | ||
"fields": [ | ||
{ "name": "longestTrial", "type": "int", "doc": "Longest trial completion time expressed in milliseconds." }, | ||
{ "name": "meanTime", "type": "int", "doc": "Mean trial completion time expressed in milliseconds." }, | ||
{ "name": "incorrect", "type": "int", "doc": "The number of incorrect responses." }, | ||
{ "name": "inputType", "type": "ThincItInputType", "doc": "Dominant input type used by the subject to answer.", "default": "UNKNOWN" } | ||
] | ||
}, "doc": "Trial summary for CodeBreaker assessment Quarter 1."}, | ||
{ "name": "quarterSummaryTwo", "type": "ThincItCodeBreakerQuarterSummary", "doc": "Trial summary for CodeBreaker assessment Quarter 2."}, | ||
{ "name": "quarterSummaryThree", "type": "ThincItCodeBreakerQuarterSummary", "doc": "Trial summary for CodeBreaker assessment Quarter 3."}, | ||
{ "name": "quarterSummaryFour", "type": "ThincItCodeBreakerQuarterSummary", "doc": "Trial summary for CodeBreaker assessment Quarter 4."}, | ||
{ "name": "appVersion", "type": "int", "doc": "App version." } | ||
] | ||
} |
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,12 @@ | ||
{ | ||
"namespace": "org.radarcns.active.thincit", | ||
"type": "enum", | ||
"name": "ThincItInputType", | ||
"doc": "Possible input type that a subject can use to do an assignment.", | ||
"symbols": [ | ||
"KEYBOARD", | ||
"MOUSE", | ||
"TOUCHSCREEN", | ||
"UNKNOWN" | ||
] | ||
} |
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,31 @@ | ||
{ | ||
"namespace": "org.radarcns.active.thincit", | ||
"type": "record", | ||
"name": "ThincItSpotter", | ||
"doc": "THINC-it Assessment derived from Choice Reaction Time test. 40 trials, or 2 minutes max. Each trial is the presentation of a left or right facing arrow.", | ||
"fields": [ | ||
{ "name": "time", "type": "double", "doc": "Timestamp in UTC (s) when the test is submitted to the subject." }, | ||
{ "name": "timeCompleted", "type": "double", "doc": "Timestamp in UTC (s) when the subject completes the test." }, | ||
{ "name": "score", "type": "int", "doc": "THINC-it index score - 0 to 4000." }, | ||
{ "name": "meanLatency", "type": "int", "doc": "Mean latency of correct responses expressed in milliseconds." }, | ||
{ "name": "timeouts", "type": "int", "doc": "The number of times that a subject failed to input a response within the time limit." }, | ||
{ "name": "anticipations", "type": "int", "doc": "The number of responses within 100ms of stimulus presentation." }, | ||
{ "name": "incorrect", "type": "int", "doc": "The number of incorrect responses." }, | ||
{ "name": "inputType", "type": "ThincItInputType", "doc": "Dominant input type used by the subject to answer.", "default": "UNKNOWN" }, | ||
{ "name": "quarterSummaryOne", "type": { | ||
"type": "record", | ||
"name": "ThincItSpotterQuarterSummary", | ||
"doc": "Trial summary for SymbolCheck assessment.", | ||
"fields": [ | ||
{ "name": "timeouts", "type": "int", "doc": "The number of times that a subject failed to input a response within the time limit." }, | ||
{ "name": "anticipations", "type": "int", "doc": "The number of responses within 100ms of stimulus presentation." }, | ||
{ "name": "incorrect", "type": "int", "doc": "The number of incorrect response." }, | ||
{ "name": "inputType", "type": "ThincItInputType", "doc": "Dominant input type used by the subject to answer.", "default": "UNKNOWN" } | ||
] | ||
} , "doc": "Trial summary for SymbolCheck assessment Quarter 1."}, | ||
{ "name": "quarterSummaryTwo", "type": "ThincItSpotterQuarterSummary", "doc": "Trial summary for SymbolCheck assessment Quarter 2."}, | ||
{ "name": "quarterSummaryThree", "type": "ThincItSpotterQuarterSummary", "doc": "Trial summary for SymbolCheck assessment Quarter 3."}, | ||
{ "name": "quarterSummaryFour", "type": "ThincItSpotterQuarterSummary", "doc": "Trial summary for SymbolCheck assessment Quarter 4."}, | ||
{ "name": "appVersion", "type": "int", "doc": "App version." } | ||
] | ||
} |
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,31 @@ | ||
{ | ||
"namespace": "org.radarcns.active.thincit", | ||
"type": "record", | ||
"name": "ThincItSymbolCheck", | ||
"doc": "THINC-it Assessment derived from NBack. 40 trials, or 2 minutes max. Each obscured symbol to be recalled is a trial.", | ||
"fields": [ | ||
{ "name": "time", "type": "double", "doc": "Timestamp in UTC (s) when the test is submitted to the subject." }, | ||
{ "name": "timeCompleted", "type": "double", "doc": "Timestamp in UTC (s) when the subject completes the test." }, | ||
{ "name": "score", "type": "int", "doc": "THINC-it index score - 0 to 4000." }, | ||
{ "name": "completed", "type": "int", "doc": "The number of completed trials." }, | ||
{ "name": "correct", "type": "int", "doc": "The number of correct responses." }, | ||
{ "name": "incorrect", "type": "int", "doc": "The number of incorrect responses." }, | ||
{ "name": "timeouts", "type": "int", "doc": "The number of times that a subject failed to input a response within the time limit." }, | ||
{ "name": "inputType", "type": "ThincItInputType", "doc": "Dominant input type used by the subject to answer.", "default": "UNKNOWN" }, | ||
{ "name": "quarterSummaryOne", "type": { | ||
"type": "record", | ||
"name": "ThincItSymbolCheckQuarterSummary", | ||
"doc": "Trial summary for SymbolCheck assessmen.", | ||
"fields": [ | ||
{ "name": "correct", "type": "int", "doc": "The amount of correct responses." }, | ||
{ "name": "incorrect", "type": "int", "doc": "The number of incorrect responses." }, | ||
{ "name": "timeouts", "type": "int", "doc": "The number of times that a subject failed to input a response within the time limit." }, | ||
{ "name": "inputType", "type": "ThincItInputType", "doc": "Dominant input type used by the subject to answer.", "default": "UNKNOWN" } | ||
] | ||
} , "doc": "Trial summary for SymbolCheck assessment Quarter 1."}, | ||
{ "name": "quarterSummaryTwo", "type": "ThincItSymbolCheckQuarterSummary", "doc": "Trial summary for SymbolCheck assessment Quarter 2."}, | ||
{ "name": "quarterSummaryThree", "type": "ThincItSymbolCheckQuarterSummary", "doc": "Trial summary for SymbolCheck assessment Quarter 3."}, | ||
{ "name": "quarterSummaryFour", "type": "ThincItSymbolCheckQuarterSummary", "doc": "Trial summary for SymbolCheck assessment Quarter 4."}, | ||
{ "name": "appVersion", "type": "int", "doc": "App version." } | ||
] | ||
} |
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,35 @@ | ||
{ | ||
"namespace": "org.radarcns.active.thincit", | ||
"type": "record", | ||
"name": "ThincItTrails", | ||
"doc": "THINC-it Assessment derived from Trail Making B. 17 trials. Each trial is the transition from one circle to another.", | ||
"fields": [ | ||
{ "name": "time", "type": "double", "doc": "Timestamp in UTC (s) when the test is submitted to the subject." }, | ||
{ "name": "timeCompleted", "type": "double", "doc": "Timestamp in UTC (s) when the subject completes the test." }, | ||
{ "name": "score", "type": "int", "doc": "THINC-it index score - 0 to 4000." }, | ||
{ "name": "duration", "type": "int", "doc": "Total time taken to complete the assessment in milliseconds." }, | ||
{ "name": "layoutVersion", "type": "int", "doc": "Each play randomly select one of 40 pre-designed layouts." }, | ||
{ "name": "wrongNode", "type": "int", "doc": "The number of times that the subject transitioned to an incorrect next circle before successful transition to correct next circle." }, | ||
{ "name": "lostContact", "type": "int", "doc": "The number of times that the mouse button has been released before transitioning successfully to next circle." }, | ||
{ "name": "longestTrial", "type": "int", "doc": "Longest trial completion time expressed in milliseconds." }, | ||
{ "name": "iqrCompletion", "type": "int", "doc": "Mean of trial completion times within interquartile range." }, | ||
{ "name": "intervalOne", "type": "int", "doc": "Trial completion time in milliseconds." }, | ||
{ "name": "intervalTwo", "type": "int", "doc": "Trial completion time in milliseconds." }, | ||
{ "name": "intervalThree", "type": "int", "doc": "Trial completion time in milliseconds." }, | ||
{ "name": "intervalFour", "type": "int", "doc": "Trial completion time in milliseconds." }, | ||
{ "name": "intervalFive", "type": "int", "doc": "Trial completion time in milliseconds." }, | ||
{ "name": "intervalSix", "type": "int", "doc": "Trial completion time in milliseconds." }, | ||
{ "name": "intervalSeven", "type": "int", "doc": "Trial completion time in milliseconds." }, | ||
{ "name": "intervalEight", "type": "int", "doc": "Trial completion time in milliseconds." }, | ||
{ "name": "intervalNine", "type": "int", "doc": "Trial completion time in milliseconds." }, | ||
{ "name": "intervalTen", "type": "int", "doc": "Trial completion time in milliseconds." }, | ||
{ "name": "intervalEleven", "type": "int", "doc": "Trial completion time in milliseconds." }, | ||
{ "name": "intervalTwelve", "type": "int", "doc": "Trial completion time in milliseconds." }, | ||
{ "name": "intervalThirteen", "type": "int", "doc": "Trial completion time in milliseconds." }, | ||
{ "name": "intervalFourteen", "type": "int", "doc": "Trial completion time in milliseconds." }, | ||
{ "name": "intervalFifteen", "type": "int", "doc": "Trial completion time in milliseconds." }, | ||
{ "name": "intervalSixteen", "type": "int", "doc": "Trial completion time in milliseconds." }, | ||
{ "name": "intervalSeventeen", "type": "int", "doc": "Trial completion time in milliseconds." }, | ||
{ "name": "appVersion", "type": "int", "doc": "App version." } | ||
] | ||
} |
Oops, something went wrong.