The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
I am hoping to move from D2L to Canvas for my pharmacokinetics course this fall, but am having difficulty both converting my equations from D2L to Canvas, and finding the syntax guides in Canvas Help. Here is a sample question, with the variables that I seek to shuffle every time a student take the question given in the standard D2L curly brackets{}:
"Please calculate (to nearest mg) the dose required to achieve a steady-state tobramycin concentration of {Cd} one hour after the end of a 1 hour IV infusion. Assume the drug is given every 12 hours. From a previous admission, we have the following parameters, if needed.
Vbeta = {Vb} L/kg
half-life = {T} hrs
Patient current weight = {W} kg"
The formula that is being used to test the student's answer is:
{W}*{Cd}*(0.693/{T})*{Vb}*(1-e^(-0.693*12/{T}))/((1-e^(-0.693/{T}))*e^(-0.693/{T}))
which should look like:
Can anyone help with changes to my coding of the question and solution formula for CANVAS?
Thanks!
Paul
Solved! Go to Solution.
Great question!
The main difference in question formatting is that Canvas uses bracket [ ] instead of curly braces { }.
The documentation you are looking for is within each quiz question.
Choose the quiz question type of 'Formula Question'
The formula question contains the text
Question:
You can define variables by typing variable names surrounded by brackets
(i.e. "What is 5 plus [x]?") Need help?.
The "Need help?" is a link to further documentation.
I hope this helps!
I look forward to hearing an answer to Paul's question. The answer will assist me too.
Great question!
The main difference in question formatting is that Canvas uses bracket [ ] instead of curly braces { }.
The documentation you are looking for is within each quiz question.
Choose the quiz question type of 'Formula Question'
The formula question contains the text
Question:
You can define variables by typing variable names surrounded by brackets
(i.e. "What is 5 plus [x]?") Need help?.
The "Need help?" is a link to further documentation.
I hope this helps!
Thank you, Mike.
I look forward to editing the curly to straight brackets. That perhaps explains why options for ranges for my variables are not included in the editable view of the question. I face a more onerous problem, which is that the one line formula that forms the solution for the question is not appearing in the editable version of the question.
Should that have imported from D2L in the zip file as well?
Thanks
Paul
Formula questions are one of those things that typically don’t come over so
well from any legacy LMS. Unfortunately, if it doesn't come over in the
import process it needs to be recreated or moved manually. You may want to
consider a copy/paste conversion if it does not come over in the import.
I would suggest a copy/paste of all the questions and answers into your
favorite text editor, and then do a mass find/replace of curly braces to
brackets. I know it's not perfect solution, but it might speed things up a
little bit.
I hope this helps!
On Tue, Aug 11, 2015 at 11:27 AM, paul.hutson@wisc.edu <
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.