Skip to content

Instantly share code, notes, and snippets.

@puterleat
Last active December 26, 2015 03:19
Show Gist options
  • Save puterleat/7085092 to your computer and use it in GitHub Desktop.
Save puterleat/7085092 to your computer and use it in GitHub Desktop.
Example of text formatting for questionnaire for Zoe
---
name: "Conseqences of asthma"
redirect_url: "/accounts/profile/"
success_message: "Thanks for taking part in this study. Your help is greatly appreciated."
---
~~~{#are_you_male_or_female choiceset="female" type="likert"}
Are you male or female?
~~~
~~~{#age_years max="100" min="18" type="integer"}
How old are you?
~~~
-------------------------------
~~~{#morisky_forget choiceset="yes_no" type="likert"}
Do you ever forget to take your medication?
~~~
~~~{#morisky_careless choiceset="yes_no" type="likert"}
Are you careless at times about taking your medication?
~~~
------------------------------
~~~{#asthma1_instruction1 type="instruction"}
## Problems caused by asthma medications
Some people experience side effects when they take their asthma medications. We'd like to guage **how serious** you think each of these problems are, that is — how bad would it be if each of the following things happened to you?
Use the sliders to indicate how bad each of the situations would be.
Dragging the slider all the way to the right indicates that this is the worst thing ever that could happen; dragging it all the way to the right indicates that it wouldn't bother you at all.
**Remember, we're asking *how bad* these situations would be, not whether you think they are likely.**
~~~
~~~{#howbad_diehospital max="100" min="0" type="slider" value="0"}
> You have an asthma attack, and die in hospital later that day.
If this happened to you, how bad would it be on a scale from 0 to 100:
~~~
~~~{#likely_diehospital max="100" min="0" type="range-slider"}
> You have an asthma attack, and die in hospital later that day.
How likely is this to happen? Use the slider to select a range which expresses how sure you are about this:
~~~
~~~{#female .choiceset}
1=Female
0=Male
~~~
~~~{#yes_no .choiceset}
1=Yes
0=No
~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment