@@ -38,20 +38,26 @@ int main()
3838 auto &general_cd = cc.create_item (cd_type, json::json{{" name" , " General" }});
3939
4040 auto &ct_type = cc.create_type (" CognitiveTest" , {}, json::json{{" name" , {" type" , " string" }}, {" domain" , {{" type" , " item" }, {" domain" , " CognitiveDomain" }}}}, json::json ());
41- auto &moca_ct = cc.create_item (ct_type, json::json{{" name" , " MoCA" }, {" domain" , general_cd.get_id ()}});
42- auto &attention_matrices_ct = cc.create_item (ct_type, json::json{{" name" , " AttentionMatrices" }, {" domain" , attention_cd.get_id ()}});
43- auto &trial_making_test_a_ct = cc.create_item (ct_type, json::json{{" name" , " TrialMakingTestA" }, {" domain" , executive_functions_cd.get_id ()}});
44- auto &trial_making_test_b_ct = cc.create_item (ct_type, json::json{{" name" , " TrialMakingTestB" }, {" domain" , executive_functions_cd.get_id ()}});
45- auto &trial_making_test_b_a_ct = cc.create_item (ct_type, json::json{{" name" , " TrialMakingTestBA" }, {" domain" , executive_functions_cd.get_id ()}});
46- auto &semantic_fluency_ct = cc.create_item (ct_type, json::json{{" name" , " SemanticFluency" }, {" domain" , executive_functions_cd.get_id ()}});
47- auto &phonological_fluency_ct = cc.create_item (ct_type, json::json{{" name" , " PhonologicalFluency" }, {" domain" , executive_functions_cd.get_id ()}});
48- auto &modified_wisconsin_card_sorting_test_ct = cc.create_item (ct_type, json::json{{" name" , " ModifiedWisconsinCardSortingTest" }, {" domain" , executive_functions_cd.get_id ()}});
49- auto &short_story_ct = cc.create_item (ct_type, json::json{{" name" , " ShortStory" }, {" domain" , memory_cd.get_id ()}});
41+ [[maybe_unused]] auto &moca_ct = cc.create_item (ct_type, json::json{{" name" , " MoCA" }, {" domain" , general_cd.get_id ()}});
42+ [[maybe_unused]] auto &attention_matrices_ct = cc.create_item (ct_type, json::json{{" name" , " AttentionMatrices" }, {" domain" , attention_cd.get_id ()}});
43+ [[maybe_unused]] auto &trial_making_test_a_ct = cc.create_item (ct_type, json::json{{" name" , " TrialMakingTestA" }, {" domain" , executive_functions_cd.get_id ()}});
44+ [[maybe_unused]] auto &trial_making_test_b_ct = cc.create_item (ct_type, json::json{{" name" , " TrialMakingTestB" }, {" domain" , executive_functions_cd.get_id ()}});
45+ [[maybe_unused]] auto &trial_making_test_b_a_ct = cc.create_item (ct_type, json::json{{" name" , " TrialMakingTestBA" }, {" domain" , executive_functions_cd.get_id ()}});
46+ [[maybe_unused]] auto &semantic_fluency_ct = cc.create_item (ct_type, json::json{{" name" , " SemanticFluency" }, {" domain" , executive_functions_cd.get_id ()}});
47+ [[maybe_unused]] auto &phonological_fluency_ct = cc.create_item (ct_type, json::json{{" name" , " PhonologicalFluency" }, {" domain" , executive_functions_cd.get_id ()}});
48+ [[maybe_unused]] auto &modified_wisconsin_card_sorting_test_ct = cc.create_item (ct_type, json::json{{" name" , " ModifiedWisconsinCardSortingTest" }, {" domain" , executive_functions_cd.get_id ()}});
49+ [[maybe_unused]] auto &short_story_ct = cc.create_item (ct_type, json::json{{" name" , " ShortStory" }, {" domain" , memory_cd.get_id ()}});
5050
5151 auto &ce_type = cc.create_type (" CognitiveExercise" , {}, json::json{{" name" , {" type" , " string" }}, {" duration" , {{" type" , " int" }, {" min" , 0 }, {" max" , 60 }}}, {" domain" , {{" type" , " item" }, {" domain" , " CognitiveTest" }}}}, json::json ());
52- auto &visual_memory_ce = cc.create_item (ce_type, json::json{{" name" , " VisualMemory" }, {" duration" , 5 }, {" domain" , memory_cd.get_id ()}});
53- auto &attention_ce = cc.create_item (ce_type, json::json{{" name" , " Attention" }, {" duration" , 5 }, {" domain" , attention_cd.get_id ()}});
54- auto &executive_functions_ce = cc.create_item (ce_type, json::json{{" name" , " ExecutiveFunctions" }, {" duration" , 5 }, {" domain" , executive_functions_cd.get_id ()}});
52+ [[maybe_unused]] auto &visual_memory_ce = cc.create_item (ce_type, json::json{{" name" , " VisualMemory" }, {" duration" , 5 }, {" domain" , memory_cd.get_id ()}});
53+ [[maybe_unused]] auto &attention_ce = cc.create_item (ce_type, json::json{{" name" , " Attention" }, {" duration" , 5 }, {" domain" , attention_cd.get_id ()}});
54+ [[maybe_unused]] auto &executive_functions_ce = cc.create_item (ce_type, json::json{{" name" , " ExecutiveFunctions" }, {" duration" , 5 }, {" domain" , executive_functions_cd.get_id ()}});
55+
56+ [[maybe_unused]] auto &usr_type = cc.create_type (" User" , {}, json::json{{" name" , {" type" , " string" }}}, json::json ());
57+ [[maybe_unused]] auto &t_done_type = cc.create_type (" TestDone" , {}, json::json{{" user" , {{" type" , " item" }, {" domain" , " User" }}}, {" test" , {{" type" , " item" }, {" domain" , " CognitiveTest" }}}, {" score" , {{" type" , " int" }, {" min" , 0 }, {" max" , 6 }}}}, json::json ());
58+ [[maybe_unused]] auto &ex_done_type = cc.create_type (" ExerciseDone" , {}, json::json{{" user" , {{" type" , " item" }, {" domain" , " User" }}}, {" exercise" , {{" type" , " item" }, {" domain" , " CognitiveExercise" }}}, {" level" , {{" type" , " int" }, {" min" , 0 }, {" max" , 6 }}}, {" done" , {{" type" , " int" }, {" min" , 0 }, {" default" , 0 }}}, {" performance" , {{" type" , " float" }, {" min" , 0 }, {" max" , 1 }}}}, json::json ());
59+
60+ rst.create_user (" TestUser" , json::json{{" MoCA" , 2 }, {" AttentionMatrices" , 1 }, {" TrialMakingTestA" , 4 }, {" TrialMakingTestB" , 3 }, {" TrialMakingTestBA" , 0 }, {" SemanticFluency" , 2 }, {" PhonologicalFluency" , 4 }, {" ModifiedWisconsinCardSortingTest" , 1 }, {" ShortStory" , 3 }});
5561 }
5662
5763#ifdef INTERACTIVE_TEST
0 commit comments