// Numbas version: exam_results_page_options {"name": "Drug Calculations - different weights, different amounts, different volumes", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["a", "b", "c", "d", "f", "g", "h", "k", "l", "m", "j", "stock"], "extensions": [], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Question on drug calculations

"}, "functions": {}, "statement": "

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

", "tags": [], "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "rulesets": {}, "advice": "

Solution

\n

In order to calculate the amount of drug required, 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 $\\var{stock}$ml.

\n

{g} {h}

\n

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

\n

", "name": "Drug Calculations - different weights, different amounts, different volumes", "variables": {"g": {"name": "g", "description": "", "templateType": "anything", "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.\")", "group": "Ungrouped variables"}, "k": {"name": "k", "description": "", "templateType": "anything", "definition": "if(f=\"g\",random(\"mg\",\"g\"),if(f=\"mcg\",random(\"mg\",\"mcg\"),random(\"g\",\"mg\",\"mcg\")))", "group": "Ungrouped variables"}, "h": {"name": "h", "description": "", "templateType": "anything", "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\",\"\"),\"\"),\"\"),\"\"),\"\")", "group": "Ungrouped variables"}, "l": {"name": "l", "description": "", "templateType": "anything", "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\"))))))", "group": "Ungrouped variables"}, "j": {"name": "j", "description": "", "templateType": "anything", "definition": "precround((m/b)*stock,3)", "group": "Ungrouped variables"}, "d": {"name": "d", "description": "", "templateType": "anything", "definition": "precround(b/a,3)", "group": "Ungrouped variables"}, "f": {"name": "f", "description": "", "templateType": "anything", "definition": "random(\"mg\",\"g\",\"mcg\")", "group": "Ungrouped variables"}, "c": {"name": "c", "description": "", "templateType": "anything", "definition": "if(f=\"mg\",precround(a/b,3),if(f=\"g\",precround((a*1000)/b,3),precround((a/1000)/b,3)))", "group": "Ungrouped variables"}, "b": {"name": "b", "description": "", "templateType": "anything", "definition": "random(5,10,15)", "group": "Ungrouped variables"}, "a": {"name": "a", "description": "", "templateType": "anything", "definition": "random(1,2,5,10)", "group": "Ungrouped variables"}, "m": {"name": "m", "description": "", "templateType": "anything", "definition": "if(l=\"times\",a*1000,if(l=\"divide\",a/1000,if(l=\"equal\",a)))", "group": "Ungrouped variables"}, "stock": {"name": "stock", "description": "", "templateType": "anything", "definition": "random(1,2,5,10)", "group": "Ungrouped variables"}}, "parts": [{"variableReplacements": [], "marks": 0, "prompt": "

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

\n

[[0]] ml

", "unitTests": [], "scripts": {}, "customName": "", "sortAnswers": false, "showFeedbackIcon": true, "showCorrectAnswer": true, "type": "gapfill", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "useCustomName": false, "gaps": [{"variableReplacements": [], "marks": "1", "correctAnswerFraction": false, "unitTests": [], "scripts": {}, "minValue": "j", "correctAnswerStyle": "plain", "customName": "", "maxValue": "j", "showFeedbackIcon": true, "showCorrectAnswer": true, "type": "numberentry", "showFractionHint": true, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "useCustomName": false, "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "notationStyles": ["plain", "en", "si-en"], "allowFractions": false, "mustBeReduced": false}], "customMarkingAlgorithm": ""}], "preamble": {"css": "", "js": ""}, "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/"}]}