// Numbas version: finer_feedback_settings {"name": "Injection volume from a weight-based dose - step by step", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Injection volume from a weight-based dose - step by step", "tags": ["adaptive marking", "injection volume", "weight-based dose"], "metadata": {"description": "
Applied calculation broken down in core calculation steps.
", "licence": "None specified"}, "statement": "You need to administer {dose_per_kg} units/kg of medication.
Your patient weighs {weight} kg. The injection available is {concentration} units/mL.
How many millilitres would you administer? Give your answer to two decimal places.
", "advice": "First, calculate what amount of medication (in units) your patient needs.
\nRequired dose = {dose_per_kg} units/kg × {weight} kg = {required_units} units.
\nThen use the concentration of the injection available to calculate the volume you need to administer.
\nVolume = {required_units} ÷ {concentration} = {volume_exact} mL.
\nRounded to two decimal places: {answer} mL.
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"dose_per_kg": {"name": "dose_per_kg", "group": "Ungrouped variables", "definition": "random([5,10,15,20,25,30,40])", "description": "", "templateType": "anything", "can_override": false}, "weight": {"name": "weight", "group": "Ungrouped variables", "definition": "random([42,53,66,72,87,95,101])", "description": "", "templateType": "anything", "can_override": false}, "concentration": {"name": "concentration", "group": "Ungrouped variables", "definition": "random([500,750,1000])", "description": "", "templateType": "anything", "can_override": false}, "required_units": {"name": "required_units", "group": "Ungrouped variables", "definition": "dose_per_kg*weight", "description": "", "templateType": "anything", "can_override": false}, "volume_exact": {"name": "volume_exact", "group": "Ungrouped variables", "definition": "required_units/concentration", "description": "", "templateType": "anything", "can_override": false}, "answer": {"name": "answer", "group": "Ungrouped variables", "definition": "precround(volume_exact,2)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["dose_per_kg", "weight", "concentration", "required_units", "volume_exact", "answer"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "numberentry", "useCustomName": true, "customName": "Calculate the required dose", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "You need to administer {dose_per_kg} units/kg of medication.
\nYour patient weighs {weight} kg.
\nWhat amount of medication (in units) does your patient need?
\nTotal dose required (units):
", "minValue": "required_units", "maxValue": "required_units", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": 0, "precisionPartialCredit": 0, "precisionMessage": "Check the requested unit and precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": true, "customName": "Calculate the injection volume", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [{"variable": "required_units", "part": "p0", "must_go_first": true}], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "You have calculate how much medication (in units) the patient needs. The injection available is {concentration} units/mL. What volume of medication does the patient need?
\nVolume to administer, to two decimal places (mL):
", "minValue": "answer", "maxValue": "answer", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "dp", "precision": 2, "precisionPartialCredit": 0, "precisionMessage": "Check the requested unit and precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": true, "contributors": [{"name": "Anja Komatar", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/34940/"}], "resources": []}]}], "contributors": [{"name": "Anja Komatar", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/34940/"}]}