// Numbas version: exam_results_page_options {"name": "Drug Calculations - different weights, different amounts", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "preamble": {"js": "", "css": ""}, "ungrouped_variables": ["a", "b", "c", "d", "f", "g", "h", "k", "l", "m", "j"], "functions": {}, "extensions": [], "variablesTest": {"condition": "", "maxRuns": 100}, "metadata": {"description": "

Question on drug calculations

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

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

", "variables": {"j": {"templateType": "anything", "description": "", "definition": "precround(m/b,3)", "group": "Ungrouped variables", "name": "j"}, "h": {"templateType": "anything", "description": "", "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", "name": "h"}, "g": {"templateType": "anything", "description": "", "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", "name": "g"}, "l": {"templateType": "anything", "description": "", "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", "name": "l"}, "d": {"templateType": "anything", "description": "", "definition": "precround(b/a,3)", "group": "Ungrouped variables", "name": "d"}, "b": {"templateType": "anything", "description": "", "definition": "random(5,10,15)", "group": "Ungrouped variables", "name": "b"}, "f": {"templateType": "anything", "description": "", "definition": "random(\"mg\",\"g\",\"mcg\")", "group": "Ungrouped variables", "name": "f"}, "m": {"templateType": "anything", "description": "", "definition": "if(l=\"times\",a*1000,if(l=\"divide\",a/1000,if(l=\"equal\",a)))", "group": "Ungrouped variables", "name": "m"}, "a": {"templateType": "anything", "description": "", "definition": "random(10,15,20)", "group": "Ungrouped variables", "name": "a"}, "k": {"templateType": "anything", "description": "", "definition": "if(f=\"g\",random(\"mg\",\"g\"),if(f=\"mcg\",random(\"mg\",\"mcg\"),random(\"g\",\"mg\",\"mcg\")))", "group": "Ungrouped variables", "name": "k"}, "c": {"templateType": "anything", "description": "", "definition": "if(f=\"mg\",precround(a/b,3),if(f=\"g\",precround((a*1000)/b,3),precround((a/1000)/b,3)))", "group": "Ungrouped variables", "name": "c"}}, "tags": [], "parts": [{"customName": "", "customMarkingAlgorithm": "", "sortAnswers": false, "scripts": {}, "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)

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

", "name": "Drug Calculations - different weights, different amounts", "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/"}]}