Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Application Data to SmarphoneStudyProtocol #285

Closed
bardram opened this issue Nov 24, 2022 · 1 comment
Closed

Add Application Data to SmarphoneStudyProtocol #285

bardram opened this issue Nov 24, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@bardram
Copy link
Contributor

bardram commented Nov 24, 2022

To support application-specific configuration of the protocol (in version 0.40.x).

@bardram bardram self-assigned this Nov 24, 2022
@bardram bardram added the enhancement New feature or request label Nov 24, 2022
@bardram
Copy link
Contributor Author

bardram commented Nov 24, 2022

Released as part of CAMS 0.40.6.

Now you can write the following in your study protocol:

    // Create a new study protocol.
    masterProtocol = SmartphoneStudyProtocol(
      ownerId: 'user@dtu.dk',
      name: 'patient_tracking',
    );

    masterProtocol.applicationData = {
      'theme': 'dark',
      'version': 1,
      'question_1': "Hvor'n går det?",
    };

bardram added a commit that referenced this issue Nov 25, 2022
bardram added a commit that referenced this issue Nov 25, 2022
bardram added a commit that referenced this issue Nov 25, 2022
@bardram bardram closed this as completed Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant