// 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, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Question on drug calculations

"}, "preamble": {"css": "", "js": ""}, "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

", "rulesets": {}, "extensions": [], "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"], "functions": {}, "tags": [], "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "variables": {"b": {"name": "b", "group": "Ungrouped variables", "definition": "random(5,10,15)", "description": "", "templateType": "anything"}, "j": {"name": "j", "group": "Ungrouped variables", "definition": "precround(m/b,3)", "description": "", "templateType": "anything"}, "l": {"name": "l", "group": "Ungrouped variables", "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\"))))))", "description": "", "templateType": "anything"}, "h": {"name": "h", "group": "Ungrouped variables", "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": "", "templateType": "anything"}, "a": {"name": "a", "group": "Ungrouped variables", "definition": "random(10,15,20)", "description": "", "templateType": "anything"}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "precround(b/a,3)", "description": "", "templateType": "anything"}, "m": {"name": "m", "group": "Ungrouped variables", "definition": "if(l=\"times\",a*1000,if(l=\"divide\",a/1000,if(l=\"equal\",a)))", "description": "", "templateType": "anything"}, "k": {"name": "k", "group": "Ungrouped variables", "definition": "if(f=\"g\",random(\"mg\",\"g\"),if(f=\"mcg\",random(\"mg\",\"mcg\"),random(\"g\",\"mg\",\"mcg\")))", "description": "", "templateType": "anything"}, "c": {"name": "c", "group": "Ungrouped variables", "definition": "if(f=\"mg\",precround(a/b,3),if(f=\"g\",precround((a*1000)/b,3),precround((a/1000)/b,3)))", "description": "", "templateType": "anything"}, "f": {"name": "f", "group": "Ungrouped variables", "definition": "random(\"mg\",\"g\",\"mcg\")", "description": "", "templateType": "anything"}, "g": {"name": "g", "group": "Ungrouped variables", "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": "", "templateType": "anything"}}, "statement": "

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

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