volume_mute

Mentcare Allergy Requirements

publish date2026/06/19 10:15:24.953250 UTC

volume_mute

A medical record system has the following drug allergy requirements:

Drug Allergy Requirements REQ-1: If a patient is known to be allergic to a medication, prescribing that medication shall result in a warning message being issued to the system user. REQ-2: If a prescriber chooses to ignore an allergy warning, he or she shall provide a reason why this has been ignored.

How many separate tests are needed to comprehensively test these two requirements?

Correct Answer

At least 5 tests - multiple tests per requirement to cover all scenarios

Explanation

Testing these requirements requires multiple tests per requirement: (1) no known allergy - no warning issued; (2) known allergy - warning issued; (3) allergies to two or more drugs - correct warnings for each; (4) two allergic drugs prescribed together - two warnings issued; (5) warning overruled - system requires reason. Testing a requirement does not mean just writing one test.

Reference

Software Engineering, Ian Sommerville, 10th edition


Quizzes you can take where this question appears