// Numbas version: exam_results_page_options {"name": "Mark's copy of Mark's copy of Drug Calculations - different weights, different amounts", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"rulesets": {}, "functions": {}, "contributors": [{"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/510/", "name": "Mark Hodds"}], "preamble": {"js": "", "css": ""}, "tags": [], "statement": "

Note: As these are practise questions, and are random, some of the amounts may not be realistic!

", "name": "Mark's copy of Mark's copy of Drug Calculations - different weights, different amounts", "ungrouped_variables": ["a", "b", "c", "d", "f", "g", "h", "k", "l", "m", "j"], "advice": "

Solution

\n

In order to calculate the amount of tablets, you need to use the following formula:

\n

$\\dfrac{\\text{Prescribed dose}}{\\text{Stock Strength}}$ $\\times$ Stock dose.

\n

In this question: Prescribed dose is $\\var{a}${f}, Stock Strength is $\\var{b}$mg and Stock dose is 1ml.

\n

{g} {h}

\n

Using the formula: $\\dfrac{\\var{m}}{\\var{b}}$ $\\times$ $1$ = $\\var{j}$ tablets to 3 decimal places.

\n

", "extensions": [], "parts": [{"type": "gapfill", "variableReplacements": [], "sortAnswers": false, "customMarkingAlgorithm": "", "unitTests": [], "marks": 0, "showCorrectAnswer": true, "customName": "", "useCustomName": false, "variableReplacementStrategy": "originalfirst", "gaps": [{"type": "numberentry", "notationStyles": ["plain", "en", "si-en"], "variableReplacements": [], "correctAnswerStyle": "plain", "minValue": "j", "customMarkingAlgorithm": "", "unitTests": [], "marks": "1", "showCorrectAnswer": true, "showFeedbackIcon": true, "customName": "", "useCustomName": false, "showFractionHint": true, "allowFractions": false, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "maxValue": "j", "scripts": {}, "correctAnswerFraction": false, "mustBeReduced": false}], "extendBaseMarkingAlgorithm": true, "prompt": "

Your patient has been prescribed $\\var{a}${f} of a drug orally. The stock strength given is $\\var{b}${k} per tablet. How many tablets do you give to the patient? Give your answer to 3 decimal places where necessary.

\n

[[0]] tablet(s)

", "scripts": {}, "showFeedbackIcon": true}], "variables": {"k": {"definition": "if(f=\"g\",random(\"mg\",\"g\"),if(f=\"mcg\",random(\"mg\",\"mcg\"),random(\"g\",\"mg\",\"mcg\")))", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "k"}, "m": {"definition": "if(l=\"times\",a*1000,if(l=\"divide\",a/1000,if(l=\"equal\",a)))", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "m"}, "b": {"definition": "random(5,10,15)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "b"}, "l": {"definition": "if(f=\"g\",if(k=\"mg\",\"times\",\"equal\"),\n if(f=\"mcg\",if(k=\"mg\",\"divide\",\"equal\"),\n if(f=\"mg\",if(k=\"g\",\"divide\",if(k=\"mcg\",\"multiply\",if(k=\"mg\",\"equal\"))))))", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "l"}, "c": {"definition": "if(f=\"mg\",precround(a/b,3),if(f=\"g\",precround((a*1000)/b,3),precround((a/1000)/b,3)))", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "c"}, "d": {"definition": "precround(b/a,3)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "d"}, "h": {"definition": "if(f=\"g\",if(k=\"mg\",\"Here we convert g into mg by multiplying by 1000\",\"\"),\n if(f=\"mcg\",if(k=\"mg\",\"Here we convert mcg into mg by dividing by 1000\",\"\"),\n if(f=\"mg\",if(k=\"g\",\"Here we convert mg into g by dividing by 1000\",\n if(k=\"mcg\",\"Here we convert mg into mcg by multiplying by 1000\",\"\"),\"\"),\"\"),\"\"),\"\")", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "h"}, "g": {"definition": "if(f=k,\"Since the Need and the Have are in the same units, we do not need to convert.\",\"Since the Need and the Have are different units, we need to convert one of the units into the other.\")", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "g"}, "j": {"definition": "precround(m/b,3)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "j"}, "a": {"definition": "random(10,15,20)", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "a"}, "f": {"definition": "random(\"mg\",\"g\",\"mcg\")", "templateType": "anything", "description": "", "group": "Ungrouped variables", "name": "f"}}, "variable_groups": [], "variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Question on drug calculations

"}}]}], "contributors": [{"profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/510/", "name": "Mark Hodds"}]}