questions = [
{q: "A patient lives 4 years at utility 0.5. How many QALYs?", options: ["0.5", "2", "4", "4.5"], answer: "2"},
{q: "A utility of 0 means…", options: ["Perfect health", "A state equivalent to death", "Missing data"], answer: "A state equivalent to death"},
{q: "Can a health state have a negative utility?", options: ["Yes, worse than death", "No, 0 is the minimum"], answer: "Yes, worse than death"}
]
viewof answers = Inputs.form(questions.map(d => Inputs.radio(d.options, {label: d.q})))
score = questions.filter((d, i) => answers[i] === d.answer).length
md`**Score: ${score} / ${questions.length}** ${score === questions.length ? "🎉" : ""}`Quick check: QALYs
A three-question self-check on quality-adjusted life years. Answers stay in your browser.