// Numbas version: exam_results_page_options {"name": "Drug Calculations with weights - different weights, different amounts", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"statement": "

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

Question on drug calculations

", "licence": "Creative Commons Attribution 4.0 International"}, "ungrouped_variables": ["a", "b", "c", "d", "f", "g", "h", "k", "l", "m", "j", "z"], "parts": [{"type": "gapfill", "showCorrectAnswer": true, "prompt": "

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

\n

[[0]] tablet(s)

", "marks": 0, "gaps": [{"type": "numberentry", "showFractionHint": true, "showCorrectAnswer": true, "marks": "1", "scripts": {}, "maxValue": "j", "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "variableReplacements": [], "showFeedbackIcon": true, "minValue": "j", "notationStyles": ["plain", "en", "si-en"], "extendBaseMarkingAlgorithm": true, "mustBeReduced": false, "unitTests": [], "useCustomName": false, "customName": "", "mustBeReducedPC": 0, "correctAnswerFraction": false, "customMarkingAlgorithm": "", "allowFractions": false}], "scripts": {}, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "unitTests": [], "useCustomName": false, "customName": "", "customMarkingAlgorithm": ""}], "variable_groups": [], "tags": [], "rulesets": {}, "variables": {"j": {"definition": "precround(m/b,3)", "description": "", "name": "j", "group": "Ungrouped variables", "templateType": "anything"}, "f": {"definition": "random(\"mg\",\"g\",\"mcg\")", "description": "", "name": "f", "group": "Ungrouped variables", "templateType": "anything"}, "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.\")", "description": "", "name": "g", "group": "Ungrouped variables", "templateType": "anything"}, "m": {"definition": "if(l=\"times\",(a*1000)*z,if(l=\"divide\",(a/1000)*z,if(l=\"equal\",a*z)))", "description": "", "name": "m", "group": "Ungrouped variables", "templateType": "anything"}, "a": {"definition": "random(1,0.5,2)", "description": "", "name": "a", "group": "Ungrouped variables", "templateType": "anything"}, "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\",\"times\",if(k=\"mg\",\"equal\"))))))", "description": "", "name": "l", "group": "Ungrouped variables", "templateType": "anything"}, "z": {"definition": "random(40..80#10)", "description": "", "name": "z", "group": "Ungrouped variables", "templateType": "anything"}, "b": {"definition": "random(1,2,5)", "description": "", "name": "b", "group": "Ungrouped variables", "templateType": "anything"}, "d": {"definition": "precround(b/a,3)", "description": "", "name": "d", "group": "Ungrouped variables", "templateType": "anything"}, "c": {"definition": "if(f=\"mg\",precround((a*z)/b,3),if(f=\"g\",precround(((a*1000)*z)/b,3),precround(((a/1000)*z)/b,3)))", "description": "", "name": "c", "group": "Ungrouped variables", "templateType": "anything"}, "k": {"definition": "if(f=\"g\",random(\"mg\",\"g\"),if(f=\"mcg\",random(\"mg\",\"mcg\"),random(\"g\",\"mg\",\"mcg\")))", "description": "", "name": "k", "group": "Ungrouped variables", "templateType": "anything"}, "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\",\"\"),\"\"),\"\"),\"\"),\"\")", "description": "", "name": "h", "group": "Ungrouped variables", "templateType": "anything"}}, "extensions": [], "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

Again, we must also consider body weight for this question.

\n

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

\n

", "name": "Drug Calculations with weights - different weights, different amounts", "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "functions": {}, "contributors": [{"name": "Mark Hodds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/510/"}]}]}], "contributors": [{"name": "Mark Hodds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/510/"}]}