Medication error

What is necessary to do in case a nurse notes a medication error?