tellmimore / tellmi

A platform for surveys, including ecological momentary assesment and interventions.
https://tellmimore.github.io/tellmi/
MIT License
3 stars 0 forks source link

Schedule templates #29

Open alpkaanaksu opened 6 months ago

alpkaanaksu commented 6 months ago

Schedules for different conditions only differ in minor but important details, for example the set of used items is different but the general structure stays the same.

This, combined with #28 and the idea of item templates, can be implemented by adding a prepocessing step. We define a JSON-specification, that can be understood and displayed by the app. Then, we compile our higher-level JSON-file to the lower level specification. Sounds unnecesarily complex to me when I write it like this 🤔, the idea is actually very simple.

alpkaanaksu commented 6 months ago

@s-tofu should we expand/compile the study definition

  1. when we create the study (on the server, once)
  2. when a client sends a request for the first time (on the server, once)
  3. when the study information is downloaded (on the client, once for every participant)